/* ============================================================
   BACKYARD SPORTS INSTALLER — Premium Redesign 2026
   Aesthetic: Editorial warmth meets precision sport utility
   Fonts: Playfair Display + DM Sans
   Palette: Deep forest green, warm cream, terracotta accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Palette */
  --forest:    #1a3328;
  --forest-2:  #2d5444;
  --forest-3:  #3a6b58;
  --cream:     #f8f4ef;
  --cream-2:   #ede8e1;
  --paper:     #ffffff;
  --ink:       #1a1a1a;
  --ink-2:     #3d3d3d;
  --muted:     #7a7870;
  --line:      #dfd9d1;
  --terra:     #c4562a;
  --terra-2:   #e07448;
  --terra-soft:#fdf0ea;
  --gold:      #c09437;
  --gold-soft: #fdf7ea;

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Layout */
  --max: 1200px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow: 0 8px 40px rgba(26,51,40,.10);
  --shadow-sm: 0 4px 16px rgba(26,51,40,.08);
  --shadow-lg: 0 20px 60px rgba(26,51,40,.15);
}

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1rem;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

/* ── Utilities ────────────────────────────────────────── */
.container { width: min(var(--max), 93%); margin: 0 auto; }

.kicker {
  display: inline-block;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: rgba(196,86,42,.12);
  color: var(--terra);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.kicker-green {
  background: rgba(45,84,68,.12);
  color: var(--forest-2);
}

.tag {
  display: inline-block;
  padding: .25rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--paper);
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  padding: .85rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--terra);
  color: #fff;
  box-shadow: 0 8px 24px rgba(196,86,42,.28);
}
.btn-primary:hover { background: #b04826; box-shadow: 0 12px 32px rgba(196,86,42,.36); }
.btn-ghost {
  background: transparent;
  border: 2px solid var(--forest);
  color: var(--forest);
}
.btn-ghost:hover { background: var(--forest); color: #fff; }
.btn-white {
  background: #fff;
  color: var(--forest);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.btn-white:hover { background: var(--cream); }

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,244,239,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--forest);
  line-height: 1.2;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.nav a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-2);
  transition: color .15s;
}
.nav a:hover, .nav a.active { color: var(--forest); }
.nav a.active { font-weight: 600; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #f0ede7 0%, var(--cream) 60%);
  padding: 5rem 0 4rem;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,84,68,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.hero h1 {
  color: var(--forest);
  margin-bottom: 1.25rem;
}
.hero-lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  color: var(--muted);
  font-weight: 500;
}
.trust-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--forest-2);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .65rem;
  flex-shrink: 0;
}
.hero-image-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255,255,255,.6);
  background: #fff;
}
.hero-image-wrap img { width: 100%; }

