/* ==========================================================================
   Tropic Guides — Design Tokens
   Palette: pale palm-green surfaces, deep forest text, restrained coral/sunset
   CTA accent. Inspired by a palm-tree mark rather than resort cliché imagery.
   ========================================================================== */

:root,
[data-theme='light'] {
  /* Surfaces — pale green, palm-leaf inspired */
  --color-bg: #eaf2e4;
  --color-surface: #f4f9f0;
  --color-surface-2: #fbfdf9;
  --color-surface-offset: #dfeada;
  --color-surface-offset-2: #d2e2cb;
  --color-divider: #cddec5;
  --color-border: #c3d6ba;

  /* Text — deep forest green, three levels */
  --color-text: #17321f;
  --color-text-muted: #4b6350;
  --color-text-faint: #5c7256;
  --color-text-inverse: #f4f9f0;

  /* Primary accent — warm coral/sunset, CTAs only */
  --color-primary: #ad481f;
  --color-primary-hover: #8a3a19;
  --color-primary-active: #6d2e14;
  --color-primary-highlight: #f3ddce;

  /* Deep forest, used for footer / high-contrast panels */
  --color-forest: #173822;
  --color-forest-2: #0f2717;
  /* Fixed light text for permanently-dark surfaces (footer, contact panel) —
     does not flip with theme, since these surfaces stay dark in both modes. */
  --color-on-forest: #f4f9f0;
  --color-on-forest-muted: #b9ccb4;
  --color-on-forest-faint: #93ab8d;

  /* Semantic (used sparingly — form feedback only) */
  --color-success: #3d6b2c;
  --color-error: #a13544;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows — tone-matched to warm green surfaces */
  --shadow-sm: 0 1px 2px oklch(0.25 0.05 150 / 0.08);
  --shadow-md: 0 6px 20px oklch(0.25 0.05 150 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.25 0.05 150 / 0.16);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1180px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Erode', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Switzer', 'Segoe UI', system-ui, sans-serif;
}

[data-theme='dark'] {
  --color-bg: #0f2015;
  --color-surface: #142a1b;
  --color-surface-2: #17301f;
  --color-surface-offset: #1a3521;
  --color-surface-offset-2: #1f3d26;
  --color-divider: #274a30;
  --color-border: #305a3a;

  --color-text: #e4f0dd;
  --color-text-muted: #a9c2a1;
  --color-text-faint: #8aab82;
  --color-text-inverse: #17321f;

  --color-primary: #e08553;
  --color-primary-hover: #ec9a6c;
  --color-primary-active: #f4ac82;
  --color-primary-highlight: #3c2a1f;

  --color-forest: #0a1810;
  --color-forest-2: #06100a;
  --color-on-forest: #f4f9f0;
  --color-on-forest-muted: #b9ccb4;
  --color-on-forest-faint: #93ab8d;

  --color-success: #7fb469;
  --color-error: #d3707d;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
  --shadow-md: 0 6px 20px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0f2015;
    --color-surface: #142a1b;
    --color-surface-2: #17301f;
    --color-surface-offset: #1a3521;
    --color-surface-offset-2: #1f3d26;
    --color-divider: #274a30;
    --color-border: #305a3a;

    --color-text: #e4f0dd;
    --color-text-muted: #a9c2a1;
    --color-text-faint: #8aab82;
    --color-text-inverse: #17321f;

    --color-primary: #e08553;
    --color-primary-hover: #ec9a6c;
    --color-primary-active: #f4ac82;
    --color-primary-highlight: #3c2a1f;

    --color-forest: #0a1810;
    --color-forest-2: #06100a;
    --color-on-forest: #f4f9f0;
    --color-on-forest-muted: #b9ccb4;
    --color-on-forest-faint: #93ab8d;

    --color-success: #7fb469;
    --color-error: #d3707d;

    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
    --shadow-md: 0 6px 20px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
  }
}

/* ==========================================================================
   Type Scale — fluid clamp()
   ========================================================================== */

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.25vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.4rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1.3rem + 3.6vw, 4.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* ==========================================================================
   Global element styles
   ========================================================================== */

html {
  scroll-padding-top: var(--space-24);
}

