/* ==========================================================================
   GGM landing page base stylesheet
   Tokens -> reset -> layout -> components. One font stack, no per-element
   font overrides, no inline styles needed in the markup.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
/* --brand, --accent and --ink are set from the client's logo in the brand
   palette block at the bottom of this file. Values here are only fallbacks. */
:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #64748b;
  --brand: #0f172a;
  --brand-dark: #0b1220;
  --accent: #0e7490;
  --accent-dark: #155e75;
  --accent-soft: #ecfeff;
  --bg: #f8fafc;
  --surface: #ffffff;
  --line: #e2e8f0;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 8px 24px rgba(15, 23, 42, .06);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1040px;
  --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(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Sitelink jump targets clear the sticky topbar */
section[id], #quote { scroll-margin-top: 88px; }

h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); 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); }
.wrap--narrow { max-width: 760px; }
.section { padding: 56px 0; }
.section--tight { padding: 32px 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 24px; }
@media (min-width: 860px) {
  .grid--split { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Top bar / brand ---------------------------------------------------- */
.topbar { background: var(--brand-dark); color: #fff; padding: 12px 0; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.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; }
.topbar__cta { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.topbar__cta a { color: #fff; }
@media (max-width: 640px) {
  .topbar__inner { justify-content: center; text-align: center; }
  .brand__logo { max-height: 38px; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 72px 0 64px;
  color: #fff;
  background-color: var(--brand);
  background-image:
    linear-gradient(115deg, rgba(var(--brand-dark-rgb), .90), rgba(var(--brand-rgb), .72)),
    var(--hero-image, none);
  background-size: cover;
  background-position: center;
}
.hero__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}
.hero__copy { min-width: 0; }
.hero__eyebrow {
  margin: 0 0 10px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  opacity: .82;
}
.hero__lede { max-width: 34rem; margin: 0 0 26px; font-size: 1.13rem; opacity: .93; }
.hero__meta { margin: 20px 0 0; font-size: .88rem; font-weight: 600; opacity: .85; }
.hero__card { color: var(--ink); }
.hero__card h3 { font-size: 1.3rem; }

/* --- Stat strip --------------------------------------------------------- */
.statstrip { background: var(--brand-dark); color: #fff; padding: 28px 0; }
.statstrip__grid { display: grid; gap: 20px; grid-template-columns: 1fr; text-align: center; }
@media (min-width: 640px) { .statstrip__grid { grid-template-columns: repeat(3, 1fr); } }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.stat__label { font-size: .88rem; opacity: .85; }

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

/* --- Cards & lists ------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.lede { color: var(--ink-soft); font-size: 1.05rem; }
.checklist { margin: 0; padding: 0; list-style: none; color: var(--ink-soft); }
.checklist li { position: relative; padding: 0 0 10px 26px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* --- About media -------------------------------------------------------- */
.about__media { margin: 0; }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: #e2e8f0;
}

/* --- Steps (how it works) ---------------------------------------------- */
.steps { display: grid; gap: 18px; margin-top: 28px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.step__num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); }

/* --- Feature grid (why us) --------------------------------------------- */
.feature {
  padding: 22px 22px 22px 26px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--ink-soft); margin: 0; }

/* --- Form --------------------------------------------------------------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  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(--accent);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, .15);
}
.field textarea { resize: vertical; min-height: 84px; }
.form__note { margin: 0; font-size: .78rem; color: var(--muted); }

/* --- Work gallery ------------------------------------------------------- */
.gallery { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: #e2e8f0;
}

/* --- FAQ ---------------------------------------------------------------- */
.faq { display: grid; gap: 12px; margin-top: 24px; }
.faq__item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 14px 30px 14px 0;
  position: relative;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { color: var(--ink-soft); padding: 0 0 16px; margin: 0; }

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

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

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

/* --- Brand palette (derived from the client's logo) --------------------- */
:root {
  --brand: #575757;
  --brand-rgb: 87, 87, 87;
  --brand-dark: #454545;
  --brand-dark-rgb: 69, 69, 69;
  --accent: #087ebe;
  --accent-rgb: 8, 126, 190;
  --accent-dark: #066192;
  --ink: #1f1f1f;
  /* Aliases so older templates keep working. */
  --blue: var(--brand);
  --blue-dark: var(--brand-dark);
  --orange: var(--accent);
}
