/*
Theme Name: Four Brothers Auto Detail
Theme URI: https://example.com/
Author: OpenAI
Description: A clean, premium WordPress theme for a mobile auto detailing business, built for easy client handoff with ACF Free and Classic Editor.
Version: 1.0.0
Text Domain: four-brothers-auto-detail
*/

:root {
  --graphite: #1f2329;
  --graphite-2: #2a3037;
  --graphite-3: #343b44;
  --slate: #6e8093;
  --slate-light: #c7d1da;
  --mist: #edf1f4;
  --white: #ffffff;
  --stone: #c4ced7;
  --sand: #d9d0c7;
  --text: #27303a;
  --text-soft: #637182;
  --border: #dde4ea;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 48px rgba(18, 24, 31, 0.08);
  --shadow-soft: 0 10px 30px rgba(18, 24, 31, 0.06);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 {
  margin: 0 0 1rem;
  color: var(--graphite);
  line-height: 1.15;
  font-family: 'Manrope', 'Inter', sans-serif;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; }
ul { padding-left: 1.1rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.narrow { width: min(100%, 760px); margin-inline: auto; }
.centered { text-align: center; }
.site-main { overflow: hidden; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221,228,234,0.8);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 86px;
}
.site-brand img {
  width: min(100%, 300px);
  max-height: 56px;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.25rem;
}
.menu a {
  color: var(--graphite);
  font-weight: 600;
}
.menu a:hover,
.menu .current-menu-item > a {
  color: var(--slate);
}
.menu-toggle {
  display: none;
  background: var(--mist);
  border: 1px solid var(--border);
  color: var(--graphite);
  padding: .8rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid transparent;
}
.button:hover { transform: translateY(-1px); }
.button-primary-solid {
  background: var(--graphite);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.button-primary-solid:hover { background: var(--graphite-2); }
.button-outline {
  background: transparent;
  color: var(--graphite);
  border-color: var(--graphite);
}
.button-outline:hover {
  background: var(--graphite);
  color: var(--white);
}
.header-cta { margin-left: .5rem; }

.hero,
.page-hero {
  padding: 5rem 0 3.5rem;
}
.hero-home {
  background:
    radial-gradient(circle at top right, rgba(199,209,218,.38), transparent 30%),
    linear-gradient(180deg, #f7f9fb 0%, #fff 100%);
}
.hero-grid,
.split-info,
.about-grid,
.contact-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero-grid { grid-template-columns: 1.15fr .95fr; }
.hero-copy { max-width: 650px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--slate);
  margin-bottom: 1rem;
}
.lead {
  color: var(--text-soft);
  font-size: 1.08rem;
  max-width: 62ch;
}
.hero-media img,
.about-media img,
.showcase-card img,
.gallery-grid img,
.image-stack img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero-media img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}
.button-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0 1.5rem;
}
.badge-row,
.trust-stack {
  display: grid;
  gap: 1rem;
}
.badge-row { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.25rem; }
.mini-badge {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
}
.mini-badge strong { display: block; color: var(--graphite); font-size: .98rem; }
.mini-badge span { display: block; color: var(--text-soft); font-size: .94rem; margin-top: .2rem; }

.section {
  padding: 5rem 0;
}
.section-muted { background: var(--mist); }
.section-dark {
  background: var(--graphite);
  color: rgba(255,255,255,0.88);
}
.section-dark h2,
.section-dark h3,
.section-dark strong { color: var(--white); }
.section-heading {
  margin-bottom: 2rem;
  max-width: 720px;
}
.section-heading.centered { margin-inline: auto; }
.section-heading.light p,
.section-dark .eyebrow { color: rgba(255,255,255,.75); }
.section-heading p { color: var(--text-soft); }
.section-note { margin-top: 1.4rem; color: var(--text-soft); }

.card-grid {
  display: grid;
  gap: 1.4rem;
}
.three-up { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.service-card { display: flex; flex-direction: column; }
.service-card h3 { margin-bottom: .7rem; }
.service-price {
  display: inline-flex;
  align-self: flex-start;
  background: rgba(110,128,147,.12);
  color: var(--slate);
  font-size: .9rem;
  font-weight: 800;
  padding: .45rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.check-list {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-top: .6rem;
  color: var(--text-soft);
}
.check-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--slate);
  font-size: 1.2rem;
  line-height: 1;
}

