/* =========================
   SooSnow Core Styles
   - Modern, accessible, fast
   - Palette, type scale, utilities
   ========================= */

/* ---- CSS Custom Properties (Palette & Spacing) ---- */
:root{
  --charcoal:#1E1F22;
  --midnight:#0E1116;
  --ice:#D8EFFF;
  --glacier:#9CC7FF;
  --accent:#FF7A1A;
  --white:#FFFFFF;

  --radius-sm:12px;
  --radius-md:16px;
  --shadow-sm:0 4px 12px rgba(0,0,0,.12);
  --shadow-md:0 10px 24px rgba(0,0,0,.18);
  --space-1:8px;
  --space-2:12px;
  --space-3:16px;
  --space-4:20px;
  --space-5:24px;
  --space-6:32px;
  --space-7:40px;
  --space-8:56px;
  --space-9:80px;
  --space-10:120px;
}

/* ---- Basic Normalize ---- */
*{box-sizing:border-box}
html:focus-within{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ice);
  background:var(--midnight);
  line-height:1.6;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--glacier);outline-offset:2px}

/* ---- Type Scale (clamp) ---- */
body{font-size:clamp(15px, 1.2vw, 18px)}
h1{font-size:clamp(32px, 5vw, 54px);line-height:1.15;margin:0 0 var(--space-4)}
h2{font-size:clamp(26px, 3.4vw, 36px);line-height:1.2;margin:0 0 var(--space-4)}
h3{font-size:clamp(20px, 2.2vw, 24px);line-height:1.25;margin:0 0 var(--space-2)}
h4,h5,h6{font-size:clamp(16px, 1.6vw, 18px);margin:0 0 var(--space-2)}
p{margin:0 0 var(--space-4)}
.subtle{color:#cfe7ff}
.visually-hidden{position:absolute !important;clip:rect(1px,1px,1px,1px);padding:0;border:0;height:1px;width:1px;overflow:hidden;white-space:nowrap}
.skip-link{position:absolute;left:-9999px;top:auto}
.skip-link:focus{left:16px;top:16px;background:var(--white);color:var(--charcoal);padding:8px 12px;border-radius:8px}

/* ---- Layout Utilities ---- */
.container{width:100%;max-width:1200px;margin:0 auto;padding:0 var(--space-5)}
.section{padding:var(--space-9) 0}
@media (min-width:1024px){.section{padding:var(--space-10) 0}}
.grid{display:grid;gap:var(--space-6)}
.two-col{display:grid;grid-template-columns:1fr;gap:var(--space-6)}
@media (min-width:768px){.two-col{grid-template-columns:1fr 1fr}}
.three-col{display:grid;grid-template-columns:1fr;gap:var(--space-6)}
@media (min-width:768px){.three-col{grid-template-columns:repeat(3,1fr)}}

/* ---- Surfaces, Cards, Shadows, Rounding ---- */
.surface{background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));border:1px solid rgba(156,199,255,.15)}
.rounded{border-radius:var(--radius-md)}
.shadow{box-shadow:var(--shadow-sm)}
.card{
  background:rgba(255,255,255,.02);
  border:1px solid rgba(156,199,255,.16);
  border-radius:var(--radius-md);
  padding:var(--space-6);
  box-shadow:var(--shadow-sm);
}
.card img{width:28px;height:28px;margin-bottom:var(--space-3);opacity:.9;filter:brightness(0) invert(1) sepia(1) saturate(2.5) hue-rotate(180deg) brightness(1.1)}

