/* Flux Fusion Corner · light theme and the theme switch.
   Dark is the default design (hero.css + site.css). Light mode applies when <html data-theme="light">,
   set by the small script in <head> (saved choice, else the device setting) and by the switch in the top bar.
   The homepage video hero and the brand photo banners stay dark in both modes. */

/* ---------- theme switch (top bar) ---------- */
.theme-btn{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;border:1px solid var(--line);opacity:.9;transition:color .2s,border-color .2s,opacity .2s}
.theme-btn:hover{color:var(--teal);border-color:var(--teal);opacity:1}
.theme-btn svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.theme-btn .i-moon{display:none}
html[data-theme="light"] .theme-btn .i-sun{display:none}
html[data-theme="light"] .theme-btn .i-moon{display:block}
@media (max-width:760px){.bar-right{gap:16px}}

/* ---------- light tokens ---------- */
html[data-theme="light"]{
  --bg:#F7F6F3;
  --text:#0B0C0C;
  --muted:rgba(11,12,12,.62);
  --line:rgba(11,12,12,.12);
  --teal:#0B7F69;
  --panel:#ECEBE6;
  --panel-2:#E4E3DD;
  --paper:#EAE8E2;
  --err:#B93A26;
  color-scheme:light;
}

/* dark islands: the video hero and the photo banners keep the dark design */
html[data-theme="light"] .hero,
html[data-theme="light"] .cat-head{
  --bg:#050505;--text:#F2F2EE;--muted:rgba(242,242,238,.62);--line:rgba(242,242,238,.14);--teal:#2CC3A5;--panel:#0B0C0C;
  color:var(--text);color-scheme:dark;
}
html[data-theme="light"] .hero{background:#050505}

/* ---------- top bar ---------- */
html[data-theme="light"] .bar.is-scrolled,
html[data-theme="light"]:not(.menu-open) body[data-page]:not([data-page="home"]) .bar{background-color:rgba(247,246,243,.84)}
/* on the homepage the bar sits over the dark video until the page scrolls */
html[data-theme="light"] body[data-page="home"] .bar:not(.is-scrolled){
  --text:#F2F2EE;--line:rgba(242,242,238,.22);--teal:#2CC3A5;color:#F2F2EE}

/* ---------- menu ---------- */
html[data-theme="light"] .site-menu{background:var(--bg)}
html[data-theme="light"] .site-menu::backdrop{background:rgba(0,0,0,.35)}

/* ---------- type, links, buttons ---------- */
html[data-theme="light"] .display em,
html[data-theme="light"] .h2 em{color:rgba(11,12,12,.42)}
html[data-theme="light"] .btn-line{border-color:rgba(11,12,12,.3)}
html[data-theme="light"] .hero .btn-line{border-color:rgba(242,242,238,.35)}
html[data-theme="light"] .link-arrow{border-bottom-color:rgba(11,12,12,.3)}
html[data-theme="light"] .faq-more a{border-bottom-color:rgba(11,12,12,.3)}
html[data-theme="light"] .tabs button:hover,
html[data-theme="light"] .chips button:hover{border-color:rgba(11,12,12,.4)}
html[data-theme="light"] .btn-brand:focus-visible{outline-color:var(--text)}
html[data-theme="light"] .foot-legal{color:rgba(11,12,12,.5)}

/* ---------- brand logos: their own colours on light ---------- */
html[data-theme="light"] .logos img{filter:none;opacity:.85}
html[data-theme="light"] .page-logo{filter:none}

/* ---------- car cards, rows, model stage ---------- */
html[data-theme="light"] .card-media{background:radial-gradient(ellipse 58% 34% at 50% 88%,rgba(11,12,12,.06),transparent 72%)}
html[data-theme="light"] .card-media::after{opacity:.3}
html[data-theme="light"] .car-photo{filter:saturate(.95)}
html[data-theme="light"] .body-ico{background:rgba(11,12,12,.25)}
html[data-theme="light"] .model-stage{background:radial-gradient(ellipse 60% 30% at 50% 86%,rgba(11,12,12,.07),transparent 70%),radial-gradient(ellipse 80% 60% at 50% 40%,#E9E8E3,transparent 75%)}
html[data-theme="light"] .model-stage::after{opacity:.3}
html[data-theme="light"] .model-stage.is-photo img{filter:none}
html[data-theme="light"] .photo-note{color:rgba(255,255,255,.85);text-shadow:0 1px 6px rgba(0,0,0,.5)}

/* ---------- order tracking ---------- */
html[data-theme="light"] .track-stops li::before{border-color:rgba(11,12,12,.35)}

/* ---------- forms ---------- */
html[data-theme="light"] .field input,
html[data-theme="light"] .field select{border-bottom-color:rgba(11,12,12,.25)}
html[data-theme="light"] .field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230B0C0C' stroke-opacity='.6' stroke-width='1.4'/%3E%3C/svg%3E")}
html[data-theme="light"] .field select option,
html[data-theme="light"] .field select optgroup{background:#fff;color:var(--text)}
html[data-theme="light"] .field input::placeholder{color:rgba(11,12,12,.35)}
html[data-theme="light"] .radio-row input:checked+span{background:rgba(11,12,12,.05)}

/* ---------- sticky bars ---------- */
html[data-theme="light"] .filters{background:rgba(247,246,243,.9)}
@media (max-width:760px){
  html[data-theme="light"] .filters{background:var(--bg)}
  html[data-theme="light"] .mobile-cta{background:rgba(247,246,243,.9)}
  html[data-theme="light"] .mobile-cta a{border-color:rgba(11,12,12,.3)}
}
