/* ==========================================================================
   Just Swing Golf Co. — Design System
   Palette / type per research/brand-theme.md
   ========================================================================== */

:root {
  --fairway: #1b4332;
  --fairway-dark: #12301f;
  --ink: #12213a;
  --gold: #e8a33d;
  --gold-dark: #8a5a12;
  --gold-text: #8f5b19; /* AA-contrast (4.5:1+) gold for small text on cream */
  --gold-text-lg: #a86c1f; /* AA-contrast (3:1+) gold for large/bold text on cream */
  --scorecard-red: #c1442d;
  --cream: #f7f5ef;
  --cream-2: #efece2;
  --charcoal: #20241f;
  --grey: #d8d3c6;
  --grey-text: #5b5c53;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(18, 33, 26, 0.08);
  --shadow-lg: 0 12px 40px rgba(18, 33, 26, 0.14);
  --max: 1180px;
  --font-head: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--charcoal); }
.lede { font-size: 1.15rem; color: var(--grey-text); }

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

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark p { color: #cfd6d0; }
.section--fairway { background: var(--fairway); color: var(--cream); }
.section--fairway h2, .section--fairway h3 { color: var(--cream); }
.section--fairway p { color: #dfe9e2; }
.section--alt { background: var(--cream-2); }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--gold-text);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 12px;
}
.section--dark .eyebrow, .section--fairway .eyebrow { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-dark); color: var(--cream); box-shadow: var(--shadow); }
.btn--outline { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn--outline:hover { background: rgba(247,245,239,0.12); }
.btn--dark { background: var(--fairway); color: var(--cream); }
.btn--dark:hover { background: var(--fairway-dark); box-shadow: var(--shadow); }
.btn--full { width: 100%; justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--grey);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo__word { font-family: var(--font-head); line-height: 1.05; }
.logo__word b { display: block; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--fairway); font-weight: 700; }
.logo__word span { display: block; font-size: 0.62rem; letter-spacing: 0.22em; color: var(--ink); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--charcoal);
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--fairway); }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__call {
  display: flex; align-items: center; gap: 6px;
  color: var(--fairway); font-weight: 700; font-size: 0.9rem; text-decoration: none;
  white-space: nowrap;
}
.nav__call svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav__call:hover { color: var(--fairway-dark); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .nav__links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--grey);
    box-shadow: var(--shadow);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding: 14px 24px; border-bottom: 1px solid var(--grey-text-soft, #eee); }
  .nav__actions { gap: 10px; }
  .nav__call-text { display: none; }
  .nav__call { padding: 8px; }
  .nav__cta { padding: 10px 14px; font-size: 0.82rem; }
  .nav__toggle { display: inline-flex; }
  .site-header__bar { position: relative; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--fairway) 0%, var(--fairway-dark) 60%, var(--ink) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 82% 20%, rgba(232,163,61,0.18), transparent 45%);
  pointer-events: none;
}
.hero__inner { padding: 90px 0 80px; position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 780px; }
.hero p.lede { color: #e3ece5; max-width: 620px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 32px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(247,245,239,0.1); border: 1px solid rgba(247,245,239,0.25);
  padding: 8px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
}
.badge svg { width: 16px; height: 16px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page hero (interior pages) */
.page-hero { background: var(--ink); color: var(--cream); padding: 56px 0; }
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.breadcrumb { font-size: 0.85rem; color: #7d889c; margin-bottom: 14px; }
.breadcrumb a { color: var(--white); text-decoration: underline; }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--grey);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.card--flush { padding: 0; overflow: hidden; }
.icon-badge {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--cream-2); display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: var(--fairway);
}
.icon-badge svg { width: 24px; height: 24px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 4px; }
.step__num {
  font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; color: var(--gold-text-lg);
  display: block; margin-bottom: 6px;
}

/* Setup compare */
.setup-card { display: flex; flex-direction: column; gap: 14px; }
.setup-card .specs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.92rem; }
.setup-card .specs li { display: flex; gap: 8px; align-items: flex-start; }
.setup-card .specs svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--fairway); }

