/* ==========================================================================
   THE IVORY GROVE — Contemporary Heritage Luxury
   Brand Identity & Master Styling — Architectural Header & Flawless Responsiveness
   ========================================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* ------------------------------------------------------------------------
     Official Brand Color System
     ------------------------------------------------------------------------ */
  /* Midnight Espresso: Primary Dark Identity */
  --color-espresso: #241914;
  --espresso-rgb: 36, 25, 20;

  --color-espresso-deep: #19110d;
  --espresso-deep-rgb: 25, 17, 13;

  /* Porcelain Cream: Signature Light Branding & Key Typography */
  --color-cream: #f4ebdd;
  --cream-rgb: 244, 235, 221;

  /* Oxblood Burgundy: Sophisticated Secondary Accent (Used Sparingly) */
  --color-oxblood: #702d3b;
  --oxblood-rgb: 112, 45, 59;
  --color-oxblood-light: #8a3749;

  /* Warm Stone: Muted Text, Secondary Details & Subtle Borders */
  --color-stone: #b8a99a;
  --stone-rgb: 184, 169, 154;
  --color-stone-light: #cfc3b6;
  --color-stone-dim: rgba(184, 169, 154, 0.6);

  /* Functional Availability Status Colors */
  --status-available: #3da35d;
  --status-unavailable: #b83b48;
  --status-neutral: #b8a99a;
  --status-limited: #e09a3b;

  /* ------------------------------------------------------------------------
     Refined Glassmorphism Tokens
     ------------------------------------------------------------------------ */
  --glass-bg: rgba(36, 25, 20, 0.55);
  --glass-bg-hover: rgba(36, 25, 20, 0.75);
  --glass-border: rgba(244, 235, 221, 0.12);
  --glass-border-hover: rgba(244, 235, 221, 0.26);

  /* ------------------------------------------------------------------------
     Typography System
     ------------------------------------------------------------------------ */
  --font-display: "Cormorant Garamond", Garamond, Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;

  /* Layout & Silk Luxury Easings */
  --nav-h: clamp(74px, 8vh, 88px);
  --pad-x: clamp(20px, 4.5vw, 72px);
  --ease-luxury: cubic-bezier(0.19, 1, 0.22, 1);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  background-color: var(--color-espresso);
  color: var(--color-cream);
  font-family: var(--font-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-espresso);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-cream);
}

/* ==========================================================================
   Architectural Luxury Header & Navigation
   ========================================================================== */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 14px 0;
  transition: padding 0.65s var(--ease-luxury);
}

/* Atmospheric top shading for pristine legibility against moving video */
header::after {
  content: "";
  position: absolute;
  inset: 0 0 -40px 0;
  z-index: -2;
  background: linear-gradient(
    180deg,
    rgba(var(--espresso-deep-rgb), 0.78) 0%,
    rgba(var(--espresso-deep-rgb), 0.35) 60%,
    transparent 100%
  );
  pointer-events: none;
  transition: opacity 0.65s ease;
}

/* Frosted espresso backdrop bar activated smoothly on scroll */
header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(var(--espresso-rgb), 0.88);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  border-bottom: 1px solid rgba(var(--cream-rgb), 0.08);
  opacity: 0;
  transition:
    opacity 0.65s ease,
    background-color 0.65s ease;
}

header.scrolled {
  padding: 8px 0;
}

header.scrolled::before {
  opacity: 1;
}

header.scrolled::after {
  opacity: 0;
}

nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-h);
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  gap: 20px;
}

/* --------------------------------------------------------------------------
   Hotel Logo Integration
   -------------------------------------------------------------------------- */
.logo-link {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 2;
  min-width: 0;
  text-decoration: none;
  padding: 4px 0;
  outline: none;
  flex-shrink: 0;
}

.logo-link:focus-visible {
  outline: 1px solid var(--color-stone);
  outline-offset: 4px;
  border-radius: 4px;
}

.hotel-logo {
  height: clamp(48px, 4.2vw, 64px);
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
  transition:
    transform 0.65s var(--ease-luxury),
    opacity 0.5s ease;
}

.logo-link:hover .hotel-logo {
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Central Architectural Navigation Menu
   -------------------------------------------------------------------------- */
nav ul {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 38px);
  list-style: none;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

nav ul li {
  position: relative;
}

nav ul li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 4px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-stone);
  text-decoration: none;
  outline: none;
  white-space: nowrap;
  transition: color 0.6s var(--ease-luxury);
}

