/* Shepherd's Ranch Sports Club — main stylesheet
   Brand colors live in :root; change them here. */
:root {
  --navy: #14242d;
  --navy-2: #1d3a4a;
  --blue: #1f4fa3;
  --rust: #c7613c;
  --rust-dark: #a84d2c;
  --cream: #f6f2ea;
  --sand: #ebe3d3;
  --ink: #1d2327;
  --muted: #5b666c;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 36, 45, .12);
  --max: 1160px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--white); }
.section--dark { background: var(--navy); color: #dfe6ea; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--rust); margin-bottom: .6rem; display: block; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.section--dark .lead { color: #c3ced4; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Placeholder marker — search the code for "TBD" to find all of these */
.tbd { background: #fff3c4; color: #7a5a00; padding: 0 .3em; border-radius: 4px; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.section--dark .tbd, .hero .tbd { background: rgba(255, 220, 120, .2); color: #ffe08a; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.6em; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: background .2s, transform .2s, color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--rust); color: var(--white); }
.btn--primary:hover { background: var(--rust-dark); }
.btn--outline { border-color: currentColor; color: var(--navy); background: transparent; }
.btn--light { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn--light:hover { background: rgba(255,255,255,.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(20, 36, 45, .97); backdrop-filter: blur(6px); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--white); text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--rust); display: grid; place-items: center; font-size: .9rem; font-weight: 800; color: var(--white); flex-shrink: 0; }
.brand-text { line-height: 1.1; font-size: 1.02rem; }
.brand-text small { display: block; font-weight: 600; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #f0b79f; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #e5ecef; text-decoration: none; font-weight: 600; font-size: .93rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #f0b79f; }
.nav-links .btn { padding: .55em 1.2em; color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.7rem; cursor: pointer; padding: .3rem; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: .5rem 1.25rem 1.25rem; display: none; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links li:last-child a { margin-top: .8rem; border: 0; text-align: center; }
}

/* Hero */
.hero { position: relative; color: var(--white); min-height: min(88vh, 720px); display: flex; align-items: center; background: var(--navy) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,36,45,.92) 0%, rgba(20,36,45,.7) 45%, rgba(20,36,45,.25) 100%); }
.hero > .container { position: relative; padding: 4rem 0; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero p { font-size: 1.18rem; max-width: 36rem; color: #e1e8eb; }
.hero--page { min-height: 380px; }
.hero--page h1 { max-width: 20ch; }

/* Cards */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); }
.card-body .btn-row { margin-top: auto; padding-top: .5rem; }
.price { font-weight: 700; color: var(--navy); margin-bottom: 1rem; }

/* Photo placeholder (no real photo yet) */
.ph { aspect-ratio: 4 / 3; width: 100%; display: grid; place-items: center; text-align: center; padding: 1rem; color: rgba(255,255,255,.9); font-weight: 700; font-size: .9rem; letter-spacing: .03em;
  background: linear-gradient(135deg, #2f6f5e 0%, #4f9a74 45%, #d9a65a 100%); }
.ph span { background: rgba(0,0,0,.25); padding: .4em .8em; border-radius: 999px; }

.media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* Feature list */
.checks { list-style: none; padding: 0; margin: 0 0 1rem; }
.checks li { padding-left: 1.8rem; position: relative; margin-bottom: .55rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--rust); font-weight: 800; }

/* Details table */
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.detail { background: var(--cream); border-radius: 10px; padding: 1rem 1.2rem; }
.section--alt .detail { background: var(--cream); }
.detail b { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Banner / CTA */
.cta { background: linear-gradient(120deg, var(--rust) 0%, #d98257 100%); color: var(--white); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.2rem); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta h2 { color: var(--white); margin: 0 0 .3rem; }
.cta p { margin: 0; color: #fff3ec; }
.cta .btn { background: var(--white); color: var(--rust-dark); }

/* FAQ */
.faq { max-width: 52rem; margin: 2rem auto 0; }
.faq details { background: var(--white); border-radius: 10px; margin-bottom: .8rem; box-shadow: 0 2px 10px rgba(20,36,45,.06); }
.faq summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--rust); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.3rem 1.1rem; color: var(--muted); }

/* Info / contact */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.info-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.6rem; }
.info-card a { color: #f0b79f; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .3rem 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.hours td:last-child { text-align: right; }
.map-wrap { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; }
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; filter: saturate(.85); }

/* Booking embed slot */
.booking-embed { background: var(--white); border: 2px dashed #cdbfa6; border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--muted); }

/* Waiver callout */
.notice { border-left: 5px solid var(--rust); background: #fff7f1; padding: 1.2rem 1.4rem; border-radius: 0 10px 10px 0; margin: 1.5rem 0; }
.notice strong { color: var(--navy); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.2rem 3.2rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 800; }

/* Footer */
.site-footer { background: #0e1a21; color: #9fb0b8; padding: 3rem 0 2rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: var(--white); margin: 0 0 .8rem; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: #c9d5da; text-decoration: none; }
.site-footer a:hover { color: #f0b79f; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2rem; padding-top: 1.3rem; font-size: .82rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.info-card a.btn { color: var(--white); }
@media (max-width: 700px) {
  .hero::before { background: linear-gradient(180deg, rgba(20,36,45,.88) 0%, rgba(20,36,45,.78) 100%); }
}
/* Fallback shown behind the map iframe if the embed is blocked/offline */
.map-wrap { position: relative; background: linear-gradient(135deg, #1d3a4a, #2f6f5e); min-height: 340px; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #e5ecef; font-weight: 600; }
.map-fallback a { color: #f0b79f; }
.map-wrap iframe { position: relative; z-index: 1; }
/* Hours card (24/7 by reservation) */
.hours-big { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--white); margin: .2rem 0 .3rem; }
.hours-sub { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: #f0b79f; margin-bottom: .8rem; }
