/* =============================================
   HAUS EDELWEISS — Components
   ============================================= */

/* --- Stamp Button (signature perforated border) ---
   Figma ref: Short 775:6732, Long 775:2040
   Border: 6×6px squares in checkerboard pattern (80%/24% opacity)
   ALL FOUR CORNERS = 80% (strong). Rows start 24%, columns start 80%.
   Short: Outer 162×66px, Inner 150×54px
   Long:  Outer 258×66px, Inner 246×54px
   Variants: Default (yellow), Hover (lighter yellow), Dark (cream), Sage
*/
.btn-stamp {
  --stamp-color: var(--color-yellow);
  --stamp-strong: 0.8;
  --stamp-weak: 0.24;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;            /* reserve space for the border dots */
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-stamp__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  height: 54px;              /* fixed inner height per Figma */
  padding: 0 2rem;           /* horizontal only — height is explicit */
  background-color: var(--color-yellow);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  line-height: 1;
  color: var(--color-wine);
  white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-in-out);
}

.btn-stamp:hover {
  --stamp-color: #fcc150;        /* subtle hover — border & inner share same color */
}

.btn-stamp:hover .btn-stamp__inner {
  background-color: var(--stamp-color);
}

/* Text-scroll hover — two stacked spans, slide up on hover */
.btn-stamp__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 1.2em;
  overflow: hidden;
  line-height: 1.2;
}

.btn-stamp__text span {
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out);
}

.btn-stamp:hover .btn-stamp__text span {
  transform: translateY(calc(-100% - 10px));
}

/* Stamp perforated border — alternating 6×6px squares per Figma 775:6732
   4 separate strips. Corners are owned by side columns (both start 80%).
   Top/bottom rows are inset 6px from sides and start 24% (weak). */
.btn-stamp__border {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* Top edge — inset 6px, starts 24% (weak) so corner stays 80% from column */
    repeating-linear-gradient(90deg,
      color-mix(in srgb, var(--stamp-color) 24%, transparent) 0 6px,
      color-mix(in srgb, var(--stamp-color) 80%, transparent) 6px 12px)
      6px 0 / calc(100% - 12px) 6px no-repeat,
    /* Bottom edge — inset 6px, starts 24% (weak) matching top pattern */
    repeating-linear-gradient(90deg,
      color-mix(in srgb, var(--stamp-color) 24%, transparent) 0 6px,
      color-mix(in srgb, var(--stamp-color) 80%, transparent) 6px 12px)
      6px bottom / calc(100% - 12px) 6px no-repeat,
    /* Left column — full height, starts 80% (strong) → all corners 80% */
    repeating-linear-gradient(180deg,
      color-mix(in srgb, var(--stamp-color) 80%, transparent) 0 6px,
      color-mix(in srgb, var(--stamp-color) 24%, transparent) 6px 12px)
      0 0 / 6px 100% no-repeat,
    /* Right column — full height, starts 80% (strong) → all corners 80% */
    repeating-linear-gradient(180deg,
      color-mix(in srgb, var(--stamp-color) 80%, transparent) 0 6px,
      color-mix(in srgb, var(--stamp-color) 24%, transparent) 6px 12px)
      right 0 / 6px 100% no-repeat;
}

/* Long button variant — Figma ref: 775:2040
   Outer: ~258×66px, Inner: 246×54px */
.btn-stamp--long .btn-stamp__inner {
  width: 246px;
  padding: 0;
}

/* Dark variant (footer on wine bg — cream dots) */
.btn-stamp--dark {
  --stamp-color: var(--color-cream);
}
.btn-stamp--dark .btn-stamp__inner {
  background-color: var(--color-cream);
  color: var(--color-wine);
}

/* --- Text Button (underline link style) --- */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-rust);
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--duration-fast) ease;
}

.btn-text:hover {
  opacity: 0.7;
}

.btn-text__arrow {
  display: inline-block;
  transition: transform var(--duration-fast) ease;
  font-size: 0.8em;
}

.btn-text:hover .btn-text__arrow {
  transform: translateX(4px);
}

/* Light variant (on dark bg) */
.btn-text--light {
  color: var(--color-cream);
}

/* Secondary (text-scroll hover per Figma button-secondary) */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-rust);
  text-decoration: none;
  cursor: pointer;
  padding: 13px 0;
}

