/* =====================================================================
   CEIBA ROUTES — Design System & Styles
   Modern, conversion-focused recruiting site. Custom, no framework.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — Ceiba corporate palette
     Navy #002147 · Gold #D69B3D · Foliage #4F7347 · Spiral Blue #1A6AB1 · Spiral Teal #36A4C1
     (Variable names kept as --green-* for compatibility; values are the corporate colors.) */
  --green-900: #002147;  /* Azul Marino Profundo (deep navy) — primary dark */
  --green-800: #012E5C;  /* navy mid */
  --green-700: #145A94;  /* deep spiral blue — links, tags, badge text */
  --green-600: #1A6AB1;  /* Azul Espiral — eyebrows, icons */
  --green-500: #36A4C1;  /* Teal Espiral — primary brand mid, focus, borders */
  --green-400: #5FBBD4;  /* light teal — gradients, stat numbers */
  --green-300: #93D3E3;  /* lighter teal — accents on dark */
  --lime:      #E7B24D;  /* light gold — highlights on navy */

  /* Foliage green (corporate Verde Follaje) */
  --foliage:   #4F7347;
  --foliage-d: #3E5C38;

  /* Accent — Oro Pulido (polished gold) */
  --gold:      #D69B3D;
  --gold-dark: #B2802A;
  --gold-soft: #F1DCB4;

  /* Neutrals (cool, to sit with navy) */
  --ink:       #0F1B2A;
  --charcoal:  #1E2E40;
  --slate:     #4A5A6B;
  --muted:     #62748A;  /* oscurecido: #7A8A99 solo daba 3.5:1 sobre blanco */
  --line:      #E1E8EF;
  --silver:    #B4BFCB;  /* frame line */
  --silver-lit: rgba(255, 255, 255, .85);  /* inner highlight that reads as metal */
  --mist:      #DDF3C4;  /* bright light leaf green — tinted sections */
  --cloud:     #FBFCFE;
  --white:     #FFFFFF;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0, 33, 71, .08), 0 1px 2px rgba(0, 33, 71, .06);
  --shadow-md: 0 8px 24px rgba(0, 33, 71, .12);
  --shadow-lg: 0 24px 60px rgba(0, 33, 71, .18);
  --shadow-gold: 0 10px 26px rgba(214, 155, 61, .40);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x lives on <html>, not <body>: on <body> it makes the body its own
   scroll container, which breaks window.scrollTo() and anchor scrolling. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; color: var(--green-900); }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
p  { color: var(--slate); }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--slate); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
/* Single-page anchors: stop the fixed header from covering section titles */
section[id], .apply-form { scroll-margin-top: 84px; }
/* Section with a looping video background (e.g. the stat band) */
.section--video { position: relative; overflow: hidden; }
.section--video > .container { position: relative; z-index: 2; }
.section-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--green-900); }
.section-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.section-bg__overlay {
  position: absolute; inset: 0;
  /* Light veil — just enough to keep the white/gold stats legible over the video */
  background:
    linear-gradient(180deg, rgba(0, 33, 71, .42) 0%, rgba(0, 23, 48, .26) 50%, rgba(0, 23, 48, .48) 100%);
}
/* Soften the text itself instead of darkening the whole video */
.section--video .section-head h2 { text-shadow: 0 2px 14px rgba(0, 18, 40, .75); }
.section--video .statband .num,
.section--video .statband .lbl { text-shadow: 0 2px 12px rgba(0, 18, 40, .8); }
/* Per-section "Apply Now" call to action */
.section-apply { display: flex; justify-content: center; margin-top: clamp(38px, 5vw, 56px); }
.section--tint { background: var(--mist); }
/* A deeper pull of the same leaf green, so "Why choose CEIBA?" still reads as
   its own moment now that the ordinary tinted sections are green too. */
