/* ==========================================================================
   Hazlehead Golf Club — landing page styles
   ========================================================================== */

:root {
  --forest-900: #0F2B1C;
  --forest-700: #173B27;
  --forest-600: #1F4D30;
  --fairway-500: #3F7D4A;
  --fairway-400: #5D9C68;
  --gold-500: #C9A227;
  --gold-400: #DDBB4C;
  --cream-50: #F8F6EF;
  --cream-100: #F4EFE1;
  --ink-900: #1B1F1C;
  --ink-600: #4A554C;
  --line: rgba(23, 59, 39, 0.12);
  --shadow: 0 20px 45px -20px rgba(15, 43, 28, 0.35);
  --radius: 18px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--forest-900);
}

h2 { font-size: clamp(2rem, 3.2vw, 2.75rem); }
h3 { font-size: 1.5rem; margin-bottom: 0.4em; }
p { margin: 0 0 1em; color: var(--ink-600); }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest-900);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold { background: var(--gold-500); color: var(--forest-900); }
.btn-gold:hover { background: var(--gold-400); box-shadow: 0 12px 24px -10px rgba(201,162,39,.6); }

.btn-outline-light { border-color: rgba(244,239,225,.55); color: var(--cream-100); }
.btn-outline-light:hover { background: rgba(244,239,225,.12); }

.btn-forest { background: var(--forest-700); color: #fff; }
.btn-forest:hover { background: var(--forest-600); box-shadow: var(--shadow); }

.btn-ghost { border-color: var(--line); color: var(--forest-700); }
.btn-ghost:hover { background: var(--cream-100); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 239, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--forest-900);
  margin-right: auto;
}
.brand-mark { color: var(--forest-700); display: flex; }
.brand-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0.2px;
}
.brand-text em { display: block; font-style: normal; font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-500); font-family: 'Inter', sans-serif; font-weight: 600; }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  text-decoration: none;
  color: var(--ink-900);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-cta { white-space: nowrap; padding: 10px 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--forest-900); margin: 0 8px; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--forest-900) 0%, var(--forest-700) 55%, var(--forest-600) 100%);
  color: var(--cream-100);
  overflow: hidden;
  padding-top: 96px;
}
.hero-hills {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  opacity: 0.9;
  pointer-events: none;
}
.hero-hills svg { width: 100%; height: 100%; }
.hero-inner {
  position: relative;
  padding: 72px 24px 140px;
  text-align: center;
  max-width: 880px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-400);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--gold-400); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  margin-bottom: 0.35em;
}
.hero-lead {
  color: rgba(244,239,225,0.85);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 2em;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin: 0;
}
.hero-stats dt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold-400);
}
.hero-stats dd {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(244,239,225,0.75);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--cream-100); }
.section-dark { background: var(--forest-900); color: var(--cream-100); }
.section-dark p { color: rgba(244,239,225,0.75); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head-light h2 { color: #fff; }
.section-lead { font-size: 1.08rem; }
.section-lead-light { color: rgba(244,239,225,0.8) !important; }
.section-note { font-size: 0.9rem; color: var(--ink-600); }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.split-reverse { grid-template-columns: 1.1fr 0.9fr; }
.split-reverse .split-copy { order: 1; }
.split-reverse .split-media { order: 2; }
.split-media { display: flex; justify-content: center; }
.split-media svg { width: 100%; max-width: 340px; }

.check-list { list-style: none; padding: 0; margin: 1.5em 0 0; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-900);
  font-weight: 500;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--fairway-500);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5.5px; top: 9.5px;
  width: 8px; height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ---------- Course cards ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.course-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--fairway-500);
}
.course-marker {
  width: 14px; height: 14px;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 2px solid var(--forest-900);
}
.marker-white { background: #fff; }
.marker-yellow { background: var(--gold-500); }
.marker-red { background: #B4402A; }
.course-stats {
  font-weight: 600;
  color: var(--fairway-500);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

/* ---------- Membership benefits ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 2em 0;
}
.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit-icon {
  font-size: 1.4rem;
  width: 44px; height: 44px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-100);
  border-radius: 12px;
}
.benefit h4 { margin: 0 0 4px; font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--forest-900); }
.benefit p { margin: 0; font-size: 0.92rem; }

/* ---------- Club life ---------- */
.life-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}
.life-card {
  background: rgba(244, 239, 225, 0.06);
  border: 1px solid rgba(244, 239, 225, 0.14);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.life-card h3 { color: var(--gold-400); }
.facebook-note { text-align: center; color: rgba(244,239,225,0.75); }
.facebook-note a { color: var(--gold-400); font-weight: 600; text-decoration: none; }
.facebook-note a:hover { text-decoration: underline; }

/* ---------- Hours table ---------- */
.hours-table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.hours-table th { color: var(--forest-900); font-weight: 600; width: 40%; }
.hours-note { color: var(--ink-600); font-size: 0.85rem; }

/* ---------- Visitors ---------- */
.visitor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.visitor-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.tel-list { list-style: none; padding: 0; margin: 1.2em 0; display: grid; gap: 10px; }
.tel-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.tel-list li span { color: var(--ink-600); }
.tel-list li a { color: var(--fairway-500); font-weight: 600; text-decoration: none; }
.tel-list li a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-900); color: rgba(244,239,225,0.75); padding-top: 56px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(244,239,225,0.12);
}
.footer-brand { color: #fff; }
.footer-brand em { color: var(--gold-400); }
.footer-inner p { margin: 6px 0 0; font-size: 0.9rem; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; font-size: 0.9rem; color: rgba(244,239,225,0.75); }
.footer-nav a:hover { color: #fff; }
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(244,239,225,0.25);
  display: flex; align-items: center; justify-content: center;
  color: rgba(244,239,225,0.85);
  text-decoration: none;
}
.social-link:hover { background: var(--gold-500); color: var(--forest-900); border-color: var(--gold-500); }
.footer-bottom { padding: 20px 24px 28px; }
.footer-bottom p { margin: 0; font-size: 0.8rem; text-align: center; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .split, .split-reverse { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse .split-copy, .split-reverse .split-media { order: initial; }
  .split-media { order: -1; }
  .split-media svg { max-width: 220px; }
  .course-grid, .life-grid { grid-template-columns: 1fr; }
  .visitor-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 32px; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream-50);
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
}

@media (max-width: 620px) {
  .benefit-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-inner { padding-bottom: 100px; }
}