.before-after-grid,
.stat-grid,
.gallery-grid,
.faq-list,
.footer-grid,
.footer-bottom,
.form-grid {
  display: grid;
  gap: 1.4rem;
}
.before-after-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.showcase-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.showcase-card img { width: 100%; }
.showcase-copy { padding: 1.2rem 1.25rem 1.4rem; }

.testimonial-card {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.88);
}
.testimonial-card .quote { color: rgba(255,255,255,0.82); }
.stars { color: #d8dfe5; letter-spacing: .15em; margin-bottom: 1rem; }
.person-meta {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.person-meta span { color: rgba(255,255,255,0.7); }

.split-info { grid-template-columns: 1fr 1fr; }
.info-card,
.about-media,
.form-card,
.contact-sidebar { padding: 0; overflow: hidden; }
.info-card img:first-child,
.image-stack img:first-child { margin-bottom: 1rem; }
.info-card img,
.image-stack img { width: 100%; }
.cta-band {
  padding: 2.2rem 0 5rem;
}
.cta-band-inner {
  background: linear-gradient(135deg, var(--graphite) 0%, var(--graphite-3) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow);
}
.cta-band-inner h2,
.cta-band-inner .eyebrow { color: var(--white); }
.cta-band-inner p { color: rgba(255,255,255,.8); margin-bottom: 0; max-width: 52ch; }

.page-hero {
  background: linear-gradient(180deg, rgba(237,241,244,.75) 0%, rgba(255,255,255,1) 100%);
}
.about-grid { grid-template-columns: 1.05fr .95fr; }
.prose p { color: var(--text-soft); }
.stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card {
  text-align: center;
  padding: 2rem 1rem;
}
.stat-card strong {
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: .65rem;
}
.stat-card span { color: var(--text-soft); font-weight: 600; }
.value-card p { color: var(--text-soft); }

.service-gallery { align-items: start; }
.gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.gallery-grid img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq-item p { color: var(--text-soft); }

.contact-layout { grid-template-columns: .9fr 1.1fr; align-items: start; }
.contact-sidebar,
.form-card {
  padding: 1.6rem;
}
.contact-sidebar h2 { font-size: 1.8rem; }
.info-list > div + div { margin-top: 1.2rem; }
.info-list strong {
  display: block;
  color: var(--graphite);
  margin-bottom: .35rem;
}
.info-list p,
.info-list a { color: var(--text-soft); }

.contact-form-wrap { width: 100%; }
.form-notice {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-weight: 600;
}
.form-notice.success { background: #e8f4ea; color: #2d6b3f; }
.form-notice.error { background: #fce9ea; color: #8b333e; }
.estimate-form label {
  display: block;
  font-weight: 700;
  margin-bottom: .45rem;
  color: var(--graphite);
}
.estimate-form input,
.estimate-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #f9fbfc;
  border-radius: 14px;
  padding: .95rem 1rem;
  font: inherit;
  color: var(--text);
}
.estimate-form input:focus,
.estimate-form textarea:focus {
  outline: 2px solid rgba(110,128,147,.22);
  border-color: var(--slate);
}
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid p,
.estimate-form > p { margin: 0 0 1rem; }
.form-submit-row { margin-top: .5rem; }

.site-footer {
  background: var(--graphite);
  color: rgba(255,255,255,0.82);
  padding: 4rem 0 2rem;
}
.footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
.footer-logo { max-width: 290px; margin-bottom: 1rem; }
.site-footer h4 { color: var(--white); margin-bottom: .75rem; }
.site-footer p, .site-footer a { color: rgba(255,255,255,0.78); }
.footer-bottom {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .split-info,
  .about-grid,
  .contact-layout,
  .footer-grid,
  .footer-bottom,
  .three-up,
  .faq-list,
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid,
  .before-after-grid,
  .form-grid,
  .badge-row { grid-template-columns: 1fr 1fr; }
  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .site-brand img { width: 220px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    inset: 86px 1rem auto 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .primary-nav.is-open { display: flex; }
  .menu { flex-direction: column; gap: .2rem; }
  .menu a { display: block; padding: .75rem 0; }
  .header-cta { margin-left: 0; width: 100%; text-align: center; }
  .hero,
  .page-hero,
  .section { padding: 3.8rem 0; }
  .gallery-grid,
  .before-after-grid,
  .form-grid,
  .badge-row { grid-template-columns: 1fr; }
  .button-row { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
}
