/**
 * Tidehaven — public aquarium & marine conservation attraction theme.
 * Design tokens, layout, and component styles.
 *
 * @package Tidehaven
 */

/* ---------------------------------------------------------------------
   1. Reset
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	overflow-x: hidden;
	background: var(--deep);
	color: var(--sand);
	font-family: var(--font-body);
	font-size: var(--fs-1);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, dl, dd { margin: 0; }
input, textarea, select { font: inherit; color: inherit; }
.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; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 2px solid var(--coral); outline-offset: 2px;
}

/* ---------------------------------------------------------------------
   2. Design tokens
   --------------------------------------------------------------------- */
:root {
	/* Palette — deep teal/turquoise water tones with a warm coral reef
	   accent (reef-color contrast: teal water against coral highlights),
	   NOT the saturated cobalt-on-graphite an earlier sibling theme
	   ("Wavelength") already used. Reads as water/reef, not consumer-tech. */
	--deep: #0a2e33;
	--deep-2: #0d363c;
	--deep-3: #103f46;

	--sand: #f3ead9;
	/* --sand-70 verified via relative-luminance contrast math against this
	   theme's darkest real surface (--deep): ~12:1 at full opacity, still
	   comfortably >4.5:1 AA at 0.78 alpha even layered over .glass. */
	--sand-70: rgba(243, 234, 217, 0.78);
	--sand-45: rgba(243, 234, 217, 0.5);
	--sand-14: rgba(243, 234, 217, 0.14);
	--sand-08: rgba(243, 234, 217, 0.08);

	--coral: #ff7a59;
	/* --coral measured ~5.6:1 against --deep (relative-luminance contrast
	   math) — clears 4.5:1 AA directly as text/link color on this theme's
	   dark surfaces, unlike a lighter tint which would need adjusting down. */
	--coral-dark: #e8623f;
	--coral-bright: #ff9478;
	--coral-glow: rgba(255, 122, 89, 0.3);

	--teal-bright: #2ea8ab;
	/* --teal-bright measured ~5.0:1 against --deep and ~4.5:1 against the
	   slightly lighter --deep-2 glass surfaces — reserved for icons and
	   large/bold text only (not small body copy), matching this
	   catalogue's established practice for borderline-AA accent colors. */
	--teal-pale: #8fe0dd;

	--err: #ff8a73;

	/* Fonts */
	--font-display: 'Familjen Grotesk', system-ui, sans-serif;
	--font-body: 'Figtree', system-ui, -apple-system, sans-serif;

	/* Type scale: 16px base x 1.25 ratio */
	--fs-0: 0.8rem;
	--fs-1: 1rem;
	--fs-2: 1.25rem;
	--fs-3: 1.563rem;
	--fs-4: 1.953rem;
	--fs-5: 2.441rem;
	--fs-6: 3.052rem;
	--fs-7: 3.815rem;

	/* Spacing scale */
	--sp-1: 0.5rem;
	--sp-2: 1rem;
	--sp-3: 1.5rem;
	--sp-4: 2rem;
	--sp-5: 3rem;
	--sp-6: 4rem;
	--sp-7: 6rem;
	--sp-8: 8rem;
	--sp-9: 10rem;

	--section-pad: 10rem;
	--radius: 24px;
	--radius-sm: 14px;
	--radius-lg: 34px;

	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 780px) {
	:root { --section-pad: 4.5rem; }
}

/* ---------------------------------------------------------------------
   3. Base typography
   --------------------------------------------------------------------- */
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 650;
	letter-spacing: -0.01em;
	line-height: 1.1;
	color: var(--sand);
	text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.8rem + 3vw, var(--fs-7)); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 1.5rem + 1.8vw, var(--fs-6)); }
h3 { font-size: var(--fs-3); }
h4 { font-size: var(--fs-2); }
p { color: var(--sand-70); }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-family: var(--font-display);
	font-size: var(--fs-0);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--coral-bright);
	background: rgba(255, 122, 89, 0.14);
	padding: 0.4em 0.9em;
	border-radius: 999px;
	margin-bottom: var(--sp-3);
}

