/*
Theme Name: Covenant Supporters
Description: Matches the supportthecovenant.co.uk website (header, footer, colours and fonts) for the supporters directory.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Author: The Covenant
License: GPL-2.0-or-later
Text Domain: covenant-supporters-theme
*/

:root {
	--ct-bg: #0d0d0d;
	--ct-surface: #1a1a1a;
	--ct-border: #262626;
	--ct-red: #bc202a;
	--ct-text: rgba(255, 255, 255, .85);
	--ct-muted: #a6a6a6;
	--ct-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
	--ct-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--ct-bg); color: var(--ct-text);
	font-family: var(--ct-sans); font-size: 16px; line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	padding: 10px 16px; background: #fff; color: #000; border-radius: 6px;
}

/* ---------- Header (same as the main website) ---------- */
.ct-header {
	position: sticky; top: 0; z-index: 50; height: 92px;
	background: rgba(13, 13, 13, .96); border-bottom: 1px solid var(--ct-border);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.admin-bar .ct-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ct-header { top: 46px; } }
.ct-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 32px;
}
.ct-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.ct-logo svg { width: 32px; height: 32px; color: var(--ct-red); }
.ct-logo__text { display: flex; flex-direction: column; }
.ct-logo__name { font-family: var(--ct-serif); font-size: 24px; font-weight: 700; line-height: 1; letter-spacing: -.01em; color: var(--ct-red); }
.ct-logo__tag { margin-top: 6px; font-size: 10px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--ct-muted); }

.ct-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ct-nav a {
	position: relative; display: block; padding: 8px 8px; font-size: 14px; font-weight: 500;
	color: rgba(255, 255, 255, .85); text-decoration: none; transition: color .15s;
}
.ct-nav a:hover, .ct-nav a:focus-visible { color: var(--ct-red); }
.ct-nav a[aria-current="page"], .ct-nav .is-current a { color: var(--ct-red); }
.ct-nav a[aria-current="page"]::after, .ct-nav .is-current a::after {
	content: ""; position: absolute; left: 8px; right: 8px; bottom: -2px; height: 2px; background: var(--ct-red); border-radius: 2px;
}
.ct-menu-toggle { display: none; }

@media (max-width: 900px) {
	.ct-header { height: 76px; }
	.ct-header__inner { padding: 0 16px; }
	.ct-logo__name { font-size: 20px; }
	.ct-menu-toggle {
		display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
		background: none; border: 1px solid var(--ct-border); border-radius: 10px; color: #fff; cursor: pointer;
	}
	.ct-menu-toggle svg { width: 22px; height: 22px; }
	.ct-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		background: #0d0d0d; border-bottom: 1px solid var(--ct-border); padding: 8px 16px 16px;
	}
	.ct-nav.is-open { display: block; }
	.ct-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.ct-nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--ct-border); }
	.ct-nav a[aria-current="page"]::after, .ct-nav .is-current a::after { display: none; }
}

/* ---------- Content ---------- */
.ct-main { max-width: 1280px; margin: 0 auto; padding: 40px 32px 72px; }
@media (max-width: 640px) { .ct-main { padding: 24px 16px 48px; } }
.ct-main h1, .ct-main h2, .ct-main h3 { color: #fff; }
.ct-entry > *:first-child { margin-top: 0; }

/* ---------- Footer (same as the main website) ---------- */
.ct-footer { background: var(--ct-red); color: rgba(255, 255, 255, .9); }
.ct-footer__inner { max-width: 1280px; margin: 0 auto; padding: 80px 32px 40px; }
.ct-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.ct-footer a:hover, .ct-footer a:focus-visible { color: #fff; text-decoration: underline; }
.ct-footer__top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.ct-footer .ct-logo svg { width: 40px; height: 40px; color: #fff; }
.ct-footer .ct-logo__name { color: #fff; }
.ct-footer .ct-logo__tag { color: rgba(255, 255, 255, .8); letter-spacing: .2em; }
.ct-footer__about { max-width: 460px; margin: 24px 0 0; font-size: 15px; }
.ct-footer__box {
	align-self: start; padding: 24px; border-radius: 16px;
	background: rgba(0, 0, 0, .1); border: 1px solid rgba(255, 255, 255, .1); font-size: 13px; line-height: 1.6;
}
.ct-footer__box strong { display: block; margin-bottom: 6px; color: #fff; font-size: 12px; }
.ct-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 64px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.ct-footer h4 { margin: 0 0 20px; font-family: var(--ct-serif); font-size: 18px; font-weight: 700; color: #fff; }
.ct-footer ul { margin: 0; padding: 0; list-style: none; }
.ct-footer li { margin: 0 0 14px; font-size: 14px; }
.ct-footer__mail { display: inline-flex; align-items: center; gap: 10px; }
.ct-footer__mail svg { width: 16px; height: 16px; }
.ct-footer__bottom { padding-top: 32px; font-size: 14px; color: rgba(255, 255, 255, .7); }
@media (max-width: 900px) {
	.ct-footer__inner { padding: 56px 16px 32px; }
	.ct-footer__top { grid-template-columns: 1fr; gap: 28px; }
	.ct-footer__cols { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 0; }
}
