/* ==========================================================================
   WEBAURA — Light-mode colour system (v2)
   Everything here is scoped to [data-theme="light"], so dark mode is untouched.
   Built on the original WEBAURA greens and peach, with a natural palette:
     deep forest #254A3C · sage #A8BDA5 · soft olive #879879 · warm brown #86664F
     light sand #E9DFCF · warm ivory #F8F5EF · stone #EFE9DE · charcoal #26302A
   Sections take a "tone": ivory, stone, sage, olive, sand, or forest. Forest
   sections redefine the colour variables locally, so every component inside them
   (cards, buttons, badges, images) switches to light-on-dark automatically.
   ========================================================================== */

:root[data-theme="light"] {
  --forest: #254A3C; --forest-2: #1E3D31; --sage: #A8BDA5; --sage-50: #E6ECE2; --olive: #879879; --olive-50: #E8E7D8;
  --brown: #86664F; --brown-ink: #6E523E; --sand: #E9DFCF; --stone: #EFE9DE; --ivory: #F8F5EF; --charcoal: #26302A;
  --bg: #F8F5EF; --bg-2: #F1EBE1; --surface: #FFFDF9; --surface-2: #F3EEE5; --field: #FFFFFF;
  --ink: #26302A; --text: #26302A; --text-2: #3B4640; --muted: #54605A;
  --line: #E3DACB; --line-2: #D4C8B4;
  --soft: #E6ECE2; --warn: #744B00;
  --sh: 0 1px 2px rgba(38,48,42,.05), 0 22px 44px -26px rgba(38,48,42,.38);
  --sh-glow: 0 30px 70px -40px rgba(37,74,60,.45);
}

