/* ── Brand fonts ──────────────────────────────────────────────────────
 * Self-hosted, matching the fonts used on the real timeforthyme.cafe
 * teaser site. "Atlantic Cruise" ships as a demo build there — swap in
 * a fully licensed copy before using it in production.
 */
@font-face {
  font-family: 'Voyage';
  src: url('../fonts/VOYAGE_REGULAR/Web/Voyage-Regular.woff2') format('woff2'),
       url('../fonts/Voyage-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Stanley';
  src: url('../fonts/Stanley-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atlantic Cruise';
  src: url('../fonts/Atlantic_Cruise-Demo.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Design tokens ────────────────────────────────────────────────────
 * Real brand palette, taken from timeforthyme.cafe: deep green
 * (Pantone 336 U) as the accent, warm apricot (Pantone 7507 U) as the
 * neutral warm-tint surface. Grey scale stays neutral/generic.
 */
:root {
  /* Greyscale (light) */
  --grey-900: #1f1f1f;
  --grey-700: #4a4a4a;
  --grey-500: #7a7a7a;
  --grey-400: #a0a0a0;
  --grey-300: #d6d6d2;
  --grey-200: #e8e8e5;
  --grey-100: #f5f5f3;
  --grey-50:  #fafaf8;

  /* Neutral surfaces */
  --surface: #ffffff;
  --tint-100: #faf3e8;
  --tint-200: #F2DDC3;
  --tint-300: #e4c8a0;

  /* Brand green as *text* */
  --brand-ink: #00594C;
}

html {
  scrollbar-gutter: stable;
  /* Anchor targets stop below the fixed nav */
  scroll-padding-top: 92px;
}

body {
  background-color: var(--surface);
}

/* ── Type scale ───────────────────────────────────────────────────────
 * Voyage for headings, Stanley for body copy, Atlantic Cruise as the
 * scripted accent (eyebrows, flourishes).
 */
.eyebrow {
  font-family: 'Atlantic Cruise', cursive;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.25;
  color: var(--brand-ink);
  /* Atlantic Cruise (demo build) has no lowercase accented glyphs (é, ä, etc.),
     only uppercase ones — uppercase the text so accented letters render in the
     brand font instead of silently falling back to generic cursive. */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.heading-1 {
  font-family: 'Voyage', serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.25;
  color: #ffffff;
}

.heading-2 {
  font-family: 'Voyage', serif;
  font-weight: 400;
  font-size: 38px;
  line-height: 1.2;
  color: var(--grey-900);
}

.heading-3 {
  font-family: 'Voyage', serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
  color: var(--grey-900);
}

.lead {
  font-family: 'Stanley', serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  color: var(--grey-700);
}

.hero-lead {
  font-family: 'Stanley', serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  color: #f6ecdd;
}

.footer-label {
  font-family: 'Stanley', serif;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 1023px) {
  .heading-1 { font-size: 34px; }
  .heading-2 { font-size: 32px; }
  .lead      { font-size: 16px; }
  .hero-lead { font-size: 16px; }
}

@media (max-width: 767px) {
  .eyebrow   { font-size: 26px; }
  .heading-1 { font-size: 28px; }
  .heading-2 { font-size: 27px; }
  .heading-3 { font-size: 20px; }
}

/* ── Buttons ──────────────────────────────────────────────────────────
 * .btn          shared shape + label style
 * .btn--hero    ghost button on the dark green hero (white outline)
 * .btn--solid   parchment fill for the primary action on dark greens
 * .btn--outline brand outline on neutral surfaces, fills on hover
 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 13px 28px;
  background: transparent;
  font-family: 'Stanley', serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn--hero {
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.btn--hero:hover {
  box-shadow: inset 0 0 0 1.5px #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn--solid {
  background: #f2ddc3;
  color: #00392f;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.btn--solid:hover {
  background: #f8e9d3;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.btn--outline {
  border: 1px solid var(--brand-ink);
  color: var(--brand-ink);
}

.btn--outline:hover {
  background: var(--brand-ink);
  color: var(--surface);
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--brand-ink);
  outline-offset: 4px;
}

/* ── Nav links ──────────────────────────────────────────────────────── */
.nav-link {
  position: relative;
  font-family: 'Stanley', serif;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey-900);
  text-decoration: none;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--brand-ink);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              left 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
  left: 0;
}

/* Six links + logo only just fit between the lg and xl breakpoints */
@media (max-width: 1279px) {
  .nav-link {
    font-size: 13px;
    letter-spacing: 1.5px;
  }
}

.mobile-nav-link {
  font-family: 'Voyage', serif;
  font-size: 34px;
  line-height: 1.2;
  color: #f6ecdd;
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease-out;
}

.mobile-nav-link:hover {
  color: #ffffff;
}

.mobile-nav-link.is-active {
  border-bottom-color: #f2ddc3;
}

/* ── Language switcher ──────────────────────────────────────────────── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Stanley', serif;
  font-size: 13px;
  letter-spacing: 1.5px;
}

.lang-switch__item {
  color: var(--grey-500);
  text-decoration: none;
  text-transform: uppercase;
  padding: 4px 2px;
  transition: color 0.25s ease-out;
}

.lang-switch__item:hover {
  color: var(--grey-900);
}

.lang-switch__item.is-active {
  color: var(--brand-ink);
  border-bottom: 1.5px solid var(--brand-ink);
}

.lang-switch__divider {
  color: var(--grey-300);
}

.lang-switch--overlay {
  font-size: 15px;
}

.lang-switch--overlay .lang-switch__item {
  color: rgba(246, 236, 221, 0.6);
}

.lang-switch--overlay .lang-switch__item:hover {
  color: #ffffff;
}

.lang-switch--overlay .lang-switch__item.is-active {
  color: #f2ddc3;
  border-bottom-color: #f2ddc3;
}

.lang-switch--overlay .lang-switch__divider {
  color: rgba(246, 236, 221, 0.3);
}

.lang-switch--footer .lang-switch__item {
  color: rgba(255, 255, 255, 0.55);
}

.lang-switch--footer .lang-switch__item:hover {
  color: #ffffff;
}

.lang-switch--footer .lang-switch__item.is-active {
  color: #f2ddc3;
  border-bottom-color: #f2ddc3;
}

.lang-switch--footer .lang-switch__divider {
  color: rgba(255, 255, 255, 0.3);
}

/* Desktop nav: current language + dropdown with both languages */
.lang-menu {
  position: relative;
}

.lang-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
  background: none;
  border: 0;
  font-family: 'Stanley', serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--brand-ink);
  cursor: pointer;
}

.lang-menu__toggle:focus-visible {
  outline: 2px solid var(--brand-ink);
  outline-offset: 4px;
}

.lang-menu__chevron {
  width: 10px;
  height: 7px;
  transition: transform 0.25s ease-out;
}

.lang-menu__toggle[aria-expanded="true"] .lang-menu__chevron {
  transform: rotate(180deg);
}

.lang-menu__list {
  position: absolute;
  top: calc(100% + 12px);
  right: -12px;
  z-index: 10;
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--tint-300);
  border-radius: 12px;
  box-shadow: 0 16px 32px -16px rgba(0, 57, 47, 0.3);
}

