/* ============================================
   TEMPE AUTO GLASS PROS – SHARED STYLES
   ============================================ */

:root {
  --navy:   #0a1628;
  --blue:   #1a3a6b;
  --sky:    #2563eb;
  --amber:  #f59e0b;
  --light:  #f1f5fb;
  --white:  #ffffff;
  --gray:   #6b7280;
  --dark:   #111827;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }

/* ── TOP BAR ── */
.topbar {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: .03em;
}
.topbar a { color: var(--amber); font-weight: 700; }

/* ── HEADER / NAV ── */
header {
  background: var(--blue);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 42px; height: 42px; background: var(--amber);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.logo-text { color: var(--white); }
.logo-text strong { display: block; font-size: 18px; letter-spacing: -.01em; }
.logo-text span   { font-size: 11px; opacity: .8; letter-spacing: .06em; text-transform: uppercase; }

nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
nav a {
  color: rgba(255,255,255,.88);
  padding: 7px 12px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  transition: background .18s, color .18s;
}
nav a:hover, nav a.active { background: rgba(255,255,255,.15); color: var(--white); }
.nav-cta {
  background: var(--amber) !important; color: var(--navy) !important;
  font-weight: 700 !important; margin-left: 8px;
}
.nav-cta:hover { background: #d97706 !important; }

.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); margin: 5px 0; border-radius: 2px;
  transition: .3s;
}

/* ── HERO ── */
.hero {
  position: relative; min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.42);
}
.hero-content { position: relative; z-index: 1; padding: 60px 20px; max-width: 780px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-block; background: var(--amber); color: var(--navy);
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 30px; margin-bottom: 18px;
}
.hero h1 {
  color: var(--white); font-size: clamp(28px, 5vw, 52px);
  font-weight: 800; line-height: 1.15; margin-bottom: 18px;
}
.hero h1 em { color: var(--amber); font-style: normal; }
.hero p {
  color: rgba(255,255,255,.88); font-size: 18px;
  max-width: 580px; margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; transition: .2s; cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: #d97706; }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-blue { background: var(--sky); color: var(--white); }
.btn-blue:hover { background: #1d4ed8; }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--navy); padding: 18px 20px;
  display: flex; justify-content: center; gap: 36px; flex-wrap: wrap;
}
.trust-item {
  color: var(--white); display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.trust-item span.icon { color: var(--amber); font-size: 18px; }

/* ── SECTION WRAPPERS ── */
.section { padding: 72px 20px; }
.section-light { background: var(--light); }
.section-navy  { background: var(--navy); color: var(--white); }
.section-blue  { background: var(--blue); color: var(--white); }
.container { max-width: 1160px; margin: 0 auto; }

.section-label {
  display: inline-block; color: var(--sky); font-size: 11px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px;
}
.section-title {
  font-size: clamp(24px, 3.5vw, 40px); font-weight: 800;
  line-height: 1.2; margin-bottom: 16px;
}
.section-sub { font-size: 17px; color: var(--gray); max-width: 620px; margin-bottom: 44px; }
.section-navy .section-sub, .section-blue .section-sub { color: rgba(255,255,255,.75); }
.section-navy .section-title, .section-blue .section-title { color: var(--white); }
.section-navy .section-label { color: var(--amber); }

/* ── GRID LAYOUTS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── SERVICE CARDS ── */
.service-card {
  background: var(--white); border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  overflow: hidden; transition: transform .22s, box-shadow .22s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.14); }
.service-card img { width: 100%; height: 210px; object-fit: cover; }
.service-card-body { padding: 22px; }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.service-card p  { color: var(--gray); font-size: 14px; line-height: 1.6; }
.service-card .card-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--sky); font-weight: 600; font-size: 14px; margin-top: 14px;
}

/* ── ICON BOXES ── */
.icon-box { text-align: center; padding: 32px 20px; }
.icon-box .icon-wrap {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(37,99,235,.12); display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 16px;
}
.section-navy .icon-box .icon-wrap { background: rgba(255,255,255,.12); }
.icon-box h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.icon-box p  { font-size: 14px; color: var(--gray); }
.section-navy .icon-box p { color: rgba(255,255,255,.72); }

/* ── PROCESS STEPS ── */
.process-step {
  display: flex; gap: 20px; align-items: flex-start; margin-bottom: 36px;
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--amber); color: var(--navy);
  font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step-body p  { font-size: 15px; color: var(--gray); }