.section--leaf { background: linear-gradient(180deg, #CCEDA4 0%, #B9E489 100%); }
.section--dark { background: var(--green-900); color: #D6E4F4; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #A9BED6; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-600);
  background: rgba(26, 106, 177, .1); padding: 7px 14px; border-radius: 100px;
}
.section--dark .eyebrow { color: var(--lime); background: rgba(54, 164, 193, .12); }
.section-head { max-width: 720px; margin-inline: auto; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { text-align: center; }
.section-head h2 { margin: 18px 0 14px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green-800);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 15px 28px; border-radius: 100px;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap; will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn--gold {
  --btn-bg: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  --btn-fg: #3a2600; box-shadow: var(--shadow-gold);
}
.btn--gold:hover { box-shadow: 0 16px 34px rgba(214, 155, 61, .5); }
.btn--green { --btn-bg: linear-gradient(135deg, var(--green-500), var(--green-700)); box-shadow: var(--shadow-md); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--green-800); box-shadow: inset 0 0 0 2px rgba(0, 33, 71, .28); }
.btn--ghost:hover { --btn-bg: rgba(0, 33, 71, .06); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--green-800); box-shadow: var(--shadow-md); }
.btn--lg { padding: 18px 36px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
  padding-block: 16px;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  padding-block: 10px;
}
.nav { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; color: var(--green-900); letter-spacing: -.02em; }
/* ================= Living logomark (the ceiba tree) =================
   The mark inherits the surrounding text colour, so it reads white over
   the hero video and charcoal once the header turns solid. No background.
   Two lives run in it: sap rising from the roots, and leaves in the wind. */
.logo-badge { position: relative; width: 54px; height: 54px; flex: none; display: grid; place-items: center; }
.ceiba-mark {
  width: 100%; height: 100%; display: block; overflow: visible;
  transform-origin: 50% 92%;              /* the whole tree leans from its roots */
  animation: mark-lean 7s ease-in-out infinite;
}
.brand .ceiba-mark { filter: drop-shadow(0 2px 5px rgba(0, 33, 71, .28)); }
.site-footer .ceiba-mark { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }

/* --- Full lockup: tree + CEIBA + ROUTES, the trunk doubling as the letter I --- */
.ceiba-lockup { width: 100%; height: auto; display: block; overflow: visible; }
/* The logo IS the header brand now — no separate name or tagline beside it. */
.brand--nav { display: block; flex: none; }
.brand--nav .ceiba-lockup--compact {
  height: clamp(56px, 6vw, 68px); width: auto;
  transition: height .3s var(--ease);
  filter: drop-shadow(0 2px 6px rgba(0, 18, 40, .35));
}
.site-header.scrolled .brand--nav .ceiba-lockup--compact { height: clamp(48px, 5vw, 56px); }
.brand--lockup { width: clamp(150px, 16vw, 186px); display: block; }
.site-footer .brand--lockup .ceiba-lockup { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.brand-tag { display: block; margin-top: 10px; font-family: var(--font-head); font-size: .62rem;
  font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--green-500); }

/* --- the wind: every leaf pivots on its own stem, each at its own pace ---
   NOTE: named mark-leaf, not leaf — a bare .leaf rule further down drives the
   leaves falling across the page and would hijack these if the names collided. */
.mark-leaf {
  transform-box: fill-box;
  transform-origin: 50% 100%;             /* the stem end, where it meets the branch */
  animation: mark-leaf-sway 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.47s);
}
/* leaves further out catch more wind */
.mark-leaf[style*="--i:3"], .mark-leaf[style*="--i:4"] { animation-duration: 3.1s; }
.mark-leaf[style*="--i:5"], .mark-leaf[style*="--i:6"] { animation-duration: 2.7s; }