.lang-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-radius: 8px;
  font-family: 'Stanley', serif;
  font-size: 14px;
  color: var(--grey-700);
  text-decoration: none;
}

.lang-menu__item:hover {
  background: var(--tint-100);
  color: var(--grey-900);
}

.lang-menu__item.is-active {
  color: var(--brand-ink);
}

.lang-menu__item.is-active::after {
  content: '\2713';
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  background-image: url('../images/location/gallery-3.jpg');
  background-size: cover;
  background-position: center;
}

.hero__bg {
  background:
    radial-gradient(ellipse 90% 60% at 50% 30%, rgba(242, 221, 195, 0.14), transparent 65%),
    linear-gradient(175deg, rgba(0, 106, 91, 0.88) 0%, rgba(0, 89, 76, 0.9) 45%, rgba(0, 57, 47, 0.94) 100%);
}

.hero-title {
  font-family: 'Voyage', serif;
  font-weight: 400;
  font-size: clamp(84px, 16vw, 180px);
  line-height: 0.95;
  color: #f6ecdd;
  letter-spacing: 0.02em;
}

.hero-logo {
  display: inline-flex;
}

.hero-logo__mark {
  display: block;
  height: clamp(84px, 16vw, 180px);
  width: auto;
  aspect-ratio: 561.26 / 337.26;
  background-color: #f6ecdd;
  -webkit-mask-image: url('../images/logo.svg');
          mask-image: url('../images/logo.svg');
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}

