/* ==========================================================================
   Orbit — design tokens and global rules
   Orbitfy Inc. · orbitfy.com
   Child theme: orbit-child

   This file is the specification. Every colour value below is measured; do not
   substitute, tint or "adjust for balance", and do not introduce a new pairing
   without measuring it.

   Source: W-01 §7.2 / W-03 v1.1 §2, with the four tokens added by W-06 §5.1.
   NOTE: fonts are self-hosted in inc/fonts.php. There is deliberately NO
   @import here — a Google Fonts request would make the Cookies Policy untrue
   on the first page load (W-02 v1.1 Document C §3.5).
   Version: 1.3.0
   ========================================================================== */

:root {
  /* ---- Colour -------------------------------------------------------- */
  --primary:       #0E7A5F;  /* 5.29:1 on white  — AA for all text         */
  --primary-hover: #0A6650;  /* 6.93:1 on white                            */
  --deep:          #0B5D48;  /* white on it 7.85:1                         */
  --mint:          #35C39A;  /* 2.23:1 on white — dark bgs + gradient only  */
  --mint-bright:   #3DBF9A;  /* gradient start (W-06 §5.1)                  */
  --mint-light:    #8FE3C6;  /* 5.23:1 on deep                             */
  --ink:           #14181B;  /* 17.85:1 on white                           */
  --slate:         #4B5A63;  /* 7.14:1 on white                            */
  --mist:          #F2F7F5;
  --line:          #DCE6E2;  /* 1.28:1 — decorative dividers only          */
  --line-strong:   #6F8189;  /* 4.06:1 on white — control borders (1.4.11) */
  --focus:         #B94F15;  /* 5.01:1 on white                            */
  --focus-dark:    #FFC08A;  /* 4.92:1 on deep                             */
  --white:         #FFFFFF;
  --error:         #A32319;  /* 6.55:1 on white — always with text + icon  */
  --success:       #0A6650;  /* 6.93:1 on white — always with text         */

  /* on-dark surfaces (W-06 §5.1) — footer band and dividers */
  --on-dark-surface: rgba(255,255,255,0.06);
  --on-dark-line:    rgba(255,255,255,0.18);

  /* Added in v1.1 to give the site life. All measured. */
  --paper:      #FAFCFB;  /* default page ground. ink 17.33:1 · primary 5.14:1 */
  --sand:       #F4F0E9;  /* WARM alternate section. ink 15.72:1 · primary 4.66:1 */
  --deep-2:     #073A2D;  /* deepest green, gradient terminus. white 12.71:1   */
  --mint-glow:  #6FD9B4;  /* bright accent ON DARK ONLY. on deep 4.59:1        */

  /* TWO gradients, and the rule that separates them.
     White text over the display gradient FAILS at its bright end — #3DBF9A
     measures 2.3:1. So the display gradient is decorative and never carries
     text; the safe gradient is clamped to the dark half, where white runs
     from 5.29:1 to 12.71:1. Measured, not preferred. */
  --gradient-display: linear-gradient(135deg, #3DBF9A 0%, #0E7A5F 55%, #073A2D 100%);
  --gradient-safe:    linear-gradient(135deg, #0E7A5F 0%, #073A2D 100%);
  --gradient: var(--gradient-display);   /* back-compat alias */

  --backdrop: rgba(20,24,27,0.55);

  /* ---- Type ---------------------------------------------------------- */
  --font-display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* The artboards' own clamps, transcribed rather than approximated. The
     earlier rem+vw forms landed 2 to 3px short of the design at every desktop
     width — h2 read 35.4px against a specified 38px, which is enough to make
     a page feel quieter than it was drawn. The px floor is what keeps a pure
     vw middle term safe here; body and small stay off vw entirely, because a
     reader who zooms must not have the body text scale with the window. */
  --t-display: clamp(40px, 4.4vw, 64px);
  --t-h1:      clamp(34px, 3.8vw, 52px);
  --t-h2:      clamp(28px, 3vw, 38px);
  --t-h3:      clamp(22px, 2.2vw, 26px);
  --t-h4:      clamp(19px, 1.6vw, 21px);
  --t-lead:    clamp(19px, 1.5vw, 21px);
  --t-body:    clamp(17px, 1rem + 0.09vw, 18px);
  --t-small:   16px;              /* floor — never below 16px */

  --lh-display: 1.2;
  --lh-body:    1.65;
  --measure:    720px;            /* max text column, 60–75 characters */

  /* ---- Space --------------------------------------------------------- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --container:  1280px;
  --gutter:     24px;
  --page-pad:   24px;             /* 20px at ≤768px */
  --section-y:  128px;            /* 96px tablet · 72px mobile */

  /* ---- Radius + elevation -------------------------------------------- */
  --r-input: 8px; --r-card: 14px; --r-panel: 24px; --r-pill: 999px;
  --e-1: 0 1px 2px rgba(20,24,27,.06);
  --e-2: 0 12px 32px rgba(20,24,27,.10);
  --e-3: 0 32px 80px rgba(7,58,45,.18);   /* hero panel */

  /* ---- Motion -------------------------------------------------------- */
  --d-micro: 150ms; --d-panel: 280ms; --d-reveal: 400ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* ---- Chrome -------------------------------------------------------- */
  --header-h:      88px;          /* min-height, never height (W-06 P2-7)  */
  --header-h-sm:   68px;
  --widget-zone:   96px;          /* bottom-right, accessibility widget    */
  --banner-clear: 120px;          /* desktop banner right padding (W-06 §6.2) */

  /* z-order. The consent banner sits ABOVE the accessibility panel so that
     consent controls stay operable on a first visit (W-06 §6.1). */
  --z-header:     40;
  --z-a11y-panel: 60;
  --z-consent:    70;
  --z-offcanvas:  90;
  --z-skip:      100;
}

@media (max-width: 1024px) { :root { --section-y: 96px; } }
@media (max-width: 768px)  { :root { --section-y: 72px; --page-pad: 20px; } }
