/*
Theme Name: AI for Cornwall
Description: Hand-coded theme for AI for Cornwall — practical AI consultancy for Cornwall businesses.
Author: AI for Cornwall
Version: 1.0.0
*/

/* ---------------------------------------------------------------------
   Design tokens
------------------------------------------------------------------ */
:root {
	--navy: #0B1E2D;
	--navy-2: #12293B;
	--navy-3: #1A3A50;
	--teal: #189A9A;
	--teal-dark: #0D6E6E;
	--teal-pale: #E8F6F5;
	--red: #E2402E;
	--cream: #FBF8F2;
	--white: #FFFFFF;
	--ink: #10222C;
	--muted: #59707A;
	--border: rgba(16, 34, 44, 0.12);
	--border-light: rgba(255, 255, 255, 0.16);

	--radius-lg: 28px;
	--radius-md: 20px;
	--radius-sm: 10px;

	--shadow-card: 0 20px 45px -24px rgba(11, 30, 45, 0.28);
	--shadow-nav: 0 10px 30px -12px rgba(11, 30, 45, 0.25);

	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.75rem;
	--space-lg: 3rem;
	--space-xl: 5rem;

	--font-heading: 'Baloo 2', 'Segoe UI', sans-serif;
	--font-body: 'Inter', 'Segoe UI', sans-serif;

	--fs-h1: clamp(2.4rem, 1.6rem + 3.6vw, 4.5rem);
	--fs-h2: clamp(1.7rem, 1.35rem + 1.6vw, 2.6rem);
	--fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
	--fs-lead: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
	--fs-body: 1rem;
	--fs-small: 0.9rem;

	--container: 1180px;
}