.hero-flora {
  position: absolute;
  width: 200px;
  color: rgba(242, 221, 195, 0.16);
  pointer-events: none;
}

.hero-flora--left {
  left: max(2vw, 16px);
  bottom: 8%;
  transform: rotate(-14deg);
}

.hero-flora--right {
  right: max(2vw, 16px);
  top: 12%;
  transform: rotate(16deg) scale(0.8);
}

@media (max-width: 767px) {
  .hero-flora { width: 120px; }
  .hero-flora--left  { bottom: 4%; left: -24px; }
  .hero-flora--right { top: 9%; right: -20px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-flora--left  { animation: flora-sway-left 9s ease-in-out infinite alternate backwards; }
  .hero-flora--right { animation: flora-sway-right 11s ease-in-out 1.2s infinite alternate-reverse backwards; }

  @keyframes flora-sway-left {
    from { transform: rotate(-14deg) translateY(0); }
    to   { transform: rotate(-8deg) translateY(-14px); }
  }

  @keyframes flora-sway-right {
    from { transform: rotate(16deg) scale(0.8) translateY(0); }
    to   { transform: rotate(22deg) scale(0.8) translateY(-14px); }
  }
}

/* Scroll indicator: a slim line that keeps drawing downwards */
.hero-scroll {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 88px;
  width: 44px;
  display: flex;
  justify-content: center;
}

.hero-scroll__line {
  display: block;
  width: 1.5px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(246, 236, 221, 0.9));
  transform-origin: top;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-scroll__line {
    animation: scroll-line 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  }

  @keyframes scroll-line {
    0%   { transform: scaleY(0); }
    45%  { transform: scaleY(1); transform-origin: top; }
    55%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
  }
}

/* ── Marquee band ───────────────────────────────────────────────────── */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
}

.marquee__track {
  display: flex;
  flex-shrink: 0;
  min-width: 100%;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 40px;
  padding-right: 40px;
}

.marquee__word {
  font-family: 'Voyage', serif;
  font-size: 30px;
  color: #00594C;
  white-space: nowrap;
}

.marquee__flower {
  font-size: 18px;
  color: rgba(0, 89, 76, 0.5);
}

@media (max-width: 767px) {
  .marquee__word { font-size: 23px; }
  .marquee__group { gap: 28px; padding-right: 28px; }
}

@media (prefers-reduced-motion: no-preference) {
  .marquee__track {
    animation: marquee-scroll 26s linear infinite;
  }

  @keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-16.6667%); }
  }
}

/* ── Story ──────────────────────────────────────────────────────────── */
.story-img {
  display: block;
  border-radius: 14px;
  object-fit: cover;
}

.story-img--main {
  width: 82%;
  aspect-ratio: 9 / 11;
  box-shadow: 0 24px 48px -20px rgba(0, 57, 47, 0.35);
}

.story-img--accent {
  position: absolute;
  right: 0;
  bottom: -48px;
  width: 44%;
  aspect-ratio: 9 / 11;
  border: 6px solid var(--surface);
  box-shadow: 0 20px 40px -18px rgba(0, 57, 47, 0.4);
}

@media (max-width: 767px) {
  .story-img--accent { bottom: -24px; }
}

.story-point__flower {
  font-size: 20px;
  color: var(--brand-ink);
  line-height: 1;
}

/* ── Menu tabs & items ──────────────────────────────────────────────── */
.menu-tabs {
  display: flex;
  flex-wrap: nowrap;
  /* `safe center`: centers the tabs when they all fit, but falls back to
   * flex-start once they overflow. Plain `center` on an overflowing flex
   * container centers the overflow too, pushing the start into negative
   * scroll territory that can't be reached by scrolling — cutting off the
   * first tab on desktop with no way to scroll it into view. */
  justify-content: safe center;
  gap: 8px 6px;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.menu-tabs::-webkit-scrollbar {
  display: none;
}

.menu-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  padding: 10px 22px;
  font-family: 'Stanley', serif;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-500);
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: color 0.3s ease-out,
              border-color 0.3s ease-out,
              background-color 0.3s ease-out;
}

.menu-tab:hover {
  color: var(--brand-ink);
}

.menu-tab.is-active {
  color: var(--brand-ink);
  border-color: var(--brand-ink);
}