/* ---------------------------------------------------------------------
   4. Layout
   --------------------------------------------------------------------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-4); position: relative; z-index: 1; }
.wrap--narrow { max-width: 680px; margin: 0 auto; padding: 0 var(--sp-4); position: relative; z-index: 1; }

.section { position: relative; padding: var(--section-pad) 0; z-index: 1; background: rgba(10, 46, 51, 0.55); }
.section--alt { background: rgba(13, 54, 60, 0.68); }
.section--panel { background: rgba(8, 38, 42, 0.62); }
.section--editorial { background: rgba(10, 46, 51, 0.74); }
.section--intro { padding-bottom: var(--sp-4); background: rgba(10, 46, 51, 0.32); }
.section--reserve { background: rgba(10, 46, 51, 0.5); }

.skip-link {
	position: absolute; left: -999px; top: 0; z-index: 999;
	background: var(--sand); color: var(--deep); padding: 0.8em 1.4em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.section-head { max-width: 640px; margin-bottom: var(--sp-6); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: var(--sp-2); }
.section-head p { margin-top: var(--sp-2); font-size: var(--fs-2); }

.mt-5 { margin-top: var(--sp-5); }

/* ---------------------------------------------------------------------
   5. Buttons
   --------------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	padding: 0.95em 1.8em; border-radius: 999px;
	font-family: var(--font-display); font-weight: 600; font-size: 1rem;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
@media (prefers-reduced-motion: reduce) { .btn { transition: background-color 0.2s, color 0.2s; } }
/* Deep-teal text on --coral measures ~5.6:1 — passes AA. */
.btn--cta { background: var(--coral); color: var(--deep); box-shadow: 0 16px 34px -16px var(--coral-glow); }
.btn--cta:hover { background: var(--coral-bright); transform: translateY(-2px); }
.btn--outline { background: transparent; border: 1.5px solid var(--sand-14); color: var(--sand); }
.btn--outline:hover { border-color: var(--coral); color: var(--coral-bright); }
.btn--lg { padding: 1.05em 2.1em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

/* ---------------------------------------------------------------------
   6. Liquid glass surfaces — cool teal-tinted variant against the dark
   water backdrop, this catalogue's standing polish floor for card/panel
   treatments.
   --------------------------------------------------------------------- */
.glass {
	position: relative;
	background: linear-gradient(160deg, rgba(24, 76, 82, 0.58), rgba(9, 42, 47, 0.46));
	backdrop-filter: blur(22px) saturate(150%);
	-webkit-backdrop-filter: blur(22px) saturate(150%);
	border: 1px solid rgba(243, 234, 217, 0.12);
	border-radius: var(--radius);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.08),
		inset 0 0 60px rgba(46, 168, 171, 0.08),
		0 24px 54px -26px rgba(0, 0, 0, 0.5);
	overflow: hidden;
}
.glass::before {
	content: '';
	position: absolute; inset: 0;
	background: radial-gradient(120% 90% at 12% -10%, rgba(255, 122, 89, 0.09), transparent 55%);
	pointer-events: none;
}

/* ---------------------------------------------------------------------
   7. Persistent dive canvas — fixed, full-viewport, non-negative z-index
   (see header.php note on the negative-z-index occlusion bug class). The
   content wrapper .th-page sits at z-index:1 above it, and .section/.exh
   keep translucent (not opaque) backgrounds so the canvas genuinely
   continues to read past the hero — some sections let far more of it
   show through than others, by design (see front-page.php comments).
   --------------------------------------------------------------------- */
