/* ============================================================
   Sloan Way Auto Glass — shared stylesheet
   Palette: midnight blue / glacier blue / brushed silver / white / cyan
   ============================================================ */

:root{
  --midnight:      #091B30;
  --midnight-2:    #0F2846;
  --midnight-3:    #14304F;
  --panel-line:    #24405E;
  --glacier:       #AFD0E3;
  --glacier-soft:  #E4EFF5;
  --silver:        #C7CED6;
  --silver-soft:   #EDF0F3;
  --white:         #FBFDFF;
  --cyan:          #2FD8EE;
  --cyan-dim:      #1CA9BD;
  --ink:           #0B1524;
  --text-muted:    #57697C;
  --text-on-dark:  #D9E4EC;
  --text-on-dark-muted: #93A7B9;

  --radius-sm: 4px;
  --container: 1160px;
  --edge: polygon(0 0, 100% 0, 100% calc(100% - 26px), 0 100%);
  --edge-rev: polygon(0 26px, 100% 0, 100% 100%, 0 100%);

  --shadow-panel: 0 20px 50px -25px rgba(5, 15, 30, 0.55);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4{
  font-family: "Space Grotesk", "Inter", sans-serif;
  color: var(--midnight);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 600; }
h2{ font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 600; }
h3{ font-size: 1.25rem; font-weight: 600; }
p{ margin: 0 0 1em; max-width: 68ch; }
a{ color: inherit; }
img{ max-width: 100%; display: block; }
ul{ margin: 0; padding: 0; }
li{ list-style: none; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section{ padding: 88px 0; }
.section--tight{ padding: 56px 0; }
.section--dark{ background: var(--midnight); color: var(--text-on-dark); }
.section--dark h2, .section--dark h3{ color: var(--white); }
.section--dark p{ color: var(--text-on-dark-muted); }
.section--soft{ background: var(--silver-soft); }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan-dim);
  margin-bottom: 14px;
}
.eyebrow::before{
  content: "";
  width: 22px;
  height: 2px;
  background: var(--cyan);
  display: inline-block;
}

