/* ========================================================================
   Restivo Auto Body & Towing — Main Stylesheet
   Maryland flag palette: red #be0b31, gold #e8a917, black #1a1a1a, white
   ======================================================================== */

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

:root {
  --md-black: #1a1a1a;
  --md-gold: #e8a917;
  --md-gold-dark: #c48e0e;
  --md-red: #be0b31;
  --md-red-dark: #9a0927;
  --md-white: #ffffff;
  --md-cream: #fff9ec;
  --md-warm-gray: #f5f0e8;
  --md-dark-bg: #111111;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.18);
  --header-h: 110px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  color: var(--md-black);
  line-height: 1.7;
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; }

h1, h2, h3, h4, h5 {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

.section-label {
  font-family: "Oswald", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--md-red);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: "";
  width: 30px;
  height: 3px;
  background: var(--md-gold);
}

/* Maryland-flag stripe — used as a divider above/below dark sections */
.md-stripe {
  height: 6px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--md-red) 0 25%,
    var(--md-white) 25% 50%,
    var(--md-gold) 50% 75%,
    var(--md-black) 75% 100%
  );
  background-size: 160px 6px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 4px;
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--md-red); color: #fff; border-color: var(--md-red); }
.btn-primary:hover { background: var(--md-red-dark); border-color: var(--md-red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(190,11,49,.35); }
.btn-gold { background: var(--md-gold); color: var(--md-black); border-color: var(--md-gold); }
.btn-gold:hover { background: var(--md-gold-dark); border-color: var(--md-gold-dark); transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-outline:hover { border-color: var(--md-gold); color: var(--md-gold); transform: translateY(-2px); }
.btn-outline-dark { border-color: var(--md-black); color: var(--md-black); background: transparent; }
.btn-outline-dark:hover { background: var(--md-black); color: var(--md-white); }
.btn .icon { width: 18px; height: 18px; }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(26,26,26,.97);
  backdrop-filter: blur(10px);
}
.header-top {
  background: var(--md-red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 16px;
}
.header-top-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
}
.header-top a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.header-top .sep { opacity: 0.4; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 78px;
  position: relative;
  overflow: hidden;
}
.header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(45deg, var(--md-gold) 25%, transparent 25%),
    linear-gradient(-45deg, var(--md-gold) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--md-red) 75%),
    linear-gradient(-45deg, transparent 75%, var(--md-red) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0;
  pointer-events: none;
}
.header-inner > * { position: relative; z-index: 1; }
.logo { display: flex; align-items: center; gap: 14px; }
.logo-img { height: 56px; width: auto; }
.logo-text {
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: 0.05em;
}
.logo-text small {
  display: block;
  color: var(--md-gold);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-style: italic;
  margin-top: 3px;
}

