/* =========================================================
   NVA AUTOPARTS — styles.css
   Level-3 visual system, SEO/performance-safe.
   All animations GPU-composited (transform/opacity).
   Respects prefers-reduced-motion. Works with JS disabled.
   ========================================================= */

/* ===== Tokens ===== */
:root{
  --white:#FFFFFF;
  --paper:#F2F3F4;
  --ink:#0E0F11;
  --ink-2:#17181A;
  --ink-soft:#3A3D40;
  --steel:#5B6066;
  --line:#DADDE0;
  --line-dark:#2C2E31;
  --red:#E01F2B;
  --red-dark:#8F0E15;
  --cyan:#3FB8D4;
  --font-display:'Big Shoulders Display', Impact, sans-serif;
  --font-body:'Work Sans', system-ui, sans-serif;
  --font-mono:'IBM Plex Mono', ui-monospace, monospace;
  --radius-tag: 3px;
  --max: 1180px;
  --slide-duration: 3s;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth; scroll-padding-top:80px;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{
    animation-duration:0.001ms !important;
    animation-delay:0s !important;
    transition-duration:0.001ms !important;
  }
  .slide{opacity:1 !important; transform:none !important;}
  .slide:not(:first-child){display:none;}
}

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--white);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:700;
  line-height:1.02;
  margin:0 0 0.4em;
  letter-spacing:0.2px;
}
h1{font-size:clamp(2.6rem,6.6vw,5rem); font-weight:800; letter-spacing:0;}
h2{font-size:clamp(1.9rem,3.8vw,2.9rem);}
h3{font-size:1.3rem;}
h4{font-size:1.05rem; margin-bottom:0.25em;}
p{margin:0 0 1em; color:var(--ink-soft); max-width:62ch;}
a{color:var(--red);}
.mono{font-family:var(--font-mono); font-size:0.92em; letter-spacing:0.2px;}

.wrap{max-width:var(--max); margin:0 auto; padding:0 24px;}
.wrap-narrow{max-width:760px;}

.skip-link{position:absolute; left:-999px; top:0; background:var(--ink); color:var(--white); padding:10px 16px; z-index:200;}
.skip-link:focus{left:12px; top:12px;}
:focus-visible{outline:2.5px solid var(--red); outline-offset:3px;}

/* ===== Preloader ===== */
.preloader{
  position:fixed; inset:0; background:var(--ink); z-index:500;
  display:flex; align-items:center; justify-content:center;
  transition:opacity .5s ease, visibility .5s ease;
}
.preloader.is-done{opacity:0; visibility:hidden;}
.preloader-inner{display:flex; flex-direction:column; align-items:center; gap:16px;}
.pl-fill{ animation: pl-fill 0.9s cubic-bezier(.65,0,.35,1) .1s forwards; }
@keyframes pl-fill{ to{ stroke-dashoffset:0; } }
.preloader-word{color:var(--white); letter-spacing:6px; font-size:1.05rem; margin:0;}
.no-js .preloader{display:none;}

