/* =====================================================================
   ROC Ice Cream & Golf — Styles
   Palette drawn from the brand: turquoise fountain water, hot-pink ice
   cream labels, golf-turf green, on warm cream.
   ===================================================================== */

:root {
  --teal:        #17b3c4;
  --teal-deep:   #0e8593;
  --teal-dark:   #0a5c66;
  --pink:        #ec2f86;
  --pink-deep:   #cf1f70;
  --green:       #46b357;
  --green-deep:  #379445;
  --cream:       #fff7ee;
  --cream-2:     #ffeede;
  --ink:         #1f2d33;
  --ink-soft:    #47606a;
  --white:       #ffffff;

  --shadow-sm: 0 4px 14px rgba(14, 133, 147, 0.12);
  --shadow-md: 0 14px 40px rgba(14, 133, 147, 0.18);
  --shadow-pink: 0 10px 26px rgba(236, 47, 134, 0.28);

  --radius: 22px;
  --radius-lg: 34px;
  --max: 1180px;
  --font-head: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .nav__brand-text { font-family: var(--font-head); line-height: 1.05; }

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

section { scroll-margin-top: 80px; }

/* ---------------------------- Buttons ---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: .72rem 1.5rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: .95rem 2rem; font-size: 1.08rem; }

.btn--pink { background: var(--pink); color: var(--white); box-shadow: var(--shadow-pink); }
.btn--pink:hover { background: var(--pink-deep); transform: translateY(-2px); }

.btn--ghost {
  background: rgba(255,255,255,.7);
  color: var(--teal-dark);
  box-shadow: inset 0 0 0 2px var(--teal);
}
.btn--ghost:hover { background: var(--white); transform: translateY(-2px); }

/* ---------------------------- Nav ---------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 247, 238, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14,133,147,.1);
}
.nav__brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.nav__brand img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; box-shadow: var(--shadow-sm); }
.nav__brand-text {
  font-weight: 700; font-size: 1.5rem; letter-spacing: .5px;
  background: linear-gradient(120deg, var(--green), var(--teal) 55%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a {
  font-weight: 700; color: var(--ink-soft); text-decoration: none; font-size: .98rem;
  position: relative; padding: .2rem 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 3px; width: 0;
  background: var(--pink); border-radius: 3px; transition: width .2s ease;
}
.nav__links a:hover { color: var(--teal-dark); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: .2rem; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 6px; margin-left: auto;
}
.nav__toggle span { width: 26px; height: 3px; background: var(--teal-dark); border-radius: 3px; transition: .25s; }
.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 {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1rem, 5vw, 3rem) clamp(4rem, 8vw, 6rem);
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(23,179,196,.28), transparent 55%),
    radial-gradient(90% 80% at -10% 110%, rgba(70,179,87,.22), transparent 55%),
    linear-gradient(180deg, var(--cream), var(--cream-2));
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; text-align: center; }
.hero__eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; font-size: .82rem;
  color: var(--teal-deep); background: rgba(23,179,196,.14);
  padding: .4rem 1rem; border-radius: 100px; margin-bottom: 1.4rem;
}
.hero__title {
  font-size: clamp(2.7rem, 8vw, 5.2rem); font-weight: 700; color: var(--ink);
  letter-spacing: -1px;
}
.hero__title span {
  background: linear-gradient(115deg, var(--pink), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(1.05rem, 2.4vw, 1.28rem); color: var(--ink-soft); margin: 1.5rem auto 2.2rem; max-width: 560px; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__blob { position: absolute; border-radius: 50%; filter: blur(6px); opacity: .55; z-index: 1; }
.hero__blob--1 { width: 260px; height: 260px; background: radial-gradient(circle at 30% 30%, #7fe0ea, var(--teal)); top: -60px; left: -40px; animation: float 9s ease-in-out infinite; }
.hero__blob--2 { width: 200px; height: 200px; background: radial-gradient(circle at 30% 30%, #ff86bd, var(--pink)); bottom: -50px; right: -30px; animation: float 11s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-24px) } }

.hero__scroll { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); z-index: 2; text-align: center; color: var(--teal-deep); }
.hero__scroll span { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; font-family: var(--font-head); }
.hero__scroll-line { width: 2px; height: 30px; margin: 6px auto 0; background: linear-gradient(var(--teal), transparent); animation: scrollpulse 1.8s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100% { opacity: .3; transform: scaleY(.7) } 50% { opacity: 1; transform: scaleY(1) } }

/* ---------------------------- Marquee ---------------------------- */
.marquee { background: var(--teal); color: var(--white); overflow: hidden; padding: .7rem 0; }
.marquee__track {
  display: flex; gap: 1.4rem; white-space: nowrap; width: max-content;
  font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; letter-spacing: .5px;
  animation: marquee 26s linear infinite;
}
.marquee__track .dot { opacity: .6; }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ---------------------------- Feature sections ---------------------------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; max-width: var(--max); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.2rem, 5vw, 2rem);
}
.feature--reverse .feature__media { order: 2; }