/* ---------------------------------------------------------------------
   Reset
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
	margin: 0;
	overflow-x: hidden;
	max-width: 100vw;
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.65;
	color: var(--ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.25em; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	color: var(--navy);
	line-height: 1.15;
	margin: 0 0 0.6em;
	font-weight: 800;
}
h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: var(--fs-lead); color: var(--muted); }

/* ---------------------------------------------------------------------
   Layout
------------------------------------------------------------------ */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 1.5rem;
}
.section { padding: var(--space-xl) 0; }
.section-sm { padding: var(--space-lg) 0; }
.section--navy { background: var(--navy); color: rgba(255,255,255,0.9); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--pale { background: var(--teal-pale); }
.section--white { background: var(--white); }
.section--bold { background: var(--teal-dark); color: rgba(255,255,255,0.92); }
.section--bold h1, .section--bold h2, .section--bold h3 { color: var(--white); }
.section--navy .eyebrow, .section--bold .eyebrow { background: rgba(255,255,255,0.14); color: #EAFBFA; }

/* Organic wave divider between sections */
.wave-divider { display: block; width: 100%; line-height: 0; }
.wave-divider svg { display: block; width: 100%; height: 70px; }
@media (max-width: 700px) { .wave-divider svg { height: 36px; } }

.section-head { max-width: 700px; margin: 0 0 var(--space-lg); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.chough-motif { width: 34px; height: 34px; color: var(--teal); opacity: 0.55; display: inline-block; vertical-align: middle; }
.section--navy .chough-motif { color: var(--teal); opacity: 0.7; }
.eyebrow-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1em; }
.eyebrow-row .eyebrow { margin-bottom: 0; }
.section-head--center .eyebrow-row { justify-content: center; }

.eyebrow {
	display: inline-block;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--teal-dark);
	background: var(--teal-pale);
	padding: 0.35em 0.9em;
	border-radius: 100px;
	margin-bottom: 1em;
}
.section--navy .eyebrow { background: rgba(24,154,154,0.2); color: #7FE3E3; }

.grid {
	display: grid;
	gap: var(--space-md);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
	.grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Buttons
------------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 0.98rem;
	padding: 0.85em 1.6em;
	border-radius: 100px;
	border: 2px solid transparent;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
	background: var(--red);
	color: var(--white);
	box-shadow: 0 4px 10px -4px rgba(16,34,44,0.3);
}
.btn--primary:hover { background: #C93321; box-shadow: 0 6px 14px -4px rgba(16,34,44,0.35); }
.btn--secondary {
	background: transparent;
	border-color: currentColor;
	color: var(--navy);
}
.section--navy .btn--secondary { color: var(--white); }
.btn--secondary:hover { background: rgba(11,30,45,0.06); }
.section--navy .btn--secondary:hover { background: rgba(255,255,255,0.1); }
.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: var(--teal-dark); }
.btn--sm { padding: 0.55em 1.2em; font-size: 0.88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ---------------------------------------------------------------------
   Header / Nav
------------------------------------------------------------------ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(11, 30, 45, 0.92);
	backdrop-filter: blur(10px);
	box-shadow: var(--shadow-nav);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.9rem 1.5rem;
	max-width: var(--container);
	margin: 0 auto;
}
.site-logo {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 1.1rem;
	color: var(--white);
}
.site-logo img { height: 26px; width: 26px; background: var(--white); border-radius: 50%; padding: 6px; box-sizing: content-box; }
.primary-nav { display: flex; align-items: center; gap: 1.9rem; }
.primary-nav ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 1.6rem;
}
.primary-nav a {
	color: rgba(255,255,255,0.85);
	font-weight: 500;
	font-size: 0.96rem;
	transition: color 0.15s ease;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--white); }
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: -1rem;
	background: var(--white);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-card);
	padding: 0.75rem 0.5rem 0.5rem;
	min-width: 220px;
	list-style: none;
	margin-top: 0;
}
.primary-nav .menu-item-has-children:hover .sub-menu,
.primary-nav .menu-item-has-children:focus-within .sub-menu { display: block; }
.primary-nav .sub-menu a { color: var(--navy); padding: 0.55em 0.75em; display: block; border-radius: 6px; }
.primary-nav .sub-menu a:hover { background: var(--teal-pale); }

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	color: var(--white);
	font-size: 1.6rem;
	line-height: 1;
}

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.primary-nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: auto;
		height: 100vh;
		height: 100dvh;
		width: min(320px, 85vw);
		background: var(--navy);
		flex-direction: column;
		align-items: flex-start;
		padding: 5.5rem 1.75rem 2rem;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform 0.25s ease;
	}
	.primary-nav.is-open { transform: translateX(0); }
	.primary-nav ul { flex-direction: column; gap: 0.4rem; width: 100%; }
	.primary-nav ul a { display: block; padding: 0.6em 0; }

	.primary-nav li.menu-item-has-children {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
	}
	.primary-nav li.menu-item-has-children > a { flex: 1 1 auto; }
	.primary-nav .sub-menu {
		position: static; box-shadow: none; background: rgba(255,255,255,0.06);
		margin-top: 0; display: none;
		flex-basis: 100%; width: 100%;
		padding: 0.25rem 0 0.5rem;
	}
	.primary-nav li.submenu-open .sub-menu { display: block; }
	.primary-nav .sub-menu a { color: rgba(255,255,255,0.85); }
	.primary-nav .btn { margin-top: 1rem; }

	.submenu-toggle {
		background: rgba(255,255,255,0.08);
		border: none;
		color: var(--white);
		width: 34px;
		height: 34px;
		border-radius: 50%;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		font-size: 1.2rem;
		line-height: 1;
		flex-shrink: 0;
	}
	.submenu-toggle span { display: inline-block; transition: transform 0.2s ease; }
	.primary-nav li.submenu-open .submenu-toggle span { transform: rotate(45deg); }

	.nav-toggle.is-active { font-size: 1.9rem; }
}

/* ---------------------------------------------------------------------
   Hero
------------------------------------------------------------------ */
.hero {
	position: relative;
	background: var(--cream);
	color: var(--ink);
	overflow: hidden;
}
.hero__circuit { display: none; }