/* ---- Buttons ---- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 18px;border-radius:14px;border:1px solid transparent;
  font-weight:600;cursor:pointer;transition:transform .06s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--accent);color:var(--midnight);box-shadow:0 6px 16px rgba(255,122,26,.3)}
.btn-primary:hover{filter:brightness(1.05)}
.btn-secondary{background:transparent;color:var(--ice);border-color:rgba(156,199,255,.5)}
.btn-secondary:hover{background:rgba(156,199,255,.12)}
.btn-ghost{background:transparent;color:var(--ice)}

/* ---- Header (Sticky, Transparent -> Solid) ---- */
.site-header{
  position:sticky;top:0;z-index:50;
  background:linear-gradient(180deg, rgba(14,17,22,.85), rgba(14,17,22,.35));
  backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid rgba(156,199,255,.12);
  transition:background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-solid{
  background:rgba(14,17,22,.98);
  border-bottom-color:rgba(156,199,255,.2);
  box-shadow:0 6px 18px rgba(0,0,0,.35);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.brand{display:inline-flex;flex-direction:column}
.brand .brand-icon{display:inline-flex;align-items:center;gap:8px;color:var(--glacier)}
.header-inner .brand{flex-direction:row;align-items:center;gap:10px}
.brand .wordmark{font-weight:800;letter-spacing:.5px}
.brand .subline{display:block;font-size:.9rem;color:#b9d9ff;opacity:.9}

/* ---- Primary Nav & Mobile Menu ---- */
.site-nav{position:relative}
.menu-toggle{
  display:inline-flex;align-items:center;gap:8px;
  background:transparent;border:1px solid rgba(156,199,255,.35);color:var(--ice);
  padding:8px 12px;border-radius:10px;
}
@media (min-width:768px){.menu-toggle{display:none}}
.menu{
  list-style:none;margin:0;padding:0;
  position:absolute;right:0;top:calc(100% + 8px);width:min(86vw,320px);
  background:rgba(14,17,22,.98);border:1px solid rgba(156,199,255,.2);
  border-radius:14px;box-shadow:var(--shadow-md);overflow:hidden;
  max-height:0;opacity:0;transform:translateY(-6px);
  transition:max-height .25s ease, opacity .2s ease, transform .2s ease;
}
.menu.is-open{max-height:70vh;opacity:1;transform:translateY(0)}
.menu li a{display:block;padding:12px 16px}
.menu li a:hover{background:rgba(156,199,255,.12)}
@media (min-width:768px){
  .menu{position:static;display:flex;gap:18px;background:transparent;border:none;box-shadow:none;max-height:unset;opacity:1;transform:none;width:auto}
  .menu li a{padding:8px 0}
}

/* ---- Hero ---- */
.hero{
  background:
    radial-gradient(120% 120% at 10% 0%, rgba(156,199,255,.08), rgba(255,255,255,0) 60%),
    linear-gradient(135deg, rgba(156,199,255,.10), rgba(255,255,255,0) 45%),
    linear-gradient(180deg, rgba(14,17,22,1), rgba(14,17,22,.85));
  background-size: 200% 200%, 180% 180%, 100% 100%;
  padding:var(--space-9) 0 var(--space-8);
}
@media (min-width:1024px){.hero{padding:var(--space-10) 0}}
.hero-inner{display:grid;gap:var(--space-7);align-items:center;width:100%;max-width:100%}
@media (min-width:1024px){.hero-inner{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}}
.hero-content{overflow:hidden;min-width:0;word-wrap:break-word;max-width:100%}
.hero-content h1{overflow-wrap:break-word;word-break:break-word;max-width:100%}
.hero-media{overflow:hidden;min-width:0;width:100%}
.hero-subhead{color:#cfe7ff;max-width:60ch;overflow-wrap:break-word}
.hero-ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:var(--space-4);margin-bottom:var(--space-5)}
.hero-badges{display:grid;grid-template-columns:1fr 1fr;gap:10px;list-style:none;padding:0;margin:0}
@media (min-width:768px){.hero-badges{grid-template-columns:repeat(4,1fr)}}
.hero-badges li{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid rgba(156,199,255,.18);border-radius:12px;background:rgba(255,255,255,.02);min-width:0;overflow:hidden}
.hero-badges li span{overflow-wrap:break-word;word-break:break-word;flex:1;min-width:0;font-size:clamp(13px,1.1vw,15px);line-height:1.4}
.hero-badges img{width:20px;height:20px;opacity:.9;flex-shrink:0;filter:brightness(0) invert(1) sepia(1) saturate(2.5) hue-rotate(180deg) brightness(1.1)}
.hero-figure{position:relative;border-radius:16px;overflow:hidden;box-shadow:var(--shadow-md);border:1px solid rgba(156,199,255,.18);width:100%;max-width:100%;aspect-ratio:3/2}
.hero-figure img{width:100%;height:100%;object-fit:cover;display:block}
.hero-figure::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(14,17,22,.15), rgba(14,17,22,.35))}


/* ---- Trust Strip ---- */
.trust-strip{background:rgba(255,255,255,.02);border-top:1px solid rgba(156,199,255,.12);border-bottom:1px solid rgba(156,199,255,.12)}
.trust-strip p{text-align:center;padding:10px 0;color:#b9d9ff}

/* ---- Services / Equipment / Coverage / Compliance / Pricing / Proof / FAQ ---- */
.services .cards,.pricing .cards{display:grid;gap:var(--space-6)}
.equipment-grid{display:grid;gap:var(--space-6)}
@media (min-width:768px){.equipment-grid{grid-template-columns:1fr 1fr;align-items:center}}
.equipment-list{list-style:none;padding:0;margin:0;display:grid;gap:10px;grid-template-columns:1fr 1fr}
@media (min-width:768px){.equipment-list{grid-template-columns:1fr}}
.equipment-figure{border-radius:16px;overflow:hidden;border:1px solid rgba(156,199,255,.18)}
.map-and-list{display:grid;gap:var(--space-6)}
@media (min-width:768px){.map-and-list{grid-template-columns:2fr 1fr}}
.map-embed iframe{width:100%;height:380px;border:0;border-radius:14px;box-shadow:var(--shadow-sm)}
.coverage-list{margin:0;padding-left:18px}
.checklist{margin:0;padding-left:18px}
.testimonials{display:grid;gap:var(--space-6)}
.testimonial{margin:0;padding:var(--space-6);border-radius:14px;background:rgba(255,255,255,.02);border:1px solid rgba(156,199,255,.16)}
.faq .faq-grid{display:grid;gap:12px}
.faq details{background:rgba(255,255,255,.02);border:1px solid rgba(156,199,255,.16);border-radius:12px;padding:10px 14px}
.faq summary{cursor:pointer;font-weight:600}
.faq summary::-webkit-details-marker{display:none}

/* ---- CTA Strip ---- */
.cta-strip{background:linear-gradient(180deg, rgba(156,199,255,.12), rgba(255,255,255,0));padding:var(--space-8) 0;border-top:1px solid rgba(156,199,255,.12);border-bottom:1px solid rgba(156,199,255,.12)}
.cta-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:var(--space-3)}

/* ---- Footer ---- */
.site-footer{background:rgba(255,255,255,.02);border-top:1px solid rgba(156,199,255,.14);padding-top:var(--space-8)}
.footer-inner{display:grid;gap:var(--space-6)}
@media (min-width:768px){.footer-inner{grid-template-columns:1.2fr 1fr}}
.footer-menu{list-style:none;margin:0;padding:0;display:grid;gap:8px;grid-auto-flow:row}
.footer-legal{border-top:1px solid rgba(156,199,255,.12);padding:14px 0;color:#b9d9ff}
.contact-link{text-decoration:underline}

/* ---- Modal (Quote) ---- */
.modal[hidden]{display:none}
.modal{position:fixed;inset:0;z-index:100}
.modal-backdrop{position:absolute;inset:0;background:rgba(14,17,22,.7);backdrop-filter:blur(4px)}
.modal-dialog{
  position:relative;z-index:101;max-width:640px;margin:8vh auto;background:rgba(14,17,22,.98);
  border:1px solid rgba(156,199,255,.22);border-radius:16px;box-shadow:var(--shadow-md);
  padding:var(--space-6)
}
.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--space-4)}
.modal-close{background:transparent;border:0;color:var(--ice);font-size:28px;line-height:1;cursor:pointer}
.quote-form .form-row{display:grid;gap:6px;margin-bottom:12px}
.quote-form input,.quote-form textarea{
  background:rgba(255,255,255,.03);border:1px solid rgba(156,199,255,.25);border-radius:10px;
  padding:10px 12px;color:var(--ice)
}
.quote-form input::placeholder,.quote-form textarea::placeholder{color:#b9d9ff}
.form-actions{display:flex;gap:10px;margin-top:var(--space-3)}

/* ---- Helpers ---- */
ul{padding-left:1.1rem}
hr{border:0;border-top:1px solid rgba(156,199,255,.12);margin:var(--space-6) 0}
figure{margin:0}

/* ---- Media Queries ---- */
@media (min-width:768px){
  .hero-subhead{max-width:48ch}
}
@media (min-width:1024px){
  .header-inner{padding:18px 0}
}


