/* ==========================================================================
   Aldercrest Compliance Group — design system
   Palette: navy #3A415C / slate #4E577B / gold #C7AE6A / dark navy #262B3D
            off-white #F6F4F1 / text #1A1A1A
   Fonts:   Montserrat (headings), Lato (body)
   ========================================================================== */

:root {
	--navy: #3A415C;
	--slate: #4E577B;
	--gold: #C7AE6A;
	--dark-navy: #262B3D;
	--bg: #F6F4F1;
	--text: #1A1A1A;
	--text-muted: #4a4a4a;
	--line: #ddd8d0;
	--white: #ffffff;
	--max-width: 1160px;
	--radius: 3px;
	--font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	--font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--slate); }

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.2;
	color: var(--navy);
	letter-spacing: -0.01em;
	margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }   /* 36–56px */
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }      /* 28–40px */
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }     /* ~26px */
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.2em; max-width: 68ch; }

strong { color: var(--navy); }

/* Accessibility: visible focus */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 2px;
	border-radius: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus {
	width: auto; height: auto;
	clip: auto;
	padding: 0.6em 1em;
	background: var(--navy);
	color: var(--white);
	z-index: 100000;
}

/* ---------- Layout helpers ---------- */

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
}

.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }
.section-navy a { color: var(--white); }
.section-dark { background: var(--dark-navy); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a { color: var(--white); }
.section-white { background: var(--white); }

.eyebrow {
	font-family: var(--font-heading);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 14px;
}
.eyebrow-navy { color: var(--navy); }

.gold-rule {
	width: 56px;
	height: 2px;
	background: var(--gold);
	border: 0;
	margin: 0 0 28px;
}

.lead { font-size: 19px; color: var(--text-muted); }
.section-navy .lead, .section-dark .lead { color: #d9dce6; }

.two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-block;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.04em;
	padding: 15px 30px;
	border-radius: var(--radius);
	border: 2px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
	background: var(--navy);
	color: var(--white);
	border-color: var(--navy);
}
.btn-primary:hover { background: var(--slate); border-color: var(--slate); color: var(--white); }

.btn-outline-light {
	background: transparent;
	color: var(--white);
	border-color: rgba(255, 255, 255, 0.55);
}
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline-navy {
	background: transparent;
	color: var(--navy);
	border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.text-link {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.03em;
	color: var(--navy);
	text-decoration: none;
	border-bottom: 1px solid var(--gold);
	padding-bottom: 2px;
}
.text-link:hover { color: var(--slate); border-bottom-color: var(--slate); }
.section-navy .text-link, .section-dark .text-link { color: var(--gold); border-bottom-color: var(--gold); }
.section-navy .text-link:hover, .section-dark .text-link:hover { color: var(--white); border-bottom-color: var(--white); }

/* ---------- Header ---------- */

.site-header {
	background: var(--bg);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.site-header-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 84px;
}

.site-logo img { width: 220px; height: auto; }

.aldercrest-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 34px;
	align-items: center;
}

.aldercrest-nav-list a {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.05em;
	color: var(--navy);
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.aldercrest-nav-list a:hover { color: var(--slate); border-bottom-color: var(--gold); }
.aldercrest-nav-list .current-menu-item a,
.aldercrest-nav-list a[aria-current="page"] { border-bottom-color: var(--gold); }

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 10px;
	cursor: pointer;
}
.nav-toggle-bar {
	display: block;
	width: 26px;
	height: 2px;
	background: var(--navy);
	margin: 6px 0;
	transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
	position: relative;
	background: var(--dark-navy);
	color: var(--white);
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0.38;
}

.hero-inner {
	position: relative;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 130px 24px 120px;
}

.hero h1 { color: var(--white); max-width: 15ch; }
.hero p { font-size: 19px; color: #d9dce6; max-width: 52ch; }
.hero .btn-row { margin-top: 34px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

.page-hero {
	background: var(--navy);
	color: var(--white);
	padding: 84px 0 72px;
}
.page-hero h1 { color: var(--white); max-width: 20ch; margin-bottom: 0.35em; }
.page-hero p { color: #d9dce6; font-size: 19px; margin-bottom: 0; }

/* ---------- Trust bar ---------- */

.trust-bar {
	background: var(--white);
	border-bottom: 1px solid var(--line);
}
.trust-bar-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 26px 24px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.trust-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.02em;
	color: var(--navy);
	line-height: 1.45;
}
.trust-item svg { flex-shrink: 0; margin-top: 2px; }

/* ---------- Cards & panels ---------- */

.panel {
	background: var(--white);
	border: 1px solid var(--line);
	border-top: 3px solid var(--gold);
	border-radius: var(--radius);
	padding: 36px 32px;
}
.panel h3 { margin-bottom: 0.5em; }
.panel p:last-child { margin-bottom: 0; }

.step {
	border-left: 3px solid var(--gold);
	padding: 6px 0 6px 28px;
	margin-bottom: 44px;
}
.step:last-child { margin-bottom: 0; }
.step-number {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold);
	display: block;
	margin-bottom: 8px;
}
.step h2, .step h3 { margin-bottom: 0.4em; }
.step p { margin-bottom: 0; }

/* ---------- Sector list ---------- */

.sector-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
.sector-item {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 34px 30px;
}
.sector-item svg { margin-bottom: 18px; }
.sector-item h3 { font-size: 1.2rem; margin-bottom: 0.45em; }
.sector-item p { font-size: 16px; margin-bottom: 0; color: var(--text-muted); }

/* ---------- FAQ ---------- */

.faq-item {
	border-bottom: 1px solid var(--line);
	padding: 26px 0;
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 1.15rem; margin-bottom: 0.35em; }
.faq-item p { margin-bottom: 0; }

/* ---------- Founder profiles ---------- */

.founder {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 40px;
	align-items: start;
	margin-bottom: 56px;
}
.founder img {
	border-radius: var(--radius);
	border: 1px solid var(--line);
}
.founder h3 { margin-bottom: 0.15em; }
.founder-role {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 14px;
}

/* ---------- Quote band ---------- */

.quote-band {
	background: var(--navy);
	color: var(--white);
	text-align: left;
	padding: 72px 0;
}
.quote-band blockquote {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	line-height: 1.35;
	color: var(--white);
	max-width: 26ch;
}
.quote-band blockquote::before {
	content: "";
	display: block;
	width: 56px;
	height: 2px;
	background: var(--gold);
	margin-bottom: 26px;
}

/* ---------- CTA band ---------- */

.cta-band {
	background: var(--dark-navy);
	color: var(--white);
	padding: 84px 0;
}
.cta-band h2 { color: var(--white); max-width: 22ch; }
.cta-band p { color: #d9dce6; max-width: 56ch; }
.cta-band .btn-row { margin-top: 30px; }

/* ---------- Forms (Contact Form 7) ---------- */

.aldercrest-form {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 44px 40px;
	max-width: 720px;
}

.aldercrest-form label {
	display: block;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.03em;
	color: var(--navy);
	margin-bottom: 7px;
}

.aldercrest-form .field { margin-bottom: 24px; }

.aldercrest-form input[type="text"],
.aldercrest-form input[type="email"],
.aldercrest-form input[type="tel"],
.aldercrest-form select,
.aldercrest-form textarea {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid #c9c4bb;
	border-radius: var(--radius);
	background: var(--bg);
	font-family: var(--font-body);
	font-size: 16px;
	color: var(--text);
	transition: border-color 0.2s ease;
}

.aldercrest-form input:focus,
.aldercrest-form select:focus,
.aldercrest-form textarea:focus {
	border-color: var(--navy);
	outline: none;
	box-shadow: 0 0 0 3px rgba(58, 65, 92, 0.15);
}

.aldercrest-form textarea { min-height: 140px; resize: vertical; }

.aldercrest-form .consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--text-muted);
}
.aldercrest-form .consent input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-top: 3px;
	flex-shrink: 0;
	accent-color: var(--navy);
}
.aldercrest-form .consent label {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 15px;
	color: var(--text-muted);
	margin-bottom: 0;
}

