/* Row of CTA buttons — used in all hero sections across all page types. */
.hero-cta-row { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 720px) { .hero-cta-row { flex-direction: column; } }

/* Hero tag pills — used in all hero sections across all page types (currently
   the homepage .hero and the reservation page .booking-hero). */
.hero-tags { display: flex; flex-wrap: wrap; column-gap: 8px; row-gap: 0; margin: 0 0 20px; }
.hero-tag {
  display: inline-flex; align-items: center; padding: 7px 14px;
  border-radius: var(--radius-pill); background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.28);
  font-size: 11px; font-weight: 700; letter-spacing: var(--tracking-claim);
  text-transform: uppercase; color: #fff; white-space: nowrap;
}
/* Forces a flex-wrap line break after the 2nd tag (see hero.php / template-
   reservation.php), so all 4 tags always lay out as 2 rows of 2 — a
   zero-width, flex-basis:100% item is the standard way to break a flex-wrap
   row on demand. Its own height *is* the gap between the two tag rows;
   row-gap is 0 on the container so that gap isn't doubled by this element
   sitting on its own invisible line. */
.hero-tags-break { display: block; flex-basis: 100%; width: 0; height: 8px; }

@media (max-width: 600px) {
  .hero-tags { margin-bottom: 14px; }
  .hero-tag {
    white-space: normal; line-height: 1.25;
    font-size: 10px; padding: 6px 12px; letter-spacing: 0.02em;
  }
  .hero-tags-break { height: 6px; }
}

/* Scroll cue — animated "scroll down" label + arrow, shared by all hero sections. */
.scroll-cue {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%);
  width: 100%; max-width: 1280px; padding: 0 32px;
  display: flex; flex-direction: row; align-items: center; gap: 14px; z-index: 3;
  color: rgba(255,255,255,.7); font-size: 10px; font-weight: 700; letter-spacing: .3em;
  text-transform: uppercase; pointer-events: none;
}
.scroll-cue::after {
  content: ""; display: block; width: 14px; height: 22px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='22' viewBox='0 0 14 22' fill='none' stroke='white' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'><path d='M7 1 L7 19 M2 14 L7 19 L12 14'/></svg>") center / contain no-repeat;
  opacity: .85; animation: scrollCueDown 2.6s cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes scrollCueDown { 0% { transform: translateY(-4px); opacity: 0; } 30% { opacity: .9; } 70% { transform: translateY(6px); opacity: .9; } 100% { transform: translateY(10px); opacity: 0; } }
@media (max-width: 1080px) { .scroll-cue { bottom: 80px; padding: 0 24px; flex-direction: column; align-items: center; gap: 8px; width: auto; left: 50%; transform: translateX(-50%); } }

/* CTA button — base styles. Arrow icon shifts right on hover. */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 28px;
  font-size: 15px; font-weight: 800;
  letter-spacing: var(--tracking-claim); text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform .25s cubic-bezier(.22,1,.36,1), background .2s, color .2s, border-color .2s, box-shadow .25s;
  white-space: nowrap; text-decoration: none;
}
.cta:hover { text-decoration: none; }
.cta svg { width: 18px; height: 18px; transition: transform .25s cubic-bezier(.22,1,.36,1); }
.cta:hover svg { transform: translateX(4px); }
.cta--lg { padding: 20px 36px; font-size: 16px; }

/* Coral / primary variant */
.cta--coral { background: var(--accent); color: var(--fg-on-accent); box-shadow: var(--shadow-glow-coral); }
.cta--coral, .cta--coral:hover, .cta--coral:focus, .cta--coral:active { color: var(--fg-on-accent); }
.cta--coral .value, .cta--coral .value.is-hidden { color: inherit; letter-spacing: var(--tracking-claim); font-weight: 800; }
.cta--coral:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(237,92,47,.42); }

/* Ghost variants */
.cta--ghost-light, .cta--ghost-light:hover, .cta--ghost-light:focus { color: var(--fg-on-dark); }
.cta--ghost-dark,  .cta--ghost-dark:hover,  .cta--ghost-dark:focus  { color: var(--fg2); }

.cta--ghost-light { background: transparent; border-color: rgba(255,255,255,.45); }
.cta--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.cta--ghost-dark { background: transparent; border-color: var(--border-strong); }
.cta--ghost-dark:hover { border-color: var(--fg2); background: rgba(2,78,114,.04); }