.th-bg-stage {
	position: fixed; inset: 0; z-index: 0;
	background: radial-gradient(120% 90% at 50% 8%, #123c42 0%, var(--deep) 55%, #071f23 100%);
	overflow: hidden;
	pointer-events: none;
}
.th-bg-stage canvas { width: 100%; height: 100%; display: block; }
.th-bg-fallback {
	position: absolute; inset: 0; display: none;
	background: radial-gradient(120% 90% at 50% 8%, #1c6167 0%, var(--deep) 55%, #071f23 100%);
	transition: background 1.2s var(--ease);
}
@media (prefers-reduced-motion: reduce) { .th-bg-fallback { transition: none; } }
.th-bg-stage.is-fallback .th-bg-fallback { display: block; }
.th-bg-stage.is-fallback canvas { display: none; }

/* Tier-C per-zone fallback gradients — a real static image/gradient per
   zone, not a blank placeholder, driven by data-zone (see th-scene.js
   setupFallbackZoneWatcher). */
.th-bg-fallback[data-zone="touch-pool"] {
	background:
		radial-gradient(60% 45% at 50% 15%, rgba(127, 212, 209, 0.35), transparent 65%),
		radial-gradient(120% 90% at 50% 0%, #1c6167 0%, var(--deep) 60%, #071f23 100%);
}
.th-bg-fallback[data-zone="kelp-forest"] {
	background:
		radial-gradient(55% 50% at 30% 20%, rgba(63, 143, 92, 0.28), transparent 65%),
		radial-gradient(120% 90% at 50% 0%, #164338 0%, var(--deep) 60%, #071f23 100%);
}
.th-bg-fallback[data-zone="coral-reef"] {
	background:
		radial-gradient(50% 45% at 65% 25%, rgba(255, 122, 89, 0.22), transparent 65%),
		radial-gradient(120% 90% at 50% 0%, #17454a 0%, var(--deep) 60%, #071f23 100%);
}
.th-bg-fallback[data-zone="open-ocean"],
.th-bg-fallback[data-zone="deep-sea"],
.th-bg-fallback[data-zone="jellyfish"] {
	background: radial-gradient(120% 90% at 50% 10%, #0d2a30 0%, var(--deep) 55%, #050f12 100%);
}

.th-page { position: relative; z-index: 1; }

/* ---------------------------------------------------------------------
   8. Header
   --------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--sand-08); }
/* Blur lives on a ::before layer, not directly on .site-header — a
   computed backdrop-filter on .site-header itself would establish a
   containing block for its position:fixed .nav descendant (mobile
   off-canvas panel), collapsing its inset:0 0 0 auto sizing down to
   content height instead of the full viewport. This exact bug class hit
   multiple recent sibling themes' (Copperline, Wavelength) mobile nav
   panels. */
.site-header::before {
	content: '';
	position: absolute; inset: 0; z-index: -1;
	background: rgba(10, 46, 51, 0.72);
	backdrop-filter: blur(16px) saturate(150%);
	-webkit-backdrop-filter: blur(16px) saturate(150%);
}
.site-header__inner { display: flex; align-items: center; gap: var(--sp-4); padding-top: 1.05rem; padding-bottom: 1.05rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 650; font-size: 1.3rem; color: var(--sand); }
.brand__mark { color: var(--teal-bright); display: inline-flex; }
.nav { display: flex; align-items: center; gap: var(--sp-4); margin-left: auto; }
.nav ul { display: flex; gap: var(--sp-4); align-items: center; }
.nav a { font-size: 0.92rem; font-weight: 700; color: var(--sand-70); transition: color 0.25s var(--ease); }
.nav a:hover { color: var(--coral-bright); }
.nav .menu-item-cta a {
	background: var(--coral); color: var(--deep); padding: 0.6em 1.3em; border-radius: 999px;
}
.nav .menu-item-cta a:hover { background: var(--coral-bright); }
.nav__phone { display: flex; align-items: center; gap: 0.4em; font-weight: 700; color: var(--teal-pale); font-size: 0.9rem; white-space: nowrap; }
.nav__phone svg { flex-shrink: 0; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--sand); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
	.nav-toggle { display: flex; }
	/* backdrop-filter lives directly on .nav here because .nav IS the
	   fixed element itself (not a descendant of a filtered fixed
	   ancestor) — the bug class above is about an ANCESTOR's filter
	   creating a containing block for a fixed descendant; a filtered
	   element that is itself position:fixed has no such problem. */
	.nav {
		position: fixed; inset: 0 0 0 auto; width: min(86vw, 380px); margin: 0;
		flex-direction: column; align-items: flex-start; justify-content: flex-start;
		padding: 6rem var(--sp-4) var(--sp-4); gap: var(--sp-3);
		background: rgba(9, 40, 45, 0.96);
		backdrop-filter: blur(24px) saturate(150%);
		-webkit-backdrop-filter: blur(24px) saturate(150%);
		box-shadow: -18px 0 54px -22px rgba(0, 0, 0, 0.5);
		transform: translateX(100%);
		transition: transform 0.35s var(--ease);
		z-index: 200;
		overflow-y: auto;
	}
	@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }
	.nav.is-open { transform: translateX(0); }
	.nav ul { flex-direction: column; gap: 0; width: 100%; }
	.nav ul li { width: 100%; border-bottom: 1px solid var(--sand-08); }
	.nav ul a { display: block; padding: 1rem 0; font-size: 1.1rem; }
	.nav .menu-item-cta { margin-top: var(--sp-3); width: 100%; }
	.nav .menu-item-cta a { display: flex; justify-content: center; width: 100%; padding: 0.9em 1.6em; }
	.nav__phone { margin-top: var(--sp-3); font-size: 1rem; }
}

/* ---------------------------------------------------------------------
   9. Hero
   --------------------------------------------------------------------- */
.hero { position: relative; min-height: 88vh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--sp-6); padding-bottom: var(--sp-6); overflow: hidden; }
.hero__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; text-align: center; padding: 0 var(--sp-4); }
.hero__lede { font-size: var(--fs-2); margin-top: var(--sp-3); max-width: 600px; margin-left: auto; margin-right: auto; }
.hero__cta-row { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; margin-top: var(--sp-5); }
.hero__scroll-hint {
	position: absolute; bottom: var(--sp-4); left: 50%; transform: translateX(-50%);
	display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
	font-size: 0.75rem; color: var(--sand-45); z-index: 2;
}
.hero__scroll-hint .line { width: 1px; height: 34px; background: linear-gradient(var(--sand-45), transparent); animation: thScrollLine 2.2s var(--ease) infinite; }
@media (prefers-reduced-motion: reduce) { .hero__scroll-hint .line { animation: none; opacity: 0.6; } }
@keyframes thScrollLine {
	0% { opacity: 0; transform: scaleY(0.4); transform-origin: top; }
	50% { opacity: 1; transform: scaleY(1); }
	100% { opacity: 0; transform-origin: bottom; transform: scaleY(0.4); }
}

/* ---------------------------------------------------------------------
   10. Exhibit sections — six deliberately distinct layout shapes. Common
   base gives each a near-full-height stage; each variant below is a
   genuinely different structure, not a reskin of the same grid.
   --------------------------------------------------------------------- */
.exh { position: relative; z-index: 1; min-height: 92vh; display: flex; align-items: center; padding: var(--sp-7) 0; }
.exh__zone-tag {
	display: inline-flex; align-items: center; gap: 0.5em;
	font-family: var(--font-display); font-size: var(--fs-0); font-weight: 600;
	letter-spacing: 0.03em; text-transform: uppercase; color: var(--teal-pale);
	margin-bottom: var(--sp-2);
}
.exh__zone-tag--center { justify-content: center; width: 100%; }
.exh__link { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 700; color: var(--coral-bright); margin-top: var(--sp-4); }
.exh__link:hover { color: var(--coral); }
.exh__highlights { display: flex; flex-direction: column; gap: 0.6rem; margin-top: var(--sp-3); font-size: 0.95rem; }
.exh__highlights li { display: flex; gap: 0.6em; align-items: flex-start; }
.exh__highlights li svg { flex-shrink: 0; margin-top: 0.15em; color: var(--teal-bright); }
.exh__stat-bar { display: flex; gap: var(--sp-4); margin-top: var(--sp-4); flex-wrap: wrap; }
.exh__stat-bar > div { display: flex; flex-direction: column; gap: 0.2rem; }
.exh__stat-bar strong { font-family: var(--font-display); font-size: var(--fs-2); color: var(--sand); }
.exh__stat-bar span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--sand-45); }

