/* ============================================================
   Gallop Solutions — design system
   Palette: paper #F5F6F2 · ink #15211C · racing green #14503A
            wash #E4ECE3 · brass #B98A2E · muted #57655C
   Type:    Bricolage Grotesque (display) · Archivo (body)
            IBM Plex Mono (labels)
   ============================================================ */

:root {
  --paper: #F5F6F2;
  --ink: #15211C;
  --green: #14503A;
  --green-deep: #0C3325;
  --wash: #E4ECE3;
  --brass: #B98A2E;
  --muted: #57655C;
  --line: #CBD5CC;
  --radius: 10px;
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Archivo", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Archivo", sans-serif;
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); max-width: 20ch; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); max-width: 26ch; }
h3 { font-size: 1.25rem; }

p { max-width: 64ch; }

a { color: var(--green); }

.mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow { color: var(--green); margin-bottom: 0.9rem; }

.section-lede { color: var(--muted); margin-top: 0.6rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 26px; height: 26px; color: var(--green); }
.brand-name { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-light { color: var(--green); font-weight: 600; }

.nav-list { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-list a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.nav-list a:hover { color: var(--green); }
.nav-cta {
  background: var(--green); color: #fff !important;
  padding: 9px 16px; border-radius: 999px;
}
.nav-cta:hover { background: var(--green-deep); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 13px 24px; border-radius: 999px; font-size: 0.98rem;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--wash); }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero-lede { margin-top: 1.2rem; font-size: 1.15rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  list-style: none; margin-top: 2.6rem; color: var(--muted);
}
.hero-proof li::before { content: "—"; color: var(--brass); margin-right: 8px; }

.page-hero { padding: 76px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero .hero-lede { margin-top: 1.1rem; font-size: 1.12rem; color: var(--muted); }
.page-hero .hero-actions { margin-top: 1.8rem; }

/* ---------- Cards (products) ---------- */
.products { padding: 72px 0; }
.card-grid {
  display: grid; gap: 22px; margin-top: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--green); transform: translateY(-3px); }
.card h3 { color: var(--green-deep); }
.card p { margin-top: 0.7rem; color: var(--muted); font-size: 0.98rem; }
.card ul { margin: 1rem 0 0 1.1rem; color: var(--ink); font-size: 0.95rem; }
.card ul li { margin-bottom: 0.35rem; }
.card-link { display: inline-block; margin-top: 1.2rem; font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ---------- Lifecycle track (signature) ---------- */
.lifecycle { background: var(--green-deep); color: #EDF3EC; padding: 80px 0 88px; }
.lifecycle .eyebrow { color: var(--brass); }
.lifecycle h2 { color: #fff; }
.lifecycle .section-lede { color: #B9CCBE; }

.track {
  list-style: none; margin-top: 3rem;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0;
  position: relative;
}
/* the rail */
.track::before {
  content: ""; position: absolute; top: 7px; left: 3%; right: 3%;
  border-top: 2px dashed color-mix(in srgb, #EDF3EC 35%, transparent);
}
.track-stop { position: relative; padding: 0 10px; }
.track-node {
  display: block; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-deep); border: 3px solid var(--brass);
  margin-bottom: 14px; position: relative; z-index: 1;
}
.track-stop:last-child .track-node { background: var(--brass); }
.track-stage { display: block; font-weight: 700; font-family: "Bricolage Grotesque", sans-serif; font-size: 0.98rem; }
.track-detail { display: block; margin-top: 4px; font-size: 0.82rem; color: #AFC4B4; line-height: 1.45; }

/* ---------- Services strip ---------- */
.services-strip { padding: 72px 0; background: var(--wash); }
.service-grid {
  display: grid; gap: 18px; margin: 2.2rem 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.service { background: #fff; border-radius: var(--radius); padding: 24px 22px; border: 1px solid var(--line); }
.service h3 { font-size: 1.08rem; color: var(--green-deep); }
.service p { margin-top: 0.55rem; font-size: 0.93rem; color: var(--muted); }

/* ---------- Service detail (services page) ---------- */
.service-detail { padding: 64px 0; border-bottom: 1px solid var(--line); }
.service-detail.alt { background: var(--wash); }
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }

/* ---------- Regions ---------- */
.regions { padding: 72px 0; }
.region-grid {
  display: grid; gap: 16px; margin-top: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.region { border-top: 3px solid var(--green); padding-top: 14px; }
.region .mono { color: var(--brass); }
.region p { font-size: 0.92rem; color: var(--muted); margin-top: 6px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); color: #fff; padding: 76px 0; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: #D4E4D6; margin: 1rem 0 1.8rem; }
.cta-band .btn-primary { background: #fff; color: var(--green-deep); }
.cta-band .btn-primary:hover { background: var(--wash); }

/* ---------- About ---------- */
.about-body { padding: 64px 0; }
.prose p { margin-bottom: 1.3rem; font-size: 1.08rem; }

/* ---------- Contact ---------- */
.contact-section { padding: 64px 0; }
.contact-form { display: grid; gap: 8px; max-width: 540px; }
.contact-form label { font-weight: 600; font-size: 0.92rem; margin-top: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green);
}
.contact-form .btn { margin-top: 20px; justify-self: start; }
.form-success {
  background: var(--wash); border-left: 4px solid var(--green);
  padding: 18px 20px; border-radius: 8px; margin-bottom: 28px;
}
.form-success h2 { font-size: 1.2rem; }
.contact-aside { border-left: 1px solid var(--line); padding-left: 36px; }
.next-steps { margin: 0.8rem 0 2rem 1.2rem; }
.next-steps li { margin-bottom: 0.6rem; font-size: 0.96rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C8D3CB; padding: 64px 0 28px; }
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
}
.footer-title { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; color: #fff; font-size: 1.15rem; }
.footer-copy { font-size: 0.92rem; margin-top: 0.7rem; }
.footer-regions { margin-top: 1rem; color: var(--brass); }
.footer-heading { color: #8CA295; margin-bottom: 0.8rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #E3EAE4; text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--brass); }
.footer-bottom { border-top: 1px solid #2B3A31; margin-top: 48px; padding-top: 22px; font-size: 0.85rem; color: #7E938A; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .track { grid-template-columns: 1fr; gap: 22px; }
  .track::before {
    top: 8px; bottom: 8px; left: 7px; right: auto;
    border-top: none; border-left: 2px dashed color-mix(in srgb, #EDF3EC 35%, transparent);
  }
  .track-stop { padding-left: 36px; }
  .track-node { position: absolute; left: 0; top: 3px; margin: 0; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-aside { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 36px; }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block; background: none; border: 1.5px solid var(--green);
    color: var(--green); font: inherit; font-weight: 600;
    padding: 7px 14px; border-radius: 999px; cursor: pointer;
  }
  .nav-list {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 18px 24px; gap: 16px;
  }
  .nav-list.open { display: flex; }
  .hero { padding: 64px 0 56px; }
}