.aldercrest-form input[type="submit"],
.aldercrest-form .wpcf7-submit {
	background: var(--navy);
	color: var(--white);
	border: 2px solid var(--navy);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.04em;
	padding: 15px 34px;
	border-radius: var(--radius);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.aldercrest-form input[type="submit"]:hover,
.aldercrest-form .wpcf7-submit:hover {
	background: var(--slate);
	border-color: var(--slate);
}

.wpcf7-response-output {
	border: 1px solid var(--gold) !important;
	background: var(--white);
	color: var(--navy);
	font-size: 15px;
	padding: 14px 18px !important;
	margin: 24px 0 0 !important;
	border-radius: var(--radius);
}
.wpcf7-not-valid-tip { color: #9b2c2c; font-size: 14px; margin-top: 6px; }

.form-alt-contact {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--dark-navy);
	color: #c9cddb;
	padding: 72px 0 0;
}

.site-footer-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 48px;
	padding-bottom: 56px;
}

.footer-brand .logo-white { width: 200px; margin-bottom: 20px; }
.footer-tagline { font-size: 15px; color: #9aa0b5; max-width: 30ch; margin-bottom: 0; }

.footer-heading {
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 18px;
}

.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 10px; }
.footer-menu a {
	color: #c9cddb;
	text-decoration: none;
	font-size: 15px;
	transition: color 0.2s ease;
}
.footer-menu a:hover { color: var(--gold); }