.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  color: rgba(255,255,255,.82);
  font-family: "Oswald", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.primary-nav a:hover { color: #fff; background: rgba(232,169,23,.14); }
.primary-nav .nav-cta {
  background: var(--md-red);
  color: #fff;
  font-weight: 600;
  margin-left: 12px;
  padding: 12px 22px;
  border-radius: 4px;
}
.primary-nav .nav-cta:hover { background: var(--md-red-dark); color: #fff; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
}
.hamburger span {
  width: 26px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

@media (max-width: 980px) {
  .primary-nav {
    position: fixed;
    inset: 140px 0 auto 0;
    flex-direction: column;
    background: rgba(26,26,26,.99);
    padding: 24px 24px 32px;
    gap: 0;
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(0,0,0,.35);
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav a {
    width: 100%;
    text-align: center;
    padding: 16px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .primary-nav .nav-cta { margin: 16px 0 0; width: 100%; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .header-top-inner { gap: 8px; font-size: 0.72rem; }
  .header-top .sep { display: none; }
}

/* ===== HERO ===== */
.hero {
  min-height: 85vh;
  background: var(--md-dark-bg);
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(190,11,49,.18) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(232,169,23,.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}
.hero-logo {
  display: block;
  max-width: 540px;
  width: 100%;
  /* PNG is 540x540 but the slogan ends ~78% down; crop the empty bottom by
     setting an aspect ratio shorter than the source and cover-cropping from top. */
  aspect-ratio: 540 / 420;
  height: auto;
  margin: 0 auto;
  object-fit: cover;
  object-position: top;
}
.hero-slogan {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: var(--md-gold);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  font-family: "Brush Script MT", "Lucida Handwriting", cursive;
  text-transform: none;
}
.hero p.hero-desc {
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 20px auto 28px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,169,23,.12);
  border: 1px solid rgba(232,169,23,.4);
  padding: 10px 22px;
  border-radius: 999px;
  font-family: "Oswald", sans-serif;
  font-size: 0.78rem;
  color: var(--md-gold);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
}
.hero-btns .btn { min-width: 200px; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.1);
  max-width: 720px;
  margin: 0 auto;
}
.hero-stat { text-align: left; }
.hero-stat .num {
  font-family: "Oswald", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--md-gold);
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.75rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 6px;
}
@media (max-width: 600px) {
  .hero-stats { gap: 24px; }
  .hero-stat .num { font-size: 1.7rem; }
  .hero-btns .btn { width: 100%; }
}

/* ===== ABOUT ===== */
.about-section { background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img-wrap { position: relative; }
.about-img-wrap img {
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  display: block;
}
.about-text h2 { margin-bottom: 20px; }
.about-text h2 span { color: var(--md-red); }
.about-text p { margin-bottom: 16px; color: #444; }
.about-text p strong { color: var(--md-black); }
.about-testimonials-link {
  margin-top: 8px;
}
.about-testimonials-link a {
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-red);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.about-testimonials-link a:hover,
.about-testimonials-link a:focus-visible {
  color: var(--md-black);
  border-bottom-color: var(--md-gold);
  outline: none;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== SERVICES TABS ===== */
.services-section { background: #fff; }
.services-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 32px;
  border-bottom: 2px solid #eee;
  overflow-x: auto;
}
.tab-btn {
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 26px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  color: #888;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover { color: var(--md-red); border-bottom-color: var(--md-red); }
.tab-panel { display: none; animation: fadeUp 0.4s ease; }
.tab-panel.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.tab-flex {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.tab-flex h2 { margin-bottom: 16px; }
.tab-flex p { color: #555; margin-bottom: 14px; }
.tab-flex ul { list-style: none; margin-top: 16px; }
.tab-flex li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: #444;
  border-bottom: 1px solid #f0f0f0;
}
.tab-flex li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--md-gold);
  font-size: 0.7rem;
}
.tab-flex img { border-radius: 8px; box-shadow: var(--shadow-md); width: 100%; }
.tab-flex--solo {
  grid-template-columns: 1fr;
  max-width: 720px;
}
.tab-flex--solo a { color: var(--md-red); text-decoration: none; border-bottom: 1px solid currentColor; }
.tab-flex--solo a:hover { color: var(--md-black); }

/* 2x2 grid used inside service tabs that have multiple before/after images.
   Cells are forced square so mixed source aspect ratios don't break the layout. */
.tab-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tab-img-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tab-img-grid--stacked { grid-template-columns: 1fr; }
.tab-img-grid--stacked img { aspect-ratio: 16 / 9; }
.tab-img-grid img:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .tab-flex { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== PARTNERS ===== */
.partners-section { background: var(--md-cream); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header .section-label { justify-content: center; }
.section-header .section-label::before { display: none; }
.section-header p { margin-top: 12px; color: #555; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.partner-card {
  background: #fff;
  border-radius: 8px;
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.3s;
}
.partner-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.partner-card h3 { font-size: 1rem; margin-bottom: 10px; }
.partner-card p { font-size: 0.9rem; color: #666; line-height: 1.55; }
.partner-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--md-black);
  color: var(--md-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-icon svg { width: 26px; height: 26px; display: block; }

/* Photos band below the partner grid — 2-up gallery (police logos + holiday tow truck) */
.partners-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 980px;
  margin: 56px auto 0;
}
.partners-photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 768px) {
  .partners-grid { grid-template-columns: 1fr; }
  .partners-photos { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }
}

/* ===== COMMUNITY (Workforce Development) ===== */
.community-section { background: #fff; }
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.community-text .section-label { margin-bottom: 14px; }
.community-text h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 22px;
}
.community-text p {
  color: #555;
  margin-bottom: 16px;
  line-height: 1.7;
  font-size: 1.02rem;
}
.community-text p:last-child { margin-bottom: 0; }
.community-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 800px) {
  .community-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ===== REVIEWS ===== */
.reviews-section {
  background: var(--md-dark-bg);
  color: #fff;
  position: relative;
}
.reviews-section .section-header { color: #fff; }
.reviews-section .section-header .section-label { color: var(--md-gold); }
.reviews-section .section-header h2 { color: #fff; }
.reviews-section .section-header p { color: rgba(255,255,255,.6); }

/* Two-column reviews layout: Google business card + testimonial slider */
.reviews-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}
.reviews-google-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.reviews-google-card:hover,
.reviews-google-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  outline: none;
}
.reviews-google-card img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 900px) {
  .reviews-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .reviews-google-card {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* Testimonial slider */
.testimonial-slider {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 56px;
  width: 100%;
}
.reviews-layout .testimonial-slider {
  margin: 0;
}
@media (max-width: 600px) {
  .testimonial-slider { padding: 0; }
}

.testimonial-track {
  position: relative;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 48px 40px 36px;
  min-height: 280px;
  overflow: hidden;
}
@media (max-width: 600px) {
  .testimonial-track { padding: 36px 22px 28px; min-height: 320px; }
}

.testimonial-slide {
  position: absolute;
  inset: 48px 40px 36px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
}
@media (max-width: 600px) {
  .testimonial-slide { inset: 36px 22px 28px 22px; }
}
.testimonial-slide.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-slide { transition: none; }
}

.testimonial-quote-mark {
  font-family: "Oswald", sans-serif;
  font-size: 5rem;
  line-height: 0.6;
  color: var(--md-gold);
  margin-bottom: 18px;
  font-weight: 700;
}
.testimonial-quote {
  font-family: "Source Sans 3", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255,255,255,.92);
  font-style: italic;
  font-weight: 300;
  max-width: 640px;
  margin: 0 0 20px;
}
.testimonial-quote p { margin: 0; }
.testimonial-cite {
  font-family: "Oswald", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--md-gold);
  font-style: normal;
  font-weight: 500;
}

.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.testimonial-nav:hover,
.testimonial-nav:focus-visible {
  background: var(--md-gold);
  border-color: var(--md-gold);
  color: var(--md-black);
  outline: none;
}
.testimonial-nav--prev { left: 0; }
.testimonial-nav--next { right: 0; }
.testimonial-nav span { display: inline-block; transform: translateY(-1px); }
@media (max-width: 600px) {
  .testimonial-nav {
    position: static;
    transform: none;
    margin-top: 16px;
  }
  .testimonial-nav--prev { margin-right: 8px; }
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.testimonial-dot:hover { background: rgba(255,255,255,.5); }
.testimonial-dot.is-active {
  background: var(--md-gold);
  transform: scale(1.3);
}
.testimonial-dot:focus-visible {
  outline: 2px solid var(--md-gold);
  outline-offset: 3px;
}

/* Mobile: stack [prev] [dots] [next] in one row below the track */
@media (max-width: 600px) {
  .testimonial-slider {
    display: flex;
    flex-direction: column;
  }
  .testimonial-slider > .testimonial-track { order: 1; }
  .testimonial-slider > .testimonial-dots  { order: 2; margin-top: 18px; }
  .testimonial-slider > .testimonial-nav--prev,
  .testimonial-slider > .testimonial-nav--next { display: none; }
}

/* ===== FAQ ===== */
.faq-section { background: var(--md-cream); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,.1); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--md-black);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.faq-q:hover { color: var(--md-red); }
.faq-q .icon {
  font-size: 1.4rem;
  color: var(--md-gold);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: #555;
  font-size: 0.95rem;
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner { padding: 0 0 22px; }

/* ===== CTA ===== */
.cta-section {
  background: var(--md-dark-bg);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(45deg, var(--md-gold) 25%, transparent 25%),
    linear-gradient(-45deg, var(--md-gold) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--md-red) 75%),
    linear-gradient(-45deg, transparent 75%, var(--md-red) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0;
}
.cta-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,.45);
  margin-bottom: 8px;
}
.cta-phones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
  align-items: end;
}
.cta-phone-block { text-align: center; }
.cta-phone-block .cta-label { margin-bottom: 8px; }
.cta-phone {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--md-gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cta-phone svg { flex-shrink: 0; }
.cta-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
  text-align: center;
}
.cta-info .lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,.45);
  margin-bottom: 8px;
}
.cta-info .val { font-size: 0.95rem; line-height: 1.5; color: rgba(255,255,255,.85); }
.cta-social { margin-top: 32px; display: flex; gap: 20px; justify-content: center; }
.cta-social a {
  color: var(--md-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(232,169,23,.4);
  transition: all 0.2s ease;
}
.cta-social a:hover {
  background: var(--md-gold);
  color: var(--md-black);
  border-color: var(--md-gold);
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .cta-phones { grid-template-columns: 1fr; gap: 20px; }
  .cta-info { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== FOOTER ===== */
.site-footer {
  background: #0a0a0a;
  color: rgba(255,255,255,.5);
  padding: 36px 0 24px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 24px;
}
.footer-brand {
  font-family: "Oswald", sans-serif;
  color: #fff;
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-brand span { color: var(--md-gold); }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; padding: 0; }
.footer-nav a { font-size: 0.85rem; color: rgba(255,255,255,.55); transition: color 0.2s; }
.footer-nav a:hover { color: var(--md-gold); }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 0.78rem;
  color: rgba(255,255,255,.4);
}

/* ===== MOBILE STICKY CALL BAR ===== */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--md-red);
  padding: 8px 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.25);
}
.mobile-call-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.mobile-call-bar a {
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
}
.mobile-call-bar .sep { color: rgba(255,255,255,.4); }
@media (max-width: 768px) {
  .mobile-call-bar { display: block; }
  body { padding-bottom: 50px; }
}