/* -- Layout A: full-bleed text-over-media overlay -- */
.exh--overlay { min-height: 100vh; padding: 0; }
.exh--overlay__media { position: absolute; inset: 0; overflow: hidden; }
.exh--overlay__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.exh--overlay__media::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(10, 46, 51, 0.15) 0%, rgba(10, 46, 51, 0.55) 65%, var(--deep) 100%);
}
.exh--overlay__inner { position: relative; z-index: 2; display: flex; justify-content: center; }
.exh--overlay__panel { max-width: 620px; padding: var(--sp-5); text-align: left; }

/* -- Layout B / E: classic split (and its mirrored variant) --
   Fixed during the compliance pass: Layout B's markup places .exh--split__media
   before .exh--split__copy in DOM order, so plain grid auto-placement already
   renders "image left / copy right" with zero direction trickery. Layout E's
   markup (front-page.php) places .exh--split__copy BEFORE .exh--split__media
   instead — DOM order alone already yields the intended mirrored "copy left /
   image right" arrangement with no override needed. A leftover
   `direction: rtl` + child `direction: ltr` reset here (presumably written
   assuming E shared B's media-first DOM order and needed a real reversal) was
   silently forcing E's grid auto-placement to treat DOM-first (.copy) as the
   RTL "start" edge, which is the physical RIGHT — flipping the desktop render
   to image-left/copy-right, i.e. visually IDENTICAL to Layout B instead of
   its mirror, contradicting both the section's own code comment and the
   "reversed split" design intent. Confirmed via getBoundingClientRect() in a
   live browser before and after removing the override. No direction
   manipulation is needed for either layout — only the DOM order differs. */
