/* ============================================================
   Vegas Garage Door Pros — shared stylesheet
   Steel-blue + charcoal with safety-orange accents (urgency)
   Mobile-first, no frameworks, system fonts for speed.
   Class names mirror the Vegas Turf Pros design system so all
   portfolio sites share one structure.
   ============================================================ */

:root {
  --green-950: #152635;   /* deep steel navy — header */
  --green-800: #213c52;   /* steel blue dark */
  --green-700: #2d5273;   /* steel blue */
  --green-600: #3a6b94;   /* steel blue mid */
  --green-100: #e2ebf3;
  --green-50:  #eef3f7;
  --sand-100:  #f7f8f9;
  --sand-200:  #eef1f4;
  --sand-300:  #dfe5ea;
  --charcoal:  #23282a;
  --charcoal-soft: #3a4144;
  --text:      #2e3336;
  --muted:     #5d666b;
  --accent:    #f2641e;   /* safety orange — CTA color */
  --accent-dark: #c74f10;
  --gold:      #f2a541;
  --white:     #ffffff;
  --radius:    10px;
  --shadow:    0 2px 10px rgba(21, 38, 53, 0.10);
  --maxw:      1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--sand-100);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

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

h1, h2, h3, h4 {
  color: var(--green-950);
  line-height: 1.25;
  margin-top: 0;
}
h1 { font-size: 2rem; margin-bottom: 0.6em; }
h2 { font-size: 1.55rem; margin-bottom: 0.6em; }
h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
p { margin: 0 0 1em; }
a { color: var(--green-700); }
a:hover { color: var(--green-800); }

