/* ============================================================
   Dirt Doctor Detailing — brand palette pulled from the logo:
   navy #132433 · red #bf4137 · cream #ece4d3 · charcoal #4a4a4a
   ============================================================ */
:root {
  --navy: #132433;
  --navy-2: #1c3247;
  --red: #bf4137;
  --red-dark: #a33229;
  --cream: #ece4d3;
  --cream-soft: #f7f3ea;
  --ink: #22303c;
  --muted: #5b6b78;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 36, 51, 0.12);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
img { max-width: 100%; display: block; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.95rem;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.accent { color: var(--red); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.8rem 1.7rem;
  border-radius: 8px;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(191, 65, 55, 0.35);
}
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.section-dark .btn-ghost, .contact-card .btn-ghost {
  color: var(--cream);
  border-color: rgba(236, 228, 211, 0.5);
}
.btn-dark { background: var(--navy); color: var(--cream); }
.btn-dark:hover { background: var(--navy-2); }
.btn-lg { padding: 1rem 2.1rem; font-size: 1.15rem; }
.btn-block { display: block; width: 100%; }

/* ===== Top bar ===== */
.topbar {
  background: var(--navy);
  color: var(--cream);
  font-size: 0.85rem;
  padding: 0.45rem 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar-phone { color: var(--cream); text-decoration: none; font-weight: 600; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(19, 36, 51, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-logo { width: 52px; height: 52px; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: 1px;
}
.brand-text em { font-style: normal; color: var(--red); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.98rem;
}
.nav a:not(.btn):hover { color: var(--red); }
.nav-cta { margin-left: 0.4rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(191, 65, 55, 0.16), transparent 60%),
    linear-gradient(160deg, var(--cream) 0%, var(--cream-soft) 55%);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  margin: 1.1rem 0 1.8rem;
  max-width: 34rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.6rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}
.hero-media { position: relative; }
.hero-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 4px solid var(--white);
}
.hero-card {
  position: absolute;
  bottom: -18px;
  left: -14px;
  background: var(--navy);
  color: var(--cream);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.hero-card strong { font-size: 1.15rem; color: #f2c14e; }
.hero-card span { font-size: 0.8rem; opacity: 0.85; }

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); margin-top: 0.8rem; }
.section-cta { text-align: center; margin-top: 2.8rem; }

.section-dark {
  background:
    radial-gradient(800px 400px at 10% 0%, rgba(191, 65, 55, 0.15), transparent 55%),
    var(--navy);
}
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark p { color: rgba(236, 228, 211, 0.8); }

/* ===== Services ===== */
.grid { display: grid; gap: 1.5rem; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-5px); }
.card-icon { font-size: 2rem; margin-bottom: 0.7rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ===== Why us ===== */
.why-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.why-img {
  width: 100%;
  border-radius: var(--radius);
  border: 4px solid rgba(236, 228, 211, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.why-copy h2 { margin-bottom: 1.6rem; }
.feature-list { list-style: none; display: grid; gap: 1.15rem; margin-bottom: 2rem; }
.feature-list li {
  display: grid;
  gap: 0.15rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--red);
}
.feature-list strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.15rem;
  color: var(--cream);
}
.feature-list span { color: rgba(236, 228, 211, 0.75); font-size: 0.95rem; }

/* ===== Reviews ===== */
.stars-line { color: #c9a227; font-weight: 700; }
.reviews-grid { grid-template-columns: repeat(3, 1fr); }
.review {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.review-stars { color: #f2b01e; letter-spacing: 3px; font-size: 1.05rem; }
.review p { color: var(--ink); font-size: 0.97rem; font-style: italic; }
.review footer { color: var(--muted); font-size: 0.88rem; font-weight: 600; margin-top: auto; }

/* ===== Gift ===== */
.gift { background: var(--red); padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.gift-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.gift h2 { color: var(--white); }
.gift p { color: rgba(255, 255, 255, 0.9); margin-top: 0.4rem; }

/* ===== Contact ===== */
.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.contact-copy p { max-width: 32rem; margin: 0.6rem 0 1.8rem; }
.contact-list { display: grid; gap: 1rem; margin-bottom: 1.8rem; }
.contact-item {
  display: grid;
  text-decoration: none;
  padding-left: 1.1rem;
  border-left: 3px solid var(--red);
}
.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(236, 228, 211, 0.6);
}
.contact-value { color: var(--cream); font-weight: 700; font-size: 1.1rem; }
a.contact-item:hover .contact-value { color: var(--white); text-decoration: underline; }
.socials { display: flex; gap: 1.2rem; }
.socials a { color: var(--cream); font-weight: 600; }

.contact-card {
  background: var(--navy-2);
  border: 1px solid rgba(236, 228, 211, 0.15);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 0.9rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.contact-logo { width: 110px; margin: 0 auto 0.4rem; }

/* ===== Footer ===== */
.footer { background: #0d1a26; color: rgba(236, 228, 211, 0.75); padding: 2.2rem 0 5.5rem; }
.footer-inner { display: grid; gap: 1.1rem; justify-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--cream); font-size: 1.1rem; }
.footer-logo { width: 40px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; }
.footer-nav a { color: rgba(236, 228, 211, 0.75); text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--white); }
.footer-fine { font-size: 0.82rem; }
.footer-fine a { color: inherit; }

/* ===== Sticky mobile call bar ===== */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--red);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.95rem 1rem calc(0.95rem + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; max-width: 40rem; margin-inline: auto; }
  .hero-inner, .why-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 34rem; }
  .why-media { max-width: 26rem; }
}

@media (max-width: 760px) {
  .topbar-area, .hide-sm { display: none; }
  .topbar-inner { justify-content: center; gap: 1.4rem; white-space: nowrap; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-soft);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid rgba(19, 36, 51, 0.12);
    box-shadow: 0 14px 30px rgba(19, 36, 51, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav.open { max-height: 26rem; }
  .nav a {
    padding: 0.95rem 1.4rem;
    border-top: 1px solid rgba(19, 36, 51, 0.08);
    font-size: 1.05rem;
  }
  .nav-cta { margin: 0.8rem 1.4rem 1.1rem; }
  .nav-toggle { display: flex; }

  .brand-text { font-size: 1.15rem; }
  .brand-logo { width: 44px; height: 44px; }

  .services-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-card { left: 10px; bottom: -14px; }
  .gift-inner { flex-direction: column; text-align: center; }
  .mobile-call-bar { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .nav { transition: none; }
}