.menu-tab:focus-visible {
  outline: 2px solid var(--brand-ink);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  /* `justify-content: center` on an overflowing scroll container centers
   * the scroll position too, which can push the first (default-active)
   * tab out of view. Left-align instead so the active tab starts visible. */
  .menu-tabs {
    justify-content: flex-start;
    gap: 0 20px;
  }

  /* Compact underline style: the pill shape (padding + border-radius)
   * eats too much horizontal space on small screens. Trim padding and
   * swap the active indicator for a bottom rule so more tabs fit. */
  .menu-tab {
    padding: 6px 1px 10px;
    font-size: 12px;
    letter-spacing: 1.1px;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
  }

  .menu-tab.is-active {
    background: none;
    border-bottom-color: var(--brand-ink);
    color: var(--brand-ink);
  }
}

.menu-panel {
  display: none;
}

.menu-panel.is-active {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .menu-panel.is-active {
    animation: panel-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes panel-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

.menu-item__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.menu-item__name {
  font-family: 'Voyage', serif;
  font-size: 21px;
  color: var(--grey-900);
}

.menu-item__dots {
  flex: 1;
  border-bottom: 1.5px dotted var(--grey-300);
  transform: translateY(-4px);
}

.menu-item__price {
  font-family: 'Stanley', serif;
  font-size: 16px;
  color: var(--brand-ink);
  white-space: nowrap;
}

.menu-item__desc {
  margin-top: 5px;
  font-family: 'Stanley', serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--grey-500);
}

.food-tile {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.food-tile:hover {
  transform: translateY(-6px) rotate(-1deg);
}

/* ── Interior gallery (Swiper, Material You effect — gcv pattern) ───── */
.gallery-swiper {
  box-sizing: border-box;
  overflow: hidden;
  aspect-ratio: 4/3;
  padding: 0;
}

.gallery-swiper .swiper-wrapper {
  align-items: center;
}

.gallery-swiper-slide {
  height: calc(100% - 32px);
  border-radius: 12px;
  --swiper-material-slide-border-radius: 12px;
}

.gallery-swiper-slide-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  z-index: 0;
  object-fit: cover;
  border-radius: inherit;
  opacity: 1;
}

@media (min-width: 768px) {
  .gallery-swiper {
    aspect-ratio: 16/9;
  }
  .gallery-swiper-slide {
    border-radius: 32px;
    --swiper-material-slide-border-radius: 32px;
  }
}

/* ── Reviews carousel ───────────────────────────────────────────────── */
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.reviews-summary__brand {
  font-family: 'Stanley', serif;
  font-weight: 600;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.reviews-summary .review-star {
  width: 16px;
  height: 16px;
}

.reviews-summary__rating {
  font-family: 'Stanley', serif;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
}

.reviews-summary__count {
  font-family: 'Stanley', serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.reviews-swiper {
  overflow: hidden;
  padding-bottom: 52px; /* room for pagination */
}

/* Swiper's wrapper is a flex row with align-items: stretch by default, so
 * expanding one review's text (removing its line-clamp) would otherwise
 * stretch every other slide in the same row to match its new height. */
.reviews-swiper .swiper-wrapper {
  align-items: flex-start;
}

.review-slide {
  height: auto;
  display: flex;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 32px 28px;
  border-radius: 14px;
  background: #faf3e8;
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.35);
}

.review-card__stars {
  display: flex;
  gap: 4px;
}

.review-star {
  width: 17px;
  height: 17px;
  fill: rgba(0, 89, 76, 0.18);
}

.review-star.is-filled {
  fill: #c98f2c;
}

.review-card__text-wrap {
  position: relative;
  flex: 1;
}

.review-card__text {
  margin: 0;
  font-family: 'Stanley', serif;
  font-size: 15.5px;
  line-height: 1.7;
  color: #3a3a35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.review-card__text.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* Collapsed: overlay the button on the last clamped line, with a fade so it
 * doesn't sit stacked below the text on its own line. */
.review-card__more {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0 0 0 32px;
  border: 0;
  background: linear-gradient(to right, rgba(250, 243, 232, 0), #faf3e8 45%);
  font-family: 'Stanley', serif;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
  color: #00594C;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

/* Expanded: drop the overlay and flow "Read less" normally after the text. */
.review-card__more.is-expanded {
  position: static;
  display: inline-block;
  margin-top: 8px;
  padding-left: 0;
  background: none;
}

.review-card__more:hover {
  color: #c98f2c;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-card__avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00594C;
  color: #f2ddc3;
  font-family: 'Voyage', serif;
  font-size: 16px;
  line-height: 1;
}

.review-card__name {
  font-family: 'Voyage', serif;
  font-size: 18px;
  color: #00594C;
}

.reviews-pagination.swiper-pagination {
  bottom: 0;
}

.reviews-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
  transition: all 0.3s ease-out;
}

.reviews-swiper .swiper-pagination-bullet-active {
  background: #f2ddc3;
  width: 24px;
  border-radius: 999px;
}

/* ── Gift vouchers ────────────────────────────────────────────────────
 * .hero-gift     small text link under the hero buttons, jumps to #vouchers
 * .voucher-card  decorative voucher (logo + tear-off stub) next to the copy
 */
.hero-gift {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-family: 'Stanley', serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tint-200);
  text-decoration: none;
  transition: color 0.35s;
}

.hero-gift__text {
  text-decoration: underline;
  text-decoration-color: rgba(242, 221, 195, 0.4);
  text-underline-offset: 6px;
  transition: text-decoration-color 0.35s;
}

.hero-gift:hover { color: #ffffff; }
.hero-gift:hover .hero-gift__text { text-decoration-color: currentColor; }

.voucher-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 16px;
}

.voucher-card {
  position: relative;
  display: flex;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 30% 20%, rgba(242, 221, 195, 0.16), transparent 65%),
    linear-gradient(160deg, #006a5b 0%, #00594C 50%, #00392f 100%);
  box-shadow: 0 28px 56px -24px rgba(0, 57, 47, 0.55);
  transform: rotate(-4deg);
}

/* Second card peeking out behind the first one */
.voucher-card--back {
  position: absolute;
  inset: 24px 16px;
  background: var(--tint-200);
  box-shadow: 0 20px 40px -20px rgba(0, 57, 47, 0.35);
  transform: rotate(5deg) translate(14px, 10px);
}

.voucher-card__flora {
  position: absolute;
  left: -24px;
  bottom: -48px;
  width: 150px;
  color: rgba(242, 221, 195, 0.14);
  transform: rotate(-18deg);
}

.voucher-card__main {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
}

.voucher-card__mark {
  display: block;
  width: 58%;
  aspect-ratio: 561.26 / 337.26;
  background-color: #f6ecdd;
  -webkit-mask: url('../images/logo.svg') center / contain no-repeat;
          mask: url('../images/logo.svg') center / contain no-repeat;
}

.voucher-card__label {
  font-family: 'Atlantic Cruise', cursive;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--tint-200);
}

/* Tear-off stub: dashed line with a notch cut out at the top and bottom */
.voucher-card__stub {
  position: relative;
  width: 26%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 2px dashed rgba(242, 221, 195, 0.35);
}

.voucher-card__stub::before,
.voucher-card__stub::after {
  content: '';
  position: absolute;
  left: -15px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
}

.voucher-card__stub::before { top: -14px; }
.voucher-card__stub::after  { bottom: -14px; }

.voucher-card__flower {
  font-size: 40px;
  line-height: 1;
  color: var(--tint-200);
}

@media (max-width: 767px) {
  .voucher-visual       { max-width: 380px; }
  .voucher-card__label  { font-size: 22px; }
  .voucher-card__flower { font-size: 30px; }
}

/* ── Opening hours ──────────────────────────────────────────────────── */
.hours-card {
  background: var(--surface);
  border: 1px solid var(--tint-300);
  border-radius: 16px;
  padding: 40px 44px;
  box-shadow: 0 24px 48px -28px rgba(0, 57, 47, 0.25);
}

@media (max-width: 640px) {
  .hours-card { padding: 28px 22px; }
}

.hours-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
}

.hours-row + .hours-row {
  border-top: 1px solid var(--grey-100);
}

.hours-row__day {
  font-family: 'Voyage', serif;
  font-size: 19px;
  color: var(--grey-900);
}

.hours-row__today {
  display: none;
  margin-left: 10px;
  font-family: 'Stanley', serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--surface);
  background: var(--brand-ink);
  border-radius: 999px;
  padding: 3px 10px;
  vertical-align: 2px;
}