/* End-CTA white variant */
.end-cta .cta { background: #fff; color: var(--accent); border-color: #fff; }
.end-cta .cta:hover { background: var(--wab-dark-water); color: #fff; border-color: var(--wab-dark-water); }

/* Back-to-top FAB — slides in after 600 px of scroll */
.top-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px;
  background: var(--wab-dark-water); color: #fff;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 800;
  letter-spacing: var(--tracking-claim); text-transform: uppercase;
  box-shadow: var(--shadow-3); border: 1px solid rgba(255,255,255,.16);
  text-decoration: none;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .35s cubic-bezier(.22,1,.36,1), transform .35s cubic-bezier(.22,1,.36,1), background .25s;
}
.top-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.top-fab:hover { background: var(--accent); color: #fff; }
.top-fab .circle {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, color .25s;
}
.top-fab:hover .circle { background: #fff; color: var(--accent); }
.top-fab svg { width: 14px; height: 14px; }
@media (max-width: 600px) { .top-fab .label { display: none; } .top-fab { padding: 10px; } }

/* ─── On the water (photo carousel) ───────────────────────────────────────
   Shared by the homepage and occasion pages (both can show a gallery), so it
   lives here in components.css rather than the page-specific stylesheets.
   Slides sit in a flex track; JS centres the active slide by translating
   the track, so neighbouring photos peek in at reduced size/opacity. */

/* Hero already ends in a lot of open water (photo + wave overlap), so this
   section needs less top padding than the generic section default to avoid
   a big empty gap before the heading. */
.on-water { padding-top: 64px; }

.on-water-intro { margin-bottom: 56px; max-width: 640px; }

.on-water-carousel { display: flex; align-items: center; gap: 20px; }

/* min-width:0 overrides the flex default of auto (= content's min-content size),
   which would otherwise refuse to shrink the viewport below something like an
   unbroken line of testimonial text and blow out the whole layout. */
.carousel-viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; }
/* Fade the peeking side photos into the background instead of hard-clipping them —
   desktop only, where the viewport is wide enough that this doesn't eat into the
   active (centred) slide. Gallery-only: reviews shows one full-width card with
   no peek, so the fade would just vignette the card's edges. */
@media (min-width: 601px) {
  .on-water-gallery .carousel-viewport {
    -webkit-mask-image: linear-gradient(to right,
      transparent, rgba(0,0,0,.15) 4px, rgba(0,0,0,.4) 8px, rgba(0,0,0,.65) 12px, rgba(0,0,0,.85) 16px, #000 20px,
      #000 calc(100% - 20px), rgba(0,0,0,.85) calc(100% - 16px), rgba(0,0,0,.65) calc(100% - 12px), rgba(0,0,0,.4) calc(100% - 8px), rgba(0,0,0,.15) calc(100% - 4px), transparent);
    mask-image: linear-gradient(to right,
      transparent, rgba(0,0,0,.15) 4px, rgba(0,0,0,.4) 8px, rgba(0,0,0,.65) 12px, rgba(0,0,0,.85) 16px, #000 20px,
      #000 calc(100% - 20px), rgba(0,0,0,.85) calc(100% - 16px), rgba(0,0,0,.65) calc(100% - 12px), rgba(0,0,0,.4) calc(100% - 8px), rgba(0,0,0,.15) calc(100% - 4px), transparent);
  }
}

.carousel-track {
  display: flex; align-items: center; gap: 24px;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
/* Live drag-to-scroll, both carousels (see main.js). touch-action:pan-y hands
   vertical page scrolling back to the browser while JS owns horizontal
   drags; without it, mobile browsers may fight the pointer sequence for the
   gesture. user-select/user-drag stop the browser's own text/image drag
   ghost from kicking in over a mouse drag. */
.carousel-track.is-draggable {
  cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none;
}
.carousel-track.is-draggable.is-dragging { cursor: grabbing; }
.carousel-track.is-draggable .carousel-slide img,
.carousel-track.is-draggable .carousel-slide picture {
  -webkit-user-drag: none; user-drag: none;
}

.carousel-slide {
  flex: 0 0 clamp(200px, 30vw, 480px);
  min-width: 0; /* flex items default to min-width:auto, which would refuse to
                   shrink below their content's natural width (e.g. the reviews
                   carousel's testimonial text) and blow out the whole layout */
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  opacity: .35;
  transform: scale(.86);
  transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1);
}
.carousel-slide picture, .carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-slide.is-active { opacity: 1; transform: scale(1); box-shadow: var(--shadow-3); }

.carousel-arrow {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border: none; border-radius: 50%;
  box-shadow: var(--shadow-glow-coral); cursor: pointer;
  transition: background .2s, transform .2s;
}
.carousel-arrow:hover { background: var(--accent-hover); transform: scale(1.06); }
.carousel-arrow svg { width: 18px; height: 18px; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.carousel-dot {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.3); cursor: pointer;
  transition: width .3s, background .3s;
}
.carousel-dot.is-active { width: 24px; background: var(--accent); }

@media (max-width: 900px) {
  .carousel-slide { flex-basis: min(70vw, 380px); }
}
@media (max-width: 600px) {
  .on-water-intro { margin-bottom: 40px; }
  .carousel-slide { flex-basis: 86vw; }
  .carousel-dots { margin-top: 28px; }
}

/* Shared by any carousel (gallery, reviews): on mobile the arrows overlay the
   slide instead of sitting beside it, so the slide can use the width they'd
   otherwise take up. Applied via the .carousel--overlay-mobile modifier. */
@media (max-width: 600px) {
  .carousel--overlay-mobile { position: relative; }
  .carousel--overlay-mobile .carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; z-index: 2;
  }
  /* Base :hover replaces transform with scale() alone, which would wipe out the
     translateY(-50%) used here for vertical centring and make the button jump. */
  .carousel--overlay-mobile .carousel-arrow:hover { transform: translateY(-50%) scale(1.06); }
  .carousel--overlay-mobile .carousel-arrow--prev { left: 24px; }
  .carousel--overlay-mobile .carousel-arrow--next { right: 24px; }
  .carousel--overlay-mobile .carousel-arrow svg { width: 15px; height: 15px; }
}


/* ─── Reviews (testimonial carousel) ────────────────────────────────────────
   Shared by the homepage and occasion pages, same as the gallery above.
   Reuses .carousel-viewport/.carousel-track/.carousel-slide/.carousel-arrow —
   only the slide width differs (100%: one testimonial at a time, no peeking). */

.reviews-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; align-items: center; }
@media (max-width: 980px) { .reviews-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

.reviews-intro { max-width: 480px; }
@media (max-width: 980px) { .reviews-intro { max-width: none; } }

.reviews-aggregate { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.rating-card {
  flex: 1 1 200px; display: flex; flex-direction: column;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-md); padding: 22px 24px;
  text-decoration: none; color: #fff;
  transition: background .2s, border-color .2s, transform .25s cubic-bezier(.22,1,.36,1);
}
/* Hover feedback is limited to the arrow (below) — the card itself stays put.
   Without this, base.css's global `a:hover { color: accent }` would win over
   .rating-card's own color and bleed into the name/score text via inheritance. */
a.rating-card:hover { color: #fff; }
.rating-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rating-card-name { font-weight: 800; font-size: 15px; }
.rating-card-head svg, .rating-card-head img { width: 22px; height: 22px; flex-shrink: 0; }
.rating-card-stars .stars { display: inline-flex; gap: 2px; color: var(--accent); }
.rating-card-stars .stars svg { width: 15px; height: 15px; }
/* Score/count + arrow sit together at the bottom of the card, regardless of
   how tall the card ends up (margin-top:auto pushes this row down). */
.rating-card-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; }
.rating-card-score { font-size: 30px; font-weight: 900; line-height: 1; display: block; }
.rating-card-score span { font-size: 16px; font-weight: 700; opacity: .6; }
.rating-card-count { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 4px; display: block; }
.rating-card-arrow {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.rating-card-arrow svg { width: 15px; height: 15px; }
a.rating-card:hover .rating-card-arrow { background: var(--accent-hover); }

@media (max-width: 600px) {
  /* Three columns instead of the tall desktop card: logo+name side by side on
     the left, score+count stacked and centred in the middle, arrow on the
     right. The .rating-card-top/-bottom wrappers exist only to lay the
     desktop card out vertically — display:contents drops them here so their
     children (head, score-group, arrow) become direct grid items of
     .rating-card. The 5-star row is dropped to save space. */
  /* .reviews-aggregate switches to a column stack below — without resetting
     flex here, the desktop "flex: 1 1 200px" would set a 200px height basis
     (flex-basis applies to the column's main axis) and let each card grow
     even taller, which was the actual cause of the oversized boxes. */
  .rating-card {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center;
    flex: none;
    padding: 14px 18px; gap: 12px;
  }
  .rating-card-top, .rating-card-bottom { display: contents; }
  .rating-card-head {
    display: flex; flex-direction: row; align-items: center; gap: 8px; margin-bottom: 0;
  }
  .rating-card-head svg, .rating-card-head img { order: 1; width: 22px; height: 22px; }
  .rating-card-name { order: 2; font-size: 13px; white-space: nowrap; }
  .rating-card-stars { display: none; }
  .rating-card-score-group { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .rating-card-score { font-size: 18px; }
  .rating-card-count { font-size: 11px; margin-top: 2px; white-space: nowrap; }
  .rating-card-arrow { width: 30px; height: 30px; justify-self: end; }
  .rating-card-arrow svg { width: 13px; height: 13px; }
}

.reviews-carousel { display: flex; align-items: center; gap: 20px; }
/* Unlike the photo slides, a testimonial card is not a fixed-ratio crop —
   height should follow its (variable) text content instead. */
.reviews-carousel .carousel-slide { flex-basis: 100%; aspect-ratio: auto; overflow: visible; }

.testimonial-card {
  background: #fff; border-radius: var(--radius-lg); border-left: 5px solid var(--accent);
  padding: 56px 48px 32px; box-shadow: var(--shadow-3);
  /* Fixed (not min-) height, so the card doesn't resize as reviews of
     different lengths slide through — only the text's own font-size (see
     .is-medium/.is-long) adapts to fit the same space. */
  height: 360px; display: flex; flex-direction: column; overflow: hidden;
}
.testimonial-quote {
  font-family: Georgia, "Times New Roman", serif; font-size: 72px; font-weight: 700; line-height: 1;
  color: rgba(237,92,47,.35); margin-bottom: -16px;
}
/* Card height is fixed (see .testimonial-card), so on very long reviews even
   the smallest font-size step (.is-long) can still overflow past the fixed
   height and push the footer/stars below it — clamping to a line count
   guarantees the footer always has room, trimming the text with an
   ellipsis instead. */
.testimonial-text {
  font-size: 22px; font-style: italic; line-height: 1.55; color: var(--fg2); flex: 1; min-height: 0; margin: 0 0 28px; text-wrap: pretty;
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  line-clamp: 4; -webkit-line-clamp: 4;
}
.testimonial-text.is-medium { font-size: 19px; line-clamp: 5; -webkit-line-clamp: 5; }
.testimonial-text.is-long   { font-size: 16px; line-clamp: 6; -webkit-line-clamp: 6; }
.testimonial-text mark {
  background: rgba(237,92,47,.14); color: inherit; border-radius: 4px; padding: 1px 6px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.testimonial-footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  padding-top: 22px; border-top: 1px solid var(--divider); font-size: 14px;
}
.testimonial-author { font-weight: 800; color: var(--fg2); }
/* Sits right after author (footer's own `gap` provides the spacing); link is
   pushed to the far right by its own margin-left:auto. */
.testimonial-meta { display: flex; align-items: center; color: var(--fg3); }
.testimonial-stars .stars { display: inline-flex; gap: 1px; color: var(--wab-lake-blue); }
.testimonial-stars .stars svg { width: 13px; height: 13px; }
.testimonial-link { margin-left: auto; color: var(--accent); font-weight: 700; text-decoration: none; border-bottom: none; white-space: nowrap; }
.testimonial-link::after { content: "→"; margin-left: 6px; display: inline-block; transition: transform .2s; }
.testimonial-link:hover::after { transform: translateX(3px); }

@media (max-width: 600px) {
  .reviews-aggregate { flex-direction: column; }

  /* Same side margins as the rating cards above (kept within .wrap) — the
     card stays a rounded rectangle. Arrows sit inside it as plain (no
     background) chevrons so they don't eat into its width or sit as a heavy
     circle on top of the text. */
  .reviews-carousel { position: relative; gap: 0; }
  .reviews-carousel .carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 40px; height: 40px; background: none; box-shadow: none; color: var(--accent);
  }
  .reviews-carousel .carousel-arrow:hover { background: none; transform: translateY(-50%) scale(1.1); }
  .reviews-carousel .carousel-arrow--prev { left: 2px; }
  .reviews-carousel .carousel-arrow--next { right: 2px; }
  .reviews-carousel .carousel-arrow svg { width: 24px; height: 24px; }

  .testimonial-card { padding: 40px 46px 32px; height: 320px; }
  .testimonial-quote { font-size: 52px; }
  /* Line-clamp values (4/5/6) are already set on the base .testimonial-text
     rules above — only the font-size needs to shrink further here. */
  .testimonial-text { font-size: 18px; }
  .testimonial-text.is-medium { font-size: 16px; }
  .testimonial-text.is-long   { font-size: 14.5px; }
  /* Two columns: author/stars stacked as two left-aligned rows, link on the
     right spanning both rows and centred against them vertically. */
  .testimonial-footer {
    display: grid; grid-template-columns: 1fr auto; align-items: center;
    column-gap: 12px; row-gap: 6px; font-size: 13px;
  }
  .testimonial-author { grid-column: 1; grid-row: 1; }
  .testimonial-meta { flex: none; justify-content: flex-start; grid-column: 1; grid-row: 2; }
  .testimonial-link { grid-column: 2; grid-row: 1 / 3; align-self: center; margin-left: 0; width: auto; }
}
