/* ============================================================
   HEBRIDES · ALLERMUIR CAPITAL
   Global stylesheet: palette, type, sections, nav, footer.
   Page-specific styles live in each page's own <style> block.
   ============================================================ */

/* ============================================================
   SELF-HOSTED FONTS (latin subset, woff2)
   Files in /fonts. SHA-256 recorded in fonts/SHA256SUMS.txt.
   No runtime call to Google Fonts.
   ============================================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/ibm-plex-serif-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/ibm-plex-serif-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/ibm-plex-serif-600.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/ibm-plex-serif-700.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/ibm-plex-mono-600.woff2') format('woff2');
}

/* ===== TOKENS ===== */
:root {
  --green: #1E3D32;
  --green-deep: #142A23;
  --green-up: #284B3E;
  --copper: #C6A667;
  --copper-soft: #D8C195;
  --copper-deep: #A2823F;
  --cream: #F5F9FA;
  --cream-paper: #E9EFEC;
  --oat: #A8C39E;
  --oat-deep: #4A5A67;
  --ink: #1A1A1B;
  /* Edinburgh Navy — Allermuir (parent) only. Never a Hebrides surface colour. */
  --navy: #16244E;
  --hairline-cream: rgba(245, 249, 250, 0.16);
  --hairline-cream-strong: rgba(245, 249, 250, 0.28);
  --hairline-green: rgba(30, 61, 50, 0.12);
  --hairline-green-strong: rgba(30, 61, 50, 0.22);
  --positive-bg: rgba(30, 61, 50, 0.12);
  --warn-bg: rgba(198, 166, 103, 0.15);
}

/* ===== RESET / BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--green); color: var(--cream); }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-optical-sizing: auto;
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip; /* contain any horizontal overflow without breaking position:sticky */
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.serif { font-family: 'IBM Plex Serif', Georgia, serif; }
.mono  { font-family: 'IBM Plex Mono', monospace; }

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
.section-green {
  background: var(--green); color: var(--cream);
  position: relative;
}
.section-cream {
  background: var(--cream); color: var(--green);
  position: relative;
}
.section-green-deep {
  background: var(--green-deep); color: var(--cream);
  position: relative;
}
/* Subtle weave pattern overlay for bottle green sections */
.section-green::before {
  content: ""; position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0px, transparent 6px, rgba(245, 249, 250, 0.025) 6px, rgba(245, 249, 250, 0.025) 7px),
    repeating-linear-gradient(90deg, transparent 0px, transparent 6px, rgba(245, 249, 250, 0.025) 6px, rgba(245, 249, 250, 0.025) 7px);
}
.section-green-deep::before {
  content: ""; position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0px, transparent 6px, rgba(245, 249, 250, 0.015) 6px, rgba(245, 249, 250, 0.015) 7px),
    repeating-linear-gradient(90deg, transparent 0px, transparent 6px, rgba(245, 249, 250, 0.015) 6px, rgba(245, 249, 250, 0.015) 7px);
}
.section-green > *, .section-green-deep > * { position: relative; z-index: 1; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 56px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(30, 61, 50, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline-cream);
}
.nav-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 22px 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
/* Live-text lockup: official monogram + Plex Serif wordmark + Plex Mono endorsement.
   Crisper and far more tunable at nav scale than the baked lockup SVG. */
.logo-mark { width: 32px; height: 32px; flex: none; display: block; }
.logo-text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.logo-text .word {
  font-family: 'IBM Plex Serif', serif;
  font-weight: 500; font-size: 19px;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--cream);
}
.logo-text .endorse {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500; font-size: 9.5px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--cream);
}
.logo-text .endorse sup { font-size: 0.66em; vertical-align: super; }
.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-link {
  font-size: 13.5px; color: var(--oat); font-weight: 400;
  letter-spacing: 0.01em; transition: color 0.15s;
  display: inline-flex; align-items: center; gap: 5px;
}
.nav-link:hover, .nav-link.active { color: var(--cream); }
.nav-cta {
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  padding: 9px 18px; border-radius: 2px;
  background: var(--copper); color: var(--cream) !important;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--copper-deep); }

/* Hamburger toggle — desktop hides it; the mobile block below shows it */
.nav-toggle { display: none; }