.btn-secondary__text {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 1.2em;
  overflow: hidden;
  line-height: 1.2;
}

.btn-secondary__text span {
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out);
}

.btn-secondary:hover .btn-secondary__text span {
  transform: translateY(calc(-100% - 15px));
}

.btn-secondary__arrow {
  flex-shrink: 0;
  transition: transform var(--duration-fast) ease;
}

.btn-secondary:hover .btn-secondary__arrow {
  transform: translateX(4px);
}

/* --- Room Link (Studios ›, Apartments ›, Suites ›) ---
   Figma ref: card-title component (1572:15202)
   26px PP Eiko Medium, rust color, bottom border separator
*/
.room-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 29px 0;
  border-bottom: 1px solid rgba(131, 39, 6, 0.15);
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: var(--weight-medium);
  color: var(--color-rust);
  text-decoration: none;
  line-height: 1.24;
  letter-spacing: -0.03em;
  transition: color var(--duration-fast) ease;
}

.room-link:first-child {
  padding-top: 0;
}

.room-link:last-child {
  border-bottom: none;
}

.room-link:hover {
  color: var(--color-wine);
}

/* Arrow chevron — arrow-wine.svg (native 12×32, visible triangle ~5×10)
   Scaled down to match text proportion at 26px font */
.room-link__arrow {
  display: inline-block;
  width: 12px;
  height: 32px;
  flex-shrink: 0;
  vertical-align: middle;
  transition: transform var(--duration-fast) ease;
}

.room-link:hover .room-link__arrow {
  transform: translateX(4px);
}


/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: var(--space-xl) 0;
  transition: transform var(--duration-normal) var(--ease-out);
}

/* Header has no background — purely transparent overlay */

/* On hero: hidden by default, GSAP controls entrance + scroll hide/show */
.header--hero {
  opacity: 0;
  transform: translateY(-30px);
  transition: none;
}

/* On hero: light text */
.header--hero .header__menu-text,
.header--hero .header__menu-icon span,
.header--hero .header__lang {
  color: var(--color-cream);
}
.header--hero .header__menu-icon span {
  background-color: var(--color-cream);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.header__left {
  display: flex;
  align-items: center;
  width: 260px;
}

.header__menu-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  height: 66px;
  cursor: pointer;
}

.header__menu-icon {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 6px;
}

.header__menu-icon span {
  display: block;
  width: 6px;
  height: 6px;
  /* Square dots per Figma (no border-radius) */
  background-color: var(--color-cream);
  transition: background-color var(--duration-normal) ease;
}

.header__menu-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-cream);
  transition: color var(--duration-normal) ease;
  position: relative;
  top: 1px;
}

.header__logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__logo-img {
  width: 298px;
  height: 44px;
  display: block;
}

.header__right {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  width: 260px;
  justify-content: flex-end;
}

.header__lang {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--color-cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color var(--duration-normal) ease;
}

.header__lang-arrow {
  width: 12px;
  height: 12px;
}

/* Figma: 162×66px outer → inner 150×54px, PP Eiko Medium 18px */
.header__book-btn .btn-stamp__inner {
  width: 150px;                   /* exact inner width per Figma */
  height: 54px;                   /* exact inner height per Figma */
  padding: 0;                     /* dimensions are explicit, no padding needed */
  font-size: 1.125rem;            /* 18px per Figma */
}


/* =============================================
   FIXED HEADER (compact sticky bar on scroll)
   Figma ref: 1641:17988
   Cream bg, bottom border, always dark/rust text
   ============================================= */
.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);  /* 100 — above all gallery content (z 2-5) */
  background-color: var(--color-cream);
  border-bottom: 1px solid #E0D2BA;
  padding: 8px 0;
}

/* Hero pages: z-index 10 sits BELOW hero sections (z-95) so they physically cover it.
   As hero scrolls past, header slides out from under it — natural reveal.
   Opacity (0→1 via is-revealed) prevents flash on quick scroll-to-top. */
.header-fixed--hero {
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.header-fixed--hero.is-revealed {
  opacity: 1;
  pointer-events: all;
}

/* Non-hero pages: always visible, replaces the original header.
   Starts hidden — GSAP entrance animation in initFixedHeader reveals it. */
.header-fixed--no-hero {
  z-index: var(--z-header);
  pointer-events: all;
  opacity: 0;
  transform: translateY(-100%);
}

.header-fixed .header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.header-fixed .header__left {
  display: flex;
  align-items: center;
  width: 260px;
}

.header-fixed .header__menu-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  height: 66px;
  cursor: pointer;
}

