:root {
  --cream: #fdf8ee;
  --cream-2: #f6eedb;
  --green: #0e3b30;
  --green-2: #164d3f;
  --grass: #4c9a2a;
  --red: #d7261e;
  --red-dark: #b01c15;
  --yellow: #f6c21c;
  --teal: #13867a;
  --ink: #1d2a26;
  --muted: #55625d;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(14, 59, 48, .10);
  --shadow-lift: 0 22px 44px rgba(14, 59, 48, .16);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --section-pad: clamp(80px, 11vw, 136px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.7 "Nunito", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-family: "Fredoka", system-ui, sans-serif; color: var(--green); line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
.script { font-family: "Yellowtail", cursive; color: var(--red); font-size: 1.75rem; margin: 0 0 .35em; line-height: 1.1; }

.wrap { width: min(1160px, 100% - 64px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-family: "Fredoka", sans-serif; font-weight: 600;
  background: var(--red); color: #fff; padding: .85em 1.7em; border-radius: 999px; font-size: 1.05rem;
  box-shadow: 0 4px 0 var(--red-dark); transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--red-dark); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--red-dark); }
.btn-ghost { background: #fff; color: var(--green); box-shadow: 0 4px 0 #cfc6b0; }
.btn-ghost:hover { box-shadow: 0 7px 0 #cfc6b0; }
.btn-small { padding: .55em 1.3em; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 238, .94); backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--red);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(14, 59, 48, .10); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font-family: "Fredoka", sans-serif; font-weight: 700; color: var(--green); font-size: 1.4rem; }
.brand em { font-style: normal; color: var(--red); }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) { position: relative; color: var(--green); text-decoration: none; font-weight: 700; padding: 4px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:not(.btn):hover { color: var(--red); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--green); margin: 5px 0; border-radius: 3px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(80px, 10vw, 128px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 7vw, 96px); align-items: center; }
.hero-logo { width: 130px; height: auto; margin-bottom: 24px; }
.hero-text h1 { margin-bottom: .45em; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 28px; box-shadow: 0 24px 50px rgba(14,59,48,.18); border: 6px solid #fff; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 34em; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts li { background: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 700; color: var(--green); font-size: .95rem; box-shadow: 0 2px 10px rgba(0,0,0,.06); }

/* Sections */
.section { padding: var(--section-pad) 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto clamp(48px, 6vw, 72px); }
.section-head h2 { margin-bottom: .4em; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-green { background: var(--green); color: #e8f1ec; }
.section-green h2 { color: #fff; }
.section-green .script { color: var(--yellow); }
.section-cream { background: var(--cream-2); }

/* Courses */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.course {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.course-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.course:hover .course-img img { transform: scale(1.06); }
.tag { position: absolute; top: 18px; left: 18px; font-family: "Fredoka", sans-serif; font-weight: 600; padding: 5px 15px; border-radius: 999px; font-size: .92rem; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.tag-red { background: var(--red); color: #fff; }
.tag-green { background: var(--green); color: #fff; }
.tag-yellow { background: var(--yellow); color: var(--green); }
.course-body { padding: 32px 32px 36px; }
.course-body h3 { margin-bottom: .55em; }
.course-body p { color: var(--muted); margin-bottom: 1.4em; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 32px; position: relative; margin: 10px 0; font-weight: 600; }
.ticks li::before { content: "⛳"; position: absolute; left: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(48px, 7vw, 96px); align-items: center; }
.split-img { overflow: hidden; border-radius: var(--radius); box-shadow: 0 20px 44px rgba(0,0,0,.3); }
.split-img img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transition: transform .8s var(--ease); }
.split-img:hover img { transform: scale(1.04); }
.split-text p { max-width: 32em; }
.pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pills span { background: var(--green-2); border: 1px solid rgba(255,255,255,.15); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .95rem; transition: transform .2s var(--ease), background .2s; }
.pills span:hover { transform: translateY(-2px); background: #1d5c4b; }

/* Prices */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 980px; margin: 0 auto; }
.price-card {
  position: relative; background: #fff; border-radius: var(--radius); padding: 48px 28px 44px; text-align: center; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.price-card h3 { margin-bottom: .6em; }
.price { font-family: "Fredoka", sans-serif; font-size: 3.2rem; font-weight: 700; color: var(--red); margin: 0; line-height: 1.05; }
.price-note { color: var(--muted); margin: 12px 0 0; }
.price-extra { margin: 18px 0 0; padding-top: 16px; border-top: 2px dashed var(--cream-2); font-weight: 700; color: var(--green); font-size: .95rem; }
.little-putters {
  max-width: 980px; margin: 40px auto 0; text-align: center;
  background: var(--green); color: #e8f1ec; border-radius: var(--radius); padding: 24px 32px; box-shadow: var(--shadow);
}
.little-putters p { margin: 0; line-height: 1.6; }
.little-putters strong { display: inline-block; margin-bottom: 4px; color: var(--yellow); font-family: "Fredoka", sans-serif; font-size: 1.15rem; font-weight: 600; }
.little-putters span { opacity: .8; font-size: .95rem; }

.small-print { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 32px; }

/* Visit */
.visit { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.hours, .find { background: #fff; border-radius: var(--radius); padding: clamp(32px, 4vw, 48px); box-shadow: var(--shadow); }
.hours table { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 16px 0; border-bottom: 2px dashed var(--cream-2); vertical-align: top; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { color: var(--green); font-weight: 700; padding-right: 20px; }
.hours td { color: var(--muted); }
.hours .season { font-size: 1.15rem; margin: 32px 0 4px; }
.weather-note { margin: 20px 0 0; padding: 14px 18px; background: var(--cream); border-radius: 12px; color: var(--green); font-weight: 600; font-size: .95rem; }
.find > p { color: var(--muted); }
.map { width: 100%; height: 260px; border: 0; border-radius: 14px; margin: 8px 0 28px; display: block; }
address { font-style: normal; font-weight: 700; color: var(--green); margin: 24px 0 8px; padding-left: 16px; border-left: 4px solid var(--yellow); line-height: 1.6; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: var(--cream); padding: 6px 0; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.gallery img:hover { filter: saturate(1.15); }

/* Footer */
.site-footer { background: var(--green); color: #cfe0d8; padding: clamp(56px, 7vw, 80px) 0; border-top: 6px solid var(--red); }
.footer-inner { display: flex; gap: 40px; align-items: center; }
.footer-inner p { margin-bottom: .9em; }
.footer-inner img { width: 140px; height: auto; background: var(--cream); padding: 14px; border-radius: 18px; flex-shrink: 0; }
.site-footer strong { color: #fff; font-family: "Fredoka", sans-serif; font-size: 1.2rem; }
.site-footer a { color: var(--yellow); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.copy { font-size: .9rem; opacity: .75; margin: 0; }

/* ---------- Animations ---------- */

/* Opening section plays in on load */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { opacity: 0; transform: translateY(30px) rotate(1.5deg) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.7); } 70% { transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero-text > * { animation: rise .8s var(--ease) both; }
.hero-text > :nth-child(1) { animation-delay: .05s; }
.hero-text > :nth-child(2) { animation-delay: .15s; }
.hero-text > :nth-child(3) { animation-delay: .25s; }
.hero-text > :nth-child(4) { animation-delay: .35s; }
.hero-text > :nth-child(5) { animation-delay: .45s; }
.hero-text > :nth-child(6) { animation-delay: .55s; }
.hero-photo { animation: photo-in 1s .2s var(--ease) both; }
.hero-facts li { animation: pop .5s var(--ease) both; }
.hero-facts li:nth-child(1) { animation-delay: .75s; }
.hero-facts li:nth-child(2) { animation-delay: .85s; }
.hero-facts li:nth-child(3) { animation-delay: .95s; }
.hero-text > .hero-logo { animation: rise .8s .05s var(--ease) both, bob 5s 1.4s ease-in-out infinite; }

/* Everything else fades up as it scrolls into view (only when JS is running) */
.js [data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].in { opacity: 1; transform: none; }
/* Once revealed, let the card's own hover transitions take over */
.js .course.in, .js .price-card.in { transition: opacity .8s var(--ease) var(--d, 0ms), transform .35s var(--ease), box-shadow .35s var(--ease); }
.js .gallery img.in { transition: opacity .8s var(--ease) var(--d, 0ms), transform .6s var(--ease), filter .4s; }
.js .gallery img.in:hover { transform: scale(1.04); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-logo { width: 120px; margin-inline: auto; }
  .lead { margin-inline: auto; }
  .hero-actions, .hero-facts { justify-content: center; }
  .courses, .split, .visit { grid-template-columns: 1fr; }
  .courses { gap: 32px; max-width: 560px; margin-inline: auto; }
  .split { gap: 44px; }
  .prices { grid-template-columns: 1fr; max-width: 400px; gap: 24px; }
  .little-putters { max-width: 400px; padding: 28px 24px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { width: min(1160px, 100% - 40px); }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 83px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 3px solid var(--red); padding: 12px 20px 24px;
    box-shadow: 0 16px 30px rgba(14,59,48,.12);
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s; }
  .nav a:not(.btn) { padding: 14px 0; width: 100%; text-align: center; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 12px; }
  .course-body { padding: 28px 26px 32px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 28px; }
}
@media (max-width: 400px) {
  .brand span { font-size: 1.2rem; white-space: nowrap; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