/* Organic blob glow — soft, pastel accents behind the light hero */
.hero::before, .hero::after {
	content: '';
	position: absolute;
	border-radius: 42% 58% 65% 35% / 45% 55% 45% 55%;
	filter: blur(60px);
	pointer-events: none;
	z-index: 0;
	animation: blob-drift 19s ease-in-out infinite alternate;
}
.hero::before {
	width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
	top: -18%; right: -10%;
	background: radial-gradient(circle at 30% 30%, rgba(24,154,154,0.16), rgba(24,154,154,0) 70%);
}
.hero::after {
	width: 32vw; height: 32vw; max-width: 420px; max-height: 420px;
	bottom: -18%; left: 2%;
	background: radial-gradient(circle at 60% 60%, rgba(226,64,46,0.1), rgba(226,64,46,0) 70%);
	animation-duration: 24s;
	animation-delay: -6s;
}
@keyframes blob-drift {
	from { transform: translate(0, 0) scale(1); }
	to   { transform: translate(-4%, 6%) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
	.hero::before, .hero::after { animation: none; }
}

/* Small decorative flourishes — process-academy-style playful accents, used sparingly */
.deco-ring {
	position: absolute;
	border-radius: 50%;
	border: 3px solid var(--teal);
	opacity: 0.35;
	pointer-events: none;
	z-index: 0;
}
.deco-ring--sm { width: 44px; height: 44px; }
.deco-ring--red { border-color: var(--red); }
.deco-dots {
	position: absolute;
	display: grid;
	grid-template-columns: repeat(3, 8px);
	gap: 8px;
	opacity: 0.4;
	pointer-events: none;
	z-index: 0;
}
.deco-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
@media (max-width: 900px) { .deco-ring, .deco-dots { display: none; } }

/* Pill badge above headline */
.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	background: var(--white);
	border: 1px solid var(--border);
	padding: 0.45em 1em 0.45em 0.6em;
	border-radius: 100px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--navy);
	box-shadow: 0 8px 20px -14px rgba(11,30,45,0.35);
	margin-bottom: 1.25rem;
}
.hero-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }

.accent-teal { color: var(--teal-dark); }
.accent-red { color: var(--red); }
.text-outline {
	color: transparent;
	-webkit-text-stroke: 1.5px var(--navy);
	text-stroke: 1.5px var(--navy);
}
.section--navy .text-outline, .section--bold .text-outline {
	-webkit-text-stroke: 1.5px var(--white);
	text-stroke: 1.5px var(--white);
}
@supports not (-webkit-text-stroke: 1px black) {
	.text-outline { color: var(--navy); }
}

/* Trust indicator row */
.trust-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-top: 1.5rem;
}
.trust-row__item {
	display: flex;
	align-items: center;
	gap: 0.5em;
	font-size: 0.88rem;
	color: var(--muted);
	font-weight: 500;
}
.trust-row__item svg { width: 18px; height: 18px; color: var(--teal-dark); flex-shrink: 0; }

/* Floating callout card on hero media */
.hero__callout {
	position: absolute;
	background: var(--white);
	border-radius: var(--radius-md);
	box-shadow: 0 20px 40px -18px rgba(11,30,45,0.35);
	padding: 0.9rem 1.1rem;
	display: flex;
	align-items: center;
	gap: 0.7em;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--navy);
	max-width: 230px;
	z-index: 2;
}
.hero__callout svg { width: 20px; height: 20px; color: var(--teal-dark); flex-shrink: 0; }
.hero__callout--bottom-left { bottom: -1.25rem; left: -1.5rem; }
@media (max-width: 900px) {
	.hero__callout--bottom-left { left: 0.5rem; bottom: -1rem; }
}

.section--pale { position: relative; overflow: hidden; }
.section--pale::before {
	content: '';
	position: absolute;
	top: -20%; right: -8%;
	width: 34vw; height: 34vw; max-width: 480px; max-height: 480px;
	border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
	background: radial-gradient(circle at 40% 40%, rgba(24,154,154,0.14), rgba(24,154,154,0) 72%);
	filter: blur(40px);
	pointer-events: none;
	z-index: 0;
}
.section--pale > .container { position: relative; z-index: 1; }
.hero__inner {
	position: relative;
	z-index: 1;
	max-width: var(--container);
	margin: 0 auto;
	padding: var(--space-xl) 1.5rem;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: var(--space-lg);
	align-items: center;
}
.hero__content .lead { color: var(--muted); }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius-lg); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5); }
.hero--simple .hero__inner { grid-template-columns: 1fr; text-align: center; padding-bottom: var(--space-lg); }
.hero--simple .hero__content { max-width: 760px; margin: 0 auto; }
.hero--simple .btn-row, .hero--simple .trust-row { justify-content: center; }
@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; text-align: center; }
	.hero__content .btn-row { justify-content: center; }
	.hero__media { order: -1; max-width: 420px; margin: 0 auto; }
}

