/* =========================================================
   Amana Waterpark — animated wave hero, gallery, reviews, motion
   (loaded after styles.css)
   ========================================================= */

/* ---------- Header ---------- */
.header { transition: box-shadow .3s, background .3s; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(6,47,92,.12); }
.header__inner { transition: height .3s; }
.header.is-scrolled .header__inner { height: 60px; }
.brand--logo img { height: 44px; width: auto; transition: transform .3s; }
.brand--logo:hover img { transform: scale(1.04) rotate(-1deg); }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80;
  background: linear-gradient(90deg, var(--aqua), var(--sun), var(--coral));
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  --surge: 0;
  min-height: calc(100svh - 100px);
  padding: clamp(32px, 6vh, 80px) 0 clamp(150px, 24vh, 250px);
  background: var(--blue-900);
  isolation: isolate;
}
.hero__media {
  z-index: -2; transform: scale(1.08); transform-origin: 50% 30%;
  will-change: transform;
  filter: saturate(calc(1.05 + var(--surge) * .25)) brightness(calc(.95 + var(--surge) * .08));
}
.hero__media::before {
  background:
    linear-gradient(180deg, rgba(6,47,92,.55) 0%, rgba(6,47,92,.15) 40%, rgba(6,47,92,.25) 70%, rgba(6,47,92,.6) 100%),
    linear-gradient(95deg, rgba(6,47,92,.85) 0%, rgba(6,47,92,.45) 50%, rgba(6,47,92,0) 80%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__media.has-img { animation: kenburns 24s ease-in-out infinite alternate; }
}
@keyframes kenburns { from { background-position: 50% 40%; } to { background-position: 62% 58%; } }

.hero__content { z-index: 2; will-change: transform, opacity; }
.hero__title { max-width: 15ch; font-size: clamp(2.4rem, min(6.4vw, 8.5vh), 5rem); line-height: 1.04; margin-bottom: .25em; }
.hero__title > span { color: #fff; display: inline-block; }
.hero__title > span:last-child { display: block; }
.hero__facts strong span { font-size: inherit; font-weight: inherit; opacity: 1; display: inline; }

/* "Biggest Wave": water flowing through the letters */
.hero__wave-word {
  background: linear-gradient(100deg, #fff6c9 0%, #ffc928 25%, #ffe680 40%, #7fdcf2 55%, #ffc928 70%, #fff6c9 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.35));
  position: relative; padding-bottom: .14em; width: fit-content;
}
.hero__wave-word::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.02em; height: .2em;
  background: url("../images/squiggle.svg") repeat-x 0 50% / auto 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__wave-word { animation: shimmer 5s linear infinite; }
  .hero__wave-word::after { animation: squiggle 1.2s linear infinite; }
}
@keyframes shimmer { to { background-position: -250% 0; } }
@keyframes squiggle { to { background-position: 80px 50%; } }
.hero.is-surging .hero__wave-word { filter: drop-shadow(0 0 24px rgba(255,201,40,.6)) drop-shadow(0 4px 18px rgba(0,0,0,.35)); }

/* staged entrance */
.anim-in { opacity: 0; transform: translateY(28px); }
.hero.is-ready .anim-in {
  opacity: 1; transform: none;
  transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--i, 0) * 120ms + 150ms);
}
@media (prefers-reduced-motion: reduce) { .anim-in { opacity: 1; transform: none; } }

.hero__facts strong { font-size: clamp(1.4rem, 3vw, 2rem); }

.hero__canvas {
  position: absolute; left: 0; right: 0; bottom: -1px; width: 100%;
  height: clamp(200px, 36vh, 360px); z-index: 1; display: block; pointer-events: none;
}