/* ── Sport Cards Grid ─────────────────────────────────── */
.section { padding: 5rem 0; }
.section-alt { background: #fff; }
.section-forest {
  background: var(--forest);
  color: #fff;
}
.section-cream { background: var(--cream-2); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.section-header h2 { color: var(--forest); }
.section-header p { color: var(--muted); font-size: 1.05rem; }

.sport-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.sport-card {
  display: block;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.sport-card::after {
  content: '→';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.1rem;
  color: var(--terra);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s, transform .2s;
}
.sport-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--terra);
}
.sport-card:hover::after { opacity: 1; transform: translateX(0); }
.sport-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--forest);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}
.sport-card h3 { font-size: 1.1rem; margin-bottom: .5rem; color: var(--forest); }
.sport-card p { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ── Why Section ──────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 2.5rem;
  align-items: start;
}
.prose-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.prose-panel h2 { color: var(--forest); }
.prose-panel h3 { color: var(--forest); margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.prose-panel h3:first-of-type { margin-top: 1rem; }
.prose-panel ul, .prose-panel ol { padding-left: 1.3rem; }
.prose-panel li { margin-bottom: .55rem; }
.prose-panel a { color: var(--terra); font-weight: 600; }
.prose-panel a:hover { text-decoration: underline; }

.warn-box {
  background: var(--terra-soft);
  border-left: 4px solid var(--terra);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.warn-box strong { color: var(--terra); }

.info-box {
  background: rgba(45,84,68,.06);
  border-left: 4px solid var(--forest-2);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.info-box strong { color: var(--forest-2); }

/* ── Sidebar ──────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1.2rem; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.card.card-forest {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.card.card-forest h3, .card.card-forest h4 { color: #fff; }
.card.card-forest p { color: rgba(255,255,255,.8); }
.card h3 { color: var(--forest); margin-bottom: .6rem; }
.card h4 { color: var(--forest); margin-bottom: .8rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card a { display: block; color: var(--terra); font-weight: 600; font-size: .95rem; margin: .4rem 0; }
.card a:hover { text-decoration: underline; }
.sidebar .card:first-child { position: sticky; top: 88px; }

/* ── Process Steps ────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.process-step {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.4rem;
  position: relative;
}
.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--terra);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.process-step h3 { color: var(--forest); font-size: 1.1rem; }
.process-step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ── Cost Table ───────────────────────────────────────── */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.cost-table th {
  background: var(--forest);
  color: #fff;
  padding: .9rem 1rem;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
}
.cost-table th:first-child { border-radius: 8px 0 0 0; }
.cost-table th:last-child { border-radius: 0 8px 0 0; }
.cost-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr:nth-child(even) td { background: var(--cream); }
.cost-table .price { font-weight: 700; color: var(--forest); white-space: nowrap; }

/* ── FAQ ──────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  padding: 1.2rem 1.4rem;
  font-weight: 600;
  color: var(--forest);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--terra);
  flex-shrink: 0;
  line-height: 1;
  transition: transform .2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 1.4rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  color: var(--ink-2);
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding: 0 1.4rem 1.2rem;
}

/* ── CTA Band ─────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 100%);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 1.5rem; }
.cta-image { border-radius: var(--radius-lg); overflow: hidden; }
.cta-image img { width: 100%; }

/* ── Article Grid ─────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.article-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.article-card .meta { font-size: .82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }
.article-card h3 { font-size: 1.05rem; color: var(--forest); margin-bottom: .5rem; line-height: 1.35; }
.article-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ── Quiz Box ─────────────────────────────────────────── */
.quiz-box {
  background: var(--terra-soft);
  border: 1px solid rgba(196,86,42,.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
label {
  display: block;
  margin-bottom: .45rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--forest);
}
input, textarea, select {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--terra);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.spacer { height: 1rem; }

/* ── Badge Row ────────────────────────────────────────── */
.badge-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.badge {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
}

/* ── Key Stats / Numbers ──────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.stat-block {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
}
.stat-block .stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--terra-2);
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-block .stat-label {
  font-size: .88rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

/* On light backgrounds */
.stat-block.light { background: var(--cream); border-color: var(--line); }
.stat-block.light .stat-num { color: var(--forest); }
.stat-block.light .stat-label { color: var(--muted); }

/* ── Checklist ────────────────────────────────────────── */
.checklist { list-style: none; padding: 0; }
.checklist li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.checklist li:last-child { border-bottom: none; }
.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .7rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  background: var(--forest);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .logo-text { color: #fff; }
.footer p { font-size: .92rem; line-height: 1.7; margin-top: .75rem; }
.footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.footer a { display: block; color: rgba(255,255,255,.7); font-size: .92rem; margin: .4rem 0; transition: color .15s; }
.footer a:hover { color: #fff; }
.footer-note {
  padding-top: 1.5rem;
  font-size: .88rem;
  color: rgba(255,255,255,.45);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-note a { display: inline; color: rgba(255,255,255,.55); margin: 0 .4rem; }

/* ── Highlight Block ──────────────────────────────────── */
.highlight-block {
  background: var(--gold-soft);
  border: 1px solid rgba(192,148,55,.25);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
}
.highlight-block strong { color: var(--gold); }

/* ── Page Hero (inner pages) ──────────────────────────── */
.page-hero {
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-2) 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
}
.page-hero .kicker { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); }
.page-hero h1 { color: #fff; max-width: 780px; }
.page-hero .lead { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 680px; margin-top: .75rem; }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
}
.page-hero-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.page-hero-meta .tag {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.25);
  color: rgba(255,255,255,.85);
}

/* ── Number list ──────────────────────────────────────── */
.num-list { list-style: none; padding: 0; counter-reset: nums; }
.num-list li {
  counter-increment: nums;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.num-list li:last-child { border-bottom: none; }
.num-list li::before {
  content: counter(nums);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--terra);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Testimonial ──────────────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  position: relative;
}
.testimonial::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--terra);
  opacity: .25;
  position: absolute;
  top: .5rem;
  left: 1.2rem;
  line-height: 1;
}
.testimonial p { font-style: italic; color: var(--ink-2); position: relative; z-index: 1; margin-bottom: .8rem; }
.testimonial-author { font-size: .88rem; font-weight: 600; color: var(--muted); }

/* ── Mobile ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sport-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image-wrap { display: none; }
  .split { grid-template-columns: 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-image { display: none; }
  .sport-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .btn { padding: .75rem 1.3rem; font-size: .95rem; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 3.5rem 0; }
}

/* ── Utility ──────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-forest { color: var(--forest); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.small { font-size: .9rem; }