.exh--split__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: center; }
.exh--split__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.2; background: var(--deep-2); }
.exh--split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
	.exh--split__inner { grid-template-columns: 1fr; }
	/* Image leads on mobile for both split layouts, matching Layout B's
	   already-media-first DOM order stacking naturally the same way. */
	.exh--split-reverse .exh--split__media { order: -1; }
}

/* -- Layout C: centered stat callouts -- */
.exh--stats__head { max-width: 680px; margin: 0 auto var(--sp-6); text-align: center; }
.exh--stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
@media (max-width: 760px) { .exh--stats__grid { grid-template-columns: 1fr; } }
.exh-stat-card { padding: var(--sp-5) var(--sp-3); text-align: center; display: flex; flex-direction: column; gap: 0.5rem; }
.exh-stat-card__num { font-family: var(--font-display); font-size: var(--fs-6); font-weight: 700; color: var(--coral-bright); }
.exh-stat-card__label { font-size: 0.92rem; color: var(--sand-70); }
.exh--stats__foot { text-align: center; margin-top: var(--sp-5); }

/* -- Layout D: species fact-card cluster -- */
.exh--fact-cluster__head,
.exh--fact-cluster__cards { }
.exh--fact-cluster .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--sp-6); align-items: center; }
@media (max-width: 900px) { .exh--fact-cluster .wrap { grid-template-columns: 1fr; } }
.exh--fact-cluster__cards { display: flex; flex-direction: column; gap: var(--sp-3); }
.fact-card { padding: var(--sp-3) var(--sp-4); display: flex; align-items: center; gap: var(--sp-3); }
.fact-card--1 { margin-left: var(--sp-5); }
.fact-card--2 { margin-left: var(--sp-3); }
@media (max-width: 640px) { .fact-card--1, .fact-card--2 { margin-left: 0; } }
.fact-card__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: rgba(85, 116, 128, 0.28); color: var(--teal-bright); display: flex; align-items: center; justify-content: center; }
.fact-card p { color: var(--sand); font-size: 0.95rem; margin: 0; }

/* -- Layout F: centered pull-quote -- */
.exh--pullquote__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.exh--pullquote__lede { font-size: var(--fs-3); margin-top: var(--sp-3); color: var(--sand-70); line-height: 1.55; }
.exh--pullquote__stats { display: flex; flex-wrap: wrap; gap: 0.6em; justify-content: center; margin-top: var(--sp-4); font-size: 0.9rem; color: var(--sand-45); }
.exh--pullquote__stats strong { color: var(--sand); font-family: var(--font-display); }

/* ---------------------------------------------------------------------
   11. Plan Your Visit — clean practical info-grid
   --------------------------------------------------------------------- */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
@media (max-width: 900px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.plan-card__icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(46, 168, 171, 0.16); color: var(--teal-bright); display: flex; align-items: center; justify-content: center; }
.plan-card h3 { font-size: 1.05rem; }
.plan-card p { font-size: 0.9rem; line-height: 1.6; }

/* ---------------------------------------------------------------------
   12. Tickets & Membership — pricing-card layout
   --------------------------------------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.pricing-card { padding: var(--sp-5) var(--sp-4); display: flex; flex-direction: column; position: relative; }
.pricing-card--featured { border-color: rgba(255, 122, 89, 0.4); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 0 60px rgba(255, 122, 89, 0.1), 0 30px 60px -26px rgba(255, 122, 89, 0.25); }
.pricing-card__badge { position: absolute; top: var(--sp-3); right: var(--sp-3); background: var(--coral); color: var(--deep); font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; padding: 0.35em 0.8em; border-radius: 999px; }
.pricing-card__age { font-size: 0.86rem; color: var(--sand-45); margin-top: 0.3rem; }
.pricing-card__price { display: flex; align-items: baseline; gap: 0.4em; margin: var(--sp-3) 0; }
.pricing-card__price span { font-family: var(--font-display); font-size: var(--fs-5); font-weight: 700; color: var(--sand); }
.pricing-card__price small { font-size: 0.82rem; color: var(--sand-45); }
.pricing-card__benefits { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; margin-bottom: var(--sp-4); }
.pricing-card__benefits li { display: flex; gap: 0.5em; align-items: flex-start; font-size: 0.9rem; color: var(--sand-70); }
.pricing-card__benefits li svg { flex-shrink: 0; margin-top: 0.15em; color: var(--teal-bright); }

/* ---------------------------------------------------------------------
   13. Conservation & Education — editorial/magazine layout
   --------------------------------------------------------------------- */