/* ===== Temperature gauge scroll bar ===== */
.temp-gauge{
  position:fixed; top:0; left:0; right:0; height:3px;
  background:transparent; z-index:150; pointer-events:none;
}
.temp-gauge-fill{
  display:block; height:100%; width:0%;
  background:linear-gradient(90deg, var(--red), #FF6A3D);
  box-shadow:0 0 12px rgba(224,31,43,0.7);
  transition:width .12s linear;
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 22px; font-family:var(--font-body); font-weight:600; font-size:0.95rem;
  text-decoration:none; border:2px solid transparent; border-radius:var(--radius-tag);
  transition:transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor:pointer; position:relative; overflow:hidden;
}
.btn-red{background:var(--red); color:var(--white);}
.btn-red:hover{background:var(--red-dark); transform:translateY(-2px); box-shadow:0 8px 20px rgba(224,31,43,0.35);}
.btn-ghost{background:transparent; color:var(--ink); border-color:var(--ink);}
.btn-ghost:hover{background:var(--ink); color:var(--white); transform:translateY(-2px);}
.btn-lg{padding:15px 28px; font-size:1rem;}

/* Heat surge on hover */
.btn-red::after{
  content:""; position:absolute; inset:0;
  background:radial-gradient(circle at center, rgba(255,255,255,0.35) 0%, transparent 60%);
  opacity:0; transition:opacity .35s ease;
}
.btn-red:hover::after{opacity:1;}

/* ===== Header ===== */
.site-header{
  position:sticky; top:0; z-index:100; background:var(--white);
  border-bottom:1px solid var(--line);
  transition:box-shadow .3s ease, background-color .3s ease;
}
.site-header.is-scrolled{box-shadow:0 8px 24px rgba(0,0,0,0.06);}
.header-row{display:flex; align-items:center; gap:24px; padding:14px 24px;}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink);}
.brand-mark{color:var(--ink); display:flex;}
.brand-word{font-family:var(--font-display); font-weight:800; font-size:1.5rem; line-height:1; display:flex; flex-direction:column;}
.brand-sub{font-family:var(--font-body); font-weight:600; font-size:0.6rem; letter-spacing:2.5px; color:var(--red); margin-top:2px;}
.main-nav{margin-left:12px; flex:1;}
.main-nav ul{display:flex; gap:24px; list-style:none; margin:0; padding:0; flex-wrap:wrap;}
.main-nav a{color:var(--ink-soft); text-decoration:none; font-weight:500; font-size:0.94rem; position:relative;}
.main-nav a::after{
  content:""; position:absolute; left:0; bottom:-4px; width:0; height:2px;
  background:var(--red); transition:width .25s ease;
}
.main-nav a:hover{color:var(--red);}
.main-nav a:hover::after{width:100%;}
.header-cta{display:flex; align-items:center; gap:18px;}
.tel-link{color:var(--ink); text-decoration:none; font-weight:600;}
.nav-toggle{display:none; flex-direction:column; gap:5px; background:none; border:0; padding:8px; cursor:pointer;}
.nav-toggle span{width:24px; height:2px; background:var(--ink); display:block; transition:transform .2s ease;}
.mobile-nav ul{list-style:none; margin:0; padding:16px 24px 22px; display:flex; flex-direction:column; gap:16px; border-top:1px solid var(--line);}
.mobile-nav a{color:var(--ink); text-decoration:none; font-weight:600; font-size:1rem;}
.mobile-nav .btn{width:fit-content;}
@media (max-width:1040px){ .main-nav ul{gap:16px;} .main-nav a{font-size:0.9rem;} }
@media (max-width:920px){ .main-nav, .header-cta{display:none;} .nav-toggle{display:flex;} }

/* ===== Hero ===== */
.hero{background:var(--ink); color:var(--white); position:relative; overflow:hidden; isolation:isolate;}
.hero-heat{
  position:absolute; inset:-20% -10% auto -10%; height:120%;
  background:
    radial-gradient(ellipse at 72% 45%, rgba(224,31,43,0.35) 0%, rgba(224,31,43,0) 55%),
    radial-gradient(ellipse at 30% 80%, rgba(63,184,212,0.10) 0%, rgba(63,184,212,0) 55%);
  z-index:0; pointer-events:none;
  animation: heatShift 14s ease-in-out infinite alternate;
}
@keyframes heatShift{
  0%{ transform:translate3d(0,0,0) scale(1); }
  100%{ transform:translate3d(-2%, -1%, 0) scale(1.05); }
}