/* Ethereal hairline bloom on hover */
nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-cream),
    transparent
  );
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.65s var(--ease-luxury);
}

nav ul li a:hover,
nav ul li a:focus-visible {
  color: var(--color-cream);
}

nav ul li a:hover::after,
nav ul li a:focus-visible::after {
  transform: translateX(-50%) scaleX(1);
}

/* Mobile CTA hidden on desktop nav */
.menu-cta {
  display: none;
}

/* --------------------------------------------------------------------------
   Header Primary Action: Dignified "Reserve" Button
   -------------------------------------------------------------------------- */
.reserve-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 6px 5px 20px;
  border-radius: 999px;
  border: 1px solid rgba(var(--cream-rgb), 0.24);
  background: rgba(var(--cream-rgb), 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-cream);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    border-color 0.7s var(--ease-luxury),
    background-color 0.7s var(--ease-luxury),
    transform 0.7s var(--ease-luxury),
    box-shadow 0.7s var(--ease-luxury);
}

.btn-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-oxblood);
  color: var(--color-cream);
  transition:
    background-color 0.7s var(--ease-luxury),
    color 0.7s var(--ease-luxury),
    transform 0.7s var(--ease-luxury);
}

.btn-icon svg {
  width: 14px;
  height: 14px;
  transition: transform 0.7s var(--ease-luxury);
}

.reserve-btn:hover {
  border-color: rgba(var(--cream-rgb), 0.45);
  background-color: var(--color-oxblood);
  box-shadow: 0 10px 28px -6px rgba(var(--oxblood-rgb), 0.55);
  transform: translateY(-2px);
}

.reserve-btn:hover .btn-icon {
  background-color: var(--color-cream);
  color: var(--color-espresso-deep);
}

.reserve-btn:hover .btn-icon svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Mobile Hamburger Toggle
   -------------------------------------------------------------------------- */
.hamburger {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  outline: none;
  padding: 0;
  transition:
    border-color 0.5s ease,
    background-color 0.5s ease,
    transform 0.5s var(--ease-luxury);
}

.hamburger:hover {
  border-color: var(--glass-border-hover);
  background-color: var(--glass-bg-hover);
  transform: scale(1.05);
}

.menu-icon,
.close-icon {
  width: 20px;
  height: 20px;
  color: var(--color-cream);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition:
    opacity 0.5s ease,
    transform 0.65s var(--ease-luxury);
}

.close-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.hamburger.active .menu-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.hamburger.active .close-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg);
}

/* Compact desktop (1200px - 1360px) */
@media (min-width: 1200px) and (max-width: 1360px) {
  .hotel-logo {
    max-width: 190px;
  }
  nav ul {
    gap: 18px;
  }
  nav ul li a {
    font-size: 10.5px;
    letter-spacing: 0.14em;
  }
}

/* Tablet & Mobile (1199px and below): fullscreen drawer */
@media (max-width: 1199px) {
  :root {
    --nav-h: 74px;
  }

  .hotel-logo {
    height: 46px;
    max-width: 190px;
  }

  /* Logo, Reserve and hamburger sit ABOVE the drawer so the close icon stays visible */
  nav > .logo-link {
    order: 1;
    flex: 1;
    z-index: 3;
  }
  .reserve-btn {
    order: 2;
    margin-right: 12px;
    z-index: 3;
  }
  .hamburger {
    order: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
  }

  nav ul {
    order: 4;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--nav-h) + 36px) var(--pad-x) 40px;
    background: rgba(var(--espresso-rgb), 0.98);
    backdrop-filter: blur(36px) saturate(130%);
    -webkit-backdrop-filter: blur(36px) saturate(130%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px);
    transition:
      opacity 0.6s ease,
      transform 0.65s var(--ease-luxury);
    overflow-y: auto;
    z-index: 1;
  }

  nav ul.active {
    opacity: 1;
    pointer-events: all;
    transform: none;
  }

  nav ul li {
    border-bottom: 1px solid rgba(var(--cream-rgb), 0.08);
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.6s ease,
      transform 0.7s var(--ease-luxury);
  }

  nav ul.active li {
    opacity: 1;
    transform: none;
  }
  nav ul.active li:nth-child(1) {
    transition-delay: 0.12s;
  }
  nav ul.active li:nth-child(2) {
    transition-delay: 0.2s;
  }
  nav ul.active li:nth-child(3) {
    transition-delay: 0.28s;
  }
  nav ul.active li:nth-child(4) {
    transition-delay: 0.36s;
  }
  nav ul.active li:nth-child(5) {
    transition-delay: 0.44s;
  }
  nav ul.active li:nth-child(6) {
    transition-delay: 0.52s;
  }

  nav ul li a {
    display: flex;
    align-items: center;
    padding: 18px 8px;
    font-family: var(--font-display);
    font-size: clamp(26px, 4.2vw, 34px);
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--color-cream);
    transition:
      background-color 0.5s ease,
      padding-left 0.65s var(--ease-luxury);
  }

  nav ul li a::after {
    display: none;
  }

  nav ul li a:hover,
  nav ul li a:active,
  nav ul li a:focus-visible {
    background: rgba(var(--cream-rgb), 0.05);
    padding-left: 18px;
  }

  .menu-cta {
    display: block;
    margin-top: 28px;
    border-bottom: 0 !important;
  }

  nav ul li.menu-cta a {
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 999px;
    background-color: var(--color-oxblood);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  nav ul li.menu-cta a:hover {
    background-color: var(--color-cream);
    color: var(--color-espresso-deep);
    padding-left: 24px;
  }
}