/* Dropdown */
.nav-item-dropdown { position: relative; }
.nav-item-dropdown .caret { color: var(--copper); transition: transform 0.2s ease; }
.nav-item-dropdown:hover .caret { transform: rotate(180deg); }
.nav-item-dropdown::after {
  content: ""; position: absolute;
  top: 100%; left: -16px; right: -16px;
  height: 16px;
}
.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px); left: -18px;
  min-width: 280px;
  background: var(--green-deep);
  border: 1px solid var(--hairline-cream-strong);
  border-top: 1px solid var(--copper);
  padding: 6px;
  box-shadow: 0 24px 56px -22px rgba(0,0,0,0.7);
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
}
.nav-item-dropdown:hover .dropdown-panel,
.nav-item-dropdown:focus-within .dropdown-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-item {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  transition: background 0.15s;
}
.dropdown-item + .dropdown-item { border-top: 1px solid var(--hairline-cream); }
.dropdown-item:hover { background: rgba(198, 166, 103, 0.08); }
.dropdown-item .d-title {
  display: block;
  font-size: 14.5px; font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.014em;
  margin-bottom: 4px;
  transition: color 0.15s;
}
.dropdown-item .d-desc {
  display: block;
  font-size: 12.5px; font-weight: 400;
  color: var(--oat);
  letter-spacing: -0.005em;
  line-height: 1.45;
}
.dropdown-item:hover .d-title { color: var(--copper); }

/* ============================================================
   SHARED PAGE PRIMITIVES
   ============================================================ */

/* Hero — base; pages may override max-width / padding */
.hero {
  position: relative;
  padding: 56px 56px 96px;
  max-width: 1320px;
  margin: 0 auto;
  overflow: hidden;
}
.hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--copper); font-weight: 500;
  margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--copper);
}
.hero h1 {
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 26px;
  max-width: 22ch;
}
.hero h1 .accent { color: var(--copper); }
.hero-lede {
  font-size: 17px; line-height: 1.55;
  color: var(--oat);
  max-width: 52ch; margin-bottom: 36px;
}
.hero-lede b { color: var(--cream); font-weight: 500; }
.hero-actions { display: flex; gap: 16px; align-items: center; }

/* Hero topographic decoration (used on most pages) */
.hero-topo {
  position: absolute; top: -100px; right: -160px;
  width: 620px; height: 620px;
  z-index: 1; opacity: 0.18; pointer-events: none;
}
.section-green .hero > *, .section-green-deep .hero > * { position: relative; z-index: 3; }

/* When the hero sits on cream, type swaps to green */
.section-cream .hero h1 { color: var(--green); }
.section-cream .hero-lede { color: var(--green); }
.section-cream .hero-lede b { color: var(--green); font-weight: 600; }

/* ===== BUTTONS ===== */
.btn-primary {
  font-size: 14.5px; font-weight: 500; letter-spacing: 0.005em;
  padding: 13px 24px;
  background: var(--copper); color: var(--cream);
  border: 1px solid var(--copper); cursor: pointer;
  border-radius: 2px; transition: background 0.15s;
}
.btn-primary:hover { background: var(--copper-deep); }
.btn-link {
  font-size: 14.5px; font-weight: 500;
  background: transparent;
  color: var(--cream); border: none; cursor: pointer;
  border-bottom: 1px solid var(--hairline-cream-strong);
  padding: 4px 0;
}
.btn-link::after { content: " →"; color: var(--copper); margin-left: 4px; }
.section-cream .btn-link {
  color: var(--green);
  border-bottom-color: var(--hairline-green-strong);
}

/* ===== Generic section with eyebrow + h2 + body ===== */
.section {
  padding: 120px 56px;
}
.section-inner {
  max-width: 1208px; margin: 0 auto;
}
.section-inner.wide { max-width: 1208px; }
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 18px;
}
.section h2 {
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1.04; font-weight: 500; letter-spacing: -0.026em;
  margin-bottom: 20px;
  max-width: 26ch;
}
.section-green h2, .section-green-deep h2 { color: var(--cream); }
.section-cream h2 { color: var(--green); }
.section h2 .accent { color: var(--copper); }
.section p { font-size: 16.5px; line-height: 1.6; margin-bottom: 14px; max-width: 56ch; }
.section-green p, .section-green-deep p { color: var(--oat); }
.section-green p b, .section-green-deep p b { color: var(--cream); font-weight: 500; }
.section-cream p { color: var(--green); }
.section-cream p b { color: var(--green); font-weight: 600; }

