/* ============================================================
   LOOP — LA golf, on the record
   Light editorial / photography-forward theme,
   inspired by dcd.org.ae: warm off-white canvas, near-black
   text, clean grotesk type, big real imagery, calm motion.
   Page-specific layout lives in each page's inline <style>.
   ============================================================ */

:root {
  --paper:      #FBF4EA;   /* warm cream canvas */
  --paper-2:    #F3E9D9;   /* deeper warm band */
  --card:       #FFFDF8;   /* warm white */
  --ink:        #1D1E21;   /* near-black text */
  --muted:      #6E655C;   /* warm gray */
  --green:      #7C2819;   /* maroon / burnt-rust — primary accent */
  --green-deep: #5E1D12;   /* deeper maroon */
  --gold:       #B66A45;   /* terracotta accent */
  --sage:       #7E8B6B;   /* vintage sage (secondary) */
  --line:       #E9DCCA;   /* warm hairline */
  --line-soft:  #F1E7D7;

  --font-display: 'Oswald', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', system-ui, sans-serif;

  --maxw: 1280px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 1px 2px rgba(25,25,25,0.04), 0 14px 34px -20px rgba(25,25,25,0.22);
  --shadow-lg: 0 36px 70px -30px rgba(25,25,25,0.34);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55; font-size: 17px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.015em; line-height: 1.06; }
.display { font-weight: 700; letter-spacing: 0.008em; line-height: 1.0; }
h1 em, h2 em, h3 em, .display em, .serif { font-family: var(--font-serif); font-style: italic; font-weight: 500; text-transform: none; letter-spacing: 0; }
.lede { font-family: var(--font-sans); font-size: 20px; color: var(--muted); max-width: 56ch; }

.eyebrow { display: none !important; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; display: inline-block; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 100px 0; position: relative; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-sans); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; padding: 15px 26px; border-radius: 100px; border: 1.5px solid transparent; transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(25,25,25,0.5); }
.btn-lime { background: var(--green); color: #fff; }
.btn-lime:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(124,40,25,0.5); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,0.35); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-ghost-light { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.btn-arrow svg { transition: transform .25s var(--ease); }
.btn-arrow:hover svg { transform: translate(3px,-3px); }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; padding: 6px 13px; border-radius: 3px; border: 1.3px solid var(--line); color: var(--ink); background: var(--paper); white-space: nowrap; }
.pill-green { background: rgba(126,139,107,0.18); border-color: transparent; color: #4D5840; }
.pill-gold { background: rgba(201,138,60,0.12); border-color: transparent; color: var(--gold); }

/* ---------- Cards ---------- */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(250,247,238,0.86); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 25px; letter-spacing: -0.03em; display: flex; align-items: center; gap: 9px; }
.logo .ball { width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a.navlink { font-weight: 600; font-size: 15px; position: relative; padding: 4px 0; }
.nav-links a.navlink::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--green); transition: width .28s var(--ease); }
.nav-links a.navlink:hover::after, .nav-links a.navlink.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); }

