/*
 * BL Auto Glass — blautoglass.org stylesheet
 * Faithful rebuild of "Auto Glass Example Page.instapage" (Tyler's template),
 * recolored to the BL logo palette: charcoal-teal hero (#1e2b2e replaces the
 * template's #282828), deep teal #004b54 headings, template coral #e85556
 * kept as the CTA accent (see plan — toggle-able to amber).
 * Template font: Lato.
 */
:root {
  --charcoal: #1e2b2e;      /* template #282828, teal-tinted */
  --near-black: #04181c;    /* template #000000 bands, teal-tinted */
  --teal: #004b54;
  --teal-soft: #587e84;
  --accent: #e85556;        /* template CTA coral — kept */
  --accent-dark: #d43c3d;
  --panel: #f0f3f5;         /* template gray panel */
  --paper: #fafafa;
  --ink: #222c2e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', Arial, sans-serif; color: var(--ink); background: #fff; line-height: 1.65; }
img { max-width: 100%; display: block; }

/* ---------- Buttons (template style: solid coral, slight radius) ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 16px 34px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 14px rgba(232, 85, 86, .4);
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; border: 2px solid #fff; box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.dark-band .btn-ghost, .hero .btn-ghost { color: #fff; }

@keyframes ctaPulse {
  0%, 86%, 100% { box-shadow: 0 4px 14px rgba(232, 85, 86, .4); transform: scale(1); }
  90% { box-shadow: 0 0 0 12px rgba(232, 85, 86, 0); transform: scale(1.05); }
  94% { transform: scale(1); }
}
.pulse { animation: ctaPulse 8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Hero (template page_block_header, h=684, bg #282828) ---------- */
.hero {
  background:
    linear-gradient(rgba(20, 32, 35, .88), rgba(20, 32, 35, .92)),
    url('../assets/hero-shattered-suv.webp') center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 56px 24px 84px;
}
.hero-logo {
  height: 64px; margin: 0 auto 44px;
  background: #fff; border-radius: 8px; padding: 8px 16px;
}
.hero h1 {
  font-size: clamp(1.75rem, 4.6vw, 2.75rem);
  font-weight: 900;
  line-height: 1.4;
  max-width: 980px;
  margin: 0 auto;
}
.hero-sub {
  max-width: 760px;
  margin: 28px auto 0;
  font-size: 1.1rem;
  opacity: .95;
}
.hero-btns { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }

/* ---------- Services (template qotlks807sd) ---------- */
.services { padding: 64px 24px 56px; text-align: center; }
.services h2, .how-it-works h2 {
  color: var(--teal); font-size: 2.1rem; font-weight: 900; margin-bottom: 28px;
}
.svc-cols {
  display: flex; gap: 20px 80px; justify-content: center; flex-wrap: wrap;
  text-align: left;
}
.svc-cols ul { list-style: none; }
.svc-cols li {
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
  padding: 9px 0 9px 34px; position: relative;
}
.svc-cols li::before {
  content: '✔'; position: absolute; left: 0; color: var(--accent); font-size: 1.1rem;
}
.svc-cta { margin-top: 36px; }

/* ---------- How it works (template wrt79ok23gb3ayvi — offset accent box) ---------- */
.how-it-works { background: var(--paper); padding: 72px 24px; }
.offset-box { position: relative; max-width: 860px; margin: 0 auto; }
.offset-accent {
  position: absolute; inset: -16px auto auto -16px;
  width: 100%; height: 100%;
  background: var(--accent); border-radius: 4px;
}
.offset-content {
  position: relative;
  background: var(--panel);
  border-radius: 4px;
  padding: 44px 48px;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.offset-content p { margin-top: 14px; font-size: 1.05rem; }
.strong-line { font-weight: 900; color: var(--teal); }
.licensed-line {
  text-align: center; margin-top: 56px;
  color: var(--teal); font-size: 1.45rem; font-weight: 900;
}

/* ---------- Ribbon headers (template red box headers) ---------- */
.ribbon {
  display: flex; justify-content: center; margin-bottom: 44px;
}
.ribbon h2 {
  background: var(--accent); color: #fff;
  font-size: 1.6rem; font-weight: 900;
  padding: 16px 42px; border-radius: 4px;
  box-shadow: 0 6px 18px rgba(232, 85, 86, .35);
}

/* ---------- Happy customers (template 4-photo grid, gray frames) ---------- */
.happy { background: var(--paper); padding: 72px 24px; text-align: center; }
.happy-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 460px));
  gap: 34px; justify-content: center;
  max-width: 1020px; margin: 0 auto;
}
.happy-grid figure {
  background: var(--panel); padding: 14px; border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,.10);
}
.happy-grid img { width: 100%; height: 240px; object-fit: cover; border-radius: 2px; }