/* floating bubbles */
.hero__bubbles { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__bubbles span {
  position: absolute; bottom: -40px; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,.15) 60%, transparent 70%);
  border: 1px solid rgba(255,255,255,.35); opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__bubbles span { animation: bubble 11s linear infinite; }
}
.hero__bubbles span:nth-child(1)  { left: 6%;  animation-delay: 0s;   scale: .6; }
.hero__bubbles span:nth-child(2)  { left: 18%; animation-delay: 2.5s; animation-duration: 13s; }
.hero__bubbles span:nth-child(3)  { left: 31%; animation-delay: 5s;   scale: 1.4; }
.hero__bubbles span:nth-child(4)  { left: 44%; animation-delay: 1s;   animation-duration: 9s; }
.hero__bubbles span:nth-child(5)  { left: 57%; animation-delay: 7s; }
.hero__bubbles span:nth-child(6)  { left: 66%; animation-delay: 3.5s; animation-duration: 14s; }
.hero__bubbles span:nth-child(7)  { left: 75%; animation-delay: 6s;   scale: .8; }
.hero__bubbles span:nth-child(8)  { left: 84%; animation-delay: .5s;  animation-duration: 10s; }
.hero__bubbles span:nth-child(9)  { left: 91%; animation-delay: 8s;   scale: 1.2; }
.hero__bubbles span:nth-child(10) { left: 50%; animation-delay: 9.5s; animation-duration: 12s; }
@keyframes bubble {
  0%   { opacity: 0; translate: 0 0; }
  10%  { opacity: .9; }
  50%  { translate: 18px -45vh; }
  100% { opacity: 0; translate: -12px -95vh; }
}

/* wave meter */
.wave-meter {
  position: absolute; right: max(16px, calc((100% - 1160px) / 2)); top: clamp(24px, 6vh, 70px); z-index: 3;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 6px;
  align-items: center;
  background: rgba(6,47,92,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 16px; padding: 10px 14px; min-width: 230px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25); transition: background .3s;
}
.wave-meter__icon { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; background: var(--sun); display: grid; place-items: center; }
.wave-meter__icon svg { width: 22px; height: 22px; fill: var(--blue-900); }
.wave-meter__text { font-weight: 800; font-size: .9rem; }
.wave-meter__bar { height: 5px; border-radius: 5px; background: rgba(255,255,255,.2); overflow: hidden; }
.wave-meter__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--aqua), var(--sun)); transform-origin: 0 50%; transform: scaleX(0); }
.hero.is-surging .wave-meter { background: rgba(239,75,63,.8); animation: meterPulse .6s ease-in-out infinite alternate; }
.hero.is-surging .wave-meter__icon { animation: wobble .5s ease-in-out infinite alternate; }
@keyframes meterPulse { to { box-shadow: 0 0 0 8px rgba(239,75,63,.25), 0 8px 30px rgba(0,0,0,.25); } }
@keyframes wobble { from { transform: rotate(-12deg); } to { transform: rotate(12deg) scale(1.1); } }

/* scroll cue */
.hero__scroll {
  position: absolute; left: 50%; bottom: 24px; z-index: 3; translate: -50% 0;
  width: 28px; height: 44px; border: 2px solid var(--blue-500); border-radius: 16px; opacity: .8;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--blue-500); }
@media (prefers-reduced-motion: no-preference) { .hero__scroll span { animation: scrollCue 1.6s ease-in-out infinite; } }
@keyframes scrollCue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- As seen on ---------- */
.seen { background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; padding: 6px 0 18px; display: flex; }
.seen__track { display: flex; width: max-content; }
.seen__row { display: flex; align-items: center; gap: 22px; padding-right: 22px; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .seen__track { animation: marquee 38s linear infinite; } }
.seen:hover .seen__track { animation-play-state: paused; }
.seen__label { font: 800 .72rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }
.seen__item { font: 800 1.15rem/1 var(--font-display); color: var(--blue-900); opacity: .8; }
.seen__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Promo (no longer overlaps hero) ---------- */
.promo { margin-top: 0; padding-top: 40px; }