/* --- the energy: sap climbing from the roots, through the trunk, out the branches --- */
.ceiba-mark__sap { stroke: var(--mark-sap, #8CB567); }
.ceiba-mark__sap path {
  stroke-dasharray: 7 132;
  animation: sap-rise 3.8s cubic-bezier(.5, 0, .5, 1) infinite;
  animation-delay: calc(var(--i) * 0.55s);
  filter: drop-shadow(0 0 2.5px rgba(140, 181, 103, .85));
}

@keyframes mark-leaf-sway {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(5deg); }
}
@keyframes sap-rise {
  0%   { stroke-dashoffset: 139; opacity: 0; }
  12%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes mark-lean {
  0%, 100% { transform: rotate(-1.4deg); }
  50%      { transform: rotate(1.4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ceiba-mark, .mark-leaf, .ceiba-mark__sap path { animation: none !important; }
  .ceiba-mark__sap { opacity: .45; }
  .ceiba-mark__sap path { stroke-dasharray: none; }
}
.brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .22em; color: var(--green-600); text-transform: uppercase; }
.site-header:not(.scrolled) .brand,
.site-header:not(.scrolled) .brand small { color: #fff; }
.site-header:not(.scrolled) .nav-links a { color: rgba(255,255,255,.92); }
.site-header:not(.scrolled) .nav-links a:hover { color: #fff; }
.site-header:not(.scrolled) .lang-toggle { color: #fff; border-color: rgba(255,255,255,.4); }
.site-header:not(.scrolled) .hamburger span { background: #fff; }

.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { font-weight: 500; font-size: .97rem; color: var(--charcoal); position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--gold); transition: width .25s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  padding: 8px 12px; border-radius: 100px; color: var(--charcoal);
  border: 1.5px solid var(--line); transition: all .2s;
}
.lang-toggle:hover { border-color: var(--green-500); color: var(--green-700); }
.lang-switch .flag { display: inline-flex; flex: none; }
.lang-switch .flag svg {
  width: 20px; height: 14px; display: block; border-radius: 2.5px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}
.lang-toggle .caret { width: 13px; height: 13px; flex: none; transition: transform .2s var(--ease); }
.lang-switch { position: relative; }
.lang-switch.open .caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 300;
  min-width: 172px; padding: 6px; margin: 0; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 22, 48, .18);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 9px 12px; border-radius: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--charcoal);
  transition: background .15s, color .15s;
}
.lang-menu li:hover { background: rgba(54, 164, 193, .12); color: var(--green-700); }
.lang-menu li.active { background: rgba(79, 115, 71, .14); color: var(--green-700); }
[dir="rtl"] .lang-menu { right: auto; left: 0; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 24px; height: 2.5px; background: var(--charcoal); border-radius: 2px; transition: .3s var(--ease); }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-block: 140px 80px; color: #fff; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(26,106,177,.35) 0%, transparent 55%),
    radial-gradient(90% 80% at 10% 100%, rgba(214,155,61,.16) 0%, transparent 50%),
    linear-gradient(155deg, #013163 0%, #002147 60%, #001730 100%);
}
.hero::after { /* subtle noise/leaf pattern */
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 6c8 8 8 22 0 40M30 6C22 14 22 28 30 46' fill='none' stroke='%23ffffff' stroke-opacity='.03' stroke-width='2'/%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--lime); }
.hero .lead { color: #C4D6EC; margin: 22px 0 32px; max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 38px; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: #AAC5E2; }
.hero-badge svg { width: 20px; height: 20px; color: var(--lime); flex: none; }

/* hero stat chips card */
.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px); border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.hero-card h3 svg { width: 22px; height: 22px; color: var(--gold); }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-stat { background: rgba(255,255,255,.06); border-radius: var(--radius-sm); padding: 16px; }
.hero-stat .num { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--lime); line-height: 1; }
.hero-stat .lbl { font-size: .78rem; color: #A9BED6; margin-top: 6px; }

/* ---- Hero right column: big living logo + stats card ---- */
.hero-right { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.hero-right .hero-card { width: 100%; }
.hero-logo {
  position: relative; width: clamp(190px, 24vw, 270px); aspect-ratio: 1;
  display: grid; place-items: center; flex: none;
}
.hero-logo .hl-img {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain;
  transform-origin: 50% 86%;
  animation: logo-sway 5.6s ease-in-out infinite;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .38));
}
.hero-logo .hl-aura {
  position: absolute; inset: -14%; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(94, 187, 212, .55) 0%, rgba(214, 155, 61, .22) 42%, transparent 70%);
  animation: logo-aura 4.6s ease-in-out infinite;
}
.hero-logo .hl-energy {
  position: absolute; inset: -1.5%; border-radius: 50%; z-index: 2; pointer-events: none;
  background: conic-gradient(from 0deg,
    transparent 0 50%,
    rgba(94, 187, 212, .0) 53%,
    rgba(94, 187, 212, .9) 65%,
    rgba(147, 211, 227, 1) 74%,
    rgba(255, 255, 255, 1) 80%,
    rgba(214, 155, 61, .95) 86%,
    transparent 91% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
  filter: blur(.4px);
  animation: logo-spin 4s linear infinite;
}
.hero-logo .hl-spark { position: absolute; inset: 0; z-index: 3; pointer-events: none; animation: logo-spin 4s linear infinite; }
.hero-logo .hl-spark::before {
  content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 14px 5px rgba(214, 155, 61, .95), 0 0 22px 8px rgba(94, 187, 212, .7);
}
@media (prefers-reduced-motion: reduce) {
  .hl-img, .hl-energy, .hl-spark, .hl-aura { animation: none !important; }
  .hero-logo .hl-spark { opacity: .6; }
}

/* ---- Hero full-width background video ---- */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #001730; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(38, 58, 34, .32) 0%, rgba(38, 58, 34, .20) 34%, rgba(38, 58, 34, .08) 66%, rgba(38, 58, 34, .14) 100%),
    linear-gradient(180deg, rgba(38, 58, 34, .08) 0%, transparent 36%, rgba(24, 40, 22, .26) 100%),
    radial-gradient(120% 90% at 82% 6%, rgba(79, 115, 71, .10), transparent 60%);
}
.hero::after { z-index: 1; } /* keep the leaf pattern above the video, below content */

/* Stats card + logo medallion straddling its top edge */
.hero-right { position: relative; }
.hero-right .hero-card { position: relative; margin-top: 62px; }
.hero-logo--medallion {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  width: clamp(92px, 11vw, 120px); z-index: 6;
}
.hero-logo--medallion .hl-img { filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .5)); }
.hero-logo--medallion .hl-spark::before { width: 8px; height: 8px; margin-left: -4px; top: -4px; }

/* ---------- Marquee / trust strip ---------- */
.trust { background: var(--green-900); padding-block: 20px; border-top: 1px solid rgba(255,255,255,.06); }
.trust .container { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 56px); flex-wrap: wrap; color: #8AA6C4; font-size: .82rem; letter-spacing: .04em; }
.trust strong { color: var(--lime); font-family: var(--font-head); }