.header-fixed .header__menu-icon {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 6px;
}

.header-fixed .header__menu-icon span {
  display: block;
  width: 6px;
  height: 6px;
  background-color: var(--color-rust);
}

.header-fixed .header__menu-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 0.93;
  letter-spacing: -0.02em;
  color: var(--color-rust);
}

.header-fixed .header__logo-img {
  width: 284px;
  height: 42px;
  display: block;
}

.header-fixed .header__right {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  width: 260px;
  justify-content: flex-end;
}

.header-fixed .header__lang {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--color-rust);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-fixed .header__book-btn .btn-stamp__inner {
  width: 150px;
  height: 54px;
  padding: 0;
  font-size: 1.125rem;
}

/* --- Subpage header (dark text, no hero behind) --- */
/* Hidden immediately — replaced by dynamically-created .header-fixed--no-hero */
.header--subpage {
  display: none;
}

.header--subpage .header__menu-text,
.header--subpage .header__lang {
  color: var(--color-rust);
}
.header--subpage .header__menu-icon span {
  background-color: var(--color-rust);
}

/* --- Sage stamp button variant (contact form, booking widget) --- */
.btn-stamp--sage {
  --stamp-color: var(--color-sage);
}
.btn-stamp--sage:hover {
  --stamp-color: #9a9a86;             /* override yellow hover with darker sage */
}
.btn-stamp--sage .btn-stamp__inner {
  background-color: var(--color-sage);
  color: var(--color-cream);
}
.btn-stamp--sage:hover .btn-stamp__inner {
  background-color: #9a9a86;
  color: var(--color-cream);
}


/* =============================================
   FULLSCREEN NAV OVERLAY
   ============================================= */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background-color: var(--color-cream);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  transition: clip-path 0.6s var(--ease-in-out);
  overflow: hidden;
}

/* Mobile-only elements — hidden on desktop */
.nav-overlay__logo {
  display: none;
}

.nav-overlay__book-mobile {
  display: none;
}

.nav-overlay__footer-lang {
  display: none;
}

.nav-overlay__footer-label {
  display: none;
}

.nav-overlay__lang-panel {
  display: none;
}

/* Footer links wrapper (no visual change on desktop) */
.nav-overlay__footer-links {
  display: flex;
  gap: var(--space-xl);
}

.nav-overlay.is-open {
  clip-path: inset(0 0 0 0);
  pointer-events: all;
}

/* --- Compact variant: overlay header matches .header-fixed spacing --- */
.nav-overlay--compact .nav-overlay__header {
  padding: 8px var(--container-px);
}

/* Header row — mirrors .header--hero / .header--subpage layout by default */
.nav-overlay__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  padding: var(--space-xl) var(--container-px);
}

.nav-overlay__header-right {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  width: 260px;
  justify-content: flex-end;
}

.nav-overlay__lang {
  color: var(--color-rust);
}

/* Close button — cross pattern of 5 squares + "Close" text */
.nav-overlay__close {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  padding: 0 16px;
  height: 66px;
  width: 260px;
}

.nav-overlay__close-icon {
  display: grid;
  grid-template-columns: repeat(3, 6px);
  grid-template-rows: repeat(3, 6px);
  gap: 0;
  width: 18px;
  height: 18px;
}

/* 5 dots forming a cross/X pattern */
.nav-overlay__close-icon span {
  width: 6px;
  height: 6px;
  background-color: var(--color-rust);
}

.nav-overlay__close-icon span:nth-child(1) { grid-area: 1 / 1; }
.nav-overlay__close-icon span:nth-child(2) { grid-area: 2 / 2; }
.nav-overlay__close-icon span:nth-child(3) { grid-area: 1 / 3; }
.nav-overlay__close-icon span:nth-child(4) { grid-area: 3 / 1; }
.nav-overlay__close-icon span:nth-child(5) { grid-area: 3 / 3; }

.nav-overlay__close-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-rust);
  position: relative;
  top: 1px;
}

/* Center nav links */
.nav-overlay__list {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  align-self: center;
}

.nav-overlay__link {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); /* 40px at desktop */
  font-weight: var(--weight-medium);
  line-height: 1;
  letter-spacing: -1.2px;
  color: var(--color-rust);
  display: block;
  overflow: hidden;
}

