/* =========================================================================
   SwimSafer theme — main stylesheet
   Premium "established swim school" look: serif headings, navy + gold,
   real photography. Framework-free, mobile-first, built for Core Web Vitals.
   ========================================================================= */

/* ----- Fonts ------------------------------------------------------------ */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: optional;
	src: url("../fonts/inter-var.woff2") format("woff2");
}
@font-face {
	font-family: "Lora";
	font-style: normal;
	font-weight: 400 700;
	font-display: optional;
	src: url("../fonts/lora-var.woff2") format("woff2");
}
@font-face {
	font-family: "Lora";
	font-style: italic;
	font-weight: 400 700;
	font-display: optional;
	src: url("../fonts/lora-italic-var.woff2") format("woff2");
}

/* ----- Design tokens ---------------------------------------------------- */
:root {
	--navy: #15284f;          /* primary royal navy */
	--navy-900: #0d1b3b;      /* utility bar / footer */
	--navy-700: #1f3c70;
	--gold: #bf922c;          /* accent (buttons, links, rules) */
	--gold-dark: #896817;     /* darkened for WCAG AA text contrast (5.2:1 on white) */
	--gold-soft: #f4ecda;
	--ink: #20272f;
	--muted: #58646f;
	--line: #e4e8ee;
	--white: #ffffff;
	--bg-soft: #f4f6f9;       /* light grey section bg */

	--maxw: 1180px;
	--maxw-narrow: 760px;
	--radius: 10px;
	--radius-sm: 8px;
	--shadow: 0 18px 40px -22px rgba(13, 27, 59, 0.35);
	--shadow-sm: 0 8px 20px -14px rgba(13, 27, 59, 0.4);

	--ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ff-head: "Lora", Georgia, "Times New Roman", serif;

	--step--1: clamp(0.82rem, 0.8rem + 0.12vw, 0.88rem);
	--step-0: clamp(1rem, 0.97rem + 0.16vw, 1.05rem);
	--step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.35rem);
	--step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
	--step-3: clamp(1.9rem, 1.55rem + 1.6vw, 2.7rem);
	--step-4: clamp(2.3rem, 1.8rem + 2.6vw, 3.4rem);
}

/* ----- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	font-family: var(--ff-body);
	font-size: var(--step-0);
	line-height: 1.7;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
	font-family: var(--ff-head);
	line-height: 1.18;
	color: var(--navy);
	font-weight: 600;
	letter-spacing: 0;
}
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; }
p { color: var(--ink); }
a { color: var(--gold-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
ul, ol { padding-left: 1.2em; }

/* ----- Accessibility ---------------------------------------------------- */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: -999px; top: 0; z-index: 1000;
	background: var(--navy); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ----- Layout ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #d4ddee; }