.editorial { max-width: 820px; margin: 0 auto var(--sp-7); text-align: center; }
.editorial__lede { margin-top: var(--sp-2); font-size: clamp(1.5rem, 1.2rem + 1.4vw, var(--fs-5)); line-height: 1.35; color: var(--sand); font-weight: 600; }
.editorial__list { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--sp-5); }
.editorial__item { display: grid; grid-template-columns: 56px 1fr; gap: var(--sp-3); align-items: start; padding-bottom: var(--sp-5); border-bottom: 1px solid var(--sand-08); }
.editorial__item:last-child { border-bottom: 0; padding-bottom: 0; }
.editorial__item-icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 122, 89, 0.14); color: var(--coral-bright); display: flex; align-items: center; justify-content: center; }
.editorial__item h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.editorial__item p { font-size: 0.96rem; line-height: 1.7; }
@media (max-width: 560px) { .editorial__item { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   14. Events & Programs — horizontal scroll strip
   --------------------------------------------------------------------- */
/* Tighter heading-to-strip gap than the default .section-head margin — a
   scroll strip reads better sitting close to its own header. */
.section--events .section-head { margin-bottom: var(--sp-4); }
.events-strip {
	display: flex; gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x proximity;
	padding: var(--sp-2) var(--sp-4) var(--sp-3); max-width: 100%;
	-webkit-overflow-scrolling: touch;
}
.events-strip::-webkit-scrollbar { height: 8px; }
.events-strip::-webkit-scrollbar-thumb { background: var(--sand-14); border-radius: 999px; }
.event-card {
	flex: 0 0 280px; scroll-snap-align: start; padding: var(--sp-4);
	display: flex; flex-direction: column; gap: 0.5rem;
}
.event-card__icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(46, 168, 171, 0.16); color: var(--teal-bright); display: flex; align-items: center; justify-content: center; margin-bottom: 0.3rem; }
.event-card__when { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--coral-bright); font-weight: 700; }
.event-card h3 { font-size: 1.02rem; margin-top: 0.1rem; }
.event-card p { font-size: 0.88rem; }

/* ---------------------------------------------------------------------
   15. Testimonials — staggered grid
   --------------------------------------------------------------------- */
.ts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
@media (max-width: 760px) { .ts-grid { grid-template-columns: 1fr; } }
.ts-grid--staggered > div:nth-child(even) { transform: translateY(var(--sp-4)); }
@media (max-width: 760px) { .ts-grid--staggered > div:nth-child(even) { transform: none; } }
.ts-card { padding: var(--sp-4); position: relative; }
.ts-card__quote-mark { color: var(--coral); opacity: 0.6; display: block; margin-bottom: var(--sp-2); }
.ts-card blockquote { margin: 0; font-size: 1.05rem; line-height: 1.7; color: var(--sand); }
.ts-card figcaption { margin-top: var(--sp-3); font-size: 0.9rem; color: var(--sand-70); }
.ts-card figcaption strong { color: var(--sand); }

/* ---------------------------------------------------------------------
   16. Ticket-request form
   --------------------------------------------------------------------- */