/* ===== FINAL CTA (shared) ===== */
.final-cta {
  padding: 130px 56px;
  text-align: center; position: relative;
}
.final-cta-inner { max-width: 1000px; margin: 0 auto; position: relative; }
.final-cta h2 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.0; font-weight: 500; letter-spacing: -0.03em;
  max-width: 22ch; margin: 0 auto 32px;
  color: var(--cream);
}
.final-cta h2 .accent { color: var(--copper); }
.final-cta-deck {
  font-size: 17px; line-height: 1.55;
  color: var(--oat);
  max-width: 52ch; margin: -16px auto 36px;
}
.final-cta-actions { display: flex; gap: 22px; justify-content: center; align-items: center; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--green-deep);
  border-top: 1px solid var(--hairline-cream);
  padding: 64px 56px 36px;
  position: relative;
}
footer::before {
  content: ""; position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0px, transparent 6px, rgba(245, 249, 250, 0.015) 6px, rgba(245, 249, 250, 0.015) 7px),
    repeating-linear-gradient(90deg, transparent 0px, transparent 6px, rgba(245, 249, 250, 0.015) 6px, rgba(245, 249, 250, 0.015) 7px);
}
footer > * { position: relative; z-index: 1; }
.footer-inner {
  max-width: 1208px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .tagline {
  font-size: 13.5px; color: var(--oat);
  max-width: 36ch; line-height: 1.55;
}
.footer-col h5 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--copper);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 13.5px; color: var(--oat);
  padding: 5px 0; transition: color 0.15s;
}
.footer-col a:hover { color: var(--cream); }
.footer-meta {
  max-width: 1208px; margin: 44px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-cream);
  display: flex; justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: var(--cream); letter-spacing: 0.06em;
}
.footer-disclaimer {
  max-width: 1208px; margin: 22px auto 0;
  font-size: 11.5px; line-height: 1.65; color: var(--cream);
}
.footer-disclaimer b { color: var(--cream); font-weight: 600; }

/* ============================================================
   ARTICLE (blog posts)
   ============================================================ */
.article-back {
  max-width: 760px; margin: 0 auto;
  padding: 28px 56px 0;
}
.back-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500;
  color: var(--oat);
  transition: color 0.15s;
}
.back-link::before { content: "← "; color: var(--copper); }
.back-link:hover { color: var(--cream); }
.section-cream .back-link { color: var(--oat-deep); }
.section-cream .back-link:hover { color: var(--green); }

.article-header {
  max-width: 760px; margin: 0 auto;
  padding: 24px 56px 64px;
}
.article-type {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 22px;
  display: inline-flex; align-items: center; gap: 12px;
}
.article-type::before {
  content: ""; width: 24px; height: 1px; background: var(--copper);
}
.article-title {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.06; font-weight: 500; letter-spacing: -0.028em;
  color: var(--cream); margin-bottom: 28px;
  max-width: 26ch;
}
.article-subtitle {
  font-size: 18px; line-height: 1.55;
  color: var(--oat); margin-bottom: 28px;
  max-width: 48ch;
}
.article-meta {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--oat);
  padding-top: 22px;
  border-top: 1px solid var(--hairline-cream);
  text-transform: uppercase;
}
.article-meta .author { color: var(--cream); font-weight: 500; }
.article-meta .role { color: var(--oat); }
.article-meta .sep { color: var(--copper); }