.section--navy p { color: #d4ddee; } /* override global p{color:ink} on navy bg */
.section--navy h2, .section--navy h3 { color: #fff; }
.narrow { max-width: var(--maxw-narrow); margin-inline: auto; }
.section__head { max-width: 680px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section__head.is-left { margin-inline: 0; text-align: left; }
.eyebrow {
	display: inline-block; font-family: var(--ff-body); font-size: var(--step--1); font-weight: 600;
	letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 0.75rem;
}
.section__head h2 { position: relative; }
.section__head .rule { display: block; width: 64px; height: 3px; background: var(--gold); margin: 1rem auto 0; border: 0; }
.section__head.is-left .rule { margin-inline: 0; }
.lead { font-size: var(--step-1); color: var(--muted); font-weight: 400; line-height: 1.6; }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
	font-family: var(--ff-body); font-weight: 600; font-size: var(--step-0); line-height: 1.1;
	padding: 0.85rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
	cursor: pointer; text-decoration: none; transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn--primary { background: var(--gold); color: var(--navy); } /* navy-on-gold = 5.1:1 (WCAG AA) */
.btn--primary:hover { background: var(--gold-dark); color: var(--navy); }
.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--gold-outline { background: transparent; border-color: var(--gold); color: var(--gold-dark); }
.btn--gold-outline:hover { background: var(--gold); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--sm { padding: 0.6rem 1.1rem; font-size: var(--step--1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ----- Utility bar ------------------------------------------------------ */
.utility-bar { background: var(--navy-900); color: #c4cfe4; font-size: var(--step--1); }
.utility-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.utility-bar a { color: #c4cfe4; text-decoration: none; }
.utility-bar a:hover { color: #fff; }
.utility-bar__left { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.utility-bar__left span, .utility-bar__left a { display: inline-flex; align-items: center; gap: 0.4rem; }
.utility-bar__left svg { width: 14px; height: 14px; opacity: 0.85; }
.utility-bar__right { display: flex; align-items: center; gap: 0.85rem; }
.utility-bar__cta { color: #fff; font-weight: 600; }
@media (max-width: 700px) { .utility-bar { display: none; } }

/* ----- Header / nav ----------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.site-logo { display: inline-flex; align-items: center; text-decoration: none; }
.site-logo__text { margin: 0; font-size: 1px; }
.site-logo svg, .site-logo img { height: 48px; width: auto; display: block; }
.primary-nav { display: flex; align-items: center; gap: 1.75rem; }
.primary-nav__menu { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.primary-nav__menu a { font-family: var(--ff-body); color: var(--navy); text-decoration: none; font-weight: 500; font-size: var(--step-0); }
.primary-nav__menu a:hover, .primary-nav__menu .current-menu-item > a { color: var(--gold-dark); }
.primary-nav__cta { padding: 0.7rem 1.3rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle__bar { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) 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(-7px) rotate(-45deg); }

@media (max-width: 900px) {
	.nav-toggle { display: flex; }
	.primary-nav {
		position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; border-bottom: 1px solid var(--line); padding: 1rem clamp(1rem, 4vw, 2rem) 1.5rem;
		transform: translateY(-130%); transition: transform 0.25s ease; box-shadow: var(--shadow);
	}
	.primary-nav.is-open { transform: translateY(0); }
	.primary-nav__menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
	.primary-nav__menu li { border-bottom: 1px solid var(--line); }
	.primary-nav__menu a { display: block; padding: 0.9rem 0; }
	.primary-nav__cta { margin-top: 1rem; text-align: center; }
}

/* ----- Dropdown submenus ------------------------------------------------ */
.primary-nav__menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.primary-nav__menu .menu-item-has-children { position: relative; }
.primary-nav__menu .menu-item-has-children > a::after { content: "\25BE"; font-size: 0.7em; margin-left: 0.3rem; color: var(--gold-dark); }
@media (min-width: 901px) {
	.primary-nav__menu .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff;
		border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
		padding: 0.4rem 0; display: none; z-index: 120;
	}
	.primary-nav__menu .menu-item-has-children:hover > .sub-menu,
	.primary-nav__menu .menu-item-has-children:focus-within > .sub-menu { display: block; }
	.primary-nav__menu .sub-menu a { display: block; padding: 0.55rem 1.1rem; white-space: nowrap; font-weight: 500; }
	.primary-nav__menu .sub-menu a:hover { background: var(--bg-soft); color: var(--gold-dark); }
}
@media (max-width: 900px) {
	.primary-nav__menu .sub-menu { padding-left: 1rem; }
	.primary-nav__menu .sub-menu a { padding: 0.6rem 0; font-size: var(--step--1); }
	.primary-nav__menu .sub-menu li { border-bottom: 1px solid var(--line); }
}

/* ----- Photographic hero ------------------------------------------------ */
.hero {
	position: relative; min-height: clamp(420px, 64vh, 620px); display: flex; align-items: center;
	background: var(--navy); color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(90deg, rgba(13,21,45,0.86) 0%, rgba(13,21,45,0.6) 45%, rgba(13,21,45,0.25) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(3rem, 7vw, 5rem); width: 100%; }
.hero__content { max-width: 40rem; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero__eyebrow { color: var(--gold); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; font-size: var(--step--1); display: inline-block; margin-bottom: 1rem; }
.hero__subtext { font-size: var(--step-1); color: #e4e9f3; margin-bottom: 0.5rem; max-width: 34rem; }
.hero__stats { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.hero__stat .num { font-family: var(--ff-head); font-size: var(--step-2); color: #fff; font-weight: 700; line-height: 1; }
.hero__stat .label { font-size: var(--step--1); color: #c3cee2; }

/* ----- Breadcrumbs ------------------------------------------------------ */
.breadcrumbs { font-size: var(--step--1); color: var(--muted); padding-block: 0.9rem; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.breadcrumbs a { color: var(--gold-dark); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs__sep { margin: 0 0.5rem; color: #b9c2cc; }

/* ----- Trust strip ------------------------------------------------------ */
.trust { background: var(--navy-900); color: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; padding-block: 2.25rem; }
.trust__item .num { font-family: var(--ff-head); font-size: var(--step-2); color: var(--gold); font-weight: 700; }
.trust__item .label { font-size: var(--step--1); color: #c3cee2; }
@media (max-width: 700px) { .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }

/* ----- Cards / services grid ------------------------------------------- */
.grid { display: grid; gap: clamp(1.25rem, 3vw, 1.9rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px;
	border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark); margin-bottom: 1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: var(--step-0); margin-bottom: 1.1rem; }
.card__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; }
.card__link { display: inline-block; margin-top: 0.9rem; font-weight: 600; text-decoration: none; color: var(--gold-dark); }
.card__link::after { content: " →"; }

/* ----- Feature / split rows -------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-sm); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.split--reverse .split__media { order: 2; }
@media (max-width: 820px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.checklist { list-style: none; padding: 0; margin-top: 1.3rem; display: grid; gap: 0.7rem; }
.checklist li { position: relative; padding-left: 1.9rem; color: var(--ink); }
.checklist li::before {
	content: ""; position: absolute; left: 0; top: 0.35em; width: 1.2rem; height: 1.2rem;
	background: var(--gold); border-radius: 50%;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/0.8rem no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/0.8rem no-repeat;
}

/* ----- Steps ------------------------------------------------------------ */
.steps { counter-reset: step; display: grid; gap: 1.75rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 3.75rem; }
.step::before {
	counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0;
	width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--navy); color: #fff;
	display: grid; place-items: center; font-family: var(--ff-head); font-weight: 700;
}

/* ----- Pricing ---------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; align-items: start; }
.price-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .price-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }
@media (max-width: 560px) { .price-grid--4 { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.1rem 1.85rem; }
.price-card--featured { border-color: var(--gold); box-shadow: var(--shadow); position: relative; }
.price-card--featured::before {
	content: "Most popular"; position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%);
	background: var(--gold); color: #fff; font-size: var(--step--1); font-weight: 600; padding: 0.3rem 0.95rem; border-radius: 999px;
}
.price-card .amount { font-family: var(--ff-head); font-size: var(--step-3); color: var(--navy); font-weight: 700; }
.price-card .amount span { font-family: var(--ff-body); font-size: var(--step-0); color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 0.65rem; }
.price-card li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 700; }

/* ----- Accreditations --------------------------------------------------- */
.accreditations { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1rem; }
.accreditation { display: inline-flex; align-items: center; gap: 0.6rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 1.1rem; font-weight: 600; font-size: var(--step--1); color: var(--navy); }
.accreditation__icon { display: inline-grid; place-items: center; color: var(--gold-dark); }
.accreditation__icon svg { width: 18px; height: 18px; }

/* ----- Coaches ---------------------------------------------------------- */
.coaches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .coaches { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .coaches { grid-template-columns: 1fr; } }
.coach { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; gap: 1.1rem; align-items: flex-start; }
.coach__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: var(--gold-soft); border: 2px solid var(--gold-soft); }
.coach__name { font-family: var(--ff-head); color: var(--navy); font-size: var(--step-1); margin-bottom: 0.15rem; }
.coach__role { color: var(--gold-dark); font-weight: 600; font-size: var(--step--1); }
.coach__exp { color: var(--muted); font-size: var(--step--1); margin-top: 0.35rem; }

/* ----- Testimonials ----------------------------------------------------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.85rem; position: relative; }
.quote::before { content: "\201C"; font-family: var(--ff-head); position: absolute; top: 0.4rem; right: 1.1rem; font-size: 4rem; color: var(--gold-soft); line-height: 1; }
.quote__stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 0.75rem; }
.quote blockquote { font-family: var(--ff-head); font-size: var(--step-1); line-height: 1.5; color: var(--ink); margin: 0 0 1rem; }
.quote__author { font-weight: 600; color: var(--navy); }
.quote__loc { font-size: var(--step--1); color: var(--muted); }

/* ----- FAQ -------------------------------------------------------------- */
.faq { display: grid; gap: 0.75rem; max-width: var(--maxw-narrow); margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.3rem; }
.faq summary {
	list-style: none; cursor: pointer; font-family: var(--ff-head); font-weight: 600; color: var(--navy);
	font-size: var(--step-1); padding: 1.15rem 0; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold-dark); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.15rem; color: var(--muted); margin-top: -0.4rem; }

/* ----- CTA band --------------------------------------------------------- */
.cta-band { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(2.25rem, 5vw, 3.75rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 360px; height: 360px; background: radial-gradient(circle, rgba(191,146,44,0.25), transparent 70%); }
.cta-band h2 { color: #fff; margin-bottom: 0.6rem; }
.cta-band p { color: #d4ddee; max-width: 42rem; margin: 0 auto 1.5rem; position: relative; }
.cta-band .btn-row { justify-content: center; position: relative; }

/* ----- Page header ------------------------------------------------------ */
.page-header { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.page-header--center { text-align: center; }
.page-header .lead { margin-top: 0.75rem; }
.page-title { font-size: var(--step-3); }

/* ----- Blog ------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__thumb { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { color: var(--gold-dark); }
.post-card p { color: var(--muted); font-size: var(--step-0); }
.post-meta { font-size: var(--step--1); color: var(--muted); margin-bottom: 0.5rem; }
.post-meta__sep { margin: 0 0.4rem; }

/* Single post */
.entry { max-width: var(--maxw-narrow); margin-inline: auto; }
.entry__thumb { border-radius: var(--radius); margin-bottom: 2rem; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.entry-content { font-size: var(--step-0); }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2 { margin-top: 2.5rem; font-size: var(--step-2); }
.entry-content h3 { margin-top: 2rem; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote { border-left: 3px solid var(--gold); padding-left: 1.25rem; color: var(--muted); font-family: var(--ff-head); font-style: italic; font-size: var(--step-1); }
.entry-content a { color: var(--gold-dark); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.4rem; margin-top: 3rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 0.6rem; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ----- Forms ------------------------------------------------------------ */
.contact-form { display: grid; gap: 1.1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-row { display: grid; gap: 0.35rem; }
.form-row label { font-weight: 600; font-size: var(--step--1); color: var(--navy); }
.form-row input, .form-row select, .form-row textarea {
	font: inherit; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
	background: #fff; color: var(--ink); width: 100%;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-soft); }
.cf-hp { position: absolute; left: -9999px; }
.contact-form__status { display: none; padding: 0.85rem 1rem; border-radius: var(--radius-sm); font-size: var(--step-0); }
.contact-form__status.is-success { display: block; background: #e7f7ef; color: #15633f; }
.contact-form__status.is-error { display: block; background: #fdecec; color: #9b1c1c; }
.contact-form__submit { justify-self: start; }
.is-loading { opacity: 0.6; pointer-events: none; }

/* ----- Contact layout --------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 1.25rem; }
.contact-info__item { display: flex; gap: 0.85rem; align-items: flex-start; }
.contact-info__item svg { width: 22px; height: 22px; color: var(--gold-dark); flex: none; margin-top: 3px; }
.map-embed { border: 0; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); margin-top: 1.5rem; }

/* ----- Footer ----------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #aebbd0; margin-top: auto; }
/* Footer <p>s must override the global `p { color: var(--ink) }` (else dark-on-navy = 1.1:1 fail) */
.site-footer__tagline, .site-footer__copy { color: #aebbd0; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(2.75rem, 5vw, 4rem); }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; } }
.site-footer__brand svg, .site-footer__brand .site-logo img { height: 44px; width: auto; }
.site-footer__tagline { margin-top: 1rem; max-width: 24rem; font-size: var(--step-0); line-height: 1.7; }
.site-footer__heading { font-family: var(--ff-head); color: #fff; font-size: var(--step-1); margin-bottom: 1.1rem; }
.site-footer__menu, .site-footer__contact { list-style: none; padding: 0; display: grid; gap: 0.65rem; }
.site-footer a { color: #c3cee2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.site-footer__social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); color: #fff; }
.site-footer__social a:hover { background: var(--gold); border-color: var(--gold); }
.site-footer__social svg { width: 18px; height: 18px; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,0.12); }
.site-footer__bar-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.25rem; font-size: var(--step--1); }
.site-footer__disclaimer { color: #8294ab; max-width: 36rem; }

/* ----- 404 -------------------------------------------------------------- */
.error-404 { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.error-404 .code { font-family: var(--ff-head); font-size: clamp(4rem, 12vw, 8rem); color: var(--gold); font-weight: 700; line-height: 1; }

/* ----- WhatsApp floating button ----------------------------------------- */
.whatsapp-fab {
	position: fixed; right: 18px; bottom: 18px; z-index: 200;
	display: inline-flex; align-items: center; gap: 0.5rem;
	background: #0c7a3f; color: #fff; text-decoration: none; /* darkened green: white text = 5.4:1 (WCAG AA) */
	padding: 0.7rem 1rem; border-radius: 999px; font-weight: 600; font-size: var(--step-0);
	box-shadow: 0 10px 24px -8px rgba(0,0,0,0.4); transition: transform 0.15s ease, background 0.2s ease;
}
.whatsapp-fab:hover { transform: translateY(-2px); background: #0a6835; color: #fff; }
.whatsapp-fab svg { width: 24px; height: 24px; }
@media (max-width: 600px) { .whatsapp-fab__text { display: none; } .whatsapp-fab { padding: 0.85rem; } }

/* ----- Utilities -------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flow > * + * { margin-top: 1.1rem; }