section { padding: 3rem 0; }
.section-alt { background: var(--white); }
.section-green { background: var(--green-800); color: #fff; }
.section-green h2, .section-green h3 { color: #fff; }
.section-green a { color: var(--sand-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 0 var(--accent-dark);
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-secondary {
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 3px 0 var(--green-950);
}
.btn-secondary:hover { background: var(--green-800); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--green-800);
  border: 2px solid var(--green-700);
}
.btn-outline:hover { background: var(--green-100); color: var(--green-800); }
.btn-white {
  background: #fff;
  color: var(--green-800);
}
.btn-white:hover { background: var(--sand-200); color: var(--green-950); }
.btn-block { display: block; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  background: var(--green-950);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo { text-decoration: none; color: #fff; display: flex; align-items: center; gap: 10px; }
.logo:hover { color: #fff; }
.logo-mark {
  width: 42px; height: 42px; flex: 0 0 42px;
  background: var(--green-600);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { line-height: 1.15; font-size: 1.25rem; font-weight: 800; letter-spacing: 0.2px; }
.logo-text strong { color: var(--gold); font-weight: 800; }
.logo-tag { display: block; font-size: 0.68rem; font-weight: 400; color: var(--sand-300); }

.nav-toggle {
  display: block;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
}
.main-nav { display: none; }
.main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--green-950); box-shadow: 0 8px 16px rgba(0,0,0,0.3); }
.main-nav ul { list-style: none; margin: 0; padding: 8px 20px 20px; }
.main-nav li { margin: 0; }
.main-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 10px 4px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.main-nav a:hover { color: var(--gold); }
.sub-nav { padding-left: 14px !important; }
.sub-nav a { font-weight: 400; font-size: 0.95em; }
.btn-nav {
  background: var(--accent);
  border-radius: var(--radius);
  text-align: center;
  margin-top: 10px;
  border-bottom: none !important;
}
.btn-nav:hover { background: var(--accent-dark); color: #fff !important; }
.nav-phone { color: var(--gold) !important; font-weight: 800 !important; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(160deg, rgba(21,38,53,0.96) 0%, rgba(33,60,82,0.92) 55%, rgba(45,82,115,0.88) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 12px, transparent 12px 24px);
  color: #fff;
  padding: 3.5rem 0 3rem;
}
.hero h1 { color: #fff; font-size: 2.1rem; }
.hero .lead { font-size: 1.12rem; color: var(--sand-200); max-width: 640px; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; margin: 1.4rem 0 1rem; max-width: 420px; }
.hero-note { font-size: 0.9rem; color: var(--sand-300); }
.hero-badge {
  display: inline-block;
  background: rgba(242,101,30,0.16);
  border: 1px solid var(--accent);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.45em 1em;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--sand-300); padding: 1rem 0; }
.trust-items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; list-style: none; margin: 0; padding: 0; font-size: 0.95rem; font-weight: 600; color: var(--green-800); }
.trust-items li::before { content: "✓ "; color: var(--green-600); font-weight: 800; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border-top: 4px solid var(--green-600);
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card .icon { font-size: 1.8rem; margin-bottom: 0.4rem; display: block; }
.card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.card-link:hover h3 { color: var(--green-600); }
.card-link .more { color: var(--accent); font-weight: 700; }

/* ---------- How it works ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: 1fr; }
.step {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.5rem 1.5rem 5.2rem;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 1.2rem; top: 1.2rem;
  width: 2.6rem; height: 2.6rem;
  background: var(--green-700); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem;
}
.step h3 { margin-bottom: 0.3em; }
.step p:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.price {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 480px;
}
table.price th, table.price td { padding: 0.85em 1em; text-align: left; }
table.price thead th { background: var(--green-800); color: #fff; }
table.price tbody tr:nth-child(even) { background: var(--green-50); }
table.price tbody tr:hover { background: var(--green-100); }
.table-note { font-size: 0.88rem; color: var(--muted); margin-top: 0.6em; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  padding: 1.1rem 1.3rem;
  font-weight: 700;
  color: var(--green-950);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 1.2rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; color: var(--accent); font-weight: 800;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 1.3rem 1.3rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Callout boxes ---------- */
.callout {
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin: 1.5rem 0;
  border-left: 6px solid var(--accent);
  background: #fff4ea;
  box-shadow: var(--shadow);
}
.callout.rebate { border-left-color: var(--green-600); background: var(--green-100); }
.callout h3 { margin-bottom: 0.4em; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Areas grid ---------- */
.area-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.area-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  text-align: center;
  text-decoration: none;
  color: var(--green-950);
  font-weight: 700;
}
.area-card:hover { background: var(--green-100); color: var(--green-800); }
.area-card span { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted); }

/* ---------- Forms ---------- */
.quote-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem;
  max-width: 680px;
  margin: 0 auto;
  border-top: 6px solid var(--accent);
}
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 14px; }
.form-field { display: flex; flex-direction: column; }
.form-field label { font-weight: 700; margin-bottom: 6px; color: var(--green-950); font-size: 0.95rem; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit;
  padding: 0.75em 0.9em;
  border: 2px solid var(--sand-300);
  border-radius: 8px;
  background: var(--sand-100);
  color: var(--text);
  width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(58,107,148,0.15);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 0.8em; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(140deg, var(--green-950), var(--green-700));
  color: #fff;
  border-radius: 14px;
  padding: 2.2rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--sand-200); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { display: flex; flex-direction: column; gap: 12px; max-width: 380px; margin: 1.2rem auto 0; }
.phone-big { font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none; }
.phone-big:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #cfd4d6; padding: 3rem 0 0; margin-top: 0; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 0.7em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45em; }
.site-footer a { color: #cfd4d6; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-brand p { font-size: 0.95rem; }
.disclosure {
  font-size: 0.85rem;
  background: rgba(255,255,255,0.06);
  border-left: 3px solid var(--gold);
  padding: 0.7em 0.9em;
  border-radius: 0 8px 8px 0;
  color: #b9c0c3;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 2rem;
  padding: 1.2rem 20px 6.5rem; /* room for sticky CTA on mobile */
  font-size: 0.85rem;
  color: #9aa2a6;
  text-align: center;
}
.footer-bottom p { margin-bottom: 0.4em; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(35,40,42,0.97);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
}
.sticky-cta a {
  flex: 1;
  text-align: center;
  padding: 0.85em 0.4em;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1rem;
}
.sticky-call { background: var(--green-600); color: #fff; }
.sticky-call:hover { color: #fff; }
.sticky-quote { background: var(--accent); color: #fff; }
.sticky-quote:hover { color: #fff; }

/* ---------- Content helpers ---------- */
.lead { font-size: 1.1rem; }
.two-col { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding: 0.5em 0 0.5em 2em; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0.3em; color: var(--green-600); font-weight: 800; }
.breadcrumb { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.page-intro { max-width: 720px; }
.anchor-section { scroll-margin-top: 90px; }
.tag {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  margin-bottom: 0.8em;
}
.testimonial {
  background: var(--sand-200);
  border-radius: var(--radius);
  padding: 1.4rem;
  font-style: italic;
  border-left: 5px solid var(--gold);
}
.testimonial footer { font-style: normal; font-weight: 700; color: var(--green-800); margin-top: 0.6em; font-size: 0.92rem; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .trust-items { grid-template-columns: repeat(4, 1fr); }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-ctas { flex-direction: row; max-width: none; }
  .hero-ctas .btn { flex: 0 1 auto; }
  .cta-band .btn-row { flex-direction: row; max-width: none; justify-content: center; }
  .form-row.two { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  h1 { font-size: 2.6rem; }
  .hero h1 { font-size: 2.8rem; }
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-bottom { padding-bottom: 1.2rem; }

  .nav-toggle { display: none; }
  .main-nav { display: block; }
  .main-nav ul { display: flex; align-items: center; gap: 4px; padding: 0; }
  .main-nav a { border-bottom: none; padding: 8px 10px; font-size: 0.95rem; }
  .has-sub { position: relative; }
  .sub-nav {
    display: none;
    position: absolute; top: 100%; left: 0;
    background: var(--green-950);
    min-width: 220px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    padding: 8px !important;
  }
  .has-sub:hover .sub-nav, .has-sub:focus-within .sub-nav { display: block; }
  .sub-nav a { padding: 10px 12px; border-radius: 6px; }
  .sub-nav a:hover { background: rgba(255,255,255,0.08); }
  .btn-nav { margin-top: 0; margin-left: 8px; padding: 10px 18px !important; }

  .sticky-cta { display: none; }
}