.feature__media { position: relative; }
.feature__media img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3; object-fit: cover;
}
.feature__media-2 {
  position: absolute; width: 46%; bottom: -28px; right: -18px;
  border: 6px solid var(--cream); aspect-ratio: 3/4 !important;
}
.feature--reverse .feature__media-2 { right: auto; left: -18px; }

/* Crossfading course slideshow */
.feature__slideshow {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.feature__slideshow .slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 0; box-shadow: none; aspect-ratio: auto;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.feature__slideshow .slide.is-active { opacity: 1; }
/* Dots */
.feature__slideshow .slideshow__dots {
  position: absolute; left: 0; right: 0; bottom: 14px;
  display: flex; justify-content: center; gap: 8px; z-index: 2;
}
.feature__slideshow .slideshow__dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.55); box-shadow: 0 1px 3px rgba(0,0,0,.3);
  padding: 0; transition: background .2s ease, transform .2s ease;
}
.feature__slideshow .slideshow__dot.is-active { background: var(--white); transform: scale(1.25); }

.feature__body h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: .6rem 0 1rem; color: var(--ink); }
.feature__body p { color: var(--ink-soft); font-size: 1.1rem; max-width: 46ch; }

.tag {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: 1.5px; padding: .35rem .9rem; border-radius: 100px;
}
.tag--pink { color: var(--pink-deep); background: rgba(236,47,134,.12); }
.tag--green { color: var(--green-deep); background: rgba(70,179,87,.14); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.chips li {
  font-weight: 700; font-size: .92rem; color: var(--teal-dark);
  background: var(--white); padding: .5rem 1rem; border-radius: 100px; box-shadow: var(--shadow-sm);
}

/* ---------------------------- Group booking ---------------------------- */
.groups {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; max-width: var(--max); margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.2rem, 5vw, 2rem);
}
.groups__intro h2 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); margin: .6rem 0 1rem; }
.groups__intro p { color: var(--ink-soft); font-size: 1.1rem; }
.groups__perks { list-style: none; margin-top: 1.8rem; display: grid; gap: 1rem; }
.groups__perks li {
  display: flex; flex-direction: column; padding: 1rem 1.2rem; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); border-left: 5px solid var(--teal);
}
.groups__perks li:nth-child(2) { border-left-color: var(--pink); }
.groups__perks li:nth-child(3) { border-left-color: var(--green); }
.groups__perks strong { font-family: var(--font-head); font-size: 1.08rem; color: var(--ink); }
.groups__perks span { color: var(--ink-soft); font-size: .95rem; }

.groups__form-wrap {
  background: linear-gradient(160deg, var(--teal), var(--teal-deep));
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.groups__form-wrap::before {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.09); top: -80px; right: -60px;
}
.booking-form { position: relative; z-index: 1; }
.booking-form h3 { color: var(--white); font-size: 1.6rem; margin-bottom: .3rem; }
.booking-form__note { color: rgba(255,255,255,.82); font-size: .88rem; margin-bottom: 1.3rem; min-height: 1em; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field > span { color: var(--white); font-weight: 700; font-size: .9rem; }
.field b { color: #ffd0e6; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; padding: .72rem .9rem;
  border: 2px solid transparent; border-radius: 14px; background: var(--white);
  color: var(--ink); width: 100%; transition: border .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(236,47,134,.22);
}
.booking-form__submit { width: 100%; margin-top: .4rem; }
.booking-form__status { margin-top: 1rem; font-weight: 700; color: var(--white); min-height: 1.2em; }
.booking-form__status.is-error { color: #ffe08a; }

/* Embedded Google Form */
.booking-embed__title { position: relative; z-index: 1; color: var(--white); font-size: 1.6rem; margin-bottom: .3rem; }
.booking-embed__note { position: relative; z-index: 1; color: rgba(255,255,255,.85); font-size: .95rem; margin-bottom: 1.3rem; }
.booking-embed {
  position: relative; z-index: 1;
  background: var(--white); border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(10,92,102,.22);
}
.booking-embed iframe { display: block; width: 100%; border: 0; }
.booking-embed__msg { padding: 1.4rem; color: var(--ink); font-weight: 600; }
.booking-embed .btn { margin: 1.4rem; }

/* ---------------------------- Visit us ---------------------------- */
.visit {
  background:
    radial-gradient(90% 70% at 90% 0%, rgba(70,179,87,.16), transparent 60%),
    linear-gradient(180deg, var(--cream-2), var(--cream));
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.2rem, 5vw, 2rem);
}
.visit__inner { max-width: var(--max); margin: 0 auto; }
.visit__header { text-align: center; margin-bottom: 2.6rem; }
.visit__header h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: .5rem 0; }
.visit__live-note { color: var(--ink-soft); font-size: .9rem; min-height: 1em; }