.hero-grid{
  display:grid; grid-template-columns:1.15fr 0.85fr; gap:48px; align-items:center;
  padding:72px 24px 56px; position:relative; z-index:1;
}
.hero .tag{
  font-family:var(--font-mono); font-size:0.82rem; color:#C7CBCF; margin-bottom:18px;
  border-left:3px solid var(--red); padding-left:10px;
}
.hero h1{color:var(--white); max-width:14ch;}
.hero-lede{color:#C7CBCF; max-width:52ch; font-size:1.05rem;}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap; margin:26px 0 40px;}
.hero .btn-ghost{border-color:#565A5E; color:var(--white);}
.hero .btn-ghost:hover{background:var(--white); color:var(--ink); border-color:var(--white);}
.hero-stats{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:0; padding-top:24px; border-top:1px solid var(--line-dark);}
.hero-stats dt{font-size:0.78rem; color:#8C9096; margin-bottom:4px;}
.hero-stats dd{margin:0; font-weight:600; font-size:0.95rem; color:var(--white);}
.hero-art{display:flex; justify-content:center; position:relative; min-height:460px;}

/* Hero load sequence */
.reveal{ opacity:0; }
.js .reveal{ animation: revealIn .7s ease-out both; }
.reveal-1{ animation-delay:.05s; }
.reveal-2{ animation-delay:.15s; }
.reveal-3{ animation-delay:.28s; }
.reveal-4{ animation-delay:.42s; }
.reveal-5{ animation-delay:.55s; }
@keyframes revealIn{ from{opacity:0; transform:translateY(12px);} to{opacity:1; transform:translateY(0);} }

/* Without JS: show everything */
.no-js .reveal{ opacity:1; }

/* Hero heat glow */
.heat-glow{
  position:absolute; top:50%; left:50%; width:320px; height:320px;
  background: radial-gradient(circle, rgba(224,31,43,0.45) 0%, rgba(224,31,43,0) 70%);
  transform: translate(-50%,-50%) scale(0.6);
  opacity:0; z-index:0;
  animation: glowPulse 1.4s ease-out .3s both;
  pointer-events:none;
}
@keyframes glowPulse{
  0%{ opacity:0; transform: translate(-50%,-50%) scale(0.6); }
  55%{ opacity:1; transform: translate(-50%,-50%) scale(1.15); }
  100%{ opacity:0.4; transform: translate(-50%,-50%) scale(1); }
}

/* SVG draw animation (longhand so inline delay works) */
.draw{
  stroke-dasharray:1700;
  stroke-dashoffset:1700;
  animation-name: drawLine;
  animation-duration: .8s;
  animation-timing-function: cubic-bezier(.65,0,.35,1);
  animation-fill-mode: forwards;
}
.draw-outline{ animation-duration:.9s; }
.draw-tank{ animation-duration:.5s; }
.draw-fin{ animation-duration:.4s; stroke-dasharray:340; stroke-dashoffset:340; }
@keyframes drawLine{ to{ stroke-dashoffset:0; } }

/* ===== Hero slideshow ===== */
.slideshow{
  position:relative; width:100%; max-width:460px; aspect-ratio:460 / 520;
  z-index:1;
}
.slide{
  position:absolute; inset:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  opacity:0; transition: opacity .8s ease;
  pointer-events:none;
}
.slide.is-active{ opacity:1; pointer-events:auto; }
.slide-art{ width:100%; height:auto; max-height:420px; display:block; }
.slide-label{
  font-family:var(--font-mono); font-size:14px; fill:#8C9096; letter-spacing:3px;
}
.slide-cap{
  margin:8px 0 0; font-size:0.82rem; color:#B7BABD; text-align:center;
  display:flex; gap:10px; align-items:center; justify-content:center;
}
.slide-cap .mono{ color:var(--red); }

/* JS-driven slideshow: rotate using class toggle, CSS handles transition */
.js .slideshow.is-auto .slide.is-active{ opacity:1; }

.slide-dots{
  display:flex; gap:10px; margin-top:16px; justify-content:center;
}
.dot{
  width:10px; height:10px; border-radius:50%; border:1.5px solid #565A5E;
  background:transparent; cursor:pointer; padding:0;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.dot:hover{ transform:scale(1.25); border-color:var(--red); }
.dot.is-active{ background:var(--red); border-color:var(--red); }

@media (max-width:920px){
  .hero-grid{grid-template-columns:1fr; padding-top:44px;}
  .hero-art{order:-1; max-width:320px; margin:0 auto; min-height:380px;}
  .hero-stats{grid-template-columns:1fr 1fr;}
  .hero .tag{font-size:0.74rem;}
}

/* ===== Heat-haze divider ===== */
.fin-divider{
  height:16px;
  background-image:repeating-linear-gradient(90deg, var(--line-dark) 0 2px, transparent 2px 14px);
  position:relative;
}
.heat-haze::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, transparent 0%, rgba(224,31,43,0.35) 50%, transparent 100%);
  filter: blur(6px);
  animation: hazeDrift 6s ease-in-out infinite;
  pointer-events:none;
}
@keyframes hazeDrift{
  0%,100%{ transform:translateX(-4%); opacity:.5; }
  50%    { transform:translateX(4%);  opacity:.9; }
}

/* ===== Trust band (animated counters) ===== */
.trust-band{ background:var(--ink-2); color:var(--white); padding:32px 0; }
.trust-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px;
  text-align:center;
}
.trust-item{ display:flex; flex-direction:column; align-items:center; gap:6px; }
.trust-num{
  font-family:var(--font-display); font-weight:800; font-size:clamp(1.8rem,4vw,2.6rem);
  color:var(--white); line-height:1;
}
.trust-num.is-hot{ color:var(--red); }
.trust-label{
  font-size:0.82rem; color:#8C9096; max-width:20ch;
}
@media (max-width:680px){ .trust-grid{grid-template-columns:1fr 1fr;} }

/* ===== Sections ===== */
.section{padding:76px 0;}
.section-alt{background:var(--paper);}
.section-lede{font-size:1.05rem; max-width:56ch;}

/* Scroll reveal */
.js .reveal-on-scroll{ opacity:0; transform:translateY(20px); transition:opacity .7s ease, transform .7s ease; }
.js .reveal-on-scroll.is-in{ opacity:1; transform:translateY(0); }

/* Story */
.tag-dark{
  font-family:var(--font-mono); font-size:0.82rem; color:var(--red); margin-bottom:16px;
  border-left:3px solid var(--red); padding-left:10px; display:inline-block;
}
.story-facts{display:flex; flex-direction:column; gap:26px; border-left:1px solid var(--line); padding-left:32px;}
.story-facts > div span{display:block; font-size:2.4rem; color:var(--red); font-family:var(--font-display); font-weight:700; line-height:1;}
.story-facts > div p{margin:6px 0 0; font-size:0.92rem; max-width:32ch;}
@media (max-width:920px){ .story-facts{border-left:none; border-top:1px solid var(--line); padding-left:0; padding-top:28px;} }

/* Why */
.why-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1px; background:var(--line); margin-top:36px; border:1px solid var(--line);}
.why-card{background:var(--white); padding:28px 24px; transition:transform .25s ease, background-color .25s ease;}
.why-card:hover{ background:#FAFBFC; transform:translateY(-2px); }
.why-card h3{font-size:1.05rem; font-family:var(--font-body); font-weight:700;}
.why-card p{font-size:0.94rem; margin:0;}
@media (max-width:920px){ .why-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:600px){ .why-grid{grid-template-columns:1fr;} }

/* Catalog */
.catalog-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:36px 0 44px;}
.part-card{
  background:var(--white); border:1px solid var(--line); padding:26px 36px 26px 26px;
  clip-path:polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  position:relative;
  transition: transform .3s ease, box-shadow .3s ease;
  transform-style:preserve-3d;
  will-change:transform;
}
.part-card::before{
  content:""; position:absolute; top:0; right:0; width:18px; height:18px;
  background:var(--red);
  clip-path:polygon(100% 0, 0 0, 100% 100%);
}
.part-card:hover{ box-shadow:0 14px 40px rgba(0,0,0,0.08); }
.part-icon{width:40px; height:40px; color:var(--red); margin-bottom:14px;}
.part-card h3{font-size:1.1rem; font-family:var(--font-body); font-weight:700;}
.part-card p{font-size:0.92rem; margin:0;}
@media (max-width:920px){ .catalog-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:600px){ .catalog-grid{grid-template-columns:1fr;} }