.nav-overlay__link-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 1.2em;
  overflow: hidden;
  line-height: 1.2;
}

.nav-overlay__link-text span {
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out);
}

.nav-overlay__link:hover .nav-overlay__link-text span {
  transform: translateY(calc(-100% - 12px));
}

/* Footer legal links */
.nav-overlay__footer {
  display: flex;
  gap: var(--space-xl);
  padding: 0 var(--container-px) var(--space-lg);
}

.nav-overlay__footer-link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.24px;
  color: var(--color-black);
  transition: opacity var(--duration-fast) ease;
}

.nav-overlay__footer-link:hover {
  opacity: 0.6;
}

/* Bottom image */
.nav-overlay__image {
  width: 100%;
  height: clamp(250px, 35vw, 530px);
  overflow: hidden;
}

.nav-overlay__image img,
.nav-overlay__image > div {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1000px) {
  /* --- MOBILE HEADER LAYOUT ---
     Figma: logo left, menu dots+text right, 64px tall, 24px padding
     Hide lang toggle & book button on mobile */

  /* Primary header (.header) */
  .header {
    padding: 0;
  }

  .header__inner {
    height: 64px;
    padding: 0 24px;
  }

  .header__left {
    order: 2;
    width: auto;
  }

  .header__logo {
    order: 1;
    flex: 1;
    justify-content: flex-start;
  }

  .header__logo-img {
    width: 189px;
    height: 28px;
  }

  .header__right {
    display: none;
  }

  .header__menu-btn {
    gap: 10px;
    padding: 0;
    height: 44px;
    min-width: 80px;
    justify-content: flex-end;
    align-items: center;
  }

  .header__menu-icon {
    gap: 3px;
    width: 3px;
    flex-shrink: 0;
  }

  .header__menu-icon span {
    width: 3px;
    height: 3px;
  }

  .header__menu-text {
    font-size: 1.25rem;
    line-height: 1;
    position: relative;
    top: 1px;
  }

  /* Fixed header — same mobile layout */
  .header-fixed {
    padding: 0;
  }

  .header-fixed .header__inner {
    height: 64px;
    padding: 0 24px;
  }

  .header-fixed .header__left {
    order: 2;
    width: auto;
  }

  .header-fixed .header__logo {
    order: 1;
    flex: 1;
    justify-content: flex-start;
  }

  .header-fixed .header__logo-img {
    width: 189px;
    height: 28px;
  }

  .header-fixed .header__right {
    display: none;
  }

  .header-fixed .header__menu-btn {
    gap: 10px;
    padding: 0;
    height: 44px;
    min-width: 80px;
    justify-content: flex-end;
    align-items: center;
  }

  .header-fixed .header__menu-icon {
    gap: 3px;
    width: 3px;
    flex-shrink: 0;
  }

  .header-fixed .header__menu-icon span {
    width: 3px;
    height: 3px;
  }

  .header-fixed .header__menu-text {
    font-size: 1.25rem;
    line-height: 1;
    position: relative;
    top: 1px;
  }

  /* --- MOBILE NAV OVERLAY ---
     Figma ref: 1652:4231
     Layout: header (logo+close) → centered links+book → footer (legal+lang)
     No bottom image on mobile */

  /* Switch to flexbox on mobile for simpler vertical layout:
     header → spacer → links + book → spacer → footer
     Figma ref: 1652:4231 */
  .nav-overlay {
    display: flex;
    flex-direction: column;
  }

  /* Hide bottom image on mobile */
  .nav-overlay__image {
    display: none;
  }

  /* Header: logo left, close right */
  .nav-overlay__header {
    padding: 0 24px;
    height: 64px;
    flex-shrink: 0;
  }

  .nav-overlay__logo {
    display: flex;
    align-items: center;
    position: static;
    left: auto;
    transform: none;
    order: 1;
    flex: 1;
  }

  .nav-overlay__logo img {
    width: 189px;
    height: 28px;
    display: block;
  }

  .nav-overlay__close {
    order: 2;
    width: auto;
    gap: 10px;
    padding: 0;
    height: 44px;
    min-width: 80px;
    justify-content: flex-end;
    align-items: center;
  }

  /* Hide desktop header-right (lang + book) — replaced by footer-lang + book-mobile */
  .nav-overlay__header-right {
    display: none;
  }

  .nav-overlay__close-icon {
    grid-template-columns: repeat(3, 3px);
    grid-template-rows: repeat(3, 3px);
    width: 9px;
    height: 9px;
    flex-shrink: 0;
  }

  .nav-overlay__close-icon span {
    width: 3px;
    height: 3px;
  }

  .nav-overlay__close-text {
    font-size: 1.25rem;
    line-height: 1;
    position: relative;
    top: 1px;
  }

  /* Center the links+book group vertically using margin:auto trick.
     margin-top:auto on list + margin-bottom:auto on book = equal space above/below */
  .nav-overlay__list {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .nav-overlay__link {
    font-size: 2rem; /* 32px per Figma */
  }

  /* Mobile book-now button right below nav links */
  .nav-overlay__book-mobile {
    display: block;
    align-self: center;
    flex-shrink: 0;
    margin-top: 40px;
    margin-bottom: auto; /* pushes footer to bottom, centers group */
  }

  /* Footer bar: stays in place, sits on top of the lang panel.
     Left side crossfades between Impressum/Privacy ↔ Choose Language.
     Arrow rotates on open. */
  .nav-overlay__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    background: var(--color-cream);
    border-top: 1px solid rgba(131, 39, 6, 0.15);
  }

  .nav-overlay__footer-links {
    display: flex;
    gap: 24px;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-overlay__footer-link {
    font-size: 16px;
  }

  /* "Choose language" label — overlaps footer-links, hidden by default */
  .nav-overlay__footer-label {
    display: block;
    position: absolute;
    left: 24px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.44px;
    color: var(--color-rust);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-overlay__footer-lang {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--color-rust);
    cursor: pointer;
  }

  /* Arrow rotates when panel is open */
  .nav-overlay__footer-lang .header__lang-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-overlay.lang-panel-open .nav-overlay__footer-lang .header__lang-arrow {
    transform: rotate(180deg);
  }

  /* Crossfade: Impressum out, Choose Language in */
  .nav-overlay.lang-panel-open .nav-overlay__footer-links {
    opacity: 0;
    pointer-events: none;
  }

  .nav-overlay.lang-panel-open .nav-overlay__footer-label {
    opacity: 1;
  }

  /* Compact variant alignment on mobile */
  .nav-overlay--compact .nav-overlay__header {
    padding: 0 24px;
  }

  /* --- MOBILE INLINE LANGUAGE PANEL ---
     Figma ref: 1652:4320
     Only language options slide up from behind the footer bar.
     bottom: 64px = flush with footer top edge.
     translateY(100%) hides it exactly behind the footer. */
  .nav-overlay__lang-panel {
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 64px;
    left: 0;
    right: 0;
    z-index: 1;
    background: var(--color-cream);
    transform: translateY(100%);
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }

  .nav-overlay__lang-panel.is-open {
    transform: translateY(0);
    pointer-events: all;
  }

  /* Hide panel header on mobile — its content is now in the footer bar */
  .nav-overlay__lang-panel-header {
    display: none;
  }

  /* Language option rows */
  .nav-overlay__lang-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    padding: 12px 24px;
    cursor: pointer;
  }

  /* Top border on panel, no bottom border */
  .nav-overlay__lang-panel {
    border-top: 1px solid rgba(131, 39, 6, 0.15);
  }

  .nav-overlay__lang-option-text {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: var(--weight-medium);
    color: var(--color-rust);
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 20px;
    overflow: hidden;
    line-height: 1.1;
    text-align: center;
  }

  .nav-overlay__lang-option-text span {
    flex-shrink: 0;
    transition: transform var(--duration-normal) var(--ease-out);
  }

  .nav-overlay__lang-option:hover .nav-overlay__lang-option-text span {
    transform: translateY(calc(-100% - 8px));
  }
}


