﻿/* ============================================================
   Boston Auto Glass Pros — Shared Stylesheet
   bostonautoglassrepair.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Lato:wght@300;400;700&display=swap');

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

:root {
  --navy:   #0a1628;
  --blue:   #1b4aad;
  --sky:    #2d7dd2;
  --red:    #c0392b;
  --white:  #ffffff;
  --light:  #f4f6fb;
  --gray:   #6b7280;
  --border: #dde3ee;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Lato', sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
}

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

/* ── CALL BAR ── */
.call-bar {
  background: var(--red);
  padding: 14px 20px;
  text-align: center;
}
.call-bar a {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
}
.call-bar a:hover { opacity: .88; }

/* ── HEADER ── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.logo-wrap a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon { width: 44px; height: 44px; }
.logo-text {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .5px;
  line-height: 1.15;
}
.logo-text span { color: #4ea3f0; }

/* ── NAV ── */
nav ul { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }
nav ul li { position: relative; }
nav ul li a {
  color: #cbd8f0;
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 8px 13px;
  border-radius: 4px;
  display: block;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s;
}
nav ul li a:hover,
nav ul li a.active { background: var(--blue); color: var(--white); }

/* dropdowns */
nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy);
  border: 1px solid #253566;
  border-radius: 4px;
  min-width: 230px;
  flex-direction: column;
  gap: 0;
  z-index: 200;
}
nav ul li:hover > ul { display: flex; }
nav ul li ul li a {
  font-size: .83rem;
  padding: 9px 16px;
  border-radius: 0;
  border-bottom: 1px solid #1e2e50;
}
nav ul li ul li:last-child a { border-bottom: none; }

/* hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid #4ea3f0;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
}

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1b3770 55%, var(--blue) 100%);
  padding: 52px 20px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}
.page-hero h1 span { color: #4ea3f0; }
.page-hero p.tagline {
  color: #9bb5db;
  font-size: 1.05rem;
  margin-top: 10px;
  position: relative;
}
.breadcrumb {
  margin-top: 10px;
  font-size: .85rem;
  color: #9bb5db;
  position: relative;
}
.breadcrumb a { color: #9bb5db; }
.breadcrumb a:hover { color: #fff; }

/* ── MAIN WRAP ── */
.main-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px 70px;
}

/* ── SECTION HEADINGS ── */
.section-heading {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--blue);
}

/* ── CONTACT CARD / FORM ── */
.contact-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
}
.contact-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--navy);
}
.required-note { font-size: .75rem; color: var(--gray); margin-bottom: 12px; }
.form-field { margin-bottom: 13px; }
.form-field label {
  display: block;
  font-size: .79rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray);
  margin-bottom: 4px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: .9rem;
  background: var(--white);
  color: var(--navy);
  transition: border-color .2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { outline: none; border-color: var(--blue); }
.form-field textarea { height: 90px; resize: vertical; }
.btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: #163d94; }

/* ── TRUST BADGES ── */
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.badge {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 13px;
  font-size: .81rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--navy);
  letter-spacing: .4px;
  text-transform: uppercase;
}
.badge::before { content: '✓  '; color: var(--blue); }

/* ── SERVICE CARDS ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.service-card {
  background: var(--light);
  border-radius: 10px;
  border-top: 4px solid var(--blue);
  padding: 24px;
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(27,74,173,.12);
}
.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--navy);
}
.service-card p { font-size: .9rem; color: #4b5563; margin-bottom: 14px; }
.service-card a.card-link {
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.service-card a.card-link:hover { color: var(--navy); }

/* ── ICON ── */
.svc-icon { font-size: 2rem; margin-bottom: 12px; display: block; }

/* ── WHY US GRID ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.why-card {
  background: var(--light);
  border-radius: 8px;
  padding: 20px;
  border-top: 4px solid var(--blue);
}
.why-card h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.why-card p { font-size: .87rem; color: #4b5563; }

/* ── TESTIMONIALS ── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.testimonial {
  background: var(--light);
  border-radius: 10px;
  padding: 22px;
  border-left: 4px solid var(--blue);
  font-size: .9rem;
  color: #374151;
  font-style: italic;
}
.testimonial strong {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
  font-size: .85rem;
}

/* ── SERVING TAGS ── */
.serving-list {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 30px;
}
.serving-list h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--navy);
}
.serving-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.serving-tag {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--blue);
}

/* ── TWO-COL LAYOUT ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.sticky-card { position: sticky; top: 80px; }

/* ── MAP ── */
.map-wrap {
  border-radius: 10px;
  overflow: hidden;
  margin-top: 30px;
  border: 1px solid var(--border);
}
.map-wrap iframe { width: 100%; height: 350px; border: none; display: block; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  padding: 48px 20px;
  text-align: center;
  margin-top: 60px;
}
.cta-band h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cta-band p { color: #9bb5db; margin-bottom: 20px; }
.btn-cta {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 36px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity .2s;
}
.btn-cta:hover { opacity: .9; text-decoration: none; }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: #9bb5db;
  padding: 44px 20px 24px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #1e2e50;
}
.footer-col h5 {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { color: #7a9bc8; font-size: .85rem; }
.footer-col ul li a:hover { color: var(--white); }
.footer-col p { font-size: .85rem; line-height: 1.7; }
.footer-col a { color: #7a9bc8; }
.footer-bottom {
  margin-top: 22px;
  font-size: .78rem;
  color: #4d6690;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: #4d6690; }
.footer-bottom a:hover { color: #9bb5db; }
.footer-disclaimer { margin-top: 10px; font-size: .73rem; color: #384d6e; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
}
@media (max-width: 640px) {
  nav { display: none; }
  nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 10px 0; }
  nav.open ul { flex-direction: column; }
  nav.open ul li ul { position: static; border: none; padding-left: 16px; }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
  .footer-grid { grid-template-columns: 1fr; }
}