body {
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--color-forest);
  font-weight: 500;
  letter-spacing: -0.01em;
}
[data-theme='dark'] h1,
[data-theme='dark'] h2,
[data-theme='dark'] h3 {
  color: var(--color-text);
}

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--wide {
  max-width: var(--content-wide);
}
.container--narrow {
  max-width: var(--content-narrow);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
  position: relative;
}
.section--tight {
  padding-block: clamp(var(--space-10), 6vw, var(--space-20));
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-forest);
  color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-forest) l c h / 0.08);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--hidden {
  transform: translateY(-100%);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-forest);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
}
[data-theme='dark'] .brand {
  color: var(--color-text);
}
.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links {
  display: flex;
  gap: var(--space-6);
}
.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  border-bottom-color: var(--color-primary);
  color: var(--color-forest);
}
[data-theme='dark'] .nav-links a:hover,
[data-theme='dark'] .nav-links a:focus-visible {
  color: var(--color-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-forest);
}
[data-theme='dark'] .nav-toggle {
  color: var(--color-text);
}
.nav-toggle:hover {
  background: var(--color-surface-offset);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-forest);
}
[data-theme='dark'] .theme-toggle {
  color: var(--color-text);
}
.theme-toggle:hover {
  background: var(--color-surface-offset);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  min-height: 44px;
  line-height: 1;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: #fffaf5;
  box-shadow: var(--shadow-sm);
}
[data-theme='dark'] .btn--primary {
  color: #0a1810;
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}
.btn--primary:active {
  background: var(--color-primary-active);
}

.btn--ghost {
  background: transparent;
  color: var(--color-forest);
  border: 1.5px solid oklch(from var(--color-forest) l c h / 0.25);
}
[data-theme='dark'] .btn--ghost {
  color: var(--color-text);
  border-color: oklch(from var(--color-text) l c h / 0.25);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: oklch(from var(--color-forest) l c h / 0.06);
  border-color: var(--color-forest);
}
[data-theme='dark'] .btn--ghost:hover,
[data-theme='dark'] .btn--ghost:focus-visible {
  background: oklch(from var(--color-text) l c h / 0.08);
}

.btn--sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
  min-height: 38px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-block: clamp(var(--space-16), 12vw, var(--space-32)) clamp(var(--space-16), 8vw, var(--space-24));
  overflow: hidden;
}

.hero-ripples {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
[data-theme='dark'] .hero-ripples {
  opacity: 0.3;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.hero-title {
  font-size: var(--text-2xl);
  color: var(--color-forest);
  margin-bottom: var(--space-6);
  max-width: 16ch;
}
[data-theme='dark'] .hero-title {
  color: var(--color-text);
}

.hero-lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 42ch;
  margin-bottom: var(--space-8);
  font-family: var(--font-body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hero-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 46ch;
}

.hero-emblem {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: min(100%, 330px);
  height: auto;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .hero-emblem {
    order: -1;
  }
  .hero-logo {
    width: 190px;
  }
}

/* ==========================================================================
   Trust strip
   ========================================================================== */

.trust-strip {
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  padding-block: var(--space-8);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.trust-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.trust-item strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-forest);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
[data-theme='dark'] .trust-item strong {
  color: var(--color-text);
}
.trust-item span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 760px) {
  .trust-list {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ==========================================================================
   Section headers (shared)
   ========================================================================== */

.section-head {
  max-width: 56ch;
  margin-bottom: var(--space-12);
}
.section-head .eyebrow {
  display: block;
  margin-bottom: var(--space-3);
}
.section-head h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}
.section-head p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* ==========================================================================
   Services — asymmetric feature layout (not a 3-col icon grid)
   ========================================================================== */

.services {
  background: var(--color-surface);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-6);
}

.service-card {
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.service-card--lead {
  grid-column: span 4;
}
.service-card--a {
  grid-column: span 2;
}
.service-card--b {
  grid-column: span 3;
}
.service-card--c {
  grid-column: span 3;
}

.service-card h3 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-forest);
}
[data-theme='dark'] .service-card h3 {
  color: var(--color-text);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.service-card--lead p {
  font-size: var(--text-base);
  max-width: 52ch;
}

.service-glyph {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card--lead,
  .service-card--a,
  .service-card--b,
  .service-card--c {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   Bespoke / group types — text-led list with pull-style divider rhythm
   ========================================================================== */

.groups {
  position: relative;
}

.groups-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-16);
  align-items: start;
}

.groups-list {
  display: flex;
  flex-direction: column;
}

.group-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  align-items: baseline;
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-divider);
}
.group-row:first-child {
  padding-top: 0;
}
.group-row:last-child {
  border-bottom: none;
}

.group-index {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  font-weight: 500;
}

.group-row h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-forest);
  margin-bottom: var(--space-1);
}
[data-theme='dark'] .group-row h3 {
  color: var(--color-text);
}
.group-row p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.groups-aside {
  background: var(--color-forest);
  color: var(--color-on-forest);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  position: relative;
  overflow: hidden;
}
[data-theme='dark'] .groups-aside {
  background: var(--color-surface-offset-2);
}

.groups-aside h3 {
  font-family: var(--font-display);
  color: var(--color-on-forest);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.groups-aside p {
  font-size: var(--text-sm);
  color: var(--color-on-forest-muted);
  margin-bottom: var(--space-6);
}

.groups-aside .btn--primary {
  background: var(--color-primary);
}

@media (max-width: 900px) {
  .groups-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* ==========================================================================
   Places — example destinations, editorial cards
   ========================================================================== */

.places {
  background: var(--color-surface);
}

.places-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.place-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-2);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.place-visual {
  height: 168px;
  position: relative;
  overflow: hidden;
}

.place-visual svg {
  width: 100%;
  height: 100%;
}

.place-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.place-body .eyebrow {
  font-size: 0.7rem;
}

.place-body h3 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-forest);
}
[data-theme='dark'] .place-body h3 {
  color: var(--color-text);
}