/* Mobile (600px and below) */
@media (max-width: 600px) {
  :root {
    --nav-h: 66px;
    --pad-x: 16px;
  }
  header {
    padding: 6px 0;
  }
  nav {
    gap: 10px;
  }
  .hotel-logo {
    height: 40px;
    max-width: 150px;
  }
  .reserve-btn {
    padding: 4px 5px 4px 14px;
    gap: 8px;
    margin-right: 0;
    font-size: 9.5px;
    letter-spacing: 0.12em;
  }
  .btn-icon {
    width: 26px;
    height: 26px;
  }
  .btn-icon svg {
    width: 12px;
    height: 12px;
  }
  .hamburger {
    width: 38px;
    height: 38px;
  }
  nav ul li a {
    padding: 16px 6px;
    font-size: 24px;
  }
}

@media (max-width: 360px) {
  .reserve-btn {
    display: none;
  }
  .hotel-logo {
    max-width: 135px;
    height: 36px;
  }
}

/* ==========================================================================
   Page Anchor Section (Multi-Page Expansion Foundation)
   ========================================================================== */
.page-anchor-section {
  padding: clamp(60px, 12vh, 120px) var(--pad-x);
  background-color: var(--color-espresso);
  border-top: 1px solid rgba(var(--cream-rgb), 0.08);
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.anchor-content {
  max-width: 44rem;
  margin: 0 auto;
}

.anchor-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-bottom: 16px;
}

.anchor-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-cream);
  margin-bottom: 20px;
}

.anchor-text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-stone-light);
}

/* ===== Our Story hero: final alignment (same on every device) ===== */
.st-hero {
  align-items: flex-end !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

.st-hero__in {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto !important;
  padding: 0 !important;
  display: block !important;
  text-align: left !important;
}

.st-hero__in > * {
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  text-align: left !important;
}
.st-hero .anchor-eyebrow {
  margin-bottom: 18px !important;
}
.st-hero__title {
  max-width: 16ch !important;
  margin-bottom: 22px !important;
  text-wrap: balance;
}
.st-hero__text {
  max-width: 34rem !important;
}

.st-hero::before {
  background:
    linear-gradient(
      90deg,
      rgba(var(--espresso-deep-rgb), 0.85) 0%,
      rgba(var(--espresso-deep-rgb), 0.45) 50%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(var(--espresso-deep-rgb), 0.55) 0%,
      transparent 28%,
      transparent 55%,
      var(--color-espresso) 100%
    );
}

@media (max-width: 600px) {
  .st-hero__title {
    max-width: 12ch !important;
  }
  .st-hero::before {
    background: linear-gradient(
      180deg,
      rgba(var(--espresso-deep-rgb), 0.6) 0%,
      rgba(var(--espresso-deep-rgb), 0.45) 40%,
      rgba(var(--espresso-deep-rgb), 0.88) 85%,
      var(--color-espresso) 100%
    );
  }
}

/* Twin photos: slight toning */
.st-img[src*="story-lobby"] {
  filter: brightness(0.9) contrast(1.04) saturate(0.93) sepia(0.06);
}
.st-img[src*="story-craft"] {
  filter: brightness(0.8) contrast(1.04) saturate(0.9) sepia(0.08);
}