/* ---------------------------------------------------------------------
   Breadcrumbs
------------------------------------------------------------------ */
.breadcrumbs {
	font-size: 0.85rem;
	color: var(--muted);
	margin-bottom: 1.25rem;
}
.breadcrumbs a { color: var(--teal-dark); }
.breadcrumbs a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumbs--on-dark { color: rgba(255,255,255,0.6); }
.breadcrumbs--on-dark a { color: rgba(255,255,255,0.8); }
.breadcrumbs--on-dark a:hover { color: var(--white); }

/* ---------------------------------------------------------------------
   Cards
------------------------------------------------------------------ */
.card {
	background: var(--white);
	border-radius: var(--radius-md);
	padding: var(--space-md);
	box-shadow: var(--shadow-card);
	border: 1px solid var(--border);
	height: 100%;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover,
.card.is-visible:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 40px -22px rgba(11, 30, 45, 0.28);
	border-color: rgba(24,154,154,0.35);
}
.card__icon {
	width: 56px; height: 56px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--teal-pale) 0%, #d3ece9 100%);
	border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%;
	margin-bottom: 1rem;
	color: var(--teal-dark);
	position: relative;
}
.card__icon svg { width: 30px; height: 30px; position: relative; z-index: 1; }
.card__icon::after {
	content: '';
	position: absolute;
	width: 9px; height: 9px;
	background: var(--red);
	border-radius: 50%;
	top: -2px; right: -2px;
	box-shadow: 0 0 0 3px var(--white);
}
.card h3 { margin-bottom: 0.5em; }
.card p:last-of-type { margin-bottom: 0.75em; }
.card .card__link {
	color: var(--teal-dark);
	font-weight: 600;
	font-size: 0.95rem;
	background-image: linear-gradient(var(--teal-dark), var(--teal-dark));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0% 2px;
	transition: background-size 0.3s ease;
	padding-bottom: 2px;
}
.card .card__link:hover { background-size: 100% 2px; }
@media (prefers-reduced-motion: reduce) {
	.card, .card__icon, .card .card__link { transition: none; }
	.card:hover { transform: none; }
	.card:hover .card__icon { transform: none; }
}

.service-card {
	display: flex;
	flex-direction: column;
}
.service-card__meta { margin-top: auto; padding-top: 1rem; }

/* Problem cards (challenge section) */
.problem-card {
	background: rgba(255,255,255,0.06);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-md);
	padding: var(--space-md);
}
.problem-card h3 { color: var(--white); font-size: 1.1rem; }
.problem-card p { color: rgba(255,255,255,0.72); margin-bottom: 0; }

/* ---------------------------------------------------------------------
   Process steps
------------------------------------------------------------------ */
.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-md);
	counter-reset: step;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 0; }
.step__num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px;
	border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%;
	background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
	color: var(--white);
	font-family: var(--font-heading);
	font-weight: 700;
	margin-bottom: 1rem;
}

/* Workflow diagram (input -> AI -> human review) */
.workflow {
	display: flex;
	align-items: stretch;
	gap: 0;
	flex-wrap: wrap;
}
.workflow__stage {
	flex: 1;
	min-width: 180px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: var(--space-md);
	text-align: center;
}
.workflow__arrow {
	display: flex; align-items: center; justify-content: center;
	color: var(--teal);
	padding: 0 0.5rem;
	font-size: 1.6rem;
}
@media (max-width: 700px) {
	.workflow { flex-direction: column; }
	.workflow__arrow { transform: rotate(90deg); padding: 0.25rem 0; }
}

/* ---------------------------------------------------------------------
   FAQ accordion
------------------------------------------------------------------ */
.faq-item {
	border-bottom: 1px solid var(--border);
	padding: 1.25rem 0;
}
.faq-item summary {
	cursor: pointer;
	list-style: none;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--navy);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: '+';
	font-size: 1.5rem;
	color: var(--teal);
	flex-shrink: 0;
	transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { color: var(--muted); margin-top: 0.75rem; }