/* ---------- Section header ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(34px, 5vw, 60px); max-width: 18ch; }
.sec-head p { color: var(--muted); max-width: 42ch; margin-top: 14px; }

/* ---------- Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* course card (photo-forward) */
.course-card { display: flex; flex-direction: column; }
.course-photo { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.course-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .course-photo img { transform: scale(1.06); }
.course-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent 38%); }
.course-holes { position: absolute; top: 14px; left: 16px; z-index: 2; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 0.8; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.course-holes small { display: block; font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9; margin-top: 4px; }
.course-type { position: absolute; top: 16px; right: 16px; z-index: 2; color: #fff; font-size: 12px; font-weight: 700; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.4); padding: 5px 11px; border-radius: 3px; backdrop-filter: blur(4px); }
.course-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.course-body h3 { font-size: 22px; margin-bottom: 5px; }
.course-loc { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.perks { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.course-foot { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: auto; }
.course-rate { font-weight: 700; font-size: 14px; white-space: nowrap; }
.course-foot .btn { justify-content: center; padding: 13px 17px; font-size: 13px; }

/* creator card (portrait, text overlaid) */
.creator-card { display: flex; flex-direction: column; }
.pc-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.pc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .pc-photo img { transform: scale(1.06); }
.pc-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,14,8,0.84), rgba(28,14,8,0.05) 48%, rgba(28,14,8,0.32)); }
.pc-cat { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.3); padding: 5px 10px; border-radius: 3px; backdrop-filter: blur(4px); }
.pc-open { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 11px; font-weight: 700; color: #fff; background: var(--green); padding: 5px 11px; border-radius: 3px; }
.pc-open.booked { background: rgba(255,255,255,0.25); }
.pc-rare { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 11px; font-weight: 800; color: #2a1d00; background: linear-gradient(120deg, #ffe16b, #e0a23a); padding: 5px 11px; border-radius: 3px; }
.pc-overlay { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 18px 20px; }
.pc-overlay h3 { color: #fff; font-size: 24px; line-height: 1.04; }
.pc-overlay .handle { color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 600; }
.pc-info { padding: 18px 20px 22px; }
.pc-stats { display: flex; gap: 26px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.pc-stats div { display: flex; flex-direction: column; }
.pc-stats b { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.pc-stats span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 2px; }
.creator-bio { font-size: 14.5px; color: var(--muted); }

/* league card */
.league-card { display: flex; align-items: center; gap: 20px; padding: 18px 20px; }
.league-thumb { flex: none; width: 70px; height: 70px; border-radius: 14px; overflow: hidden; }
.league-thumb img { width: 100%; height: 100%; object-fit: cover; }
.league-day { flex: none; width: 60px; text-align: center; }
.league-day .dayname { font-family: var(--font-display); font-weight: 800; font-size: 22px; display: block; }
.league-day .daytime { font-size: 12px; color: var(--muted); font-weight: 700; }
.league-body { flex: 1; }
.league-body h3 { font-size: 20px; margin-bottom: 3px; }
.league-loc { color: var(--muted); font-size: 14px; margin-bottom: 11px; }
.league-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.league-join { flex: none; text-align: right; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.spots { font-size: 13px; font-weight: 700; color: var(--green); }
.spots.full { color: var(--gold); }

/* CTA band */
.cta-band { position: relative; border-radius: 26px; overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,14,8,0.88), rgba(28,14,8,0.32)); z-index: 1; }
.cta-inner { position: relative; z-index: 2; padding: 48px; color: #fff; max-width: 640px; }
.cta-inner h3 { font-size: clamp(30px, 4.5vw, 50px); margin-bottom: 14px; }
.cta-inner p { margin-bottom: 26px; color: rgba(255,255,255,0.85); max-width: 44ch; }
.cta-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cta-card { border-radius: 22px; padding: 44px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.cta-card.green { background: var(--green); color: #fff; border-color: var(--green); }
.cta-card.green .eyebrow, .cta-card.green h3 { color: #fff; }
.cta-card h3 { font-size: 32px; margin: 14px 0 12px; max-width: 16ch; }
.cta-card p { margin-bottom: 24px; max-width: 36ch; color: var(--muted); }
.cta-card.green p { color: rgba(255,255,255,0.85); }

/* Footer */
.site-footer { background: var(--green-deep); color: var(--paper); padding: 80px 0 40px; }
.site-footer a { color: var(--paper); opacity: 0.7; transition: opacity .2s; }
.site-footer a:hover { opacity: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { font-family: var(--font-display); font-weight: 800; font-size: 38px; letter-spacing: -0.03em; margin-bottom: 14px; }
.footer-col h5 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.5; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(250,247,238,0.16); font-size: 13px; opacity: 0.6; }

/* Reveal */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: rise 0.85s var(--ease) forwards; }
.io { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.io.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .io { opacity: 1; transform: none; } }

/* Filter bar */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip { font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; padding: 9px 17px; border-radius: 100px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); transition: all .2s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 100px; padding: 10px 18px; background: var(--card); min-width: 240px; color: var(--muted); }
.search input { border: none; background: none; outline: none; font-family: inherit; font-size: 15px; width: 100%; color: var(--ink); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(25,25,25,0.5); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-backdrop.open { display: flex; animation: rise .3s var(--ease); }
.modal { background: var(--card); border-radius: var(--radius-lg); max-width: 540px; width: 100%; padding: 38px; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; font-family: inherit; font-size: 15px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); outline: none; transition: border-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); }
.marker { font-family: var(--font-display); font-weight: 800; font-size: 13px; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-grid; place-items: center; flex: none; }

/* page hero (inner pages) */
.page-hero { padding: 60px 0 26px; position: relative; }
.page-hero h1 { font-size: clamp(44px, 7vw, 88px); max-width: 16ch; margin-top: 16px; }
.page-hero .lede { margin-top: 22px; }

/* ---------- Dashboard ---------- */
.dash-head { display: flex; align-items: center; gap: 18px; padding: 38px 0 26px; flex-wrap: wrap; }
.dash-avatar { width: 66px; height: 66px; border-radius: 14px; overflow: hidden; flex: none; }
.dash-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-avatar.initials { background: var(--green); color: #fff; display: grid; place-items: center; font-family: 'Schibsted Grotesk', sans-serif; font-weight: 800; font-size: 24px; }
.dash-head h1 { font-family: 'Schibsted Grotesk', sans-serif; text-transform: none; font-weight: 800; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.02em; line-height: 1; }
.dash-head .dash-sub { color: var(--muted); font-size: 14px; margin-top: 5px; }
.dash-head .dash-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.stat-card .stat-num { font-family: 'Schibsted Grotesk', sans-serif; font-weight: 800; font-size: 34px; letter-spacing: -0.02em; line-height: 1; }
.stat-card .stat-label { color: var(--muted); font-size: 13px; margin-top: 8px; }
.stat-card .stat-delta { font-size: 12px; font-weight: 700; color: var(--green); margin-top: 6px; }
.dash-section { margin-top: 44px; }
.dash-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dash-section-head h2 { font-family: 'Schibsted Grotesk', sans-serif; text-transform: none; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.dash-section-head a { color: var(--green); font-weight: 700; font-size: 14px; }
.dash-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.dash-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dash-row:last-child { border-bottom: none; }
.dash-thumb { width: 58px; height: 58px; border-radius: 10px; overflow: hidden; flex: none; }
.dash-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dash-row-main { flex: 1; min-width: 0; }
.dash-row-main h4 { font-family: 'Schibsted Grotesk', sans-serif; text-transform: none; font-weight: 700; font-size: 16px; }
.dash-row-main p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.dash-row-side { display: flex; gap: 8px; align-items: center; flex: none; }
.dash-row-side .btn { padding: 9px 15px; font-size: 12px; }
.dash-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vid-thumb { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vid-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 26px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.vid-meta { padding: 11px 2px 0; }
.vid-meta h4 { font-family: 'Schibsted Grotesk', sans-serif; text-transform: none; font-weight: 700; font-size: 15px; }
.vid-meta span { font-size: 12px; color: var(--muted); }
@media (max-width: 860px) { .stat-grid { grid-template-columns: 1fr 1fr; } .dash-content { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dash-content { grid-template-columns: 1fr; } .dash-row { flex-wrap: wrap; } .dash-row-side { width: 100%; } }

/* mobile menu */
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px 28px 22px; border-bottom: 1px solid var(--line); background: var(--paper); }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-display); font-weight: 700; font-size: 24px; padding: 8px 0; }

/* Responsive */
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } .cta-cards { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .nav-links { display: none; } .nav-toggle { display: inline-flex; } .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .section { padding: 68px 0; } body { font-size: 16px; } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } .league-card { flex-wrap: wrap; } .league-join { width: 100%; flex-direction: row; justify-content: space-between; } .league-thumb { display: none; } }
