/*
Theme Name: Glass Tech Auto
Description: Clean, service-first theme for a Toronto auto glass shop.
Version: 2.0
*/

:root {
  --paper: #ffffff;
  --paper-2: #f4f6f8;
  --ink: #0b0d0e;
  --muted: #5b6670;
  --blue: #036cae;
  --blue-deep: #024e7d;
  --blue-soft: #e8f1f8;
  --blue-050: #eef5fb;
  --blue-100: #d6e7f4;
  --blue-700: #024e7d;
  --blue-900: #073a5c;
  --red: #d21f26;
  --red-deep: #a8181e;
  --red-soft: #fdeced;
  --line: #e2e6ea;
  --line-strong: #cfd6dd;
  --bar: #0b0d0e;
  --bar-soft: #1b2024;
  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1180px;
  --shadow: 0 16px 34px -20px rgba(11, 13, 14, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: #0b0d0e;
  background: #ffffff;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-deep);
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 900px) {
  .wrap {
    padding-inline: 40px;
  }
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---- header ---- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bar);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 42px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  color: #c7cfd6;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 13px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav a.active {
  color: #fff;
}

.nav a:hover,
.nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.call {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 18px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}

.call:hover,
.call:focus-visible {
  background: var(--red-deep);
  color: #fff;
  transform: translateY(-1px);
}