/* Body on cream */
.article-body {
  max-width: 720px; margin: 0 auto;
  padding: 80px 56px 110px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--green);
}
.article-body > p { margin-bottom: 1.3em; }
.article-body > p:first-child::first-letter {
  font-family: 'IBM Plex Serif', serif;
  font-size: 1.18em;
  font-weight: 600;
  color: var(--green);
}
.article-body h2 {
  font-family: 'IBM Plex Serif', serif;
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.18; font-weight: 600; letter-spacing: -0.014em;
  color: var(--green);
  margin-top: 2.4em;
  margin-bottom: 0.7em;
}
.article-body h3 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--green);
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}
.article-body blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--copper);
  font-family: 'IBM Plex Serif', serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--green);
  font-weight: 500;
  letter-spacing: -0.006em;
}
.article-body blockquote p { margin: 0; }
.article-body ul, .article-body ol {
  margin: 1.3em 0; padding-left: 26px;
}
.article-body li { margin-bottom: 0.6em; }
.article-body li::marker { color: var(--copper); }
.article-body strong, .article-body b { color: var(--green); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body a {
  color: var(--green);
  border-bottom: 1px solid var(--hairline-green-strong);
  padding-bottom: 1px;
  transition: border-color 0.15s, color 0.15s;
}
.article-body a:hover { border-color: var(--copper); color: var(--copper); }

/* End-of-post CTA (sits on section-cream) */
.article-end {
  padding: 90px 56px 100px;
  text-align: center;
}
.article-end-inner { max-width: 680px; margin: 0 auto; }
.article-end h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.06; font-weight: 500; letter-spacing: -0.024em;
  color: var(--green); margin-bottom: 16px;
  max-width: 22ch; margin-left: auto; margin-right: auto;
}
.article-end h2 .accent { color: var(--copper); }
.article-end p {
  font-size: 16px; color: var(--green);
  max-width: 50ch; margin: 0 auto 28px;
  line-height: 1.6;
}
.article-end .signup-card {
  position: relative;
  background: var(--cream-paper);
  border: 1px solid var(--hairline-green-strong);
  padding: 36px 40px 32px;
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}
.article-end .signup-card::before,
.article-end .signup-card::after {
  content: ""; position: absolute;
  width: 14px; height: 14px; border: 1px solid var(--copper);
}
.article-end .signup-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.article-end .signup-card::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.article-end .back-row { margin-top: 32px; font-size: 13px; }

/* ============================================================
   HUBSPOT FORM OVERRIDES (apply globally to embeds on cream surfaces)
   Targets HubSpot's actual rendered classes (.hs-input, .hs-button, etc.)
   ============================================================ */
.hs-form-frame { font-family: 'Inter', sans-serif; }
.hs-form-frame .hs-form-field { margin-bottom: 14px; }
.hs-form-frame .hs-form-field > label,
.hs-form-frame label.hs-form-field-label,
.hs-form-frame .hs-fieldtype-text > label,
.hs-form-frame .hs-fieldtype-textarea > label {
  display: block;
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 11px !important; font-weight: 500 !important;
  letter-spacing: 0.12em !important; text-transform: uppercase !important;
  color: var(--green) !important;
  margin-bottom: 6px !important;
}
.hs-form-frame .hs-form-required { color: var(--copper) !important; }
.hs-form-frame input.hs-input,
.hs-form-frame textarea.hs-input,
.hs-form-frame select.hs-input,
.hs-form-frame .hs-input {
  width: 100% !important;
  background: var(--cream-paper) !important;
  border: 1px solid var(--hairline-green-strong) !important;
  color: var(--green) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14.5px !important;
  padding: 10px 12px !important;
  border-radius: 2px !important;
}
.hs-form-frame input.hs-input:focus,
.hs-form-frame textarea.hs-input:focus {
  outline: none !important;
  border-color: var(--copper) !important;
}
.hs-form-frame .hs-button,
.hs-form-frame input[type="submit"].hs-button,
.hs-form-frame button[type="submit"] {
  background: var(--copper) !important;
  color: var(--cream) !important;
  border: 1px solid var(--copper) !important;
  border-radius: 2px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 11px 22px !important;
  cursor: pointer !important;
  letter-spacing: 0.01em !important;
  transition: background 0.15s !important;
}
.hs-form-frame .hs-button:hover,
.hs-form-frame button[type="submit"]:hover {
  background: var(--copper-deep) !important;
}
.hs-form-frame .legal-consent-container,
.hs-form-frame .hs-richtext,
.hs-form-frame .hs-richtext p,
.hs-form-frame .legal-consent-container p {
  font-family: 'Inter', sans-serif !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  color: var(--oat-deep) !important;
  margin-top: 8px !important;
}
.hs-form-frame .legal-consent-container a,
.hs-form-frame .hs-richtext a {
  color: var(--copper) !important;
  text-decoration: underline;
}
.hs-form-frame .hs-error-msgs,
.hs-form-frame .hs-error-msg,
.hs-form-frame .hs-main-font-element {
  color: var(--copper-deep) !important;
  font-size: 12px !important;
  margin-top: 4px !important;
}
.hs-form-frame fieldset { border: none; max-width: none !important; }
.hs-form-frame fieldset.form-columns-2 { display: flex; gap: 12px; }
.hs-form-frame fieldset.form-columns-2 > div { flex: 1; }