.quick-search h3{font-size:1rem; font-family:var(--font-body); font-weight:700; margin-bottom:14px;}
.quick-search-h2{margin-top:28px;}
.chip-row{display:flex; flex-wrap:wrap; gap:10px;}
.chip{
  border:1.5px solid var(--ink); color:var(--ink); text-decoration:none;
  padding:9px 16px; font-size:0.88rem; font-weight:600; border-radius:20px;
  transition:background-color .15s ease, color .15s ease, transform .15s ease;
}
.chip:hover{background:var(--ink); color:var(--white); transform:translateY(-1px);}

/* ===== Best Sellers / New Arrivals ===== */
.bs-head{display:grid; grid-template-columns:1fr 1fr; gap:32px; align-items:end; margin-bottom:12px;}
@media (max-width:820px){ .bs-head{grid-template-columns:1fr;} }

.bs-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:32px;
}
.bs-card{
  background:var(--white); border:1px solid var(--line); padding:0;
  display:flex; flex-direction:column; overflow:hidden;
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.bs-card:hover{ transform:translateY(-4px); box-shadow:0 16px 36px rgba(0,0,0,0.08); border-color:#C9CDD1; }
.bs-thumb{
  position:relative; aspect-ratio:1/1; background:var(--ink);
  display:flex; align-items:center; justify-content:center; padding:20px;
}
.bs-thumb svg{ width:100%; height:100%; color:#EDEEEF; }
.bs-thumb svg *{ stroke:#EDEEEF; }
.bs-badge{
  position:absolute; top:12px; left:12px;
  font-family:var(--font-mono); font-size:0.72rem; letter-spacing:1px;
  padding:5px 10px; background:rgba(255,255,255,0.12); color:var(--white);
  border-radius:2px; text-transform:uppercase;
}
.bs-badge-red{ background:var(--red); }
.bs-card h3{
  font-family:var(--font-body); font-weight:700; font-size:1rem;
  margin:16px 18px 4px;
}
.bs-meta{ margin:0 18px; color:var(--steel); font-size:0.8rem; }
.bs-cta{
  margin:16px 18px 18px; color:var(--red); font-weight:600; text-decoration:none;
  font-size:0.9rem; transition: letter-spacing .25s ease;
}
.bs-cta:hover{ letter-spacing:0.5px; }
.bs-note{ margin-top:24px; color:var(--steel); font-size:0.8rem; }

@media (max-width:920px){ .bs-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:600px){ .bs-grid{grid-template-columns:1fr;} }

/* ===== Services / two-col ===== */
.two-col{display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:start;}
@media (max-width:920px){ .two-col{grid-template-columns:1fr;} }

.service-list{list-style:none; margin:32px 0 0; padding:0; display:flex; flex-direction:column; gap:22px;}
.service-list li{border-top:1px solid var(--line); padding-top:20px;}
.service-list h3{font-size:1.08rem; font-family:var(--font-body); font-weight:700;}
.service-list p{margin:0; font-size:0.95rem;}

.process-block{background:var(--ink); color:var(--white); padding:32px; border-radius:var(--radius-tag);}
.process-block h3{color:var(--white); font-family:var(--font-body); font-size:1.1rem; margin-bottom:22px;}
.process-steps{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:22px;}
.process-steps li{display:flex; gap:16px; align-items:flex-start;}
.step-no{
  font-family:var(--font-mono); color:var(--red); border:1.5px solid var(--red);
  width:30px; height:30px; min-width:30px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:0.85rem;
}
.process-steps h4{color:var(--white); margin-bottom:4px;}
.process-steps p{color:#B7BABD; margin:0; font-size:0.92rem;}

/* ===== Brands ===== */
.brand-grid{
  list-style:none; margin:32px 0 0; padding:0;
  display:grid; grid-template-columns:repeat(5,1fr); gap:1px; background:var(--line);
  border:1px solid var(--line);
}
.brand-grid li{background:var(--white); padding:16px; font-weight:600; font-size:0.95rem; text-align:center;
  transition:background-color .2s ease, color .2s ease;}
.brand-grid li:hover{ background:var(--ink); color:var(--white); }
@media (max-width:768px){ .brand-grid{grid-template-columns:repeat(3,1fr);} }
@media (max-width:480px){ .brand-grid{grid-template-columns:repeat(2,1fr);} }

/* ===== Testimonials ===== */
.tst-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:32px; }
.tst-card{
  margin:0; background:var(--white); border:1px solid var(--line); padding:26px;
  position:relative;
}
.tst-card::before{
  content:"“"; position:absolute; top:-10px; left:20px;
  font-family:var(--font-display); font-size:4rem; color:var(--red); line-height:1;
}
.tst-card p{ margin:16px 0 12px; font-size:1rem; color:var(--ink); }
.tst-card cite{ font-style:normal; font-size:0.82rem; color:var(--steel); font-family:var(--font-mono); }
@media (max-width:820px){ .tst-grid{grid-template-columns:1fr;} }

/* ===== Areas ===== */
.areas-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:24px; margin-top:36px;}
.areas-grid h3{font-size:1.02rem; font-family:var(--font-body); font-weight:700;}
.areas-grid p{font-size:0.92rem; margin:0;}
@media (max-width:920px){ .areas-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:560px){ .areas-grid{grid-template-columns:1fr;} }

/* ===== FAQ ===== */
.faq-list{margin-top:32px; border-top:1px solid var(--line);}
.faq-item{border-bottom:1px solid var(--line); padding:18px 0;}
.faq-item summary{
  font-family:var(--font-body); font-weight:700; font-size:1.02rem; cursor:pointer;
  list-style:none; display:flex; justify-content:space-between; align-items:center; gap:12px;
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{
  content:"+"; font-family:var(--font-mono); color:var(--red); font-size:1.2rem; flex-shrink:0;
  transition:transform .2s ease;
}
.faq-item[open] summary::after{ content:"–"; }
.faq-item p{margin:14px 0 0; font-size:0.96rem;}

/* ===== Contact ===== */
.contact-details{margin:28px 0; display:flex; flex-direction:column; gap:14px;}
.contact-details dt{font-size:0.78rem; color:var(--steel); margin-bottom:2px;}
.contact-details dd{margin:0; font-weight:600;}
.contact-details a{color:var(--ink); text-decoration:none;}
.contact-details a:hover{color:var(--red);}
.map-frame{border:1px solid var(--line); line-height:0; min-height:380px; background:var(--paper);}
.map-frame iframe{ display:block; }
@media (max-width:920px){ .map-frame{min-height:300px;} }

/* ===== Footer ===== */
.site-footer{background:var(--ink); color:#B7BABD; padding:56px 0 0;}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; padding-bottom:40px;}
.footer-brand{color:var(--white);}
.footer-grid h3{color:var(--white); font-family:var(--font-body); font-size:0.95rem; margin-bottom:14px;}
.footer-grid ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px;}
.footer-grid a{color:#B7BABD; text-decoration:none; font-size:0.94rem;}
.footer-grid a:hover{color:var(--white);}
.footer-grid p{font-size:0.9rem; color:#8C9096;}
.footer-bottom{border-top:1px solid var(--line-dark); padding:18px 24px; font-size:0.85rem; color:#8C9096;}
@media (max-width:768px){ .footer-grid{grid-template-columns:1fr;} }

/* ===== Reduced motion safety net (repeat, high-specificity) ===== */
@media (prefers-reduced-motion: reduce){
  .hero-heat, .heat-glow, .heat-haze::after, .pl-fill{ animation:none !important; }
  .heat-glow{ opacity:0.35; transform:translate(-50%,-50%) scale(1); }
  .pl-fill{ stroke-dashoffset:0; }
  .slide{ opacity:1 !important; transition:none; }
  .slide:not(.is-active){ display:none; }
  .js .reveal, .js .reveal-on-scroll{ opacity:1 !important; transform:none !important; }
  .btn:hover, .chip:hover, .bs-card:hover, .part-card:hover{ transform:none !important; }
}

/* ===== Print (nice touch) ===== */
@media print{
  .site-header, .preloader, .temp-gauge, .trust-band, .bs-grid, .tst-grid,
  .slide-dots, .map-frame, .site-footer .footer-grid > div:nth-child(2),
  .site-footer .footer-grid > div:nth-child(3){ display:none !important; }
  body{ color:#000; }
  .hero{ background:#fff; color:#000; }
  .hero h1, .hero-lede, .hero-stats dd{ color:#000; }
}
/* ===== Footer credit ===== */
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  gap:16px; flex-wrap:wrap;
}
.footer-legal{ margin:0; }
.footer-credit{
  margin:0; display:inline-flex; align-items:center; gap:8px;
  font-size:0.85rem; color:#8C9096;
}
.footer-credit-label{ color:#6B7075; letter-spacing:0.4px; }
.footer-credit-link{
  display:inline-flex; align-items:center; gap:7px;
  color:#D8DADC; text-decoration:none; font-weight:600;
  padding:2px 4px; border-radius:3px;
  transition: color .2s ease, background-color .2s ease;
  position:relative;
}
.footer-credit-link:hover{ color:var(--white); background:rgba(255,255,255,0.05); }
.footer-credit-mark{
  display:inline-flex; align-items:center; justify-content:center;
  color:var(--red);
  transition: transform .3s ease;
}
.footer-credit-link:hover .footer-credit-mark{ transform: translateY(-2px); }
.footer-credit-name{
  font-family:var(--font-display); font-weight:800; font-size:1rem;
  letter-spacing:0.4px; line-height:1;
}
.footer-credit-tld{ color:var(--red); }
.footer-credit-link::after{
  content:""; position:absolute; left:4px; right:4px; bottom:0; height:1.5px;
  background:var(--red); transform:scaleX(0); transform-origin:left;
  transition: transform .3s cubic-bezier(.65,0,.35,1);
}
.footer-credit-link:hover::after{ transform:scaleX(1); }

@media (max-width:520px){
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
}/* ===== Footer social row ===== */
.footer-social-h{ margin-top:22px !important; }
.footer-social{
  list-style:none; margin:10px 0 0; padding:0;
  display:flex; flex-wrap:wrap; gap:14px;
}
.footer-social a{
  display:inline-flex; align-items:center; gap:7px;
  color:#B7BABD; text-decoration:none; font-size:0.9rem; font-weight:500;
  transition:color .2s ease, transform .2s ease;
}
.footer-social a:hover{ color:var(--white); transform:translateX(2px); }
.footer-social svg{ color:var(--red); flex-shrink:0; }

/* ===== Contact section social pills ===== */
.contact-social{ margin-top:28px; }
.contact-social-label{
  font-size:0.78rem; color:var(--steel); letter-spacing:1.5px;
  text-transform:uppercase; margin:0 0 12px;
}
.contact-social-row{ display:flex; flex-wrap:wrap; gap:10px; }
.social-pill{
  display:inline-flex; align-items:center; gap:9px;
  padding:10px 18px; border:1.5px solid var(--ink); border-radius:30px;
  color:var(--ink); text-decoration:none; font-weight:600; font-size:0.9rem;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.social-pill svg{ color:var(--ink); transition:color .2s ease; }
.social-pill:hover{
  background:var(--ink); color:var(--white); border-color:var(--ink);
  transform:translateY(-2px);
}
.social-pill:hover svg{ color:var(--red); }