.call .ico {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.header-call {
  padding: 11px 16px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.burger i,
.burger i::before,
.burger i::after {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s, opacity 0.2s;
}
.burger i {
  top: 21px;
}
.burger i::before {
  content: "";
  top: -7px;
  left: 0;
  right: 0;
}
.burger i::after {
  content: "";
  top: 7px;
  left: 0;
  right: 0;
}
.burger[aria-expanded="true"] i {
  background: transparent;
}
.burger[aria-expanded="true"] i::before {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] i::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- hero ---- */
.hero {
  background: linear-gradient(180deg, var(--blue-soft), var(--paper) 78%);
  padding-block: clamp(40px, 7vw, 84px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 16px 0 18px;
}

.hero h1 .hl {
  color: var(--blue);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.call-lg {
  font-size: 1.1rem;
  padding: 15px 24px;
}

.ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 20px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.ghost:hover,
.ghost:focus-visible {
  background: var(--blue);
  color: #fff;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ---- placeholder (specimen) ---- */
.specimen {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 220px;
  padding: 24px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--paper-2);
  color: var(--muted);
}

.hero-media .specimen {
  min-height: clamp(240px, 34vw, 400px);
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(3, 108, 174, 0.1), rgba(3, 108, 174, 0.02)),
    var(--blue-soft);
  border: 1.5px dashed var(--line-strong);
}

.specimen .spec-lbl {
  font-size: 0.92rem;
  font-weight: 500;
  max-width: 32ch;
}

.specimen .spec-lbl b {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 7px;
}

/* ---- trust band ---- */
.trust {
  background: linear-gradient(180deg, var(--blue), var(--blue-700));
  color: #fff;
  padding-block: 4px;
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stat {
  padding: 26px 20px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.stat:first-child {
  border-left: 0;
}

.stat .n {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat .l {
  display: block;
  margin-top: 7px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
}

/* ---- sections ---- */
.sec {
  padding-block: 88px;
}

.sec-alt {
  background: var(--paper-2);
}

.sec-head {
  max-width: 60ch;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.sec h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-top: 10px;
}

.sec .lead {
  color: var(--muted);
  margin-top: 14px;
  max-width: 58ch;
}

/* ---- services ---- */
.grid-serv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.svc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.svc:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blue-700);
}

.svc h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 7px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-soft);
}

.svc:hover h3 {
  border-bottom-color: var(--blue);
}

.svc p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---- damage / repair ---- */
.seam {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.state {
  display: grid;
  gap: 12px;
}

.state .specimen {
  min-height: 240px;
}

.state .tagline {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.seam .figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.state.before .tagline {
  color: var(--muted);
}

.state.after .tagline {
  color: var(--blue);
}

/* ---- service areas ---- */
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.areas span,
.areas a {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
}

.areas span:hover,
.areas a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ---- contact ---- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 50px);
  align-items: start;
}

.info {
  display: grid;
  gap: 20px;
}

.info .row {
  display: grid;
  gap: 3px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.info .row .k {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.info .row .v {
  font-size: 1.1rem;
  font-weight: 600;
}

.info .row .v a {
  border-bottom: 2px solid var(--red);
  color: var(--ink);
}

.info .row .v a:hover {
  color: var(--red);
}

.side-stack {
  display: grid;
  gap: 14px;
}

/* ---- final call band ---- */
.final {
  background: var(--red);
  color: #fff;
  text-align: center;
}

.final-inner {
  padding-block: 76px;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.final h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.final .lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 52ch;
}

.call-on-red {
  background: #fff;
  color: var(--red);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  padding: 16px 34px;
}

.call-on-red:hover,
.call-on-red:focus-visible {
  background: #fff;
  color: var(--red-deep);
  transform: translateY(-1px);
}

/* ---- footer ---- */
.foot {
  background: var(--bar);
  color: #9aa3ab;
  padding-block: 40px;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.foot a {
  color: #c7cfd6;
}

.foot a:hover {
  color: #fff;
}

.foot-logo {
  height: 30px;
  width: auto;
  margin-bottom: 14px;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 18px;
}

.foot-nav a {
  color: var(--steel-2);
  font-size: 0.9rem;
  font-weight: 600;
}

.foot-nav a:hover {
  color: #fff;
}

/* ---- motion ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
  }
  .trust-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(3) {
    border-left: 0;
  }
  .visit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .burger {
    display: block;
  }
  .sec {
    padding-block: 56px;
  }
  .final-inner {
    padding-block: 52px;
  }
  .brand-logo {
    height: 34px;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bar-soft);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px 16px;
    display: none;
    margin-left: 0;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 14px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
  }
  .nav a:last-child {
    border-bottom: 0;
  }
  .header-call {
    margin-left: auto;
  }
  .header-call .num {
    display: none;
  }
}

@media (min-width: 761px) {
  .header-call .txt {
    display: none;
  }
}

@media (max-width: 560px) {
  .seam {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .trust-inner {
    grid-template-columns: 1fr;
  }
  .stat {
    border-left: 0;
    padding: 18px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---- inner pages ---- */
.page-hero {
  background: linear-gradient(180deg, var(--blue-soft), var(--paper));
  padding-block: 64px 44px;
}

.crumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.crumb a {
  color: var(--blue);
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.page-hero .lead {
  color: var(--muted);
  margin-top: 14px;
  max-width: 60ch;
}

.prose {
  max-width: 68ch;
}

.prose p {
  color: var(--muted);
  margin-bottom: 16px;
}

.prose p strong {
  color: var(--ink);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.split.align-top {
  align-items: start;
}

.figure {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper-2);
}

.figure img {
  width: 100%;
  height: auto;
}

.figure figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 12px 4px 2px;
}

.reasons {
  display: grid;
  gap: 14px;
}

.reasons li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
}

.reasons li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

.reasons b {
  display: block;
  color: var(--ink);
}

.reasons span {
  color: var(--muted);
  font-size: 0.9rem;
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 800px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 0 20px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  font-weight: 700;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--blue);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq details p {
  color: var(--muted);
  padding-bottom: 18px;
  margin: 0;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 760px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 0;
  border-color: var(--blue);
}

.form-note {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--muted);
}

.hours-list {
  display: grid;
  gap: 0;
  max-width: 360px;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.hours-list li span:last-child {
  color: var(--muted);
}

.map-embed {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-embed iframe {
  width: 100%;
  height: 360px;
  display: block;
}

.badges2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badges2 span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}