/* ---------- Reveal variants ---------- */
.reveal { transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal--up:not(.is-in) { transform: translateY(26px); }
.attr.reveal:not(.is-in), .cottage.reveal:not(.is-in), .gallery__item.reveal:not(.is-in) { transform: translateY(34px) scale(.97); }

/* ---------- Cards: image zoom + glare ---------- */
.attr, .cottage { position: relative; overflow: hidden; transform-style: preserve-3d; }
.attr.is-in, .cottage.is-in { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, opacity .7s; }
.attr:hover, .cottage:hover { box-shadow: 0 20px 44px rgba(6,47,92,.2); }
.attr::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.35), transparent 45%);
}
.attr:hover::after { opacity: 1; }
.attr__img, .cottage__img { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.attr:hover .attr__img.has-img, .cottage:hover .cottage__img.has-img { transform: scale(1.06); }

/* ---------- Wave dividers ---------- */
.section--deep, .reserve { position: relative; }
.wave-divider { position: absolute; top: -1px; left: 0; width: 200%; height: 70px; pointer-events: none; z-index: 1; }
.wave-divider path { fill: var(--fill); }
.wave-divider .wd2 { opacity: .55; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .wave-divider .wd1 { animation: drift 16s linear infinite; }
  .wave-divider .wd2 { animation: drift 11s linear infinite reverse; }
}
#packages, #reserve { padding-top: calc(clamp(64px, 9vw, 110px) + 30px); overflow: hidden; }

/* ---------- Gallery ---------- */
.section--gallery { padding-top: 0; }
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery__item {
  position: relative; display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; cursor: zoom-in;
  border-radius: 16px; overflow: hidden; break-inside: avoid; background: var(--aqua-100);
  box-shadow: 0 6px 20px rgba(6,47,92,.1);
}
.gallery__item img { width: 100%; height: auto; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.07); }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; text-align: left;
  color: #fff; font-weight: 800; font-size: .9rem;
  background: linear-gradient(180deg, transparent, rgba(6,47,92,.85));
  transform: translateY(100%); transition: transform .35s ease;
}
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { transform: none; }
.gallery__item:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(3,20,40,.92);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 16px;
  animation: fadeIn .25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; text-align: center; min-width: 0; }
