/* ============================================================
   Cedar Run Golf Course — demo site by Golf Haven Group
   Shared stylesheet for all pages.
   Edit colors and fonts here; every page picks them up.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette: earthy public-golf — greens, sand, cream, charcoal, warm rust */
  --pine:      #21351F;   /* deep green, footers + hero overlays */
  --pine-soft: #2C4529;
  --green:     #41703F;   /* fairway green, primary actions */
  --green-dk:  #335932;
  --rust:      #BC5B33;   /* warm accent, secondary actions */
  --rust-dk:   #9E4A27;
  --cream:     #FAF5E9;   /* page background */
  --sand:      #EFE6CE;   /* alt section background */
  --sand-deep: #E3D6B4;
  --paper:     #FFFFFF;
  --ink:       #272B22;   /* charcoal text */
  --gray:      #5C6354;
  --line:      #DFD6BD;
  --gold:      #E0B45C;   /* small highlights on dark panels */

  --head: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(33, 53, 31, 0.10);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
table { border-collapse: collapse; width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--rust); outline-offset: 2px; border-radius: 3px;
}

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

h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; }
.kicker {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--rust); margin-bottom: 12px;
}
.h-xl { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
.h-lg { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.h-md { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--gray); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--head); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:active { transform: scale(0.98); }
.btn-green { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.btn-green:hover { background: var(--green-dk); }
.btn-rust { background: var(--rust); color: #fff; box-shadow: var(--shadow); }
.btn-rust:hover { background: var(--rust-dk); }
.btn-line { border: 2px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--pine); }
.btn-light:hover { background: var(--sand); }
.btn-ghost-light { border: 2px solid rgba(250,245,233,0.7); color: var(--cream); }
.btn-ghost-light:hover { background: rgba(250,245,233,0.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Demo bar (Golf Haven convention) ---------- */
.demo-bar { position: relative; z-index: 400; background: #16240F; color: #F2EDDD; font-size: 0.8rem; }
.demo-bar-row { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 44px 9px 16px; text-align: center; position: relative; }
.demo-bar a { color: var(--gold); font-weight: 600; border-bottom: 1px solid rgba(224,180,92,0.5); white-space: nowrap; }
.demo-bar button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; line-height: 1; padding: 4px 8px; opacity: 0.8; }
.demo-bar button:hover { opacity: 1; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--rust); color: #fff; font-size: 0.86rem; font-weight: 600; text-align: center; padding: 8px 16px; }
.announce a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 300;
  background: rgba(250, 245, 233, 0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 22px; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo svg { width: 42px; height: 42px; flex: none; }
.logo .logo-name { font-family: var(--head); font-weight: 800; font-size: 1.12rem; line-height: 1.05; }
.logo .logo-sub { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { font-size: 0.92rem; font-weight: 600; padding: 8px 11px; border-radius: 8px; color: var(--ink); }
.main-nav a:hover { background: var(--sand); }
.main-nav a[aria-current="page"] { color: var(--green-dk); background: var(--sand); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { font-weight: 700; font-size: 0.92rem; color: var(--green-dk); white-space: nowrap; }
.header-cta .btn { padding: 11px 20px; font-size: 0.92rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav { display: none; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 22px 22px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 13px 6px; font-family: var(--head); font-weight: 700; font-size: 1.08rem; border-bottom: 1px solid var(--line); }
.mobile-nav a[aria-current="page"] { color: var(--green-dk); }
.mobile-nav .mobile-actions { display: grid; gap: 10px; padding-top: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--pine); color: var(--cream); overflow: hidden; }
.hero .hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .hero-art svg { width: 100%; height: 100%; object-fit: cover; }
.hero .hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero .hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,28,15,0.66) 0%, rgba(18,28,15,0.38) 55%, rgba(18,28,15,0.55) 100%); }
.hero-inner { position: relative; padding: clamp(72px, 12vw, 150px) 0; max-width: 720px; }
.hero-inner .kicker { color: var(--gold); }
.hero-inner h1 { color: #fff; margin-bottom: 18px; text-shadow: 0 2px 18px rgba(15,26,13,0.35); }
.hero-inner p { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: rgba(250,245,233,0.92); max-width: 56ch; margin-bottom: 30px; text-shadow: 0 1px 10px rgba(15,26,13,0.3); }
.hero-sub { padding: clamp(56px, 9vw, 96px) 0; }
.hero-sub h1 { margin-bottom: 12px; }
.hero-sub p { margin-bottom: 0; }
.hero-sub.has-cta p { margin-bottom: 26px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-sand { background: var(--sand); }
.section-pine { background: var(--pine); color: var(--cream); }
.section-pine h2, .section-pine h3 { color: #fff; }
.section-pine .lead { color: rgba(250,245,233,0.85); }
.section-head { margin-bottom: clamp(28px, 5vw, 48px); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 4px 16px rgba(33,53,31,0.05);
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { font-size: 0.95rem; color: var(--gray); }
.card .card-link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 0.92rem; color: var(--green-dk); }
.card .card-link:hover { color: var(--rust); }
.card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--sand); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card-icon svg { width: 26px; height: 26px; }

/* Quick info strip */
.info-strip { margin-top: -44px; position: relative; z-index: 5; }
.info-strip .info-grid { grid-template-columns: repeat(5, 1fr); }
.info-strip .card { padding: 18px 20px; text-align: center; }
.info-strip .card b { display: block; font-family: var(--head); font-size: 0.98rem; }
.info-strip .card span { font-size: 0.84rem; color: var(--gray); }
.info-strip .card a b { color: var(--green-dk); }

/* Feature cards with illustrated tops */
.feature-card { overflow: hidden; padding: 0; }
.feature-card .feature-art { height: 150px; background: var(--sand); }
.feature-card .feature-art svg { width: 100%; height: 100%; }
.feature-card .feature-body { padding: 22px 24px 26px; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; text-align: center; }
.stat b { display: block; font-family: var(--head); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--green-dk); }
.section-pine .stat b { color: var(--gold); }
.stat span { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); }
.section-pine .stat span { color: rgba(250,245,233,0.7); }

/* Event cards */
.event-card { display: flex; gap: 18px; align-items: flex-start; }
.event-date {
  flex: none; width: 64px; text-align: center; background: var(--pine); color: var(--cream);
  border-radius: 10px; padding: 8px 4px; font-family: var(--head);
}
.event-date b { display: block; font-size: 1.4rem; line-height: 1.1; color: var(--gold); }
.event-date span { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
.event-card h3 { font-size: 1.05rem; }
.event-card .event-meta { font-size: 0.82rem; font-weight: 600; color: var(--rust); margin-bottom: 4px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; font-size: 0.95rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table thead th { background: var(--pine); color: var(--cream); font-family: var(--head); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.data-table tbody tr:nth-child(even) { background: var(--cream); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table td.num, .data-table th.num { text-align: right; }
.table-note { font-size: 0.85rem; color: var(--gray); margin-top: 12px; }

/* Scorecard */
.scorecard td, .scorecard th { padding: 9px 10px; font-size: 0.86rem; text-align: center; }
.scorecard .row-label { text-align: left; font-weight: 700; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: 0.86rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-family: var(--body); font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); }
.field textarea { min-height: 110px; resize: vertical; }
.form-success {
  display: none; background: #EAF3E4; border: 1.5px solid var(--green); border-radius: var(--radius);
  padding: 22px 24px; font-weight: 600; color: var(--green-dk);
}
.form-success.show { display: block; }
form.sent { display: none; }

/* Inline e-club form */
.eclub-form { display: flex; flex-wrap: wrap; gap: 12px; max-width: 560px; }
.eclub-form input { flex: 1 1 180px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 1rem; font-family: var(--body); }
.eclub-form .btn { flex: none; }

/* ---------- Booking widget placeholder ---------- */
.booking-widget { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.booking-widget .bw-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-family: var(--head); font-weight: 700; }
.bw-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; margin-top: 20px; }
.bw-time { border: 1.5px solid var(--green); color: var(--green-dk); font-weight: 700; padding: 10px 6px; border-radius: 10px; text-align: center; font-size: 0.92rem; transition: background .12s; }
.bw-time:hover { background: var(--green); color: #fff; }
.bw-note { font-size: 0.83rem; color: var(--gray); margin-top: 14px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step::before {
  counter-increment: step; content: counter(step);
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--rust); color: #fff; font-family: var(--head); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- FAQ ---------- */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 22px; }
.faq summary { font-family: var(--head); font-weight: 700; padding: 18px 0; cursor: pointer; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--rust); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 18px; color: var(--gray); }

/* ---------- Hole cards ---------- */
.hole-card { padding: 0; overflow: hidden; }
.hole-card .hole-art { height: 130px; }
.hole-card .hole-art svg { width: 100%; height: 100%; }
.hole-card .hole-body { padding: 18px 20px 22px; }
.hole-card .hole-tag { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); }
.hole-card h3 { font-size: 1.05rem; margin: 4px 0 6px; }
.hole-card p { font-size: 0.9rem; }

/* ---------- Gallery placeholders ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ph-img { border-radius: var(--radius); overflow: hidden; background: var(--sand); aspect-ratio: 4 / 3; position: relative; }
.ph-img svg { width: 100%; height: 100%; }
.ph-img img { width: 100%; height: 100%; object-fit: cover; }
.ph-img .ph-label { position: absolute; left: 12px; bottom: 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.92); text-shadow: 0 1px 6px rgba(0,0,0,0.55); z-index: 1; }
.ph-img::after { content: ""; position: absolute; inset: 50% 0 0 0; background: linear-gradient(180deg, transparent, rgba(18,28,15,0.45)); pointer-events: none; }
.split .split-art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split .split-art { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split .split-art svg { width: 100%; height: auto; }

/* ---------- Final CTA band ---------- */
.cta-band { background: var(--green); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 26px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine); color: rgba(250,245,233,0.85); padding: 56px 0 0; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 0.98rem; margin-bottom: 14px; }
.site-footer a:hover { color: var(--gold); }
.footer-links li { margin-bottom: 8px; }
.footer-contact li { margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(250,245,233,0.12); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--rust); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-eclub input { width: 100%; padding: 12px 14px; border-radius: 10px; border: none; margin-bottom: 10px; font-family: var(--body); font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(250,245,233,0.15); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 0.8rem; color: rgba(250,245,233,0.6); }
.footer-bottom a { color: var(--gold); }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; } .mt-4 { margin-top: 48px; }
.mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 32px; }
.muted { color: var(--gray); }
.tag { display: inline-block; background: var(--sand); color: var(--green-dk); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .info-strip .info-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-row { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split .split-art { order: -1; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .info-strip { margin-top: -30px; }
  .info-strip .info-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .header-cta .btn { padding: 10px 16px; font-size: 0.86rem; }
  .hero-inner { padding: 64px 0 72px; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
}
