/* ── 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.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;
}

.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);
}

/* ── 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;
}

/* ── 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;
    }
  }
}