.lightbox__figure img {
  max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  opacity: 0; transform: scale(.96); transition: opacity .35s, transform .45s cubic-bezier(.2,.8,.2,1);
}
.lightbox__figure img.is-in { opacity: 1; transform: none; }
.lightbox__figure figcaption { color: #fff; font-weight: 700; margin-top: 12px; opacity: .9; }
.lightbox__nav, .lightbox__close {
  background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px;
  font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s;
}
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255,255,255,.25); }
.lightbox__close { position: absolute; top: 14px; right: 14px; z-index: 2; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Reviews ---------- */
.reviews { background: linear-gradient(180deg, #fff 0%, var(--aqua-100) 100%); overflow: hidden; }
.section__head--center { text-align: center; margin-inline: auto; }
.reviews__marquee {
  display: flex; overflow: hidden; padding: 10px 0 30px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.reviews__row { display: flex; gap: 20px; padding-right: 20px; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .reviews__row { animation: marqueeRow 60s linear infinite; }
  .reviews__marquee:hover .reviews__row { animation-play-state: paused; }
}
@keyframes marqueeRow { to { transform: translateX(-100%); } }
.quote {
  margin: 0; width: 320px; flex: none; background: #fff; border-radius: 20px; padding: 22px 22px 18px;
  box-shadow: 0 10px 28px rgba(6,47,92,.1); border: 1px solid var(--line); display: flex; flex-direction: column;
}
.quote__stars { color: var(--sun-600); letter-spacing: 2px; margin-bottom: 8px; }
.quote blockquote { margin: 0 0 14px; font-size: 1.02rem; font-weight: 600; color: var(--ink); flex: 1; }
.quote figcaption { display: flex; flex-direction: column; font-size: .85rem; }
.quote figcaption strong { color: var(--blue-900); }
.quote figcaption span { color: var(--ink-2); }

.feedback {
  margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  background: #fff; border-radius: 26px; padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.feedback h3 { font-size: 1.8rem; }
.feedback__intro p { color: var(--ink-2); }
.feedback__links { display: flex; flex-wrap: wrap; gap: 10px; }
.feedback__links .btn { padding: .7em 1.1em; font-size: .92rem; }
.feedback__form { display: grid; gap: 12px; }
.feedback__form label { display: grid; gap: 6px; font-weight: 800; font-size: .88rem; color: var(--blue-900); }
.feedback__form input, .feedback__form textarea {
  font: 600 1rem var(--font-body); border: 2px solid var(--line); border-radius: 12px; padding: .7em .85em; background: #fbfdff; width: 100%;
}
.feedback__form input:focus, .feedback__form textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(25,195,230,.18); }
.feedback__form > .btn { justify-self: start; }
.feedback__label { margin: 0; font-weight: 800; color: var(--blue-900); }
.stars { display: flex; gap: 4px; }
.stars button {
  font-size: 2.2rem; line-height: 1; background: none; border: 0; cursor: pointer; color: #cfdbe6; padding: 2px;
  transition: color .15s, transform .15s;
}
.stars button.on { color: var(--sun); }
.stars button:hover { transform: scale(1.15); }
.stars button:focus-visible { outline: 3px solid var(--aqua); border-radius: 6px; }
.stars button.pop { animation: pop .4s ease; }
@keyframes pop { 50% { transform: scale(1.45) rotate(-10deg); } }
.feedback__thanks { margin: 0; background: var(--aqua-100); border-radius: 12px; padding: 12px 14px; font-weight: 700; color: var(--blue-900); }
.btn--sm { padding: .5em .9em; font-size: .85rem; margin-left: 6px; }

/* ---------- Ripple ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
  background: rgba(255,255,255,.45); transform: scale(0); animation: ripple .65s ease-out forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- Packages + floating button ---------- */
.pkg { transition: transform .3s, background .3s, opacity .7s; }
.pkg:hover { transform: translateY(-6px); background: rgba(255,255,255,.12); }
@media (prefers-reduced-motion: no-preference) {
  .pkg:hover .pkg__icon { animation: bob .8s ease-in-out infinite alternate; }
  .fab { animation: fabPulse 2.4s ease-in-out infinite; }
}
@keyframes bob { to { transform: translateY(-6px) rotate(-6deg); } }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,106,255,.4), 0 0 0 0 rgba(0,178,255,.5); }
  50% { box-shadow: 0 8px 24px rgba(0,106,255,.4), 0 0 0 12px rgba(0,178,255,0); }
}

/* ---------- Live Facebook feed ---------- */
.fbfeed__inner { display: grid; grid-template-columns: 1fr minmax(0, 500px); gap: 48px; align-items: center; }
.fbfeed__frame {
  background: #fff; border-radius: 20px; padding: 10px; box-shadow: var(--shadow);
  width: 100%; max-width: 520px; justify-self: end; overflow: hidden;
}
.fbfeed__frame { position: relative; }
.fbfeed__frame iframe { position: relative; z-index: 1; display: block; width: 100%; max-width: 500px; height: 640px; border: 0; border-radius: 12px; background: transparent; }
/* Shows through when Facebook can't display posts (blocked cookies, not logged in) */
.fbfeed__fallback {
  position: absolute; z-index: 0; left: 10px; right: 10px; top: 150px; bottom: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  background: var(--aqua-100); border-radius: 12px; text-decoration: none; padding: 20px; color: var(--blue-900);
}
.fbfeed__fallback img { width: 100%; max-width: 360px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 8px; box-shadow: 0 8px 20px rgba(6,47,92,.15); }
.fbfeed__fallback strong { font: 800 1.25rem/1.2 var(--font-display); }
.fbfeed__fallback span { color: var(--blue-500); font-weight: 800; }

/* SMS button only where texting is easy (phones/tablets) */
@media (hover: hover) and (pointer: fine) { .only-touch { display: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .fbfeed__inner { grid-template-columns: 1fr; gap: 24px; }
  .fbfeed__frame { justify-self: center; }
  .fbfeed__frame iframe { height: 560px; }
}
@media (max-width: 900px) {
  .feedback { grid-template-columns: 1fr; padding: 24px; }
  .wave-meter { left: 16px; right: auto; }
}
@media (max-width: 640px) {
  .hero { min-height: calc(100svh - 100px); padding: 26px 0 190px; }
  .hero__kicker { font-size: .85rem; }
  .hero__title { font-size: clamp(2.2rem, 10.5vw, 2.9rem); }
  .hero__lead { font-size: .98rem; line-height: 1.5; }
  .hero__actions { margin: 1.1rem 0 1.3rem; gap: .6rem; flex-wrap: nowrap; }
  .hero__actions .btn { flex: 1 1 0; padding: .9em .6em; font-size: .95rem; }
  .hero__facts { gap: 1.1rem; flex-wrap: nowrap; }
  .hero__facts strong { font-size: 1.25rem; }
  .hero__facts li > span { font-size: .72rem; }
  .hero__canvas { height: 220px; }
  .promo-bar { font-size: .78rem; }
  .promo-bar__inner { padding: .4em 0; gap: .4em; }
  .promo-bar__tag, .promo-bar__link { display: none; }
  .wave-meter { top: auto; bottom: 130px; min-width: 0; padding: 8px 12px; }
  .wave-meter__icon { width: 30px; height: 30px; }
  .hero__scroll { display: none; }
  .brand--logo img { height: 36px; }
  .quote { width: 270px; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 20px; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
  .gallery { columns: 2 140px; column-gap: 10px; }
  .gallery__item { margin-bottom: 10px; border-radius: 12px; }
  .gallery__cap { transform: none; font-size: .78rem; padding: 20px 10px 8px; }
}