.hours-row__dots {
  flex: 1;
  border-bottom: 1.5px dotted var(--grey-300);
  transform: translateY(-4px);
}

.hours-row__time {
  font-family: 'Stanley', serif;
  font-size: 16px;
  color: var(--grey-700);
  white-space: nowrap;
}

.hours-row__time--closed {
  color: var(--grey-400);
  font-style: italic;
}

.hours-row.is-today .hours-row__day,
.hours-row.is-today .hours-row__time {
  color: var(--brand-ink);
}

.hours-row.is-today .hours-row__today {
  display: inline-block;
}

/* ── Location map ───────────────────────────────────────────────────── */
.location-map {
  width: 100%;
  height: 440px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--grey-200);
  box-shadow: 0 24px 48px -28px rgba(0, 57, 47, 0.3);
}

@media (max-width: 767px) {
  .location-map { height: 320px; }
}

/* ── Nav bar ──────────────────────────────────────────────────────────
 * The nav bar is always solid (bg-surface, permanent shadow via Tailwind
 * classes in layout.php) with a fixed height — it must NOT change size
 * on scroll, on any breakpoint.
 */
@media (max-width: 767px) {
  #nav-inner {
    padding: 16px 20px;
  }
}

/* ── Mobile nav: minimal hamburger + full-screen overlay ────────────
 * limon-labs pattern: borderless two-line toggle, full-viewport brand
 * green overlay, links stagger in with a fade / rise / de-blur.
 */
