/* ==========================================================================
   Navigating Seasons Counselling Services — site stylesheet.
   Replaces the Carrd-export CSS (main.css, dark-mode.css, enhancements.css,
   redesign.css) entirely: this is a hand-built multi-page site, not a
   Carrd export with an override layer on top.
   ========================================================================== */

:root {
	--bg: #F7F4EC;
	--panel: #FDFBF6;
	--panel-tint: #FBF3E7;
	--ink: #211F1A;
	--ink-soft: #5C5850;
	--rule: rgba(33, 31, 26, 0.14);
	--sage: #6C7C59;
	--accent: #6C7C59;
	--accent-strong: #4A5A3B;
	--accent-contrast: #FBF3E7;
	--focus: #0E8C94;
	--shadow: 0 20px 44px rgba(33, 31, 26, 0.1);
	--shadow-soft: 0 10px 26px rgba(33, 31, 26, 0.07);
	--radius: 16px;
	--font-display: 'Lora', Georgia, 'Times New Roman', serif;
	--font-body: 'Karla', 'Helvetica Neue', Arial, sans-serif;
	color-scheme: light;
}

html[data-theme="dark"] {
	--bg: #171D14;
	--panel: #1E2618;
	--panel-tint: #232C1C;
	--ink: #F0EDE6;
	--ink-soft: #ABA89C;
	--rule: rgba(240, 237, 230, 0.14);
	--accent: #8FA377;
	--accent-strong: #B4C79C;
	--accent-contrast: #171D14;
	--shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
	--shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.3);
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16.5px;
	line-height: 1.6;
}

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.2;
	text-wrap: balance;
	margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

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

a {
	color: var(--accent-strong);
}
a:hover { color: var(--ink); }

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

.kicker {
	font-family: var(--font-body);
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	color: var(--accent-strong);
	font-weight: 700;
	margin-bottom: 0.9em;
}
html[data-theme="dark"] .kicker { color: var(--accent); }

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: var(--ink);
	color: var(--bg);
	font-family: var(--font-body);
	font-size: 0.9rem;
	padding: 0.75rem 1.25rem;
	border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

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

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}

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

.wrap {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 56px);
}

main { display: block; }

/* ---- Nav ------------------------------------------------------------------ */

.site-nav {
	border-bottom: 1px solid var(--rule);
}

.site-nav .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 20px;
	padding-bottom: 20px;
	flex-wrap: wrap;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--ink);
	text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }

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

.nav-links a {
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--ink);
	text-decoration: none;
}
.nav-links a:hover { color: var(--ink); text-decoration: underline; }
.nav-links a[aria-current="page"] {
	font-weight: 700;
	border-bottom: 2px solid var(--accent);
	padding-bottom: 3px;
}

.nav-links .btn { padding: 9px 18px; font-size: 0.88rem; }

#theme-toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: transparent;
	border: 1px solid var(--rule);
	border-radius: 999px;
	padding: 8px 14px;
	font-family: var(--font-body);
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--ink);
	cursor: pointer;
}
#theme-toggle svg { width: 14px; height: 14px; }
html[data-theme="dark"] #theme-toggle .icon-sun { display: none; }
html[data-theme="light"] #theme-toggle .icon-moon { display: none; }

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid var(--rule);
	border-radius: 10px;
	color: var(--ink);
	cursor: pointer;
	flex: none;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 760px) {
	.nav-toggle { display: inline-flex; }

	.nav-links {
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		width: 100%;
		border-top: 1px solid var(--rule);
		margin-top: 16px;
		padding-top: 16px;
	}
	.nav-links.is-open { display: flex; }
	.nav-links li { width: 100%; }
	.nav-links a { display: block; padding: 10px 4px; }
	.nav-links a[aria-current="page"] { border-bottom: none; border-left: 3px solid var(--accent); padding-left: 12px; }
	.nav-links .btn, #theme-toggle { width: 100%; text-align: center; justify-content: center; }
}

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

.btn {
	display: inline-block;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	padding: 14px 26px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
}

/* Uses --accent-strong rather than --accent as the fill: at button size
   (~15px bold) button text needs 4.5:1 against its own background, and
   --accent alone (the mid-tone sage) only clears ~4.1:1 with light text —
   a real WCAG AA fail, not just theoretical. --accent-strong clears ~6.8:1
   in both themes. */
.btn-primary {
	background: var(--accent-strong) !important;
	color: var(--accent-contrast) !important;
}
.btn-primary:hover { background: var(--ink) !important; color: var(--bg) !important; }

.btn-quiet {
	background: none;
	color: var(--ink) !important;
	border-bottom: 1px solid var(--rule);
	border-radius: 0;
	padding: 0 0 2px;
	font-weight: 500;
}
.btn-quiet:hover { color: var(--ink) !important; border-color: var(--accent); }

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

.hero {
	padding-top: 4.5rem;
	padding-bottom: 3.5rem;
	display: flex;
	gap: 4rem;
	align-items: center;
	flex-wrap: wrap;
}
.hero-copy { flex: 1 1 460px; }
.hero .lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 40em; }

