/* ============================================
   Fiesta Falls Miniature Golf — shared styles
   ============================================ */

:root {
  --fiesta-yellow: #ffc93c;
  --fiesta-orange: #f77f00;
  --fiesta-red-orange: #e85d04;
  --green: #1b7a3d;
  --green-dark: #14532d;
  --green-deep: #0c3b1e;
  --cream: #fff9ee;
  --cream-dark: #f6eeda;
  --ink: #22301f;
  --white: #ffffff;
  --card-line: #b9d8c2;
  --birdie: #1d7ac4;
  --bogey: #c4451d;
  --radius: 16px;
  --shadow: 0 4px 14px rgba(20, 60, 30, 0.18);
  --font-display: "Shrikhand", "Chewy", cursive;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

/* the hidden attribute must win over display rules like .btn */
[hidden] {
  display: none !important;
}

a {
  color: var(--green);
}

/* ---------- wordmark ---------- */

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, var(--fiesta-yellow) 15%, var(--fiesta-orange) 60%, var(--fiesta-red-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(60, 30, 0, 0.35));
}

.wordmark-sub {
  font-family: var(--font-display);
  color: var(--fiesta-yellow);
  text-shadow: 0 1px 0 rgba(60, 30, 0, 0.4);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(180deg, var(--fiesta-yellow), var(--fiesta-orange));
  color: #4a2500;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  box-shadow: 0 6px 18px rgba(20, 60, 30, 0.28);
}

.btn-green {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-green:hover {
  background: var(--green-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green);
}

.btn-ghost:hover {
  background: rgba(27, 122, 61, 0.08);
}

.btn-block {
  display: block;
  width: 100%;
}

/* ---------- logo ---------- */

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-lockup img {
  width: 2.1rem;
  height: auto;
}

.hero-logo {
  width: clamp(110px, 28vw, 170px);
  margin: 0 auto 0.5rem;
  animation: logoBob 3.2s ease-in-out infinite;
}

@keyframes logoBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}

/* ---------- landing page ---------- */

.site-header {
  background: linear-gradient(160deg, var(--green-dark), var(--green-deep));
  color: var(--white);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.site-header .brand {
  font-size: 1.5rem;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-header nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-header nav a:hover {
  color: var(--fiesta-yellow);
}

.site-header nav .btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
}

.hero {
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(255, 201, 60, 0.25), transparent 60%),
    linear-gradient(165deg, var(--green-dark) 0%, var(--green-deep) 100%);
  color: var(--white);
  text-align: center;
  padding: 4.5rem 1.25rem 5.5rem;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
  margin-bottom: 0.25rem;
}

.hero .tagline-script {
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  margin-bottom: 1.25rem;
}

.hero p.lede {
  max-width: 34rem;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: #d9e9de;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .splash {
  position: absolute;
  font-size: 2rem;
  opacity: 0.5;
  user-select: none;
  pointer-events: none;
}

.splash-flag { top: 12%; left: 8%; }
.splash-palm { top: 20%; right: 10%; }
.splash-wave { bottom: 18%; left: 14%; }
.splash-anchor { bottom: 25%; right: 16%; }

/* On phones the hero is tall and narrow — the scattered desktop offsets
   land the emojis on top of the text, at uneven heights. Pin each pair
   to mirrored corners instead, inside the hero's padding zones. */
@media (max-width: 540px) {
  .hero .splash {
    font-size: 1.5rem;
    opacity: 0.4;
  }
  .splash-flag { top: 1.2rem; left: 6%; }
  .splash-palm { top: 1.2rem; right: 6%; }
  .splash-wave { bottom: 1.6rem; left: 6%; }
  .splash-anchor { bottom: 1.6rem; right: 6%; }
}

.wave-divider {
  display: block;
  width: 100%;
  margin-top: -1px;
}

section.page-section {
  max-width: 62rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
  scroll-margin-top: 7.5rem;
}

@media (max-width: 540px) {
  .site-header {
    padding: 0.6rem 0.9rem;
  }
  .site-header .brand {
    font-size: 1.15rem;
  }
  .site-header nav {
    gap: 0.65rem;
    justify-content: flex-end;
  }
  .site-header nav a {
    font-size: 0.82rem;
  }
}

.section-title {
  font-family: var(--font-display);
  color: var(--green-dark);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  margin-bottom: 1.25rem;
  text-align: center;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border-top: 6px solid var(--fiesta-orange);
}

.info-card h3 {
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.info-card .big-emoji {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.rules-list {
  list-style: none;
  counter-reset: rule;
  display: grid;
  gap: 0.9rem;
  max-width: 40rem;
  margin: 0 auto;
}

.rules-list li {
  counter-increment: rule;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem 1rem 3.4rem;
  position: relative;
}

.rules-list li::before {
  content: counter(rule);
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--fiesta-yellow), var(--fiesta-orange));
  color: #4a2500;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rules-list li strong {
  color: var(--green-dark);
}

