/* ===================================================================
   LandsFlip — styles.css
   Single stylesheet. Plain CSS, mobile-first, no frameworks.
   =================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colors (exact) */
  --forest: #1B4332;
  --forest-light: #2D6A4F;
  --gold: #FFD60A;
  --gold-dark: #E6C009;
  --text: #212529;
  --bg: #F8F9FA;
  --muted: #6C757D;
  --white: #FFFFFF;
  --border: #DEE2E6;

  /* Typography */
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Spacing rhythm (8px scale) */
  --space-section: 80px;
  --radius: 8px;
  --shadow-card: 0 2px 8px rgba(33, 37, 41, 0.08);
  --shadow-card-hover: 0 8px 20px rgba(33, 37, 41, 0.12);
  --container: 1200px;

  /* z-index scale */
  --z-header: 100;
  --z-skip: 1000;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1rem; }
a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: var(--z-skip);
  background: var(--forest);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-gold {
  background: var(--gold);
  color: var(--forest);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }

.btn-gold-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-gold-outline:hover { background: var(--gold); color: var(--forest); transform: translateY(-2px); }

.btn-small {
  font-size: 15px;
  padding: 10px 18px;
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-small:hover { background: var(--forest); color: var(--white); }

.btn-submit { width: 100%; padding: 16px 28px; font-size: 17px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  color: var(--forest);
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--gold-dark); }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--forest);
  min-height: 44px;
  padding: 0 4px;
}
.header-phone:hover { text-decoration: none; color: var(--forest-light); }
.phone-icon { flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}
.hero-inner { max-width: 1200px; }
.hero-title {
  font-weight: 800;
  font-size: 56px;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 20px;
  color: var(--bg);
  max-width: 720px;
  margin: 0 auto 36px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-counties {
  font-size: 14px;
  color: rgba(248, 249, 250, 0.85);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Sections ---------- */
.section { padding: var(--space-section) 0; }
.section-alt { background: var(--white); }
.section-title {
  font-weight: 800;
  font-size: 40px;
  text-align: center;
  color: var(--forest);
  margin-bottom: 48px;
}
.section-body { font-size: 16px; margin-bottom: 1rem; }

/* ---------- What We Do (two columns) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.audience-col {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.section-alt .audience-col { background: var(--bg); }
.col-tag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.col-head { font-size: 24px; color: var(--forest); margin-bottom: 8px; }
.benefit-list { margin-bottom: 28px; }
.benefit-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 16px;
}
.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--gold);
}

/* ---------- Card grids ---------- */
.card-grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.card-title { font-size: 24px; color: var(--forest); margin-bottom: 12px; }
.card p { color: var(--text); margin: 0; }

.step-card { position: relative; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 16px;
}

/* ---------- Forms ---------- */
.form-section .section-body { text-align: left; }
.lead-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-card);
  margin-top: 32px;
  text-align: left;
}
.section-alt .lead-form { background: var(--bg); }

.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field label,
.checkbox-group legend {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
  padding: 0;
}
.req { color: #B91C1C; }
.optional { font-weight: 400; color: var(--muted); font-family: var(--font-body); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  min-height: 44px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 110px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.15);
}

/* Checkbox group */
.checkbox-group { border: none; margin: 0 0 20px; padding: 0; }
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  margin: 0;
  min-height: 44px;
  cursor: pointer;
}
.checkbox input {
  width: 20px;
  height: 20px;
  min-height: auto;
  accent-color: var(--forest);
  margin: 0;
}

.form-status {
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 600;
}
.form-status.is-success { color: var(--forest); }
.form-status.is-error { color: #B91C1C; }
.form-status:empty { margin: 0; }

.form-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
  text-align: left;
}

/* ---------- About ---------- */
.about .section-body { text-align: left; }
.about-contact {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  margin-top: 24px;
}
.about-contact .sep { color: var(--muted); margin: 0 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: var(--bg); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}
.footer-logo { color: var(--white); font-size: 22px; }
.footer-logo span { color: var(--gold); }
.footer-tag { font-size: 14px; color: rgba(248, 249, 250, 0.8); margin: 8px 0 0; }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: var(--bg); font-weight: 600; }
.footer-links a:hover { color: var(--gold); text-decoration: none; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.footer-contact a { color: var(--bg); }
.footer-contact a:hover { color: var(--gold); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(248, 249, 250, 0.15);
  padding: 20px 0;
}
.footer-bottom p { margin: 0; font-size: 13px; color: rgba(248, 249, 250, 0.75); text-align: center; }
.footer-bottom .sep { margin: 0 6px; }

/* ===================================================================
   Responsive — tablet
   =================================================================== */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ===================================================================
   Responsive — mobile
   =================================================================== */
@media (max-width: 768px) {
  :root { --space-section: 56px; }

  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 18px; }
  .section-title { font-size: 28px; margin-bottom: 32px; }

  .two-col { grid-template-columns: 1fr; gap: 20px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .checkbox-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .footer-contact { text-align: center; align-items: center; }

  /* Collapse phone to icon only on mobile */
  .phone-text {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
  }
  .header-phone { min-width: 44px; justify-content: center; }
  .phone-icon { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .lead-form, .audience-col { padding: 24px; }
  .checkbox-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   Reduced motion
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover, .card:hover { transform: none; }
}