.footer-contact p { font-size: 15px; margin-bottom: 0.8em; }
.footer-contact a { color: #c9cddb; }
.footer-contact a:hover { color: var(--gold); }
.footer-company { color: #9aa0b5; }

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 24px 0;
}
.footer-bottom p {
	font-size: 14px;
	color: #9aa0b5;
	margin: 0;
	max-width: none;
}

/* ---------- Cookie banner (WPConsent overrides) ---------- */

/* Brand-consistent overrides applied on top of WPConsent defaults. */
#wpconsent-banner,
.wpconsent-banner {
	font-family: var(--font-body) !important;
}

/* ---------- Subtle fade-in animation ---------- */

.fade-in {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.is-visible {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.fade-in { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.maxw-60 { max-width: 60ch; }
.img-bordered { border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
	.trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
	.sector-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.primary-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		display: none;
	}
	.primary-navigation.is-open { display: block; }
	.aldercrest-nav-list {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 12px 24px 20px;
	}
	.aldercrest-nav-list li { width: 100%; }
	.aldercrest-nav-list a {
		display: block;
		padding: 13px 0;
		font-size: 15px;
		border-bottom: 1px solid var(--line);
	}
	.aldercrest-nav-list li:last-child a { border-bottom: 0; }

	.two-col { grid-template-columns: 1fr; gap: 36px; }
	.grid-3 { grid-template-columns: 1fr; }
	.founder { grid-template-columns: 1fr; gap: 24px; }
	.founder img { max-width: 260px; }

	.section { padding: 60px 0; }
	.hero-inner { padding: 88px 24px 80px; }
	.aldercrest-form { padding: 32px 24px; }
}

@media (max-width: 560px) {
	.trust-bar-inner { grid-template-columns: 1fr; }
	.sector-list { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 36px; }
	body { font-size: 16px; }
}


/* ---------- Homepage hero CTA visibility fix ---------- */
.hero .btn-primary {
	background: var(--gold);
	color: var(--dark-navy);
	border-color: var(--gold);
}
.hero .btn-primary:hover { background: var(--white); border-color: var(--white); color: var(--dark-navy); }

.hero .text-link { color: var(--gold); border-bottom-color: var(--gold); }
.hero .text-link:hover { color: var(--white); border-bottom-color: var(--white); }
