/* Groundline Commerce — main stylesheet
   Palette: navy / white / charcoal / teal. Mobile-first, accessible. */

:root {
  --navy: #0e2a47;
  --navy-deep: #0a1f36;
  --navy-soft: #16395e;
  --charcoal: #23272e;
  --charcoal-deep: #14161a;
  --olive: #4d6726;          /* brand deep olive (logo) */
  --olive-dark: #3a4f1e;
  --olive-deep: #2c3a16;
  --text: #2b3038;
  --muted: #5b6470;
  --teal: #0e7c6f;          /* buttons / interactive (4.5:1+ on white) */
  --teal-bright: #1b9e8f;  /* decorative accents only */
  --teal-dark: #0a5f55;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --border: #dde3ea;
  --radius: 10px;
  --maxw: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.35);
  color: #fff; border-radius: 8px; padding: 8px 12px; font-size: 15px; cursor: pointer;
}
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: #e8edf3; text-decoration: none; font-weight: 500; font-size: 15.5px;
  padding: 10px 14px; border-radius: 8px;
}
.nav-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-links a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.nav-cta a {
  background: var(--teal); color: #fff !important; font-weight: 600;
}
.nav-cta a:hover { background: var(--teal-dark); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(100deg, rgba(20,22,26,.92) 0%, rgba(20,22,26,.55) 45%, rgba(20,22,26,.05) 78%),
    radial-gradient(1000px 480px at 88% -10%, rgba(77,103,38,.55), transparent 60%),
    linear-gradient(155deg, var(--charcoal-deep) 0%, var(--charcoal) 45%, var(--olive-deep) 110%);
  color: #fff; padding: 88px 20px 96px;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; }
.hero-kicker {
  display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: #cfdcae; font-weight: 600; margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.15; margin: 0 0 18px;
  letter-spacing: -0.02em; max-width: 16em;
}
.hero p.lead { font-size: 1.15rem; color: #cfd9e4; max-width: 38em; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: var(--radius); cursor: pointer; border: 2px solid transparent;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--olive) 0%, var(--olive-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(20,22,26,.25);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--olive-dark) 0%, var(--olive-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(20,22,26,.32);
}
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); color: #fff; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--teal-bright); outline-offset: 2px;
}

/* ---------- Sections ---------- */
.section { padding: 72px 20px; }
.section.alt { background: var(--bg-soft); }
.container { max-width: var(--maxw); margin: 0 auto; }
.section-kicker {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); font-weight: 700; margin-bottom: 10px;
}
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.015em;
  margin: 0 0 16px; color: var(--navy-deep); line-height: 1.25;
}
.section p { max-width: 44em; }
.lead { font-size: 1.12rem; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: box-shadow .18s ease, transform .18s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--charcoal-deep), var(--olive));
}
.card:hover { box-shadow: 0 10px 30px rgba(14,42,71,.10); transform: translateY(-2px); }
.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .card-icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-bright); font-size: 22px; font-weight: 700;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 8px; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "✓"; position: absolute; left: 4px; top: 10px;
  color: var(--teal); font-weight: 800;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--charcoal-deep) 0%, var(--olive-deep) 60%, var(--olive) 100%);
  color: #fff; padding: 64px 20px; text-align: center;
}
.cta-band h2 { color: #fff; margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: #e6f4f1; max-width: 36em; margin: 0 auto 28px; }
.cta-band .btn-primary { background: #fff; color: var(--teal-dark); }
.cta-band .btn-primary:hover { background: #eaf6f3; color: var(--teal-dark); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 380px at 88% -20%, rgba(77,103,38,.45), transparent 60%),
    linear-gradient(160deg, var(--charcoal-deep) 0%, var(--charcoal) 55%, var(--olive-deep) 130%);
  color: #fff; padding: 60px 20px 56px;
}
.page-hero h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
.page-hero p { color: #cfd9e4; margin: 0; max-width: 42em; font-size: 1.08rem; }

/* ---------- Forms ---------- */
.form-wrap { max-width: 680px; }
.form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.form-group label .req { color: #b3261e; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px; font-size: 16px; font-family: inherit;
  border: 1.5px solid var(--border); border-radius: 8px; background: #fff; color: var(--text);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--teal); outline: 3px solid rgba(27,158,143,.18);
}
.field-hint { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.checkbox-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 8px; }
.checkbox-group label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.checkbox-group input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--teal); }
.hp { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px; height: 1px; overflow: hidden; }

.form-message {
  display: none; border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; font-size: 15.5px;
}
.form-message.show { display: block; }
.form-message.success { background: #e7f6f1; border: 1px solid #9ed9cd; color: #0a5f55; }
.form-message.error { background: #fdecea; border: 1px solid #f5c6c0; color: #8f1d16; }
.form button[type="submit"] { width: 100%; font-size: 17px; }
.form button[type="submit"]:disabled { opacity: .65; cursor: wait; }

.contact-details { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-details li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.contact-details li:last-child { border-bottom: 0; }
.contact-details strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #c9d1da; padding: 56px 20px 28px; font-size: 15px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 26em; color: #aeb7c2; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #c9d1da; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13.5px; color: #8d97a3;
}
.footer-bottom a { color: #aeb7c2; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 100px 20px; }
.error-page .code { font-size: 5rem; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: 8px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .checkbox-group { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--navy-deep); flex-direction: column; padding: 12px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.1); gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 10px; }
  .header-inner { position: relative; }
  .section { padding: 52px 20px; }
  .hero { padding: 64px 20px 72px; }
  .form { padding: 24px 20px; }
}