.hero-portrait {
	position: relative;
	flex: 0 1 300px;
	display: flex;
	justify-content: center;
	padding: 1rem;
}
.hero-portrait::before {
	content: "";
	position: absolute;
	inset: 6% 10%;
	background: var(--sage);
	border-radius: 42% 58% 63% 37% / 45% 41% 59% 55%;
}
.hero-portrait img {
	position: relative;
	width: 260px;
	max-width: 100%;
	filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.22));
}

.hero-ctas {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 1.75rem;
}

.badges {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.badge {
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	padding: 7px 13px;
	border-radius: 999px;
	background: var(--panel-tint);
	color: var(--ink-soft);
}

/* ---- Specialisms strip ------------------------------------------------------ */

.strip {
	/* A touch deeper than --sage (#6C7C59) — the true brand swatch only
	   gives the kicker label ~3.6:1 against white text, short of the 4.5:1
	   small text needs. This still reads as the same sage. */
	background: #63714F;
	padding: 2.75rem 0;
}
.strip .kicker { color: #FFFFFF; }
.tag-row { display: flex; gap: 12px; flex-wrap: wrap; }
.tag {
	background: var(--bg);
	color: var(--ink);
	font-weight: 500;
	font-size: 0.92rem;
	padding: 11px 18px;
	border-radius: 10px;
}

/* ---- Cards / grids ----------------------------------------------------------- */

.section { padding: 3.5rem 0; }

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
@media (max-width: 760px) {
	.grid-3, .grid-2 { grid-template-columns: 1fr; }
	.hero { flex-direction: column; }
}

.card {
	border-radius: var(--radius);
	padding: 24px;
	background: var(--panel-tint);
	box-shadow: var(--shadow-soft);
}

.fee-figure {
	font-family: var(--font-display);
	font-size: 2rem;
	font-weight: 600;
	margin-bottom: 8px;
}

.callout {
	background: var(--panel-tint);
	border-radius: 20px;
	padding: clamp(24px, 4vw, 40px);
	box-shadow: var(--shadow);
	display: flex;
	gap: 40px;
	flex-wrap: wrap;
}
.callout > .callout-body { flex: 1 1 320px; }
.callout > .callout-fee { flex: 0 1 200px; }
.callout-fee .fee-figure { font-size: 2.4rem; }

.list-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
@media (max-width: 760px) { .list-grid { grid-template-columns: 1fr; } }
.list-grid li {
	background: var(--panel-tint);
	border-radius: 14px;
	padding: 14px 16px 14px 40px;
	position: relative;
	box-shadow: var(--shadow-soft);
}
.list-grid li::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 20px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
}

/* ---- Tables (crisis support) ------------------------------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; }
th { font-family: var(--font-display); font-weight: 700; border-bottom: 2px solid var(--rule); background: var(--panel); }
td { border-bottom: 1px solid var(--rule); }
tbody tr:nth-child(even) { background: var(--panel-tint); }

.crisis-banner {
	background: var(--panel-tint);
	border-radius: 14px;
	padding: 18px 20px;
	margin-bottom: 2rem;
	box-shadow: var(--shadow-soft);
}
.crisis-banner strong { display: block; margin-bottom: 4px; color: var(--accent-strong); }
html[data-theme="dark"] .crisis-banner strong { color: var(--accent); }

/* ---- Forms ------------------------------------------------------------------- */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 7px; }
.field input, .field textarea, .field select {
	width: 100%;
	font-family: var(--font-body);
	font-size: 0.95rem;
	color: var(--ink);
	background: var(--bg);
	border: 1px solid var(--rule);
	border-radius: 10px;
	padding: 11px 13px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { cursor: pointer; }

.consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; font-size: 0.88rem; color: var(--ink-soft); }
.consent input { margin-top: 3px; }

.contact-form {
	background: var(--panel);
	border-radius: 20px;
	padding: clamp(20px, 4vw, 36px);
	box-shadow: var(--shadow);
}

.contact-methods { display: flex; flex-direction: column; gap: 14px; margin: 1.5rem 0; font-size: 0.98rem; }
.contact-methods a { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.contact-methods a:hover { color: var(--ink); }
.contact-methods svg { flex: none; }

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

.faq-item { padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin-bottom: 0.4em; font-size: 1.02rem; }
.faq-item p { margin-bottom: 0; color: var(--ink-soft); }

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

.site-footer {
	border-top: 1px solid var(--rule);
	padding: 2rem 0;
	margin-top: 2rem;
}
.site-footer .wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 0.85rem;
	color: var(--ink-soft);
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a.crisis { color: var(--accent-strong); font-weight: 700; }
html[data-theme="dark"] .footer-links a.crisis { color: var(--accent); }
.footer-links a:hover { color: var(--ink); }

.site-credit {
	text-align: center;
	font-size: 0.72rem;
	color: var(--ink-soft);
	opacity: 0.75;
	margin-top: 16px;
}
.site-credit a { color: var(--ink-soft); }
.site-credit a:hover { color: var(--ink); }