.tix-form { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); }
.tform-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
@media (max-width: 560px) { .tform-row { grid-template-columns: 1fr; } }
.tform-field { display: flex; flex-direction: column; gap: 0.4rem; }
.tform-field label { font-size: 0.86rem; font-weight: 700; color: var(--sand-70); }
.tform-field input, .tform-field select, .tform-field textarea {
	padding: 0.85em 1em; border-radius: var(--radius-sm); border: 1.5px solid var(--sand-14);
	background: rgba(10, 46, 51, 0.5); font-family: var(--font-body); font-size: 0.98rem; color: var(--sand);
}
.tform-field textarea { min-height: 100px; resize: vertical; }
.tform-field input:focus, .tform-field select:focus, .tform-field textarea:focus { border-color: var(--coral); }
.tform-field--check { flex-direction: row; }
.tform-check { display: flex; align-items: flex-start; gap: 0.6em; font-size: 0.9rem; color: var(--sand-70); cursor: pointer; }
.tform-check input { margin-top: 0.2em; }
.tform-note { display: flex; align-items: center; gap: 0.5em; font-size: 0.82rem; color: var(--sand-45); }
.tform-note svg { color: var(--teal-bright); flex-shrink: 0; }
.tform-status { font-size: 0.9rem; font-weight: 700; min-height: 1.2em; }
.tform-status.is-success { color: var(--teal-pale); }
.tform-status.is-error { color: var(--err); }

/* ---------------------------------------------------------------------
   17. Footer CTA + footer
   --------------------------------------------------------------------- */
.footer-cta { position: relative; z-index: 1; background: linear-gradient(135deg, rgba(13, 54, 60, 0.92), rgba(10, 46, 51, 0.96)); padding: var(--sp-6) 0; }
.footer-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.footer-cta__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.site-footer { position: relative; z-index: 1; background: rgba(7, 31, 35, 0.97); padding: var(--sp-7) 0 var(--sp-4); border-top: 1px solid var(--sand-08); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-5); margin-bottom: var(--sp-6); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col--brand p { font-size: 0.92rem; margin-top: var(--sp-2); max-width: 320px; }
.brand--footer { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 650; font-size: 1.2rem; color: var(--sand); }
.brand--footer .brand__mark { color: var(--teal-bright); }
.site-footer h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--sand-45); margin-bottom: var(--sp-2); font-family: var(--font-display); }
.site-footer ul li { margin-bottom: 0.5rem; }
.site-footer a { font-size: 0.92rem; }
.site-footer a:hover { color: var(--coral-bright); }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2); padding-top: var(--sp-4); border-top: 1px solid var(--sand-08); font-size: 0.82rem; color: var(--sand-45); }

/* ---------------------------------------------------------------------
   18. Generic content: pages, single posts, exhibit archive/single, 404,
   search, blog cards, comments
   --------------------------------------------------------------------- */
.post-header { max-width: 760px; }
.post-featured { border-radius: var(--radius-lg); overflow: hidden; margin: var(--sp-5) 0; }
.post-featured img { width: 100%; display: block; }
.page-content, .entry-content { max-width: 760px; color: var(--sand-70); line-height: 1.75; font-size: 1.05rem; }
.page-content p, .entry-content p { margin-bottom: var(--sp-3); }
.post-meta { color: var(--sand-45); font-size: 0.9rem; margin-top: 0.4rem; }

.pd-hero { position: relative; padding-top: var(--sp-8); padding-bottom: var(--sp-6); }
.pd-hero__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; text-align: center; padding: 0 var(--sp-4); }
.pd-overview { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-6); align-items: start; }
@media (max-width: 860px) { .pd-overview { grid-template-columns: 1fr; } }
.pd-overview__content { margin-top: var(--sp-3); line-height: 1.75; font-size: 1.02rem; }
.pd-overview__content p { margin-bottom: var(--sp-3); }
.pd-side { display: flex; flex-direction: column; gap: var(--sp-3); }
.pd-highlight-list { display: flex; flex-direction: column; gap: var(--sp-2); background: rgba(13, 54, 60, 0.4); border: 1px solid var(--sand-08); border-radius: var(--radius); padding: var(--sp-4); }
.pd-highlight-list li { display: flex; gap: 0.6em; align-items: flex-start; font-weight: 600; font-size: 0.96rem; color: var(--sand); }
.pd-highlight-list li svg { color: var(--teal-bright); flex-shrink: 0; margin-top: 0.2em; }
.pd-fact-strip { display: flex; flex-direction: column; gap: var(--sp-2); background: rgba(13, 54, 60, 0.4); border: 1px solid var(--sand-08); border-radius: var(--radius); padding: var(--sp-4); }
.pd-fact-strip > div { display: flex; justify-content: space-between; align-items: center; }
.pd-fact-strip__label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--sand-45); }
.pd-fact-strip strong { font-family: var(--font-display); color: var(--sand); }