/* =============================================
   LANGUAGE DROPDOWN
   ============================================= */
.lang-dropdown {
  position: fixed;
  z-index: calc(var(--z-overlay) + 1);
  width: 144px;
  background: #EAE5CE;
  border-left: 1px solid rgba(131, 39, 6, 0.1);
  border-right: 1px solid rgba(131, 39, 6, 0.1);
  border-bottom: 1px solid rgba(131, 39, 6, 0.1);
  border-top: none;
  padding: 16px 6px 6px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.lang-dropdown.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.lang-dropdown__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.44px;
  color: var(--color-rust);
  text-align: center;
  padding: 0 12px;
}

.lang-dropdown__options {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.lang-dropdown__option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  padding: 12px 24px;
  cursor: pointer;
}

.lang-dropdown__option-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-rust);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 26px;
  line-height: 26px;
  overflow: hidden;
}

.lang-dropdown__option-text span {
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out);
}

.lang-dropdown__option:hover .lang-dropdown__option-text span {
  transform: translateY(-100%);
}

/* Arrow flip when dropdown is open */
.header__lang.is-open .header__lang-arrow {
  transform: rotate(180deg);
}

.header__lang-arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}


/* =============================================
   DECORATIVE STAR BORDER
   ============================================= */
.star-border {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  overflow: hidden;
}