/* ---------- Section tones ---------- */
[data-theme="light"] .sec--alt { background: var(--stone); }
[data-theme="light"] .tone-ivory { background: var(--ivory); }
[data-theme="light"] .tone-stone { background: var(--stone); }
[data-theme="light"] .tone-sage { background: linear-gradient(180deg, #E9EEE5, var(--sage-50)); }
[data-theme="light"] .tone-olive { background: radial-gradient(70% 90% at 15% 0%, rgba(135,152,121,.20), transparent 60%), linear-gradient(180deg, #ECEADC, var(--olive-50)); }
[data-theme="light"] .tone-sand { background: radial-gradient(60% 80% at 100% 0%, rgba(168,189,165,.35), transparent 60%), linear-gradient(180deg, #EFE6D7, var(--sand)); }
[data-theme="light"] .tone-stone, [data-theme="light"] .tone-sage, [data-theme="light"] .tone-olive, [data-theme="light"] .tone-sand { --bg-2: var(--surface-2); }

/* Forest: light text on deep green, used for business systems, Care+, the closing CTA and the footer */
[data-theme="light"] .tone-forest, [data-theme="light"] .tone-forest-deep, [data-theme="light"] .tone-charcoal {
  color-scheme: dark;
  --bg: #254A3C; --bg-2: #214437; --surface: #2B5345; --surface-2: #30594A; --field: #1F3F33;
  --ink: #F8F5EF; --text: #EAF0E8; --text-2: #D7E1D6; --muted: #BCCABD;
  --line: rgba(248,245,239,.14); --line-2: rgba(248,245,239,.24);
  --accent: #B9CDB5; --accent-2: #D3E0CF; --on-accent: #1B3529; --soft: #2F5546;
  --peach: #E2B48C; --peach-ink: #EBC7A4; --accent-warm: #EBC7A4; --ok: #BFD9B8; --warn: #F2CF7A; --err: #FFB4A6;
  --glass: color-mix(in srgb, var(--surface) 80%, transparent);
  --sh: 0 1px 2px rgba(0,0,0,.25), 0 30px 60px -30px rgba(0,0,0,.6);
  --sh-glow: 0 30px 80px -40px rgba(185,205,181,.35);
  --logo-on-dark: block; --logo-on-light: none;
  background: var(--bg); color: var(--text);
}
[data-theme="light"] .tone-forest { background: radial-gradient(60% 70% at 85% 0%, rgba(168,189,165,.22), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(134,102,79,.25), transparent 60%), #254A3C; }
[data-theme="light"] .tone-forest-deep { --bg: #1E3D31; --bg-2: #1A372C; --surface: #25493B; --surface-2: #2A5142;
  background: radial-gradient(60% 80% at 100% 10%, rgba(226,180,140,.16), transparent 60%), radial-gradient(60% 70% at 0% 0%, rgba(168,189,165,.18), transparent 60%), #1E3D31; }
[data-theme="light"] .tone-charcoal { --bg: #26302A; --bg-2: #222B26; --surface: #2E3932; --surface-2: #333F38; --field: #212A25; --line: rgba(248,245,239,.12); background: #26302A; }
[data-theme="light"] .tone-forest .grad-text, [data-theme="light"] .tone-forest-deep .grad-text, [data-theme="light"] .tone-charcoal .grad-text { background: linear-gradient(90deg, #C9DAC5, #E8C7A3); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Shared light-mode refinements ---------- */
[data-theme="light"] .eyebrow { color: var(--forest); }
[data-theme="light"] .tone-forest .eyebrow, [data-theme="light"] .tone-forest-deep .eyebrow, [data-theme="light"] .tone-charcoal .eyebrow { color: #C9DAC5; }
[data-theme="light"] .btn--primary { --b-bg: var(--forest); --b-bd: var(--forest); }
[data-theme="light"] .btn--primary:hover { --b-bg: #1A362B; --b-bd: #1A362B; }
[data-theme="light"] :is(.tone-forest, .tone-forest-deep, .tone-charcoal) .btn--primary { --b-bg: #E9DFCF; --b-bd: #E9DFCF; --b-fg: #1E3D31; }
[data-theme="light"] :is(.tone-forest, .tone-forest-deep, .tone-charcoal) .btn--primary:hover { --b-bg: #F8F5EF; --b-bd: #F8F5EF; }
[data-theme="light"] .divider-leaf { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--sage), var(--brown), var(--sage), transparent); opacity: .6; }
[data-theme="light"] .phero { background: radial-gradient(60% 90% at 90% 0%, rgba(168,189,165,.32), transparent 60%), radial-gradient(40% 70% at 0% 100%, rgba(134,102,79,.10), transparent 60%), linear-gradient(180deg, #F3F0E8, var(--ivory)); }

/* What we do: ivory with sage card details */
[data-theme="light"] #what .svc { background: var(--surface); border-color: var(--line); }
[data-theme="light"] #what .svc:not(.svc--plus) .svc__body { border-top: 3px solid var(--sage); }
[data-theme="light"] #what .svc .link { color: var(--forest); }
[data-theme="light"] #what .svc:hover { border-color: var(--sage); }

/* Selected work: stone with deeper green accents */
[data-theme="light"] #work .chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #F8F5EF; }
[data-theme="light"] #work .work-item .eyebrow { color: var(--brown-ink); }

/* Before and after: olive treatment */
[data-theme="light"] #before-after .ba { box-shadow: 0 40px 80px -40px rgba(38,48,42,.45); border-color: rgba(135,152,121,.5); }
[data-theme="light"] #before-after .compare-list .ic--good { background: rgba(37,74,60,.12); color: var(--forest); }

/* Business systems on forest */
[data-theme="light"] #systems .sc-item[aria-selected="true"] { background: rgba(248,245,239,.08); border-color: rgba(248,245,239,.22); box-shadow: none; }
[data-theme="light"] #systems .sc-item:hover { background: rgba(248,245,239,.05); }

/* Process on sage */
[data-theme="light"] .tone-sage .step__n { color: var(--brown-ink); }

/* Footer: charcoal green */
[data-theme="light"] .cta.tone-forest::after { background: radial-gradient(60% 70% at 50% 50%, rgba(37,74,60,.78), rgba(30,61,49,.96)), linear-gradient(180deg, #254A3C, transparent 22%, transparent 78%, #1E3D31); }