.lede{ font-size: 1.1rem; color: var(--text-muted); max-width: 60ch; }
.section--dark .lede{ color: var(--text-on-dark-muted); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn:focus-visible{ outline: 2px solid var(--cyan); outline-offset: 2px; }
.btn--primary{ background: var(--cyan); color: var(--midnight); font-weight: 600; }
.btn--primary:hover{ background: var(--white); }
.btn--ghost{ background: transparent; border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn--ghost:hover{ border-color: var(--cyan); color: var(--cyan); }
.btn--outline{ background: transparent; border-color: var(--midnight); color: var(--midnight); }
.btn--outline:hover{ border-color: var(--cyan-dim); color: var(--cyan-dim); }
.btn--block{ width: 100%; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 27, 48, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(175, 208, 227, 0.14);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img{ width: 40px; height: 40px; }
.brand-text{ display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong{
  font-family: "Space Grotesk", sans-serif;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-text span{
  color: var(--glacier);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  font-weight: 500;
}

.nav-list{ display: flex; gap: 30px; align-items: center; }
.nav-list a{
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-list a:hover, .nav-list a[aria-current="page"]{ color: var(--cyan); border-color: var(--cyan); }

.nav-toggle{
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  margin: 4px 0;
}

.header-actions{ display: flex; align-items: center; gap: 16px; }
.header-phone{
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-phone svg{ width: 16px; height: 16px; stroke: var(--cyan); }

@media (max-width: 880px){
  .nav-list{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--midnight-2);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(175,208,227,0.14);
    display: none;
  }
  .nav-list.is-open{ display: flex; }
  .nav-list li{ width: 100%; }
  .nav-list a{ display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-toggle{ display: inline-block; }
  .header-phone span{ display: none; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  background: linear-gradient(190deg, var(--midnight) 0%, var(--midnight-2) 60%, var(--midnight-3) 100%);
  color: var(--white);
  overflow: hidden;
  clip-path: var(--edge);
  padding-bottom: 40px;
}
.hero .container{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 68px;
  padding-bottom: 40px;
}
.hero h1{ color: var(--white); }
.hero .lede{ color: var(--text-on-dark-muted); margin-bottom: 28px; }
.hero-ctas{ display: flex; gap: 16px; flex-wrap: wrap; }
.hero-art{ position: relative; }
.hero-art svg{ width: 100%; height: auto; }

@media (max-width: 880px){
  .hero .container{ grid-template-columns: 1fr; padding-top: 40px; }
  .hero-art{ order: -1; }
}

/* ---------- Trust / segment strip ---------- */
.segments{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(175,208,227,0.14);
}
.segment{
  padding: 26px 28px;
  border-right: 1px solid rgba(175,208,227,0.14);
}
.segment:last-child{ border-right: none; }
.segment h4{
  font-family: "Space Grotesk", sans-serif;
  color: var(--cyan);
  font-size: 0.95rem;
  margin: 0 0 6px;
  font-weight: 600;
}
.segment p{ color: var(--text-on-dark-muted); font-size: 0.9rem; margin: 0; }

@media (max-width: 700px){
  .segments{ grid-template-columns: 1fr; }
  .segment{ border-right: none; border-bottom: 1px solid rgba(175,208,227,0.14); }
}

/* ---------- Section header ---------- */
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Glass pane cards ---------- */
.card-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px){ .card-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .card-grid{ grid-template-columns: 1fr; } }

.pane-card{
  background: var(--white);
  border: 1px solid var(--silver);
  padding: 30px 26px 26px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pane-card:hover{ border-color: var(--cyan-dim); box-shadow: var(--shadow-panel); }
.pane-card .icon{
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--cyan-dim);
}
.pane-card h3{ margin-bottom: 8px; }
.pane-card p{ color: var(--text-muted); font-size: 0.96rem; margin-bottom: 0; }

.pane-card--dark{
  background: var(--midnight-2);
  border-color: var(--panel-line);
}
.pane-card--dark h3{ color: var(--white); }
.pane-card--dark p{ color: var(--text-on-dark-muted); }
.pane-card--dark .icon{ color: var(--cyan); }

/* ---------- Split / feature rows ---------- */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px){ .split{ grid-template-columns: 1fr; gap: 32px; } }
.split.reverse .split-media{ order: 2; }

.checklist li{
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--silver-soft);
  color: var(--text-muted);
}
.section--dark .checklist li{ border-color: rgba(255,255,255,0.08); color: var(--text-on-dark-muted); }
.checklist li:last-child{ border-bottom: none; }
.checklist svg{ width: 18px; height: 18px; flex-shrink: 0; color: var(--cyan-dim); margin-top: 2px; }
.section--dark .checklist svg{ color: var(--cyan); }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--midnight);
  color: var(--white);
  clip-path: var(--edge-rev);
  padding: 70px 0 60px;
  text-align: center;
}
.cta-band h2{ color: var(--white); }
.cta-band .lede{ margin: 0 auto 26px; }
.cta-actions{ display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Divider (angled seam between light/dark sections) ---------- */
.seam{
  height: 46px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.seam--to-dark{ background: var(--midnight); }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--midnight);
  color: var(--text-on-dark-muted);
  padding: 56px 0 28px;
  border-top: 1px solid rgba(175,208,227,0.14);
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 34px;
}
@media (max-width: 780px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand{ display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img{ width: 34px; height: 34px; }
.footer-brand strong{ color: var(--white); font-family: "Space Grotesk", sans-serif; font-size: 1rem; }
.footer-col h4{
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  font-family: "Space Grotesk", sans-serif;
}
.footer-col a{
  display: block;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 5px 0;
}
.footer-col a:hover{ color: var(--cyan); }
.footer-bottom{
  border-top: 1px solid rgba(175,208,227,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero{
  background: linear-gradient(190deg, var(--midnight) 0%, var(--midnight-2) 100%);
  color: var(--white);
  clip-path: var(--edge);
  padding: 60px 0 56px;
}
.page-hero h1{ color: var(--white); margin-bottom: 10px; }
.page-hero .lede{ color: var(--text-on-dark-muted); }
.breadcrumb{
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 18px;
}
.breadcrumb a{ color: var(--glacier); text-decoration: none; }

/* ---------- Forms ---------- */
.form-panel{
  background: var(--white);
  border: 1px solid var(--silver);
  padding: 36px;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px){ .form-row{ grid-template-columns: 1fr; } }
.field{ margin-bottom: 20px; }
.field label{
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 7px;
}
.field .hint{ font-weight: 400; color: var(--text-muted); font-size: 0.8rem; }
.field input,
.field select,
.field textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--silver);
  background: var(--white);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.field input:focus,
.field select:focus,
.field textarea:focus{
  outline: none;
  border-color: var(--cyan-dim);
  box-shadow: 0 0 0 3px rgba(47, 216, 238, 0.18);
}
.field textarea{ resize: vertical; min-height: 120px; }
.required-mark{ color: var(--cyan-dim); }

.form-note{ font-size: 0.84rem; color: var(--text-muted); margin-top: 16px; }
.form-success{
  display: none;
  border: 1px solid var(--cyan-dim);
  background: var(--glacier-soft);
  padding: 20px 22px;
  margin-top: 22px;
}
.form-success.is-visible{ display: block; }
.form-success h3{ margin-bottom: 6px; font-size: 1.05rem; }
.form-success p{ margin: 0; color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Contact info list ---------- */
.info-list{ display: flex; flex-direction: column; gap: 22px; }
.info-item{ display: flex; gap: 14px; }
.info-item svg{ width: 22px; height: 22px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.info-item h4{ color: var(--white); margin: 0 0 4px; font-size: 0.98rem; }
.info-item p{ color: var(--text-on-dark-muted); margin: 0; font-size: 0.92rem; }

/* ---------- Legal pages ---------- */
.legal{ max-width: 760px; }
.legal h2{ margin-top: 2.2em; }
.legal h2:first-of-type{ margin-top: 0; }
.legal p, .legal li{ color: var(--text-muted); }
.legal ul{ margin: 0 0 1.2em; padding-left: 1.2em; }
.legal li{ list-style: disc; padding: 3px 0; }
.legal .updated{
  display: inline-block;
  font-size: 0.85rem;
  color: var(--cyan-dim);
  font-weight: 600;
  margin-bottom: 28px;
  border: 1px solid var(--silver);
  padding: 6px 14px;
}

/* ---------- About page specifics ---------- */
.value-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 700px){ .value-grid{ grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.tag-row{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tag{
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
  border: 1px solid var(--panel-line);
  padding: 6px 12px;
}
.section--dark .tag{ color: var(--glacier); }

:focus-visible{ outline: 2px solid var(--cyan-dim); outline-offset: 2px; }
