/* ============================================================
   Moggy Evans Golf — design system
   ============================================================ */

:root {
  --ink: #0a1410;
  --ink-2: #0f1d17;
  --ink-3: #16281f;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --fair: #1f8a4c;
  --fair-lo: #14663a;
  --gold: #d4a73c;
  --gold-lo: #b88c26;
  --paper: #f6f5f0;
  --text: #eef2ee;
  --muted: #9aa8a0;
  --muted-2: #6f7d75;
  --danger: #d9584a;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1160px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Fraunces", "Playfair Display", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 14px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }

.lede { font-size: 18px; color: var(--muted); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 100px;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-lo) 100%);
  color: #1a1206;
  box-shadow: 0 10px 30px -10px rgba(212, 167, 60, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(212, 167, 60, 0.7); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.3); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(10, 20, 16, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.02em; font-size: 16px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), var(--gold-lo));
  display: grid; place-items: center;
  font-family: var(--serif); color: #1a1206; font-size: 17px; font-weight: 700;
  flex: none;
}
.brand small { display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 30px; }
/* :not(.btn) matters. Without it this rule out-specifies .btn-primary and
   paints the call-to-action's label muted grey on gold, which is unreadable. */
.nav-links a:not(.btn) { font-size: 14px; color: var(--muted); font-weight: 500; transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav .btn { padding: 11px 20px; font-size: 14px; font-weight: 700; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; top: -30%; left: 50%; width: 1100px; height: 1100px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(31, 138, 76, 0.2) 0%, transparent 62%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.6vw, 76px); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { margin: 22px 0 34px; font-size: 19px; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 13px; color: var(--muted-2); margin-top: 18px; }

.portrait { position: relative; }
.portrait-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--ink-2);
  box-shadow: 0 44px 90px -34px rgba(0, 0, 0, 0.85);
}
.portrait-frame img { width: 100%; aspect-ratio: 4 / 4.3; object-fit: cover; object-position: center 18%; }
.portrait-badge {
  position: absolute; bottom: -18px; left: -18px;
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius);
  padding: 13px 18px;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.6);
}
.portrait-badge b { display: block; font-family: var(--serif); font-size: 24px; line-height: 1; }
.portrait-badge span { font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: #5a6b60; font-weight: 600; }

/* ---------- stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--gold); }
.stat span { display: block; font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin-top: 9px; font-weight: 600; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head p { margin: 16px 0 0; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 60px; }
.prose p { color: #c6d1c9; margin: 0 0 18px; }
.prose p:first-child { font-size: 18.5px; color: var(--text); }
.cred-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; height: fit-content; }
.cred-card h3 { font-size: 15px; letter-spacing: 0.13em; text-transform: uppercase; font-family: var(--sans); color: var(--gold); margin-bottom: 20px; }
.cred-list { list-style: none; margin: 0; padding: 0; }
.cred-list li { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: #c6d1c9; }
.cred-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cred-list svg { flex: none; margin-top: 3px; color: var(--fair); }

/* ---------- approach ---------- */
.approach { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; transition: transform 0.3s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card-num { font-family: var(--serif); font-size: 15px; color: var(--gold); margin-bottom: 16px; display: block; }
.card h3 { margin-bottom: 11px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- booking ---------- */
.book-shell {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 26px; overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8);
}
.book-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 28px; border-bottom: 1px solid var(--line); background: var(--ink-3);
  flex-wrap: wrap;
}
.book-bar-price { display: flex; align-items: baseline; gap: 8px; }
.book-bar-price b { font-family: var(--serif); font-size: 32px; color: var(--gold); line-height: 1; }
.book-bar-price span { font-size: 14px; color: var(--muted); }
.book-bar-meta { display: flex; gap: 24px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.book-bar-meta div { display: flex; align-items: center; gap: 7px; }
.book-bar-meta svg { color: var(--fair); flex: none; }

.book-body { padding: 28px; }

.step-label { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.step-label i { width: 20px; height: 20px; border-radius: 50%; background: var(--fair-lo); color: #fff; display: grid; place-items: center; font-size: 11px; font-style: normal; font-weight: 700; flex: none; }

.week-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.week-nav b { font-size: 15px; font-weight: 600; }
.week-nav-btns { display: flex; gap: 8px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2);
  background: transparent; color: var(--text); display: grid; place-items: center;
  transition: background 0.2s, opacity 0.2s;
}
.icon-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.07); }
.icon-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day {
  border: 1px solid var(--line); background: var(--ink-3); border-radius: var(--radius);
  padding: 12px 6px; text-align: center; color: var(--text);
  transition: all 0.2s var(--ease); position: relative;
}
.day span { display: block; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.day b { display: block; font-family: var(--serif); font-size: 21px; margin-top: 4px; line-height: 1; }
.day i { display: block; font-style: normal; font-size: 10px; color: var(--fair); margin-top: 5px; font-weight: 600; }
.day:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-2px); }
.day.on { background: linear-gradient(180deg, var(--gold), var(--gold-lo)); border-color: var(--gold); color: #1a1206; }
.day.on span, .day.on i { color: rgba(26, 18, 6, 0.72); }
.day:disabled { opacity: 0.32; cursor: not-allowed; }
.day:disabled i { color: var(--muted-2); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 9px; }
.slot {
  border: 1px solid var(--line-2); background: var(--ink-3); border-radius: 11px;
  padding: 13px 8px; color: var(--text); font-size: 14.5px; font-weight: 600;
  transition: all 0.18s var(--ease); text-align: center;
}
.slot small { display: block; font-size: 11px; font-weight: 500; color: var(--muted-2); margin-top: 2px; }
.slot:hover:not(:disabled) { border-color: var(--gold); background: rgba(212, 167, 60, 0.1); transform: translateY(-2px); }
.slot.on { background: linear-gradient(180deg, var(--gold), var(--gold-lo)); border-color: var(--gold); color: #1a1206; }
.slot.on small { color: rgba(26, 18, 6, 0.7); }
.slot:disabled { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }

.divider { height: 1px; background: var(--line); margin: 28px 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.field label em { color: var(--gold); font-style: normal; }
.field input, .field select, .field textarea {
  background: var(--ink); border: 1px solid var(--line-2); border-radius: 11px;
  padding: 13px 14px; color: var(--text); font-size: 15px; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 167, 60, 0.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field textarea { resize: vertical; min-height: 84px; }
.field .hint { font-size: 12px; color: var(--muted-2); }
.hp { position: absolute; left: -9999px; opacity: 0; }

.summary {
  background: rgba(31, 138, 76, 0.09); border: 1px solid rgba(31, 138, 76, 0.3);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px; font-size: 14.5px;
}
.summary svg { color: var(--fair); flex: none; }
.summary b { color: var(--text); }

.submit-row { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.submit-row .btn { padding: 16px 34px; }
.submit-note { font-size: 12.5px; color: var(--muted-2); max-width: 42ch; }

.alert { border-radius: var(--radius); padding: 14px 16px; font-size: 14px; margin-bottom: 18px; display: none; }
.alert.err { background: rgba(217, 88, 74, 0.12); border: 1px solid rgba(217, 88, 74, 0.4); color: #f3b5ad; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.btn-retry { border: 1px solid rgba(243, 181, 173, 0.55); background: transparent; color: #f3b5ad; border-radius: 100px; padding: 7px 16px; font-size: 13px; font-weight: 600; flex: none; transition: background 0.2s; }
.btn-retry:hover { background: rgba(217, 88, 74, 0.18); }

.done { text-align: center; padding: 54px 28px; }
.done-tick {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 24px;
  background: rgba(31, 138, 76, 0.15); border: 1px solid rgba(31, 138, 76, 0.45);
  display: grid; place-items: center; color: var(--fair);
}
.done h3 { font-size: 28px; margin-bottom: 12px; }
.done > p { color: var(--muted); max-width: 46ch; margin: 0 auto 26px; }
.done-card {
  display: inline-block; text-align: left; background: var(--ink-3);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 26px;
}
.done-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 11px 26px; font-size: 14.5px; }
.done-card dt { color: var(--muted-2); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; padding-top: 3px; }
.done-card dd { margin: 0; font-weight: 600; }
.done-actions { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; }

.skeleton { height: 46px; border-radius: 11px; background: linear-gradient(90deg, var(--ink-3) 25%, #1d3227 50%, var(--ink-3) 75%); background-size: 200% 100%; animation: sk 1.3s infinite; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.empty { color: var(--muted-2); font-size: 14px; padding: 22px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ---------- faq ---------- */
.faq { background: var(--ink-2); border-top: 1px solid var(--line); }
.faq-list { max-width: 800px; }
details { border-bottom: 1px solid var(--line); }
summary { padding: 21px 0; font-size: 16.5px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; color: var(--gold); flex: none; transition: transform 0.25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 0 0 21px; padding-right: 40px; }

/* ---------- footer ---------- */
footer { padding: 60px 0 40px; border-top: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 26px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.foot-links a:hover { color: var(--gold); }
.foot-legal { font-size: 12.5px; color: var(--muted-2); margin-top: 30px; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .portrait { max-width: 400px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
  .nav-links a { display: none; }
}
@media (max-width: 620px) {
  section { padding: 68px 0; }
  .hero { padding: 124px 0 68px; }
  .wrap { padding: 0 18px; }
  .book-body { padding: 20px; }
  .book-bar { padding: 18px 20px; }
  .days { grid-template-columns: repeat(4, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .done-card dl { grid-template-columns: 1fr; gap: 4px 0; }
  .done-card dd { margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
