/* Moonrise Mini Golf: site styles. No external fonts, scripts or images: everything is local. */
:root {
  --night: #0b1026;
  --night-2: #141a3a;
  --violet: #2a1f4f;
  --ink: #fff5da;
  --muted: #b9c2dc;
  --gold: #ffd374;
  --peach: #f6ae7a;
  --aqua: #7ff5e0;
  --teal: #2e6f7e;
  --line: rgba(255, 211, 116, 0.22);
  --card: rgba(20, 26, 58, 0.72);
  --radius: 18px;
  --shadow: 0 18px 50px rgba(3, 5, 18, 0.55);
  --font: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(123, 90, 200, 0.28), transparent 60%),
                    radial-gradient(900px 500px at 0% 30%, rgba(46, 111, 126, 0.25), transparent 60%);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--aqua); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

/* Navigation */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: 0.02em; }
.brand img { width: 40px; height: 40px; }
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav a.link { color: var(--ink); text-decoration: none; font-weight: 600; opacity: 0.88; }
.nav a.link:hover { color: var(--gold); opacity: 1; }

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: grid;
  place-items: center;
  text-align: center;
  background: url("hero.jpg") center / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 55% at 50% 48%, rgba(11, 16, 38, 0.55), rgba(11, 16, 38, 0.15) 70%),
              linear-gradient(to bottom, rgba(11, 16, 38, 0.35), rgba(11, 16, 38, 0) 30%, rgba(11, 16, 38, 0) 60%, var(--night));
}
.hero .content { position: relative; z-index: 1; padding: 110px 16px 80px; }
.hero .logo { width: min(640px, 88vw); margin: 0 auto 18px; filter: drop-shadow(0 12px 30px rgba(3, 5, 18, 0.5)); }
.hero p.tag { font-size: clamp(19px, 2.4vw, 25px); font-weight: 700; margin: 0 0 6px; text-shadow: 0 2px 16px rgba(3, 5, 18, 0.7); }
.hero p.sub { color: var(--ink); opacity: 0.9; margin: 0 0 26px; text-shadow: 0 2px 12px rgba(3, 5, 18, 0.7); }
.buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: linear-gradient(180deg, #fff1c6, var(--gold) 55%, #f3a86a); color: #1b1633;
  box-shadow: 0 8px 24px rgba(255, 190, 110, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.btn:hover { color: #1b1633; transform: translateY(-1px); }
.btn.ghost { background: rgba(11, 16, 38, 0.55); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { color: var(--gold); }

/* Sections */
section { padding: 72px 0; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 14px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: 0.01em; }
h2 .eyebrow { display: block; font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--aqua); margin-bottom: 8px; }
.lead { color: var(--muted); max-width: 720px; font-size: 18px; }

.courses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 30px; }
.course { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.course .art { aspect-ratio: 16 / 9; width: 100%; height: auto; display: block; object-fit: cover; }
.course .body { padding: 20px 22px 24px; }
.course h3 { font-size: 24px; }
.course h3 small { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.course.forest h3 small { color: var(--aqua); }
.course p { color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature svg { width: 40px; height: 40px; margin-bottom: 12px; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--muted); margin: 0; font-size: 15.5px; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--night-2); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption { padding: 10px 14px; color: var(--muted); font-size: 14.5px; }

.band { background: linear-gradient(120deg, rgba(42, 31, 79, 0.8), rgba(46, 111, 126, 0.45)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.band ul { margin: 0; padding-left: 20px; color: var(--muted); }
.band li { margin: 6px 0; }

/* Documents (privacy, terms, support) */
.doc-head { padding: 110px 0 18px; background: linear-gradient(to bottom, var(--violet), transparent); }
.doc-head p { color: var(--muted); margin: 0; }
.doc { padding: 20px 0 72px; }
.doc .wrap { max-width: 820px; }
.doc h2 { font-size: 24px; margin-top: 38px; color: var(--gold); }
.doc h3 { font-size: 19px; margin-top: 24px; }
.doc p, .doc li { color: #e7e4d6; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--aqua); font-weight: 700; }
.note { background: rgba(127, 245, 224, 0.08); border: 1px solid rgba(127, 245, 224, 0.3); border-radius: 12px; padding: 14px 18px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 12px 0; }
details summary { cursor: pointer; font-weight: 700; color: var(--ink); }
details[open] summary { color: var(--gold); margin-bottom: 8px; }
kbd { font-family: inherit; font-size: 0.9em; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--ink); text-decoration: none; }

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .band .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav ul { gap: 14px; }
  .nav .brand span { display: none; }
  .courses, .gallery, .features { grid-template-columns: 1fr; }
  section { padding: 54px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