.nav-toggle {
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  position: relative;
  z-index: 60;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--grey-900);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              top 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.3s ease-out;
}

.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 26px; }

body.nav-open .nav-toggle span { background: #f2ddc3; }
body.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* The nav bar is a stacking context below the overlay, so lift it above
 * while open and strip its chrome — only the X toggle stays visible. */
body.nav-open #main-nav {
  z-index: 60;
  background: transparent;
  box-shadow: none;
}

#nav-logo {
  transition: opacity 0.25s ease-out;
}

body.nav-open #nav-logo {
  opacity: 0;
  pointer-events: none;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  height: 100dvh;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 96px 32px 132px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% 20%, rgba(242, 221, 195, 0.12), transparent 65%),
    linear-gradient(175deg, #006a5b 0%, #00594C 45%, #00392f 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.04);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0s 0.4s;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .mobile-nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0s;
}

.mobile-nav__flora {
  position: absolute;
  right: -34px;
  bottom: 5%;
  width: 190px;
  color: rgba(242, 221, 195, 0.13);
  transform: rotate(14deg);
  pointer-events: none;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.mobile-nav__item {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0s;
}

body.nav-open .mobile-nav__item {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--item-delay, 0ms);
}

.mobile-nav__footer {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Stanley', serif;
  font-size: 14px;
  color: rgba(246, 236, 221, 0.7);
}

.mobile-nav__phone {
  font-size: 16px;
  letter-spacing: 1px;
  color: #f2ddc3;
  text-decoration: none;
}

.mobile-nav__footer .lang-switch {
  margin-top: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  body.nav-open .mobile-nav,
  .mobile-nav__item,
  body.nav-open .mobile-nav__item {
    transition: opacity 0.2s;
    transform: none;
    filter: none;
    transition-delay: 0s;
  }
}

/* ── Staggered scroll reveal ──────────────────────────────────────────
 * `.reveal` is added by JS (main.js) to content blocks, so users without
 * JS never see hidden content. `.is-revealed` triggers the fade-in-up.
 */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
  }
  @media (max-width: 640px) {
    .reveal {
      transform: translateY(40px);
    }
  }
  .reveal.is-revealed {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
}

/* ── Hero content entrance ────────────────────────────────────────────
 * Staggered fade-in-up for hero copy on page load.
 */
@media (prefers-reduced-motion: no-preference) {
  .hero-enter {
    opacity: 0;
    transform: translateY(24px);
    animation: hero-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--enter-delay, 0ms);
  }

  @keyframes hero-enter {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ── Events ───────────────────────────────────────────────────────────
 * Homepage feature block, archive cards, detail page and pagination.
 */
.event-date {
  font-family: 'Stanley', serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.bg-brand .event-date { color: var(--tint-200); }

div.event-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00594C 0%, #00392f 100%);
  color: rgba(242, 221, 195, 0.35);
}
div.event-placeholder svg { height: 70%; width: auto; }

/* Featured event (homepage) */
.event-feature__media {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.45);
}
.event-feature__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.event-feature__media:hover .event-feature__img { transform: scale(1.03); }
.event-feature__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
@media (max-width: 767px) {
  .event-feature__card { align-items: center; }
  .event-feature__card .event-facts { justify-content: center; }
}
.event-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 57, 47, 0.85);
  color: var(--tint-200);
  font-family: 'Stanley', serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.event-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.event-facts li {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid var(--tint-300);
  color: var(--grey-700);
}
.event-facts--dark li {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
}