.visit__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.info-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem 1.6rem;
  box-shadow: var(--shadow-sm); text-align: center; transition: transform .2s ease, box-shadow .2s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.info-card__icon {
  width: 62px; height: 62px; margin: 0 auto 1rem; display: grid; place-items: center;
  font-size: 1.7rem; border-radius: 50%; background: rgba(23,179,196,.14);
}
.info-card h3 { font-size: 1.3rem; color: var(--teal-dark); margin-bottom: .6rem; }
.info-card__value { font-size: 1.05rem; color: var(--ink); font-weight: 700; white-space: pre-line; }
.info-card__link {
  display: inline-block; margin-top: .9rem; color: var(--pink-deep); font-weight: 800;
  text-decoration: none; font-size: .95rem;
}
.info-card__link:hover { text-decoration: underline; }

.info-card--hours { text-align: left; }
.info-card--hours h3, .info-card--hours .info-card__icon { margin-left: auto; margin-right: auto; }
.info-card--hours h3 { text-align: center; }
.hours-list { list-style: none; }
.hours-list li {
  display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0;
  border-bottom: 1px dashed rgba(14,133,147,.16); font-size: .98rem;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list li b { font-family: var(--font-head); font-weight: 600; }
.hours-list li.is-today { color: var(--pink-deep); }
.hours-list li.is-today b { color: var(--pink-deep); }
.hours-list__loading { color: var(--ink-soft); border-bottom: none !important; }

/* ---------------------------- Verse band ---------------------------- */
.verse {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-dark));
  color: var(--white);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.4rem, 6vw, 2rem);
  text-align: center;
}
.verse::before, .verse::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.verse::before {
  width: 240px; height: 240px; top: -90px; left: -70px;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.14), transparent 70%);
}
.verse::after {
  width: 200px; height: 200px; bottom: -80px; right: -50px;
  background: radial-gradient(circle at 35% 35%, rgba(236,47,134,.28), transparent 70%);
}
.verse__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.verse__mark {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(3.5rem, 9vw, 5rem); line-height: .6; color: var(--pink);
  opacity: .9; margin-bottom: .4rem;
}
.verse__text {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(1.4rem, 3.6vw, 2.2rem); line-height: 1.3; letter-spacing: .2px;
  margin: 0 auto; max-width: 22ch;
}
.verse__ref {
  display: inline-block; margin-top: 1.4rem; font-family: var(--font-head);
  font-style: normal; font-weight: 600; font-size: 1rem; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,.85);
  padding-top: 1rem; border-top: 2px solid rgba(255,255,255,.28);
}

/* ---------------------------- Footer ---------------------------- */
.footer {
  background: var(--teal-dark); color: rgba(255,255,255,.9);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.2rem, 5vw, 2rem) 2rem;
  display: grid; gap: 1.4rem; justify-items: center; text-align: center;
}
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.footer__brand img { width: 54px; height: 54px; border-radius: 14px; }
.footer__brand p { font-family: var(--font-head); font-size: 1.1rem; color: var(--white); }
.footer__links { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; }
.footer__links a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 700; }
.footer__links a:hover { color: #ffd0e6; }
.footer__copy { font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------------------------- Responsive ---------------------------- */
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open { flex-wrap: wrap; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; width: 100%; gap: 1rem; order: 3;
    padding: 1rem .4rem .4rem; margin-left: 0;
  }
  .nav.is-open .nav__cta { display: inline-flex; order: 4; width: 100%; }

  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
  .feature__media-2 { display: none; }

  .groups { grid-template-columns: 1fr; }
  .visit__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}