/* Placeholder art (used instead of real, unavailable photography) */
.ph {
  background: repeating-linear-gradient(135deg, var(--cream-2), var(--cream-2) 10px, #e6e2d4 10px, #e6e2d4 20px);
  border: 2px dashed var(--grey);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  color: var(--grey-text); text-align: center; padding: 20px; gap: 8px;
  min-height: 180px;
}
.ph svg { width: 34px; height: 34px; opacity: 0.6; }
.ph span { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* Tables (rates) */
.rate-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rate-table th, .rate-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--grey); }
.rate-table th { font-family: var(--font-head); background: var(--fairway); color: var(--cream); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.rate-table td.price { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--fairway); }
.rate-table tr:last-child td { border-bottom: none; }
.rate-table tr:nth-child(even) td { background: var(--cream-2); }

/* FAQ */
details.faq-item { background: var(--white); border: 1px solid var(--grey); border-radius: var(--radius-sm); margin-bottom: 12px; padding: 4px 0; }
details.faq-item summary {
  cursor: pointer; padding: 16px 22px; font-family: var(--font-head); font-weight: 700; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-dark); flex-shrink: 0; }
details.faq-item[open] summary::after { content: "\2212"; }
details.faq-item .faq-a { padding: 0 22px 20px; color: var(--grey-text); }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 0.88rem; color: var(--ink); }
input, textarea, select {
  font-family: var(--font-body); font-size: 1rem; padding: 12px 14px;
  border: 1.5px solid var(--grey); border-radius: var(--radius-sm); background: var(--white);
  color: var(--charcoal);
}
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(232,163,61,0.45); border-color: var(--gold-dark); }
textarea { resize: vertical; min-height: 120px; }

/* Divider motif — dotted flight path */
.flight-divider { height: 26px; margin: 0 auto; max-width: 260px; }

/* Footer */
.site-footer { background: var(--ink); color: #cfd6d0; padding: 56px 0 26px; }
.site-footer h2 { color: var(--cream); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer p { color: #cfd6d0; }
.site-footer a { text-decoration: none; color: #cfd6d0; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; font-size: 0.92rem; }
.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; background: rgba(247,245,239,0.08); display: flex; align-items: center; justify-content: center; }
.social-row svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgba(247,245,239,0.14); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: #9aa39c; }
.footer-bottom a { color: #9aa39c; }

/* Footer newsletter */
.footer-newsletter {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
  border-top: 1px solid rgba(247,245,239,0.14); padding-top: 28px; margin-bottom: 10px;
}
.footer-newsletter h2 { margin-bottom: 4px; }
.footer-newsletter p { margin: 0; font-size: 0.9rem; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  min-width: 220px; background: rgba(247,245,239,0.08); border-color: rgba(247,245,239,0.25); color: var(--cream);
}
.newsletter-form input::placeholder { color: #9aa39c; }
.newsletter-consent { font-size: 0.78rem; color: #9aa39c; max-width: 640px; margin: 0 0 18px; }
.newsletter-note { color: var(--gold); font-weight: 700; font-size: 0.85rem; margin: 0 0 18px; }
.newsletter-error { color: #e8785f; font-weight: 700; font-size: 0.85rem; margin: 0 0 18px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Trust strip */
.trust-strip { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; align-items: center; }
.trust-strip .item { display: flex; align-items: center; gap: 10px; font-weight: 700; font-family: var(--font-head); font-size: 0.95rem; color: var(--ink); }
.trust-strip svg { width: 22px; height: 22px; color: var(--fairway); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack { display: grid; gap: 18px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink);
  padding: 12px 18px; z-index: 200; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.tag-list li { background: var(--cream-2); border: 1px solid var(--grey); padding: 8px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.callout {
  border-left: 4px solid var(--gold); background: var(--cream-2); padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.notice {
  background: #fdf3e7; border: 1px solid var(--gold); border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: 0.88rem; color: #6b4d1c;
}