/* ===== UTILITIES ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== PAGE HEADER (sub-pages like /join-our-team) ===== */
.page-header-section {
  background: var(--md-cream);
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 24px;
}
.page-header-section .section-header { margin-bottom: 0; }
.page-header-section h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 4px;
}

/* ===== ESTIMATE FORM ===== */
.estimate-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) {
  .estimate-card { padding: 24px 20px; border-radius: 6px; }
}

.estimate-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.estimate-alert {
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.5;
  border-left: 4px solid;
}
.estimate-alert--success {
  background: #effaf2;
  border-color: #2e7d4f;
  color: #1f5a37;
}
.estimate-alert--error {
  background: #fdecef;
  border-color: var(--md-red);
  color: #7a0a23;
}

.estimate-form { display: block; }

/* Mobile-first: single column. Desktop (>600px) uses a 4-col grid where
   default fields span 2 (half-width), --full spans 4, --quarter spans 1. */
.estimate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.estimate-field { display: flex; flex-direction: column; min-width: 0; }

@media (min-width: 601px) {
  .estimate-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 20px;
  }
  .estimate-field          { grid-column: span 2; }
  .estimate-field--full    { grid-column: 1 / -1; }
  .estimate-field--quarter { grid-column: span 1; }
  .estimate-subhead        { grid-column: 1 / -1; }
}