.place-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.places-note {
  margin-top: var(--space-8);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 62ch;
}

@media (max-width: 900px) {
  .places-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   About Maria
   ========================================================================== */

.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-16);
  align-items: center;
}

.about-portrait {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  background: var(--color-surface-offset);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-logo {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.about-copy p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  font-size: var(--text-base);
}
.about-copy p:last-of-type {
  margin-bottom: var(--space-6);
}

.about-langs {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.lang-chip {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary-active);
}
[data-theme='dark'] .lang-chip {
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .about-portrait {
    max-width: 280px;
    aspect-ratio: 1;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background: var(--color-forest);
  color: var(--color-on-forest);
  position: relative;
  overflow: hidden;
}
[data-theme='dark'] .contact {
  background: var(--color-surface-offset-2);
}

.contact-inner {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.contact-intro .eyebrow {
  color: var(--color-primary);
}

.contact-intro h2 {
  color: var(--color-on-forest);
  font-size: var(--text-xl);
  margin-block: var(--space-4) var(--space-5);
}

.contact-intro p {
  color: var(--color-on-forest-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.contact-detail svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-detail a {
  color: var(--color-on-forest);
  font-weight: 600;
}

.contact-email-cta {
  display: inline-flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-5);
  padding: var(--space-5) var(--space-6);
  border: 1px solid color-mix(in oklab, var(--color-on-forest) 28%, transparent);
  border-radius: var(--radius-lg);
  color: var(--color-on-forest);
  text-decoration: none;
  transition: background var(--transition-interactive), border-color var(--transition-interactive);
}

.contact-email-cta:hover,
.contact-email-cta:focus-visible {
  background: color-mix(in oklab, var(--color-on-forest) 10%, transparent);
  border-color: var(--color-primary);
}

.contact-email-cta span {
  color: var(--color-on-forest-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-email-cta strong {
  font-size: var(--text-lg);
  font-weight: 600;
}

@media (max-width: 900px) {
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-forest-2);
  color: var(--color-on-forest-muted);
  padding-block: var(--space-10);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-on-forest);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--text-base);
}

.footer-logo {
  display: block;
  width: 112px;
  height: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  font-size: var(--text-xs);
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer-links a {
  color: var(--color-on-forest-muted);
  text-decoration: none;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-on-forest);
}

.footer-meta {
  font-size: var(--text-xs);
  color: var(--color-on-forest-faint);
  margin-top: var(--space-6);
  text-align: center;
}

/* ==========================================================================
   Botanical line / ripple motifs — native CSS, no imagery
   ========================================================================== */

.leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: var(--color-primary);
  margin-block: var(--space-2);
}
.leaf-divider::before,
.leaf-divider::after {
  content: '';
  height: 1px;
  width: clamp(40px, 8vw, 90px);
  background: linear-gradient(
    to var(--dir, right),
    transparent,
    var(--color-divider)
  );
}
.leaf-divider::after {
  --dir: left;
}
.leaf-divider svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.ripple-bg {
  background-image: repeating-radial-gradient(
    circle at 15% 20%,
    oklch(from var(--color-forest) l c h / 0.05) 0,
    oklch(from var(--color-forest) l c h / 0.05) 1px,
    transparent 1px,
    transparent 68px
  );
}
[data-theme='dark'] .ripple-bg {
  background-image: repeating-radial-gradient(
    circle at 15% 20%,
    oklch(from var(--color-primary) l c h / 0.06) 0,
    oklch(from var(--color-primary) l c h / 0.06) 1px,
    transparent 1px,
    transparent 68px
  );
}

/* ==========================================================================
   Mobile nav drawer
   ========================================================================== */

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 0;
    top: 72px;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg);
    padding: var(--space-6) var(--space-5);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 40;
  }
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a {
    font-size: var(--text-lg);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-divider);
    width: 100%;
  }
  .nav-toggle {
    display: flex;
  }
  .header-actions .btn--sm.nav-cta-desktop {
    display: none;
  }
}

@media (min-width: 761px) {
  .nav-toggle {
    display: none;
  }
}

.icon-line {
  width: 22px;
  height: 22px;
}
.icon-line--close {
  display: none;
}
.nav-toggle[aria-expanded='true'] .icon-line--open {
  display: none;
}
.nav-toggle[aria-expanded='true'] .icon-line--close {
  display: block;
}

/* ==========================================================================
   Scroll reveal (opacity + transform only, respects reduced motion)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