/* ---------- Reviews (template footer block) ---------- */
.reviews { background: #fff; padding: 72px 24px; }
.review-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px; max-width: 1180px; margin: 0 auto;
}
.review {
  background: var(--panel); border-radius: 4px; padding: 26px;
  box-shadow: 0 4px 14px rgba(0,0,0,.07);
  display: flex; flex-direction: column;
}
.review .stars { color: #f5a623; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 10px; }
.review p { flex: 1; font-size: .98rem; }
.review span { margin-top: 12px; font-weight: 900; color: var(--teal); }

/* ---------- FAQ ---------- */
.faq-section { background: #fff; padding: 20px 24px 72px; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details {
  background: var(--panel); border-radius: 4px; margin-bottom: 12px; padding: 2px 22px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .06);
}
.faq-list summary {
  cursor: pointer; font-weight: 900; font-size: 1.08rem; color: var(--teal);
  padding: 18px 30px 18px 0; list-style: none; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--accent); }
.faq-list details[open] summary::after { content: '\2013'; }
.faq-list details p { padding: 0 0 18px; color: var(--ink); }
.faq-list a { color: var(--accent); font-weight: 700; }
.linklike { background: none; border: 0; color: var(--accent); font-weight: 700; cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.footer-bar a { color: var(--accent); font-weight: 700; text-decoration: none; }

/* ---------- Blog + article pages ---------- */
.blog-body { background: #fff; }
.blog-header { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 24px; background: rgba(255,255,255,.96); box-shadow: 0 2px 14px rgba(0,0,0,.12); }
.blog-brand img { height: 42px; }
.blog-header .btn { padding: 10px 18px; font-size: .95rem; box-shadow: none; }
.blog-header .btn-call { background: var(--teal); }
.post-wrap { max-width: 760px; margin: 0 auto; padding: 32px 22px 90px; }
.breadcrumb { font-size: .85rem; color: var(--teal-soft); margin-bottom: 22px; }
.breadcrumb a { color: var(--teal); text-decoration: none; }
.post h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); color: var(--teal); line-height: 1.2; font-weight: 900; }
.post-meta { color: var(--teal-soft); font-size: .9rem; margin: 10px 0 18px; }
.post-dek { font-size: 1.2rem; color: var(--ink); margin-bottom: 26px; font-weight: 700; }
.post h2 { font-size: 1.4rem; color: var(--teal); margin: 30px 0 12px; font-weight: 900; }
.post p { margin-bottom: 14px; }
.post ul { margin: 0 0 16px 22px; }
.post li { margin-bottom: 7px; }
.post a { color: var(--accent); font-weight: 700; }
.post-cta { background: var(--accent); color: #fff; border-radius: 6px; padding: 28px; text-align: center; margin: 34px 0; }
.post-cta p { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; }
.post-cta .btn { margin: 6px; background: #fff; color: var(--accent); }
.post-cta .btn-call { background: var(--teal); color: #fff; }
.post-faq { margin-top: 36px; }
.post-faq h2 { margin-bottom: 14px; }
.post-faq details { background: var(--panel); border-radius: 4px; margin-bottom: 12px; padding: 2px 20px; }
.post-faq summary { cursor: pointer; font-weight: 900; color: var(--teal); padding: 15px 0; }
.post-faq details p { padding: 0 0 15px; color: var(--ink); }
.related { margin-top: 40px; border-top: 2px solid var(--panel); padding-top: 22px; }
.related h3 { color: var(--teal); margin-bottom: 12px; font-weight: 900; }
.related a { display: block; color: var(--accent); font-weight: 700; padding: 7px 0; text-decoration: none; }
.blog-footer { background: var(--near-black); color: #9fb6ba; text-align: center; padding: 34px 24px 100px; font-size: .9rem; }
.blog-footer a { color: var(--accent); text-decoration: none; font-weight: 700; }
.post-disclaimer { opacity: .6; font-size: .8rem; margin-top: 10px; }
.blog-title { font-size: clamp(2rem,5vw,2.8rem); color: var(--teal); text-align: center; margin-bottom: 12px; font-weight: 900; }
.blog-intro { text-align: center; max-width: 640px; margin: 0 auto 34px; color: var(--ink); }
.blog-intro a { color: var(--accent); font-weight: 700; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 18px; }
.post-card { background: var(--panel); border-radius: 6px; padding: 24px; box-shadow: 0 4px 14px rgba(0,0,0,.08); text-decoration: none; border-top: 4px solid var(--accent); transition: transform .15s ease; }
.post-card:hover { transform: translateY(-4px); }
.post-card h2 { color: var(--teal); font-size: 1.2rem; margin-bottom: 8px; font-weight: 900; }
.post-card p { color: var(--ink); font-size: .95rem; margin-bottom: 12px; }
.read-more { color: var(--accent); font-weight: 800; }

/* ---------- Dark band (template miapc15bfzu84cxr, bg #000) ---------- */
.dark-band {
  background:
    linear-gradient(rgba(4, 24, 28, .93), rgba(4, 24, 28, .93)),
    url('../assets/band-truck-glass.webp') center / cover no-repeat;
  color: #fff; text-align: center; padding: 76px 24px;
}
.dark-band p { font-size: 1.35rem; font-weight: 700; max-width: 720px; margin: 0 auto 34px; }
.band-btns { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer bar (template l21ezx...) ---------- */
.footer-bar { background: var(--near-black); color: #9fb6ba; text-align: center; padding: 22px 16px 96px; font-size: .92rem; }
.footer-bar a { color: var(--accent); font-weight: 700; text-decoration: none; }

/* ---------- Sticky mobile bar ---------- */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  display: none; grid-template-columns: 1fr 1fr;
  box-shadow: 0 -4px 18px rgba(0,0,0,.3);
}
.mobile-bar a, .mobile-bar button {
  padding: 16px; text-align: center; font-weight: 900; font-size: 1rem;
  text-decoration: none; border: 0; cursor: pointer; font-family: 'Lato', sans-serif;
}
.mb-call { background: var(--teal); color: #fff; }
.mb-book { background: var(--accent); color: #fff; }

/* ---------- Quote modal (template popup, 532px wide) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 20, 23, .72);
  display: none; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 40px 16px;
}
.modal-overlay.show { display: flex; }
.modal {
  position: relative;
  background: #fff; border-radius: 8px;
  width: 100%; max-width: 532px;
  padding: 38px 40px;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  text-align: center;
}
.modal-logo { height: 44px; margin: 0 auto 14px; }
.modal h2 { color: var(--teal); font-size: 1.45rem; font-weight: 900; line-height: 1.35; }
.modal-call { margin: 12px 0 22px; font-weight: 700; }
.modal-call a { color: var(--accent); text-decoration: none; }
.modal form { text-align: left; }
.modal label { display: block; font-weight: 700; color: #5e6c7b; font-size: .92rem; margin-bottom: 14px; }
.modal input[type=text], .modal input[type=email], .modal input[type=tel], .modal textarea {
  width: 100%; margin-top: 5px;
  padding: 12px 13px;
  border: 1px solid #a3bac6; border-radius: 4px;
  font-size: 1rem; font-family: inherit; color: #000; background: #fff;
}
.modal input:focus, .modal textarea:focus { outline: 2px solid var(--teal-soft); }
.modal fieldset { border: 1px solid #d7e2e8; border-radius: 4px; padding: 12px 14px; margin-bottom: 14px; }
.modal legend { font-weight: 700; color: #5e6c7b; font-size: .92rem; padding: 0 6px; }
.modal .radio { font-weight: 400; color: var(--ink); margin: 6px 0; display: flex; gap: 8px; align-items: center; }
.btn-submit { width: 100%; font-size: 1.35rem; padding: 17px; margin-top: 4px; }
.modal-note { text-align: center; font-size: .85rem; color: #5e6c7b; margin-top: 12px; }
.form-status { text-align: center; font-weight: 700; margin-top: 10px; min-height: 1.3em; }
.form-status.err { color: #b02a37; }
.modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: 0; font-size: 1.3rem; color: #5e6c7b; cursor: pointer;
}
.thank-you { display: none; padding: 30px 0 10px; }
.thank-you p { font-size: 2rem; font-weight: 900; color: var(--teal); }
.thank-you .ty-sub { font-size: 1rem; font-weight: 400; margin-top: 10px; color: var(--ink); }
.modal.submitted form { display: none; }
.modal.submitted .thank-you { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- Responsive (template had a mobile variation) ---------- */
@media (max-width: 700px) {
  .hero { padding: 40px 18px 64px; }
  .hero-logo { height: 52px; margin-bottom: 30px; }
  .svc-cols { flex-direction: column; align-items: center; gap: 0; }
  .offset-content { padding: 30px 24px; }
  .modal { padding: 28px 22px; }
  .mobile-bar { display: grid; }
  .happy-grid figure { max-width: 100%; }
}