.estimate-subhead {
  grid-column: 1 / -1;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--md-black);
  margin: 12px 0 -4px 0;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,.08);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.estimate-subhead:first-child { padding-top: 0; border-top: 0; margin-top: 0; }

.estimate-field label {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 6px;
  font-weight: 500;
}
.estimate-req { color: var(--md-red); }
.estimate-help {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  color: #888;
  font-weight: 400;
  margin-left: 4px;
}

.estimate-field input[type="text"],
.estimate-field input[type="tel"],
.estimate-field input[type="email"],
.estimate-field select,
.estimate-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--md-black);
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  padding: 12px 14px;
  min-height: 48px; /* mobile-friendly touch target */
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.estimate-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}
.estimate-field input:focus,
.estimate-field select:focus,
.estimate-field textarea:focus {
  outline: none;
  border-color: var(--md-red);
  box-shadow: 0 0 0 3px rgba(190,11,49,0.15);
}

.estimate-field input[type="file"] {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 10px;
  border: 1px dashed #c0c0c0;
  border-radius: 4px;
  background: #fafafa;
  cursor: pointer;
}
.estimate-field input[type="file"]:focus {
  outline: none;
  border-color: var(--md-red);
  background: #fff;
}

.estimate-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.estimate-actions .btn { min-width: 240px; }
.estimate-disclaimer {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}
.estimate-disclaimer a {
  color: var(--md-red);
  font-weight: 600;
  white-space: nowrap;
}
.estimate-disclaimer a:hover { text-decoration: underline; }