.star-border__dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
}

.star-border__dot svg {
  width: 100%;
  height: 100%;
  display: block;
}

.star-border__dot--edge {
  width: 6px;
}

.star-border__dot--flipped {
  transform: scaleX(-1);
}


/* =============================================
   BOOKING WIDGET CARD
   ============================================= */
/* --- Booking Widget Notebook Card ---
   Figma ref: 1572:15209
   Modular top border built from notes-edge/gap/middle SVGs
   Grain overlay via feTurbulence pseudo-element
*/
.booking-widget {
  width: 333px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Grain texture overlay */
.booking-widget::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: multiply;
}

/* Notebook scalloped top border — modular SVGs (edge + gap + middle repeating)
   The tabs row overflows hidden to clip to widget width.
   Edge pieces anchor left/right, middle content fills via flex. */
.booking-widget__tabs {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 48px;
  flex-shrink: 0;
  background: url('../../assets/images/notes-tilebeige.svg') 17px top / 26px 48px repeat-x;
}

.booking-widget__tab-edge {
  display: block;
  height: 48px;
  width: 17px;
  flex-shrink: 0;
  position: relative;
}

.booking-widget__tab-edge--right {
  transform: scaleX(-1);
}

/* Widget body */
.booking-widget__body {
  background: var(--color-cream-light);
  padding-bottom: 42px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.booking-widget__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  color: var(--color-rust);
  text-align: center;
  line-height: 1.24;
  letter-spacing: -0.03em;
  padding: 24px 32px;
  width: 100%;
  box-sizing: border-box;
}

/* Dotted separator lines (Figma: dash 0.1, gap 4.1, round cap, stroke 1.85) */
.booking-widget__separator {
  width: 100%;
  height: 1.85px;
  border: none;
  background: radial-gradient(circle closest-side, var(--color-sage) 99%, transparent 100%) 0 center / 5.95px 1.85px repeat-x;
}

/* Form area */
.booking-widget__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: 42px 32px 0;
  box-sizing: border-box;
}

.booking-widget__field {
  display: flex;
  flex-direction: column;
}

.booking-widget__label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-rust);
  letter-spacing: -0.015em;
  line-height: 1;
}

.booking-widget__input {
  width: 100%;
  height: 64px;
  padding: 0;
  border: none;
  border-bottom: 1px solid var(--color-sage);
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--color-wine);
  outline: none;
  line-height: 1.6;
  letter-spacing: -0.015em;
}

.booking-widget__input::placeholder {
  color: var(--color-wine);
  opacity: 0.4;
}

.booking-widget__input:focus {
  border-bottom-color: var(--color-rust);
}

/* Select wrapper with dropdown arrow */
.booking-widget__select-wrap {
  position: relative;
}

.booking-widget__select-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--color-wine);
  pointer-events: none;
}

.booking-widget__select {
  width: 100%;
  height: 64px;
  padding: 0;
  padding-right: 24px;
  border: none;
  border-bottom: 1px solid var(--color-rust);
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--color-wine);
  appearance: none;
  cursor: pointer;
  outline: none;
  line-height: 1.6;
  letter-spacing: -0.015em;
}

/* CTA — uses btn-stamp--sage btn-stamp--long */
.booking-widget__cta {
  width: calc(100% - 64px);
  margin: 36px 32px 0;
}

.booking-widget__cta .btn-stamp__inner {
  width: 100%;
}


/* =============================================
   FOOTER
   ============================================= */
.footer {
  background-color: var(--color-rust);
  color: var(--color-cream);
  padding: 90px 0;
}

