/* ==========================================================================
   GGM landing page base stylesheet — 'Simple Form And Call'
   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: 1100px;
  --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.15; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }
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); }
.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }
.grid { display: grid; gap: 24px; }
@media (min-width: 860px) {
  .grid--split { grid-template-columns: 1fr 1fr; 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: 48px; width: auto; }
.brand__name { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.topbar__cta { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.topbar__cta span { opacity: .85; font-size: .9rem; }
.topbar__phone { color: #fff; font-size: 1.15rem; }
@media (max-width: 640px) {
  .topbar__inner { justify-content: center; text-align: center; }
  .brand__logo { max-height: 40px; }
}

/* --- Hero --------------------------------------------------------------- */
/* Background photo shows through a semi-transparent brand overlay so the
   image reads clearly behind the copy while keeping white text legible. */
.hero {
  position: relative;
  padding: 56px 0;
  color: #fff;
  background-color: var(--brand);
  background-image:
    linear-gradient(115deg, rgba(var(--brand-dark-rgb), .72), rgba(var(--brand-rgb), .55)),
    var(--hero-image, none);
  background-size: cover;
  background-position: center;
}
.hero__grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 860px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; align-items: center; }
}
.hero__eyebrow {
  margin: 0 0 12px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .9;
}
.hero__lede { max-width: 34rem; margin: 0 0 22px; font-size: 1.14rem; opacity: .95; }
.hero__callprompt { margin: 0 0 10px; font-weight: 700; font-size: 1.05rem; }
.hero__points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-weight: 600;
}
.hero__points li { position: relative; padding-left: 26px; }
.hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
}

/* Hero form card */
.hero__form { padding: 26px; }
.hero__form h2 { font-size: 1.4rem; }
.hero__formnote { color: var(--ink-soft); margin-bottom: 16px; }

/* --- 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: 800;
  font-size: .98rem;
  cursor: pointer;
  min-height: 48px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.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); }
.btn--call { background: var(--accent); color: #fff; }
.btn--call:hover { background: var(--accent-dark); }
.btn--jumbo {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  padding: 16px 28px;
  border-radius: 12px;
  letter-spacing: .01em;
}

/* --- Trust strip -------------------------------------------------------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); padding: 26px 0; }
.trust__grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}
@media (min-width: 700px) { .trust__grid { grid-template-columns: repeat(5, 1fr); } }
.trust__item { display: grid; gap: 8px; justify-items: center; }
.trust__icon { font-size: 1.9rem; line-height: 1; }
.trust__label { font-weight: 700; font-size: .92rem; color: var(--ink); }

/* --- 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 photo -------------------------------------------------------- */
.about__photo { margin: 0; }
.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: #e2e8f0;
}

/* --- Call band ---------------------------------------------------------- */
.callband {
  background: var(--brand);
  color: #fff;
  padding: 40px 0;
}
.callband__inner {
  display: grid;
  gap: 20px;
  align-items: center;
}
@media (min-width: 760px) {
  .callband__inner { grid-template-columns: 1fr auto; }
}
.callband h2 { margin-bottom: 6px; }
.callband p { margin: 0; opacity: .92; }

/* --- Form --------------------------------------------------------------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 700; 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;
  min-height: 46px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-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);
}

/* --- 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: 40px 0; }
  .section { padding: 40px 0; }
  body { padding-bottom: 72px; }
  .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); font-size: 1.1rem; }
}

/* --- Brand palette (derived from the client's logo) --------------------- */
:root {
  --brand: #1f1f1f;
  --brand-rgb: 31, 31, 31;
  --brand-dark: #0d0d0d;
  --brand-dark-rgb: 13, 13, 13;
  --accent: #cd0609;
  --accent-rgb: 205, 6, 9;
  --accent-dark: #a00507;
  --ink: #1f1f1f;
  /* Aliases so older templates keep working. */
  --blue: var(--brand);
  --blue-dark: var(--brand-dark);
  --orange: var(--accent);
}