/* ---------- Pillars (life-changing) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  position: relative; overflow: hidden;
}
.pillar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--green-500), var(--lime)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar:hover::before { transform: scaleX(1); }
.pillar .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(26,106,177,.14), rgba(54,164,193,.2)); color: var(--green-600); margin-bottom: 20px; }
.pillar .ic svg { width: 28px; height: 28px; }
.pillar h3 { margin-bottom: 10px; }

/* ---------- Benefits grid ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit {
  background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .3s var(--ease), border-color .3s;
}
.benefit:hover { transform: translateY(-4px); border-color: var(--green-300); }
.benefit .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm); color: var(--gold-dark); margin-bottom: 16px; }
.benefit .ic svg { width: 26px; height: 26px; }
.benefit h3 { font-size: 1.18rem; margin-bottom: 8px; }
.benefit p { font-size: .96rem; }
.benefit .tag { display: inline-block; margin-top: 14px; font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--green-700); background: rgba(26,106,177,.12); padding: 5px 12px; border-radius: 100px; }

/* ---- Alternating card colors: blue / light green (bold) ---- */
/* Benefits grid */
.benefits .benefit:nth-child(odd)  { background: #CFE4F8; border-color: #9EC8EC; }
.benefits .benefit:nth-child(even) { background: #D3ECC3; border-color: #A6D68C; }
.benefits .benefit:nth-child(odd)  .ic { background: linear-gradient(135deg, rgba(26,106,177,.38), rgba(54,164,193,.32)); color: #0E4A82; box-shadow: none; }
.benefits .benefit:nth-child(even) .ic { background: linear-gradient(135deg, rgba(79,115,71,.42), rgba(134,179,106,.38)); color: #37522F; box-shadow: none; }
.benefits .benefit:nth-child(odd)  h3 { color: #0E4A82; }
.benefits .benefit:nth-child(even) h3 { color: #37522F; }
.benefits .benefit:nth-child(odd)  .tag { color: #fff; background: #1A6AB1; }
.benefits .benefit:nth-child(even) .tag { color: #fff; background: #4F7347; }
.benefits .benefit:nth-child(odd):hover  { border-color: #1A6AB1; }
.benefits .benefit:nth-child(even):hover { border-color: #4F7347; }

/* Pillars (home) */
.pillars .pillar:nth-child(odd)  .ic { background: linear-gradient(135deg, rgba(26,106,177,.34), rgba(54,164,193,.30)); color: #0E4A82; }
.pillars .pillar:nth-child(even) .ic { background: linear-gradient(135deg, rgba(79,115,71,.40), rgba(134,179,106,.36)); color: #37522F; }
.pillars .pillar:nth-child(odd)::before  { background: linear-gradient(90deg, #1A6AB1, #36A4C1); }
.pillars .pillar:nth-child(even)::before { background: linear-gradient(90deg, #4F7347, #86B36A); }

/* Steps (how to apply) — alternate the number circle */
.steps .step:nth-child(odd)  .n { background: linear-gradient(135deg, #1A6AB1, #145A94); }
.steps .step:nth-child(even) .n { background: linear-gradient(135deg, #4F7347, #6E9466); }

/* Values as pillars (About page) */
.values .pillar:nth-child(odd)  .ic { background: linear-gradient(135deg, rgba(26,106,177,.34), rgba(54,164,193,.30)); color: #0E4A82; }
.values .pillar:nth-child(even) .ic { background: linear-gradient(135deg, rgba(79,115,71,.40), rgba(134,179,106,.36)); color: #37522F; }
.values .pillar:nth-child(odd)::before  { background: linear-gradient(90deg, #1A6AB1, #36A4C1); }
.values .pillar:nth-child(even)::before { background: linear-gradient(90deg, #4F7347, #86B36A); }

/* Next Mile numbered cards (Benefits page) — all green so they stand out */
.values .value:nth-child(odd)  .k,
.values .value:nth-child(even) .k { color: #B7F08A; opacity: 1; }

/* Health mini-cards (Benefits page split) */
.split-media .benefit:nth-child(odd)  .ic { background: linear-gradient(135deg, rgba(26,106,177,.30), rgba(54,164,193,.26)); color: #0E4A82; box-shadow: none; }
.split-media .benefit:nth-child(even) .ic { background: linear-gradient(135deg, rgba(79,115,71,.36), rgba(134,179,106,.32)); color: #37522F; box-shadow: none; }

/* ---------- Stats band (counters) ---------- */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.statband--3 { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin-inline: auto; }
.statband .stat { text-align: center; }
.statband .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); background: linear-gradient(120deg, var(--green-400), var(--lime)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.statband .lbl { color: #A9BED6; margin-top: 10px; font-size: .92rem; }

/* ---------- Steps (how to apply) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-img { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.step-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.step:hover .step-img img { transform: scale(1.06); }
.step-body { padding: 0 22px 26px; }
.step .n { counter-increment: step; position: relative; z-index: 1; font-family: var(--font-head); font-weight: 800; font-size: 1rem; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--green-500), var(--green-700)); margin-top: -26px; margin-bottom: 14px; box-shadow: 0 6px 16px rgba(0, 33, 71, .28), 0 0 0 4px #fff; }
.step .n::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { font-size: .92rem; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { padding: 34px 28px; border-radius: var(--radius-lg); background: linear-gradient(155deg, rgba(94,140,80,.42), rgba(60,92,55,.28)); border: 1px solid rgba(140,190,110,.5); box-shadow: 0 10px 26px rgba(0,33,71,.25); }
.value .k { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: #B7F08A; opacity: 1; }
.value h3 { margin: 6px 0 10px; }

/* ---- CEIBA logo beside a section title ---- */
.title-row { display: flex; align-items: center; gap: 14px; margin: 16px 0 14px; }
.section-head .title-row { justify-content: center; margin: 18px 0 14px; }
.title-row h2 { margin: 0; }
/* Section titles carry the full CE|BA brand, not the bare tree — so the box is
   the lockup's 202:176 shape, not a square. */
.title-logo { width: clamp(84px, 10vw, 116px); height: auto; flex: none; display: block; color: var(--foliage); }
.title-logo .ceiba-lockup { width: 100%; height: auto; }
@media (max-width: 560px) { .title-logo { width: 78px; } }

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.media-illustration { width: 100%; height: 100%; }
.split-media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.growth-media { aspect-ratio: 16 / 10; }

/* Benefit photos — medium size (a bit larger than the step thumbnails) */
.media-stat, .media-photo { position: relative; aspect-ratio: auto; height: clamp(230px, 27vw, 320px); }
.media-stat > img, .media-photo > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.media-photo:hover > img { transform: scale(1.05); }
.media-stat__overlay { position: absolute; inset: auto 0 0 0; padding: 26px 28px; color: #fff;
  background: linear-gradient(to top, rgba(1,20,45,.94) 0%, rgba(1,20,45,.62) 52%, transparent 100%); }
.media-stat__big { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.4rem); color: var(--lime); line-height: 1; }
.media-stat__big span { font-size: 1.4rem; color: #fff; }
.media-stat__overlay p { color: #C4D6EC; margin-top: 4px; font-size: .9rem; }
.media-stat__row { display: flex; gap: 28px; margin-top: 14px; }
.media-stat__row b { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: #fff; display: block; }
.media-stat__row span { color: #A9BED6; font-size: .78rem; }

/* About story photo (portrait Ceiba tree) — stretches to match the text column height */
.about-photo { aspect-ratio: auto; align-self: stretch; height: auto; min-height: clamp(360px, 44vw, 560px); }
.about-photo > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.about-photo:hover > img { transform: scale(1.04); }

/* Photo banner (e.g. Next Mile education) */
.benefit-banner { max-width: 560px; margin: 0 auto 44px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); height: clamp(230px, 27vw, 320px); border: 1px solid rgba(255,255,255,.14); }
.benefit-banner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.benefit-banner:hover img { transform: scale(1.05); }
.checklist { margin-top: 22px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--slate); }
.checklist li svg { width: 22px; height: 22px; color: var(--green-500); flex: none; margin-top: 2px; }
.checklist li b { color: var(--ink); }

/* ---------- Prose (long-form culture text) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin-bottom: 18px; font-size: 1.06rem; line-height: 1.75; color: var(--slate); text-align: justify; }
/* Justify body paragraphs for a tidy, ordered look */
.split p, .split .lead { text-align: justify; }
.split p b { color: var(--ink); font-weight: 700; }
.prose p:last-child { margin-bottom: 0; }
.prose b { color: var(--ink); font-weight: 700; }
.prose .prose-final { margin-top: 28px; padding: 24px 28px; background: rgba(79, 115, 71, .1); border-left: 4px solid var(--foliage); border-radius: 14px; }
.prose .prose-final b { color: var(--green-800); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(40px, 6vw, 72px); text-align: center; background: linear-gradient(135deg, var(--green-700), var(--green-900)); color: #fff; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; width: 380px; height: 380px; background: radial-gradient(circle, rgba(214,155,61,.3), transparent 70%); top: -120px; right: -80px; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #C4D6EC; position: relative; max-width: 52ch; margin: 16px auto 30px; }
.cta-band .hero-cta { justify-content: center; position: relative; }

/* ---------- Jobs ---------- */
.jobs-list { display: grid; gap: 20px; }
.job {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 30px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s;
}
.job:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
/* keep the Apply button above the decorative silver frame (::after) so it is always clickable */
.job .btn { position: relative; z-index: 2; }
.job .job-ic { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(26,106,177,.14), rgba(54,164,193,.22)); color: var(--green-600); }
.job .job-ic svg { width: 30px; height: 30px; }
.job h3 { font-size: 1.35rem; margin-bottom: 4px; }
.job .job-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.job .job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: .78rem; padding: 5px 12px; border-radius: 100px; }
.badge--open { color: var(--foliage-d); background: rgba(79,115,71,.16); }
.badge--closed { color: #8A6420; background: rgba(214,155,61,.18); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
@media (max-width: 640px) { .job { grid-template-columns: 1fr; text-align: left; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 60px); }
.contact-info { display: grid; gap: 22px; align-content: start; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .ic { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; background: rgba(26,106,177,.12); color: var(--green-600); }
.contact-item .ic svg { width: 24px; height: 24px; }
.contact-item h4 { font-family: var(--font-head); color: var(--green-900); margin-bottom: 2px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--charcoal); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--cloud); border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(26,106,177,.14); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.form-success { display: none; margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(79,115,71,.14); color: var(--foliage-d); font-weight: 600; }
.form-success.show { display: block; }

/* ---- Application form (contact section → Google Form) ---- */
.apply-form h3 { font-family: var(--font-head); color: var(--green-900); font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.form-sub { color: var(--slate); margin: 6px 0 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: end; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field select { appearance: none; cursor: pointer; padding-inline-end: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362748A' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: right 14px center; }
[dir="rtl"] .field select { background-position: left 14px center; }
.field textarea { min-height: 96px; }
/* Yes / No questions as two pill buttons */
fieldset.yesno { border: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.yesno legend { float: left; width: 100%; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--charcoal); margin-bottom: 8px; }
.yesno label { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 92px; padding: 11px 20px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--cloud); font-weight: 600; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s; }
.yesno input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.yesno label:has(input:checked) { border-color: var(--green-600); background: rgba(26,106,177,.12); color: var(--green-700); }
.yesno label:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(26,106,177,.2); }
/* validation */
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea,
.yesno.is-invalid label { border-color: #C2410C; }
.yesno.is-invalid legend, .field.is-invalid > label { color: #C2410C; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.apply-form .btn--block { margin-top: 8px; }
.apply-form .btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.form-status:empty { display: none; }
.form-status { margin-top: 14px; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; }
.form-status.is-ok { background: rgba(79,115,71,.14); color: var(--foliage-d); }
.form-status.is-error { background: rgba(194,65,12,.1); color: #9A3412; }
.contact-info .team-photo { margin-top: 6px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 160px 0 70px; color: #fff; overflow: hidden;
  background: radial-gradient(100% 120% at 80% 0%, rgba(26,106,177,.3), transparent 55%), linear-gradient(160deg, #013163, #002147); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.page-hero p { color: #C4D6EC; max-width: 60ch; margin-top: 14px; text-align: justify; }
.breadcrumb { font-size: .85rem; color: #8AA6C4; margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--lime); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #9DB4D0; padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand .brand small { color: var(--green-300); }
.footer-brand p { color: #8AA6C4; font-size: .94rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-head); color: #fff; font-size: .95rem; margin-bottom: 16px; letter-spacing: .02em; }
.footer-col a, .footer-col li { display: block; color: #9DB4D0; font-size: .94rem; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--lime); }
.footer-cta .btn { margin-top: 6px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: #7A93B2; }
.social { display: flex; gap: 12px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #AAC5E2; transition: background .2s, transform .2s; }
.social a:hover { background: var(--green-600); color: #fff; transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99; background: var(--green-900);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 40px;
  transform: translateX(100%); transition: transform .4s var(--ease); visibility: hidden;
}
body.menu-open .mobile-nav { transform: none; visibility: visible; }
.mobile-nav a { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: #fff; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-nav .btn { margin-top: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 460px; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pillars, .benefits, .values { grid-template-columns: 1fr 1fr; }
  .statband { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-actions .btn--apply-nav { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .pillars, .benefits, .values, .steps, .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- Falling green leaves (page-wide ambient) ---------- */
.leaves { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 40; }
.leaf {
  position: absolute; top: -10vh; will-change: transform;
  animation-name: leaf-fall; animation-timing-function: linear; animation-iteration-count: infinite;
}
.leaf > i {
  display: block; width: 100%; height: 100%;
  animation-name: leaf-sway; animation-timing-function: ease-in-out;
  animation-iteration-count: infinite; animation-direction: alternate;
}
.leaf svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 1px rgba(0, 40, 20, .18)); }
@keyframes leaf-fall { to { transform: translateY(120vh); } }
@keyframes leaf-sway {
  from { transform: translateX(-16px) rotate(0deg); }
  to   { transform: translateX(16px) rotate(var(--spin, 200deg)); }
}

/* ---------- Leaf swirl around the Apply button ---------- */
.apply-swirl { position: relative; display: inline-flex; }
.apply-swirl .swirl-leaf {
  position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; margin: -7.5px;
  pointer-events: none; z-index: 2; opacity: .9;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22C4.5 18 4 8.5 11 3c1.2-1 3-1 4.2 0 7 5.5 6.5 15-3.2 19Z' fill='%235E8A50'/%3E%3Cpath d='M12 21C11 15 12.5 8.5 15 4.5' stroke='%23BEF264' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  filter: drop-shadow(0 1px 1px rgba(0, 40, 20, .25));
  animation: apply-swirl var(--dur, 5s) linear infinite;
}
@keyframes apply-swirl {
  from { transform: rotate(0deg) translateX(var(--r, 44px)) rotate(0deg) scale(.85); }
  50%  { transform: rotate(180deg) translateX(calc(var(--r, 44px) * 1.15)) rotate(180deg) scale(1.1); }
  to   { transform: rotate(360deg) translateX(var(--r, 44px)) rotate(360deg) scale(.85); }
}

/* ---------- Scroll-down cue (hero) ---------- */
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; z-index: 4; color: #fff;
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(4px); animation: cue-bounce 1.8s ease-in-out infinite; opacity: .9;
}
.scroll-cue:hover { background: rgba(255, 255, 255, .22); }
.scroll-cue svg { width: 20px; height: 20px; }
@keyframes cue-bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 9px); } }

/* The "Ready to apply?" contact card is a <button> — match the <a> siblings */
button.contact-item { width: 100%; text-align: left; font: inherit; color: inherit; }
[dir="rtl"] button.contact-item { text-align: right; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .leaves { display: none; }
  .swirl-leaf { display: none; }
  .scroll-cue { animation: none; }
}

/* ================= Silver frames =================
   One metal edge on every card and photo. Kept at the very end of the file on
   purpose: earlier attempts sat mid-sheet and .job/.form/.benefit-banner —
   which are declared later — quietly overrode the border back to grey. */
.pillar, .benefit, .step, .job, .form, .value,
.split-media, .benefit-banner, .hero-card,
.about-photo, .media-stat, .media-photo {
  border: 1px solid var(--silver);
}
/* photos read as framed pictures, so their metal is a touch heavier */
.split-media, .benefit-banner, .about-photo, .media-stat, .media-photo {
  border-width: 3px;
}
/* the thin bright line just inside the metal — what sells it as silver */
.pillar, .benefit, .step, .job, .form { position: relative; }
.pillar::after, .benefit::after, .step::after, .job::after, .form::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 0 0 1px var(--silver-lit);
}
/* the alternating benefit cards set their own border via :nth-child, which is
   more specific than the rule above — match that specificity to win. */
.benefits .benefit:nth-child(odd),
.benefits .benefit:nth-child(even) { border-color: var(--silver); }

/* =====================================================================
   DARK THEME — vivid mode
   Toggled by data-theme="dark" on <html>. Backgrounds drop to near-black
   navy so the brand colours can go full neon on top of them.
   ===================================================================== */
:root[data-theme="dark"] {
  --green-900: #050D16;   /* near-black navy — dark sections */
  --green-800: #0A1826;
  --green-700: #3BD0FF;   /* links + tags, now luminous */
  --green-600: #2ED9FF;   /* eyebrows + icons */
  --green-500: #22E3F5;
  --green-400: #66F0FF;
  --green-300: #A5F8FF;
  --lime:      #FFE04D;

  --foliage:   #A8FF5C;   /* vivid leaf green */
  --foliage-d: #7FE637;

  --gold:      #FFC93D;
  --gold-dark: #FFAE1F;
  --gold-soft: #3E3113;

  --ink:       #ECF8FF;
  --charcoal:  #D8ECF9;
  --slate:     #A9C6DA;
  --muted:     #7D99AE;
  --line:      #23394D;
  --silver:    #8FA8BF;
  --silver-lit: rgba(255, 255, 255, .16);
  --mist:      #0B1A24;   /* tinted sections */
  --cloud:     #0C1A27;
  --white:     #070F18;   /* page background */

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .55);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .65);
}

/* Surfaces that were hard-coded white in the light theme */
:root[data-theme="dark"] .pillar,
:root[data-theme="dark"] .step,
:root[data-theme="dark"] .job,
:root[data-theme="dark"] .form,
:root[data-theme="dark"] .lang-menu { background: #0E1F2E; }
:root[data-theme="dark"] .benefit .ic { background: #14293B; }
:root[data-theme="dark"] .btn--light { --btn-bg: #14293B; --btn-fg: var(--green-300); }
:root[data-theme="dark"] .site-header.scrolled { background: rgba(7, 15, 24, .9); }
:root[data-theme="dark"] .lang-menu li { color: var(--ink); }
:root[data-theme="dark"] .lang-menu li:hover { background: rgba(34, 227, 245, .16); color: var(--green-300); }
:root[data-theme="dark"] .lang-menu li.active { background: rgba(168, 255, 92, .16); color: var(--foliage); }
:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .field textarea { background: #14293B; color: var(--ink); border-color: #23405A; }
:root[data-theme="dark"] .yesno label { background: #14293B; border-color: #23405A; }
:root[data-theme="dark"] .yesno label:has(input:checked) { background: rgba(46, 217, 255, .16); border-color: var(--green-400); color: var(--green-300); }
:root[data-theme="dark"] .form-sub { color: #9FB3C8; }
:root[data-theme="dark"] .form-status.is-ok { background: rgba(168, 255, 92, .12); color: #BEF264; }
:root[data-theme="dark"] .form-status.is-error { background: rgba(251, 146, 60, .14); color: #FDBA74; }

/* The alternating benefit cards go electric */
:root[data-theme="dark"] .benefits .benefit:nth-child(odd)  { background: #10283D; }
:root[data-theme="dark"] .benefits .benefit:nth-child(even) { background: #10331F; }
:root[data-theme="dark"] .benefits .benefit:nth-child(odd):hover  { border-color: var(--green-500); }
:root[data-theme="dark"] .benefits .benefit:nth-child(even):hover { border-color: var(--foliage); }

/* Tinted sections and the "Why choose CEIBA?" feature band */
:root[data-theme="dark"] .section--leaf {
  background: linear-gradient(180deg, #0C2415 0%, #103018 100%);
}
:root[data-theme="dark"] .value {
  background: linear-gradient(155deg, rgba(168, 255, 92, .18), rgba(34, 227, 245, .12));
  border-color: rgba(168, 255, 92, .45);
}
:root[data-theme="dark"] .value .k { color: var(--foliage); }

/* Headings and body copy need to be luminous, not merely light */
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4 { color: var(--ink); }
:root[data-theme="dark"] .eyebrow { background: rgba(46, 217, 255, .14); }
:root[data-theme="dark"] .tag,
:root[data-theme="dark"] .benefit .tag { background: rgba(46, 217, 255, .16); color: var(--green-300); }
:root[data-theme="dark"] .trust { background: #0A1826; color: var(--green-300); }
:root[data-theme="dark"] .btn--ghost { --btn-fg: var(--green-300); box-shadow: inset 0 0 0 2px rgba(46, 217, 255, .5); }

/* The logo's sap runs brighter in the dark */
:root[data-theme="dark"] { --mark-sap: #A8FF5C; --mark-word: #A8FF5C; }

/* ---- The toggle itself ---- */
.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 100px; color: var(--charcoal);
  border: 1.5px solid var(--line); transition: color .2s, border-color .2s, background .2s;
}
.theme-toggle:hover { border-color: var(--green-500); color: var(--green-600); }
.theme-toggle svg { width: 19px; height: 19px; }
.site-header:not(.scrolled) .theme-toggle { color: #fff; border-color: rgba(255, 255, 255, .4); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* In the dark theme the tree must not inherit --green-900: that is near-black
   and the tree vanished into the dark header. Light silver instead, everywhere
   the logo appears. The CEIBA wordmark stays neon green beside it. */
:root[data-theme="dark"] .brand,
:root[data-theme="dark"] .title-logo { color: #D3E1EE; }
:root[data-theme="dark"] .brand .ceiba-mark,
:root[data-theme="dark"] .brand .ceiba-lockup,
:root[data-theme="dark"] .title-logo .ceiba-lockup {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .7));
}

/* ---- Team photo in the contact section (under the contact cards) ----
   A real metal frame: outer bevel, inner shadow line, and a soft mat edge,
   rather than a single flat border. */
.team-photo {
  position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  padding: 8px;
  background: linear-gradient(145deg, #F4F7FA 0%, #C3CDD8 28%, #9BA8B7 52%, #D6DEE7 76%, #AAB6C4 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    var(--shadow-lg);
}
.team-photo img {
  /* fixed shape so the frame holds even before the photo loads — no layout jump */
  width: 100%; aspect-ratio: 16 / 11; display: block; object-fit: cover;
  border-radius: calc(var(--radius-lg) - 8px);
  box-shadow: 0 0 0 1px rgba(0, 33, 71, .35), 0 6px 18px rgba(0, 33, 71, .28);
  transition: transform .6s var(--ease);
}
.team-photo:hover img { transform: scale(1.03); }
/* the metal reads slightly cooler and dimmer against a dark page */
:root[data-theme="dark"] .team-photo {
  background: linear-gradient(145deg, #94A3B3 0%, #5D6B7C 28%, #43505F 52%, #7E8C9C 76%, #4C5968 100%);
}
:root[data-theme="dark"] .team-photo img { box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 6px 18px rgba(0, 0, 0, .6); }

/* The closing quote of "Why choose CEIBA?" sets its text in --green-800, which
   the dark theme redefines as near-black navy — invisible on the dark green
   panel. Give it a luminous leaf tone and lift the panel behind it. */
:root[data-theme="dark"] .prose .prose-final {
  background: rgba(168, 255, 92, .1);
  border-left-color: #A8FF5C;
  box-shadow: 0 0 0 1px rgba(168, 255, 92, .18);
}
:root[data-theme="dark"] .prose .prose-final b { color: #DCFBC0; }
:root[data-theme="dark"] .prose .prose-final { color: #DCFBC0; }

/* When the benefit cards were darkened for the dark theme, their headings,
   icons and badges kept the light theme's deep blue/green — which left them
   at 1.6:1 against their own card, effectively invisible. */
:root[data-theme="dark"] .benefits .benefit:nth-child(odd)  h3 { color: #7FE4FF; }
:root[data-theme="dark"] .benefits .benefit:nth-child(even) h3 { color: #B6FF7E; }
:root[data-theme="dark"] .benefits .benefit:nth-child(odd)  .ic { color: #7FE4FF; background: rgba(46, 217, 255, .18); }
:root[data-theme="dark"] .benefits .benefit:nth-child(even) .ic { color: #B6FF7E; background: rgba(168, 255, 92, .18); }
:root[data-theme="dark"] .benefits .benefit:nth-child(odd)  .tag { color: #06202F; background: #7FE4FF; }
:root[data-theme="dark"] .benefits .benefit:nth-child(even) .tag { color: #0C2410; background: #B6FF7E; }
:root[data-theme="dark"] .badge--open   { color: #B6FF7E; background: rgba(168, 255, 92, .16); }
:root[data-theme="dark"] .badge--closed { color: #FFD166; background: rgba(255, 201, 61, .18); }

/* Closing quote of "Why choose CEIBA?" — gold panel with black type.
   Declared last so it wins over both the base rule and the dark-theme one;
   gold is bright enough that black reads on it in either theme. */
.prose .prose-final,
:root[data-theme="dark"] .prose .prose-final {
  background: linear-gradient(135deg, #F5CE5E 0%, #D69B3D 100%);
  border-left: 5px solid #9E6D12;
  color: #150E03;
  box-shadow: 0 8px 24px rgba(158, 109, 18, .28);
}
.prose .prose-final b,
:root[data-theme="dark"] .prose .prose-final b { color: #150E03; }