.par-note {
  text-align: center;
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--green-dark);
}

/* course card preview table */
.course-card-wrap {
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-top: 1.5rem;
}

table.course-card {
  border-collapse: collapse;
  width: 100%;
  min-width: 540px;
  font-weight: 700;
  text-align: center;
}

table.course-card th,
table.course-card td {
  border: 1px solid var(--card-line);
  padding: 0.4rem 0.3rem;
  font-size: 0.9rem;
}

table.course-card th {
  background: var(--green);
  color: var(--white);
}

table.course-card td.total-cell {
  background: var(--green-dark);
  color: var(--fiesta-yellow);
}

.visit-details {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
}

.visit-details .info-card a {
  font-weight: 800;
}

/* soft serve menu board — styled after the real yellow sign */
.menu-tagline {
  text-align: center;
  font-weight: 700;
  color: #5a6b57;
  margin: -0.5rem auto 1.5rem;
  max-width: 34rem;
}

.menu-board {
  background: #f9f0b8;
  border: 10px solid var(--white);
  outline: 1px solid #d8d0b0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.menu-heading {
  font-family: var(--font-display);
  color: var(--green-dark);
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
  border-bottom: 3px solid var(--fiesta-orange);
  padding-bottom: 0.3rem;
}

.menu-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.menu-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.mi-name {
  font-weight: 800;
  color: var(--ink);
}

.mi-name small {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  color: #6b7566;
  line-height: 1.35;
}

.mi-dots {
  flex: 1;
  border-bottom: 2px dotted #b7ac7e;
  transform: translateY(-4px);
  min-width: 1.5rem;
}

.mi-price {
  font-weight: 900;
  color: var(--green-dark);
  white-space: nowrap;
}

.menu-toppings {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: #5a6b57;
  margin-top: 1.4rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.menu-toppings strong {
  color: var(--green-dark);
}

.menu-fineprint {
  text-align: center;
  font-size: 0.8rem;
  color: #8b978a;
  margin-top: 0.5rem;
}

.scorecard-cta {
  background: linear-gradient(160deg, var(--green-dark), var(--green-deep));
  border-radius: calc(var(--radius) + 6px);
  color: var(--white);
  text-align: center;
  padding: 3rem 1.5rem;
  box-shadow: var(--shadow);
}

.scorecard-cta h2 {
  font-family: var(--font-display);
  color: var(--fiesta-yellow);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.scorecard-cta p {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  color: #d9e9de;
}

/* ---------- leaderboard page ---------- */

.lb-hero {
  padding: 2.75rem 1.25rem 3.5rem;
}

.lb-trophy {
  font-size: 3.2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.lb-hero h1 {
  font-size: clamp(2.4rem, 8vw, 4rem);
}

.lb-section {
  max-width: 40rem;
  padding-top: 2rem;
}

.lb-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.lb-tab {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 2px solid var(--green);
  background: var(--white);
  color: var(--green-dark);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}

.lb-tab:active {
  transform: scale(0.96);
}

.lb-tab.active {
  background: linear-gradient(180deg, var(--fiesta-yellow), var(--fiesta-orange));
  border-color: var(--fiesta-orange);
  color: #4a2500;
}

.lb-board {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 6px solid var(--fiesta-orange);
  padding: 0.5rem 0;
  overflow: hidden;
}

.lb-status {
  text-align: center;
  font-weight: 700;
  color: #5a6b57;
  padding: 2.25rem 1.25rem;
}

.lb-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1.1rem;
}

.lb-row + .lb-row {
  border-top: 1px solid #eef3ea;
}

.lb-row.leader {
  background: linear-gradient(90deg, rgba(255, 201, 60, 0.18), rgba(255, 201, 60, 0.04));
}

.lb-place {
  flex: 0 0 2.2rem;
  text-align: center;
  font-weight: 900;
  color: var(--green-dark);
  font-size: 1rem;
}

.lb-place.has-medal {
  font-size: 1.45rem;
}

.lb-info {
  flex: 1;
  min-width: 0;
}

.lb-name {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-when {
  font-size: 0.78rem;
  font-weight: 700;
  color: #8b978a;
}

.lb-score {
  text-align: right;
}

.lb-total {
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--green-dark);
}

.lb-vspar {
  font-size: 0.78rem;
  font-weight: 800;
}

.lb-vspar.is-under { color: var(--birdie); }
.lb-vspar.is-par { color: #8b978a; }
.lb-vspar.is-over { color: var(--bogey); }

.lb-count {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #8b978a;
  margin-top: 0.75rem;
}

.lb-cta {
  text-align: center;
  margin-top: 2.25rem;
}

.lb-cta p {
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.site-footer {
  background: var(--green-deep);
  color: #bcd6c3;
  text-align: center;
  padding: 2rem 1.25rem;
  font-size: 0.9rem;
}

.site-footer .wordmark {
  font-size: 1.3rem;
}

.site-footer p {
  margin-top: 0.4rem;
}