/* ---------------------------------------------------------------------
   Testimonial / quote
------------------------------------------------------------------ */
.testimonial {
	background: var(--navy);
	color: var(--white);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	text-align: center;
	max-width: 780px;
	margin: 0 auto;
}
.testimonial blockquote {
	font-family: var(--font-heading);
	font-size: var(--fs-lead);
	font-weight: 600;
	margin: 0 0 1rem;
}
.testimonial cite { color: var(--teal); font-style: normal; font-weight: 700; }

/* ---------------------------------------------------------------------
   Comparison table
------------------------------------------------------------------ */
.compare-table { overflow-x: auto; }
.compare-table table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; }
.compare-table th, .compare-table td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table th { background: var(--navy); color: var(--white); font-family: var(--font-heading); }
.compare-table tr:last-child td { border-bottom: none; }

/* ---------------------------------------------------------------------
   Forms
------------------------------------------------------------------ */
.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.4em; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
	width: 100%;
	padding: 0.75em 1em;
	border-radius: var(--radius-sm);
	border: 1.5px solid var(--border);
	background: var(--white);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
	outline: none; border-color: var(--teal);
}
.form-honeypot { position: absolute; left: -9999px; opacity: 0; }
.form-notice { padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-weight: 600; }
.form-notice--success { background: var(--teal-pale); color: var(--teal-dark); }
.form-notice--error { background: #FDECEA; color: #B3271B; }

/* ---------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: var(--space-lg) 0 var(--space-md); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-md); margin-bottom: var(--space-md); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.6em; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
.footer-logo { display: flex; align-items: center; gap: 0.6rem; color: var(--white); font-family: var(--font-heading); font-weight: 800; margin-bottom: 0.75rem; }
.footer-logo img { height: 22px; width: 22px; background: var(--white); border-radius: 50%; padding: 6px; box-sizing: content-box; }
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.12);
	padding-top: var(--space-sm);
	display: flex; flex-wrap: wrap; gap: 1rem;
	justify-content: space-between;
	font-size: 0.85rem;
}
.footer-bottom ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }

/* ---------------------------------------------------------------------
   Cookie banner
------------------------------------------------------------------ */
.cookie-banner {
	position: fixed;
	left: 1rem; right: 1rem; bottom: 1rem;
	max-width: 560px;
	margin: 0 auto;
	background: var(--white);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card);
	border: 1px solid var(--border);
	padding: 1.5rem;
	z-index: 200;
	display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { font-size: 0.92rem; color: var(--muted); margin-bottom: 1rem; }
.cookie-banner__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   Misc / utility
------------------------------------------------------------------ */
.tag-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; list-style: none; padding: 0; margin: 0; }
.tag-list li {
	background: var(--white);
	color: var(--teal-dark);
	border: 1.5px solid rgba(13, 110, 110, 0.35);
	font-weight: 600;
	font-size: 0.85rem;
	padding: 0.5em 1.1em;
	border-radius: 100px;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.9em; margin-bottom: 0.85em; }
.check-list li::before {
	content: '';
	position: absolute; left: 0; top: 0.25em;
	width: 18px; height: 18px;
	border-radius: 50%;
	background: var(--teal);
}
.check-list li::after {
	content: '';
	position: absolute; left: 5px; top: 0.55em;
	width: 8px; height: 4px;
	border-left: 2px solid var(--white);
	border-bottom: 2px solid var(--white);
	transform: rotate(-45deg);
}
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.divider { height: 1px; background: var(--border); border: 0; margin: var(--space-lg) 0; }

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

/* Animated underline links (nav, footer, in-content) */
.primary-nav ul > li > a,
.footer-grid a,
.content-page a,
.faq-answer a {
	position: relative;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0% 1.5px;
	transition: background-size 0.3s ease;
}
.primary-nav ul > li > a:hover,
.footer-grid a:hover,
.content-page a:hover,
.faq-answer a:hover {
	background-size: 100% 1.5px;
	text-decoration: none;
}
@media (prefers-reduced-motion: reduce) {
	.primary-nav ul > li > a, .footer-grid a, .content-page a, .faq-answer a { transition: none; }
}

.content-page { max-width: 760px; margin: 0 auto; }
.content-page h2 { margin-top: 1.6em; }
.content-page ul { margin-bottom: 1.2em; }