/* Archive cards */
.event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--tint-200);
  box-shadow: 0 16px 40px -28px rgba(0, 57, 47, 0.35);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -28px rgba(0, 57, 47, 0.45);
}
.event-card__media { display: block; }
.event-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.event-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 26px;
  flex: 1;
}
.event-card__title {
  color: inherit;
  text-decoration: none;
}
/* Whole card is clickable via the title link */
.event-card__title::after {
  content: '';
  position: absolute;
  inset: 0;
}
.event-card__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey-500);
}
.event-card__more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-ink);
}

/* Detail page */
.event-back {
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-ink);
  text-decoration: none;
}
.event-back:hover { text-decoration: underline; }
.event-draft-note {
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff3cd;
  color: #7a5b00;
  font-size: 13px;
}
.event-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 56px;
  margin: 0;
  text-align: center;
}
.event-meta dd {
  margin: 6px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--grey-900);
}
.event-hero-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(0, 57, 47, 0.35);
}
.event-hero-img {
  display: block;
  width: 100%;
  max-height: 640px;
  object-fit: cover;
}
.event-body {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
  line-height: 1.7;
  color: var(--grey-700);
}
.event-body > * + * { margin-top: 1em; }
.event-body h2,
.event-body h3 {
  font-family: 'Voyage', serif;
  color: var(--grey-900);
  line-height: 1.25;
  margin-top: 1.6em;
}
.event-body h2 { font-size: 28px; }
.event-body h3 { font-size: 22px; }
.event-body ul { list-style: disc; padding-left: 1.4em; }
.event-body ol { list-style: decimal; padding-left: 1.4em; }
.event-body a { color: var(--brand-ink); text-decoration: underline; }
.event-body strong { color: var(--grey-900); font-weight: 600; }
.event-body blockquote {
  border-left: 3px solid var(--tint-300);
  padding-left: 1em;
  font-style: italic;
}

/* Event photo gallery (images after the cover) */
.event-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 767px) {
  .event-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.event-gallery__item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 32px -24px rgba(0, 57, 47, 0.35);
}
.event-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.event-gallery__item:hover img { transform: scale(1.04); }

/* Photo lightbox: full-screen <dialog> with a Swiper carousel (main.js) */
body.lightbox-open { overflow: hidden; }
.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 57, 47, 0.97);
  color: var(--tint-200);
  overscroll-behavior: contain;
}
.lightbox[open] { animation: lightbox-in 0.3s ease-out; }
.lightbox::backdrop { background: transparent; }
@keyframes lightbox-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .lightbox[open] { animation: none; }
}
.lightbox__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.lightbox__counter {
  margin: 0;
  font-family: 'Stanley', serif;
  font-size: 14px;
  letter-spacing: 2px;
}
.lightbox__swiper { width: 100%; height: 100%; }
.lightbox__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 80px 96px;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
}
.lightbox__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(242, 221, 195, 0.35);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, opacity 0.25s;
}
.lightbox__btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lightbox__btn:hover:not(:disabled) { background: var(--tint-200); color: var(--brand-ink); }
.lightbox__btn:focus-visible { outline: 2px solid var(--tint-200); outline-offset: 3px; }
.lightbox__btn:disabled { opacity: 0.3; cursor: default; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
}
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
@media (max-width: 767px) {
  .lightbox__slide { padding: 72px 12px; }
  .lightbox__nav { display: none; } /* swipe instead */
}

/* Pagination */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.pager__pages { display: flex; gap: 6px; }
.pager__page,
.pager__gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--grey-700);
  text-decoration: none;
}
.pager__page:hover { background: var(--tint-200); }
.pager__page.is-active { background: var(--brand-ink); color: var(--surface); }
.pager__step {
  color: var(--brand-ink);
  text-decoration: none;
  padding: 8px 4px;
}
.pager__step:hover { text-decoration: underline; }
.pager__step.is-disabled { color: var(--grey-300); }
