/* ==========================================================================
   GGM landing page stylesheet — Service Business (reference: auto detailing)
   Tokens -> reset -> layout -> components.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --ink: #2d3748;
  --ink-soft: #444444;
  --muted: #555555;
  --blue: #3182ce;
  --blue-dark: #2b6cb0;
  --yellow: #f4c904;
  --orange: #f76a0c;
  --accent: var(--orange);
  --accent-dark: #d95a05;
  --bg: #f5f8fa;
  --surface: #ffffff;
  --line: #e2e8f0;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .1);
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1140px;
  --gutter: 20px;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 14px; line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* --- Layout ------------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 60px 0; }
.grid { display: grid; gap: 26px; }
@media (min-width: 900px) {
  .grid--hero { grid-template-columns: 1.15fr .85fr; align-items: start; }
  .grid--split { grid-template-columns: 1fr 1fr; align-items: center; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.section__title { text-align: center; margin-bottom: 34px; }

/* --- Top bar ------------------------------------------------------------ */
.topbar { background: var(--blue-dark); color: #fff; font-size: .85rem; font-weight: 600; }
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar__stars { color: var(--yellow); }
.topbar__phone { color: #fff; }
.topbar__phone:hover { color: var(--yellow); text-decoration: none; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 60px 0 66px;
  color: #fff;
  /* Solid dark base keeps text readable if the photo is bright/absent. */
  background-color: var(--blue-dark);
  /* Semi-transparent brand tint lets the client's hero photo show through. */
  background-image:
    linear-gradient(115deg, rgba(var(--brand-dark-rgb), .78), rgba(var(--brand-rgb), .55)),
    var(--hero-image, none);
  background-size: cover;
  background-position: center;
}
.hero__copy { align-self: center; }
.hero__eyebrow {
  margin: 0 0 10px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yellow);
}
.hero__sub { max-width: 34rem; margin: 0 0 14px; font-size: 1.2rem; font-weight: 600; }
.hero__lede { max-width: 34rem; margin: 0 0 26px; font-size: 1.02rem; opacity: .95; }
.hero__photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* --- Buttons ------------------------------------------------------------ */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row--center { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.btn--outline { background: transparent; color: var(--blue-dark); border-color: var(--blue-dark); }
.btn--outline:hover { background: var(--blue-dark); color: #fff; }
.btn--submit { background: var(--accent); color: #fff; }
.btn--submit:hover { background: var(--accent-dark); }
.btn--block { width: 100%; }

/* --- Quote card --------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.card--quote { border-top: 6px solid var(--yellow); }
.card__title { color: var(--blue-dark); margin-bottom: 6px; }
.card__sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }

/* --- Reviews ------------------------------------------------------------ */
.section--reviews { background: var(--bg); }
.review {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  color: var(--ink-soft);
}
.review__stars { color: var(--yellow); font-size: 1.1rem; margin-bottom: 10px; letter-spacing: .1em; }
.review__name { display: block; margin-top: 12px; font-style: normal; font-weight: 700; color: var(--ink); }

/* --- Split section ------------------------------------------------------ */
.section--split h2 { color: var(--blue-dark); }
.lede { color: var(--ink-soft); font-size: 1.05rem; }
.checklist { margin: 0 0 22px; padding: 0; list-style: none; color: var(--ink-soft); }
.checklist li { position: relative; padding: 0 0 12px 30px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .4em;
  width: 15px;
  height: 9px;
  border-left: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  transform: rotate(-45deg);
}

/* --- Why choose us / features ------------------------------------------- */
.section--why { background: var(--surface); padding-bottom: 40px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}
.feature__body h3 { color: var(--ink); margin-bottom: 6px; }
.feature__body p { color: var(--ink-soft); }

/* --- Standalone phone CTA button ---------------------------------------- */
.callcta { display: flex; justify-content: center; margin-top: 44px; }
.callcta__btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 16px 48px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  text-align: center;
  box-shadow: 0 0 22px 4px rgba(var(--brand-rgb), .55);
  transition: box-shadow .2s ease, transform .1s ease;
}
.callcta__btn:hover { text-decoration: none; box-shadow: 0 0 30px 8px rgba(var(--brand-rgb), .8); transform: translateY(-1px); }
.callcta__icon { font-size: 1.4rem; line-height: 1; }
.callcta__text { display: flex; flex-direction: column; line-height: 1.2; }
.callcta__lead { font-size: 1.4rem; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; }
.callcta__num { font-size: 1.05rem; font-weight: 700; opacity: .92; }
@media (max-width: 640px) {
  .callcta__btn { padding: 16px 28px; }
  .callcta__lead { font-size: 1.15rem; }
}

/* --- Services ----------------------------------------------------------- */
.section--services { background: var(--bg); }
.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 0 0 26px;
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
}
.service__photo { margin-bottom: 20px; }
.service__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.service h3 { color: var(--blue-dark); padding: 0 22px; }
.service p { color: var(--ink-soft); padding: 0 22px; }

/* --- Call band ---------------------------------------------------------- */
.section--callband { background: var(--blue-dark); color: #fff; padding: 48px 0; }
.callband__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.callband__inner h2 { margin: 0; color: #fff; }

/* --- Gallery ------------------------------------------------------------ */
.section--gallery { background: var(--surface); }
.gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
.gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--bg);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery__item:hover img { transform: scale(1.05); }

/* --- Final CTA ---------------------------------------------------------- */
.section--final { text-align: center; }
.section--final h2 { color: var(--blue-dark); }
.final__inner .lede { max-width: 40rem; margin: 0 auto 24px; }

/* --- Form --------------------------------------------------------------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  font-size: .97rem;
  color: var(--ink);
  background: #fff;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .18);
}
.field textarea { resize: vertical; min-height: 84px; }
.form__note { margin: 0; font-size: .78rem; color: var(--muted); }

/* --- Footer ------------------------------------------------------------- */
.footer {
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: .85rem;
  border-top: 1px solid var(--line);
}
.footer a { color: var(--blue-dark); }

/* --- Thank-you page ----------------------------------------------------- */
.thanks { min-height: 78vh; display: grid; place-items: center; text-align: center; padding: 48px var(--gutter); }
.thanks h1 { margin-bottom: 14px; color: var(--blue-dark); }

/* --- Sticky mobile call bar --------------------------------------------- */
.call-bar { display: none; }
@media (max-width: 640px) {
  .hero { padding: 44px 0 40px; }
  .section { padding: 44px 0; }
  body { padding-bottom: 70px; }
  .call-bar {
    display: block;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 20;
    padding: 10px 14px;
    background: var(--blue-dark);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .18);
  }
  .call-bar .btn { width: 100%; background: var(--accent); color: #fff; }
}

/* --- Brand lockup ------------------------------------------------------- */
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand__logo { max-height: 46px; width: auto; }
.brand__name { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
@media (max-width: 640px) { .brand__logo { max-height: 38px; } }

/* --- Brand palette (derived from the client's logo) --------------------- */
:root {
  --brand: #272122;
  --brand-rgb: 39, 33, 34;
  --brand-dark: #141111;
  --brand-dark-rgb: 20, 17, 17;
  --accent: #d7001c;
  --accent-rgb: 215, 0, 28;
  --accent-dark: #a90016;
  --ink: #312b2c;
  /* Aliases so older templates keep working. */
  --blue: var(--brand);
  --blue-dark: var(--brand-dark);
  --orange: var(--accent);
}