@media (max-width: 640px) {
  .article-back, .article-header, .article-body, .article-end {
    padding-left: 24px; padding-right: 24px;
  }
}

/* ============================================================
   REVEAL MOTION
   ============================================================ */
/* Progressive enhancement: sections are VISIBLE by default. They only start
   hidden (to be faded in) when JS has confirmed it's running by adding `.js`
   to <html>. If JS is disabled/blocked/slow, content shows normally — the page
   can never go blank waiting on JavaScript. */
.reveal {
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
/* Start hidden only when JS is present, then AUTO-REVEAL via a CSS animation so
   content can never stay blank waiting on scroll-triggered JavaScript. This is the
   guarantee: on slow mobile the IntersectionObserver can run seconds late, leaving
   sections as empty panels. The animation reveals each section ~120ms after it
   renders, regardless of JS. The observer still adds `.in` for an instant reveal
   when a section is already in view — a nicety on top, no longer load-bearing. */
.js .reveal {
  opacity: 0; transform: translateY(14px);
  animation: revealIn 700ms cubic-bezier(0.16, 1, 0.3, 1) 120ms forwards;
}
@keyframes revealIn { to { opacity: 1; transform: none; } }
.reveal.in { opacity: 1; transform: none; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; animation: none; }
}

/* ============================================================
   LOADING POLISH
   1. first-paint fade-in   2. nav progress bar   3. image fade-in
   JS for 2 + 3 lives in /js/loading.js. (og-image.html does not
   load this stylesheet, so the OG render is intentionally exempt.)
   ============================================================ */
/* 1. First-paint fade-in — opacity only, so position:sticky nav keeps working */
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* 2. Top navigation progress bar */
#progress {
  position: fixed; top: 0; left: 0; height: 2.5px; width: 0;
  background: var(--copper); box-shadow: 0 0 8px rgba(198, 166, 103, 0.6);
  z-index: 200; opacity: 0; pointer-events: none;
  transition: width 0.2s ease, opacity 0.3s ease;
}
#progress.active { opacity: 1; }

/* 3. Image fade-in */
img.img-fade { opacity: 0; transition: opacity 0.6s ease; }
img.img-fade.loaded { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  #progress { display: none; }
  img.img-fade { opacity: 1; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-inner, .wrap, .hero, .section, .final-cta, footer {
    padding-left: 24px; padding-right: 24px;
  }
  /* --- Mobile menu (hamburger) --- */
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 9px; margin-right: -9px;
    background: none; border: none; cursor: pointer;
  }
  .nav-toggle span {
    display: block; height: 2px; width: 100%;
    background: var(--cream); border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.15s ease;
  }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-right { gap: 10px; }
  .nav-cta { display: none; } /* declutter the bar on phones — booking lives in content CTAs + the menu */
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--green-deep);
    border-bottom: 1px solid var(--hairline-cream);
    padding: 4px 24px 16px;
    max-height: 0; overflow: hidden;
    opacity: 0; visibility: hidden;
    transition: max-height 0.28s ease, opacity 0.2s ease, visibility 0.2s;
  }
  .nav.open .nav-links { max-height: 85vh; overflow-y: auto; opacity: 1; visibility: visible; }
  .nav-links .nav-link { padding: 14px 0; font-size: 15.5px; border-bottom: 1px solid var(--hairline-cream); }
  /* Resources dropdown shown inline (static) inside the mobile menu */
  .nav-item-dropdown { position: static; }
  .nav-item-dropdown .caret { display: none; }
  .dropdown-panel {
    position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; border: none; background: none; box-shadow: none;
    padding: 2px 0 8px 14px;
  }
  .dropdown-item { padding: 10px 0; }
  .dropdown-item + .dropdown-item { border-top: none; }
  .dropdown-item .d-desc { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-meta { flex-direction: column; gap: 8px; }

  /* Hero sizing on phones — the `.section-* .hero` selector outranks the
     per-page `.hero` padding overrides, so this wins everywhere. */
  .section-green .hero, .section-cream .hero, .section-green-deep .hero {
    padding: 44px 22px 56px;
  }
  .hero h1 { font-size: clamp(28px, 8vw, 36px); line-height: 1.1; }
  .hero-lede { font-size: 16px; margin-bottom: 28px; }
  .section { padding: 72px 24px; }
  .section h2 { font-size: clamp(26px, 7vw, 33px); }
  .final-cta { padding: 84px 24px; }
}