/* ── QUOTE FORM ── */
.quote-form {
  background: var(--white); border-radius: 12px;
  padding: 36px; box-shadow: 0 4px 24px rgba(0,0,0,.12);
  max-width: 540px;
}
.quote-form h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.quote-form p  { color: var(--gray); font-size: 14px; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 5px; color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #d1d5db; border-radius: var(--radius);
  font-size: 14px; font-family: inherit;
  transition: border-color .18s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--sky);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-submit {
  width: 100%; padding: 14px;
  background: var(--amber); color: var(--navy);
  border: none; border-radius: var(--radius);
  font-size: 15px; font-weight: 800; cursor: pointer;
  transition: background .2s; letter-spacing: .01em;
}
.form-submit:hover { background: #d97706; }
.form-disclaimer {
  font-size: 11px; color: var(--gray); margin-top: 12px; line-height: 1.5;
}

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--sky) 0%, var(--blue) 100%);
  padding: 60px 20px; text-align: center;
}
.cta-band h2 { color: var(--white); font-size: clamp(22px,3.5vw,38px); font-weight: 800; margin-bottom: 12px; }
.cta-band p  { color: rgba(255,255,255,.82); font-size: 17px; margin-bottom: 28px; }
.cta-phone {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--amber); color: var(--navy);
  padding: 16px 36px; border-radius: var(--radius);
  font-size: 22px; font-weight: 900; letter-spacing: -.01em;
}
.cta-phone:hover { background: #d97706; }

/* ── INFO TABLE ── */
.info-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.info-table th { background: var(--blue); color: var(--white); padding: 12px 16px; text-align: left; }
.info-table td { padding: 11px 16px; border-bottom: 1px solid #e5e7eb; }
.info-table tr:nth-child(even) td { background: var(--light); }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid #e5e7eb; padding: 20px 0; }
.faq-q { font-size: 16px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-a { font-size: 15px; color: var(--gray); margin-top: 12px; line-height: 1.7; display: none; }
.faq-a.open { display: block; }

/* ── MAP ── */
.map-section { background: var(--light); padding: 60px 20px; }
.map-section h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; text-align: center; }
.map-section p  { text-align: center; color: var(--gray); margin-bottom: 28px; }
#service-map { height: 420px; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.1); }

/* ── FOOTER ── */
footer {
  background: var(--navy); color: rgba(255,255,255,.75);
  padding: 52px 20px 24px;
}
.footer-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p { font-size: 14px; line-height: 1.7; margin: 12px 0 16px; }
.footer-brand .footer-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--amber); font-size: 20px; font-weight: 800;
}
.footer-col h4 { color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.68); transition: color .18s; }
.footer-col ul li a:hover { color: var(--amber); }
.footer-bottom {
  max-width: 1160px; margin: 24px auto 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.55); margin-left: 14px; }
.footer-bottom a:hover { color: var(--amber); }
.footer-disclosure {
  max-width: 1160px; margin: 16px auto 0;
  font-size: 11px; color: rgba(255,255,255,.38); line-height: 1.6; border-top: 1px solid rgba(255,255,255,.07); padding-top: 16px;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 60px 20px; text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(24px,4vw,44px); font-weight: 800; margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,.8); font-size: 17px; max-width: 600px; margin: 0 auto; }
.breadcrumb {
  font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 14px;
}
.breadcrumb a { color: var(--amber); }

/* ── LOCATION CARDS ── */
.location-card {
  background: var(--white); border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 24px; transition: box-shadow .2s;
}
.location-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.location-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: var(--blue); }
.location-card p  { font-size: 14px; color: var(--gray); }

/* ── STAT BOXES ── */
.stat-box { text-align: center; }
.stat-box .stat-num { font-size: 48px; font-weight: 900; color: var(--amber); line-height: 1; }
.stat-box .stat-label { font-size: 14px; color: rgba(255,255,255,.72); margin-top: 6px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  nav { display: none; flex-direction: column; width: 100%; padding: 12px 0; }
  nav.open { display: flex; }
  .nav-inner { flex-wrap: wrap; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar { gap: 16px; }
}

/* ── UTILITY ── */
.text-center { text-align: center; }
.text-amber  { color: var(--amber); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0; }