.footer > .container {
  display: flex;
  flex-direction: column;
  gap: 33px;
}

.footer__stamp-row {
  display: flex;
  align-items: center;
  gap: 68px;
  width: 100%;
}

.footer__stamp-line {
  flex: 1;
  width: 100%;
  height: 1px;
  background: rgba(244, 241, 222, 0.15);
  border: none;
}

.footer__stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.footer__stamp-circle {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-cream);
  text-align: center;
}

.footer__stamp-icon {
  width: 28px;
  height: 28px;
  color: var(--color-cream);
}

.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 74px;
}

.footer__middle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 5vw + 40px, 188px);
  width: 100%;
}

.footer__middle-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(244, 241, 222, 0.15);
  flex-shrink: 0;
}

.footer__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 400px;
  max-width: 100%;
  text-align: center;
}

.footer__cta h3 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.125rem);
  color: var(--color-cream);
  line-height: 1.16;
  letter-spacing: -0.5px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  width: 400px;
  max-width: 100%;
  text-align: center;
}

.footer__contact-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.footer__address {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 0.875rem + 1.25vw, 1.625rem);
  font-weight: var(--weight-medium);
  line-height: 1.56;
  color: var(--color-cream);
}

.footer__contact-links a {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 0.875rem + 1.25vw, 1.625rem);
  font-weight: var(--weight-medium);
  color: var(--color-cream);
  line-height: 1.56;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.footer__social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(244, 241, 222, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cream);
  transition: background var(--duration-fast) ease;
}

.footer__social a:hover {
  background: rgba(244, 241, 222, 0.1);
}

.footer__giant-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 35px 0;
  border-top: 1px solid rgba(244, 241, 222, 0.15);
  border-bottom: 1px solid rgba(244, 241, 222, 0.15);
}

.footer__giant-text {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: var(--weight-medium);
  color: var(--color-cream);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-none);
}

.footer__giant-icon {
  width: clamp(60px, 5vw, 100px);
  height: clamp(60px, 5vw, 100px);
  color: var(--color-cream);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.24px;
  color: var(--color-cream);
}

.footer__bottom > * {
  flex-shrink: 0;
}

/* Equal-width side columns so center nav is truly centered */
.footer__copyright,
.footer__bottom-legal {
  width: 390px;
}

.footer__bottom-legal {
  justify-content: flex-end;
}

@media (max-width: 1024px) {
  .footer__copyright,
  .footer__bottom-legal {
    width: auto;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer__bottom-nav,
  .footer__bottom-legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.footer__bottom-nav,
.footer__bottom-legal {
  display: flex;
  gap: var(--space-xl);
}

.footer__bottom-nav a,
.footer__bottom-legal a,
.footer__bottom-legal span {
  color: var(--color-cream);
  transition: opacity var(--duration-fast) ease;
}

.footer__bottom-nav a:hover,
.footer__bottom-legal a:hover {
  opacity: 0.7;
}

/* =============================================
   FOUNDERS QUOTE (shared: home + our-story)
   ============================================= */
.quote {
  display: flex;
  flex-direction: column;
}

.quote__text-block {
  background-color: var(--color-wine-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding: var(--space-5xl) var(--container-px);
}

.quote__blockquote {
  max-width: 852px;
  text-align: center;
}

.quote__phrase {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.2rem + 3.5vw, 3.875rem);
  font-weight: var(--weight-medium);
  line-height: 1.3;
  letter-spacing: -1.86px;
  color: var(--color-cream);
  opacity: 0.9;
}

.quote__attribution {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.quote__name {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
  font-weight: var(--weight-medium);
  line-height: 1.24;
  letter-spacing: -0.78px;
  color: var(--color-cream);
  opacity: 0.9;
}


.quote__image {
  width: 100%;
  aspect-ratio: 1512 / 851;
  overflow: hidden;
}

.quote__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


@media (max-width: 768px) {
  .footer {
    padding: 60px 0;
  }
  .footer > .container {
    gap: 48px;
  }
  .footer__stamp-row {
    gap: var(--space-md);
  }
  .footer__top {
    gap: 48px;
  }
  .footer__middle {
    flex-direction: column;
    gap: 48px;
  }
  .footer__cta,
  .footer__contact {
    width: 100%;
  }
  .footer__middle-divider {
    display: none;
  }
  .footer__bottom-nav,
  .footer__bottom-legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}
