/* ============ Golf Club Demo Template ============
   Theme colors are injected as CSS variables by app.js from the club config. */

:root {
  --green: #1e5631;          /* overridden per club */
  --green-dark: #143d22;     /* derived */
  --gold: #c9a227;
  --cream: #faf7f0;
  --ink: #1c2320;
  --ink-soft: #5a655f;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(20, 40, 28, .14);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 600; margin-bottom: .6em; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.container { width: min(1180px, 92vw); margin: 0 auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-alt { background: var(--white); }
.kicker { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 700; color: var(--gold); margin-bottom: .9rem; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- demo ribbon ---------- */
#demo-ribbon {
  position: fixed; z-index: 60; inset: auto 0 0 0;
  background: rgba(18, 24, 20, .92); color: #e8e4d8; backdrop-filter: blur(6px);
  font-size: .8rem; padding: .55rem 2.4rem .55rem 1rem; text-align: center;
}
#demo-ribbon button { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit; font-size: 1.1rem; cursor: pointer; }

/* ---------- nav ---------- */
#nav { position: fixed; z-index: 50; inset: 0 0 auto 0; transition: background .3s, box-shadow .3s; }
#nav.solid { background: rgba(250, 247, 240, .92); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,.08); }
#nav.solid .nav-inner { color: var(--ink); }
.nav-inner { width: min(1280px, 94vw); margin: 0 auto; display: flex; align-items: center; gap: 2rem; padding: .9rem 0; color: #fff; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: .02em; }
.brand-mark { width: 26px; height: 26px; color: var(--gold); }
#nav-links { display: flex; gap: 1.6rem; margin-left: auto; font-size: .92rem; font-weight: 500; }
#nav-links a { opacity: .88; transition: opacity .2s; position: relative; }
#nav-links a:hover { opacity: 1; }
#nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--gold); transition: width .25s; }
#nav-links a:hover::after { width: 100%; }
#nav-burger { display: none; background: none; border: 0; cursor: pointer; }
#nav-burger span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: .8rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; font-family: var(--font-body); }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.02rem; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #e3c25a); color: #241d05; box-shadow: 0 8px 24px rgba(201, 162, 39, .35); }
.btn-gold:hover { box-shadow: 0 12px 30px rgba(201, 162, 39, .5); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-ghost-dark { background: none; border: 1.5px solid var(--green); color: var(--green); }

/* ---------- hero ---------- */
#hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; color: #fff; overflow: hidden; }
.hero-media, .hero-media > * { position: absolute; inset: 0; }
#hero-video, #hero-image { width: 100%; height: 100%; object-fit: cover; }
#hero-image { background-size: cover; background-position: center; background-image: linear-gradient(160deg, #16381f 0%, var(--green) 45%, #0d2413 100%); }
.hero-overlay { background: linear-gradient(to bottom, rgba(10,18,12,.55) 0%, rgba(10,18,12,.25) 45%, rgba(10,18,12,.72) 100%); }
.hero-content { position: relative; width: min(1180px, 92vw); margin: 0 auto; padding-top: 4rem; }
.hero-kicker { text-transform: uppercase; letter-spacing: .3em; font-size: .82rem; font-weight: 600; color: var(--gold); margin-bottom: 1.1rem; }
#hero h1 { color: #fff; max-width: 15ch; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.hero-sub { max-width: 52ch; margin: 1.2rem 0 2rem; font-size: clamp(1rem, 1.6vw, 1.2rem); color: #e9ede8; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { position: relative; width: min(1180px, 92vw); margin: 3.5rem auto 0; display: flex; gap: clamp(1.2rem, 4vw, 3.5rem); padding: 1.3rem 0 3.4rem; border-top: 1px solid rgba(255,255,255,.25); flex-wrap: wrap; }
.hero-stats div { min-width: 90px; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--gold); }
.hero-stats span { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #cfd6cf; }
.scroll-cue { position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.6s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1 } 70% { transform: translateY(14px); opacity: 0 } 100% { opacity: 0 } }

/* ---------- split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-media { position: relative; }
.about-img { aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(150deg, var(--green) 0%, #2c6e42 60%, #0f2b18 100%); background-size: cover; background-position: center; box-shadow: var(--shadow); }
.about-badge { position: absolute; right: -14px; bottom: -14px; background: var(--gold); color: #241d05; border-radius: 12px; padding: .9rem 1.2rem; font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; box-shadow: var(--shadow); max-width: 200px; line-height: 1.3; }
.lede { font-size: 1.06rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.checklist { list-style: none; display: grid; gap: .7rem; }
.checklist li { padding-left: 1.9rem; position: relative; font-weight: 500; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%; background: var(--green); mask: none; }
.checklist li::after { content: ""; position: absolute; left: 5px; top: .48em; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; margin-top: 2.6rem; }
.card { background: var(--cream); border-radius: var(--radius); padding: 1.9rem 1.6rem; box-shadow: 0 4px 18px rgba(20,40,28,.07); transition: transform .25s, box-shadow .25s; border-top: 3px solid transparent; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-top-color: var(--gold); }
.card .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--green); color: #fff; display: grid; place-items: center; margin-bottom: 1.1rem; }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.card p { font-size: .93rem; color: var(--ink-soft); }

/* ---------- booking ---------- */
.booking-section { position: relative; color: #fff; }
.booking-bg { position: absolute; inset: 0; background: linear-gradient(150deg, var(--green-dark), var(--green) 55%, #0c2012); }
.booking-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 10%, rgba(201,162,39,.18), transparent 55%); }
.booking-card { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 4vw, 3.5rem); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(12px); border-radius: 22px; padding: clamp(1.6rem, 4vw, 3rem); }
.booking-intro h2 { color: #fff; }
.booking-intro p { color: #dce4dc; }
.booking-perks { display: flex; gap: 1.6rem; margin-top: 1.8rem; }
.booking-perks div { display: grid; }
.booking-perks strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }
.booking-perks span { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: #b9c4ba; }
#booking-form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; margin-bottom: 1.2rem; }
#booking-form label, #contact-form label { display: grid; gap: .35rem; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
#booking-form label { color: #cfd8cf; }
.span-2 { grid-column: 1 / -1; }
input, select, textarea { font: inherit; font-size: .95rem; padding: .7rem .85rem; border-radius: 10px; border: 1px solid rgba(130,140,130,.35); background: var(--white); color: var(--ink); width: 100%; }
#booking-form input, #booking-form select { background: rgba(255,255,255,.94); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
.form-msg { margin-top: .8rem; font-size: .9rem; min-height: 1.2em; }
.form-msg.err { color: #ffb4a2; }
.form-msg.ok { color: #b7e4c7; }
#contact-form .form-msg.err { color: #b3261e; }
#contact-form .form-msg.ok { color: var(--green); }
.booking-success { text-align: center; padding: 2rem 0; grid-column: 1 / -1; }
.booking-success svg { width: 64px; height: 64px; margin: 0 auto 1rem; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.booking-success h3 { color: #fff; font-size: 1.6rem; margin-bottom: .4rem; }
.booking-success p { color: #dce4dc; margin-bottom: 1.4rem; }
.booking-success .btn-ghost-dark { border-color: var(--gold); color: var(--gold); }

/* ---------- rates ---------- */
.rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.3rem; margin-top: 2.4rem; }
.rate { background: var(--white); border-radius: var(--radius); padding: 1.7rem 1.4rem; text-align: center; box-shadow: 0 4px 18px rgba(20,40,28,.07); }
.rate strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--green); }
.rate span { font-size: .85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; }
#rates-note { margin-top: 1.6rem; font-size: .9rem; }

/* ---------- membership ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2.6rem; align-items: stretch; }
.tier { background: var(--cream); border-radius: var(--radius); padding: 2.1rem 1.7rem; box-shadow: 0 4px 18px rgba(20,40,28,.07); display: flex; flex-direction: column; position: relative; }
.tier.featured { background: var(--green-dark); color: #fff; transform: scale(1.03); }
.tier.featured h3 { color: #fff; }
.tier .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #241d05; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .9rem; border-radius: 999px; }
.tier h3 { font-size: 1.3rem; }
.tier .price { font-family: var(--font-display); font-size: 2rem; color: var(--gold); margin: .5rem 0 1rem; }
.tier .price small { font-size: .85rem; font-family: var(--font-body); color: inherit; opacity: .7; }
.tier ul { list-style: none; display: grid; gap: .55rem; font-size: .92rem; margin-bottom: 1.5rem; }
.tier li { padding-left: 1.4rem; position: relative; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.tier .btn { margin-top: auto; text-align: center; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 2.6rem; padding: 0 10px; }
.gallery figure { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: linear-gradient(140deg, var(--green), #35704a); cursor: pointer; }
.gallery figure:nth-child(4n+1) { grid-row: span 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.06); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.quote { background: var(--cream); border-radius: var(--radius); padding: 1.9rem; box-shadow: 0 4px 18px rgba(20,40,28,.07); }
.quote p { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; margin-bottom: 1rem; }
.quote footer { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.quote .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: .7rem; }

/* ---------- contact ---------- */
.contact-list { list-style: none; display: grid; gap: .9rem; margin: 0 0 1.8rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: .2em; }
#contact-form { display: grid; gap: .9rem; max-width: 460px; }
#contact-form label { color: var(--ink-soft); }
#map { width: 100%; aspect-ratio: 4/3.4; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- footer ---------- */
footer { background: #10190f; color: #cdd6cd; padding: 3rem 0 1.4rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { color: #fff; font-size: 1.3rem; }
.footer-links { display: flex; gap: 1.4rem; font-size: .9rem; }
.footer-legal { text-align: center; font-size: .78rem; color: #8a968a; padding-top: 1.3rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .booking-card { grid-template-columns: 1fr; }
  #nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(16,25,15,.97); flex-direction: column; padding: 1.4rem 6vw; gap: 1.1rem; }
  #nav-links.open { display: flex; }
  #nav-links.open a { color: #fff; }
  .nav-cta { display: none; }
  #nav-burger { display: block; margin-left: auto; color: inherit; }
  .hero-stats { gap: 1.4rem; }
}