.exh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
@media (max-width: 900px) { .exh-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .exh-grid { grid-template-columns: 1fr; } }
.exh-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.exh-card__media { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--deep-2); }
.exh-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.exh-card:hover .exh-card__media img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .exh-card__media img, .exh-card:hover .exh-card__media img { transition: none; transform: none; } }
.exh-card__media--fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--sand-45); }
.exh-card__zone-tag { position: absolute; top: var(--sp-2); left: var(--sp-2); background: rgba(10, 46, 51, 0.72); backdrop-filter: blur(8px); color: var(--sand); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.4em 0.8em; border-radius: 999px; }
.exh-card__body { padding: var(--sp-3) var(--sp-3) var(--sp-4); display: flex; flex-direction: column; gap: 0.4rem; }
.exh-card__title a { color: var(--sand); }
.exh-card__title a:hover { color: var(--coral-bright); }
.exh-card__excerpt { font-size: 0.9rem; }
.exh-card__link { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 700; color: var(--coral-bright); margin-top: auto; padding-top: var(--sp-2); font-size: 0.86rem; }
.exh-card__link:hover { color: var(--coral); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
@media (max-width: 860px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }
.post-card { display: block; overflow: hidden; padding: 0; }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--deep-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__media--fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--sand-45); }
.post-card__body { padding: var(--sp-3); }
.post-card__date { font-size: 0.78rem; color: var(--sand-45); text-transform: uppercase; letter-spacing: 0.04em; }
.post-card__title { font-size: 1.1rem; margin-top: 0.4rem; color: var(--sand); }
.post-card__excerpt { font-size: 0.9rem; margin-top: 0.4rem; }

.error-404 { text-align: center; }
.error-404__code { display: inline-flex; justify-content: center; width: 100%; color: var(--coral); opacity: 0.75; }

.comments-area { max-width: 680px; }
.comments-title { font-size: var(--fs-3); margin-bottom: var(--sp-3); }
.comment-list { margin: 0 0 var(--sp-4); }
.comment-body { padding: var(--sp-3) 0; border-bottom: 1px solid var(--sand-08); }
.comment-author { font-weight: 700; margin: 0; }
.comment-metadata a { font-size: 0.82rem; color: var(--sand-45); }
.comment-content { margin-top: 0.4rem; color: var(--sand-70); }
.comment-content p { margin-bottom: var(--sp-2); }
.comment-reply-title { font-size: var(--fs-3); margin-top: var(--sp-5); }
.comment-notes, .logged-in-as { color: var(--sand-70); font-size: 0.9rem; margin-bottom: var(--sp-2); }
#commentform p { margin-bottom: var(--sp-2); }
#commentform label { display: block; font-size: 0.86rem; font-weight: 700; margin-bottom: 0.3rem; }
#commentform input[type="text"], #commentform input[type="email"], #commentform input[type="url"], #commentform textarea {
	width: 100%; padding: 0.75em 1em; border-radius: var(--radius-sm); border: 1.5px solid var(--sand-14);
	background: rgba(10, 46, 51, 0.5); font-family: var(--font-body); color: var(--sand);
}
#commentform textarea { min-height: 120px; }

/* Search form (get_search_form default markup) */
.search-form { display: flex; gap: var(--sp-2); max-width: 460px; margin: var(--sp-3) auto 0; }
.search-form label { flex: 1; }
.search-form .search-field {
	width: 100%; padding: 0.85em 1.1em; border-radius: 999px; border: 1.5px solid var(--sand-14);
	background: rgba(10, 46, 51, 0.5); font-family: var(--font-body); color: var(--sand);
}
.search-form .search-submit {
	padding: 0.7em 1.4em; border-radius: 999px; background: var(--coral); color: var(--deep); font-weight: 700; font-family: var(--font-display);
}
.search-form .search-submit:hover { background: var(--coral-bright); }

/* ---------------------------------------------------------------------
   19. Directional scroll-reveal
   --------------------------------------------------------------------- */
.reveal { opacity: 0; }
.reveal--up { transform: translateY(28px); }
.reveal--left { transform: translateX(-28px); }
.reveal--right { transform: translateX(28px); }
@media (prefers-reduced-motion: no-preference) {
	.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
}
.reveal.is-visible { opacity: 1; transform: none; }
