/* =============================================================================
   RIDHIVIAANH — global.css
   Shared across all pages. Do NOT add page-specific styles here.
   Page-specific styles live in each page's own <style> block.

   Contents:
   1. CSS Variables
   2. Reset & Base
   3. Navigation (desktop + mobile — same element, CSS-driven)
   4. Reveal Animation
   5. Footer
   6. Responsive — Nav & Footer breakpoints only
============================================================================= */


/* -----------------------------------------------------------------------------
   1. CSS VARIABLES
----------------------------------------------------------------------------- */
:root {
  --royal:       #1B3A6B;
  --royal-deep:  #0F2347;
  --royal-light: #2E508A;
  --royal-mid:   #243E73;
  --gold:        #C9A84C;
  --gold-pale:   #E8D5A0;
  --cream:       #F7F3EC;
  --warm-white:  #FDFAF5;
  --ink:         #0D1B2A;
  --mist:        #8FA3BF;
  --stone:       #5C6E82;
}


/* -----------------------------------------------------------------------------
   2. RESET & BASE
----------------------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; background: var(--warm-white); color: var(--ink); overflow-x: hidden; }
img { display: block; width: 100%; }


/* -----------------------------------------------------------------------------
   3. NAVIGATION
   One <nav> element. No separate mobile-menu div.
   On desktop: horizontal bar.
   On mobile: hamburger toggles nav.open → full-screen overlay.
   The .active class on the correct <a> is set per-page in HTML.
----------------------------------------------------------------------------- */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 64px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 27, 42, 0.97);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.15);
  transition: background 0.5s, box-shadow 0.5s;
}

/* index.html starts transparent, gains bg on scroll via JS */
nav.scrolled {
  background: rgba(13, 27, 42, 0.97);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.15);
  backdrop-filter: blur(12px);
}

/* Logo */
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.logo span { font-style: italic; color: var(--cream); }

/* Desktop centre links */
.nav-center {
  display: flex;
  gap: 44px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.nav-center a {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.65);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 3px;
}
.nav-center a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s;
}
.nav-center a:hover,
.nav-center a.active { color: var(--gold); }
.nav-center a:hover::after,
.nav-center a.active::after { width: 100%; }

/* Right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.nav-book {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 24px;
  text-decoration: none;
  font-weight: 300;
  transition: all 0.3s;
}
.nav-book:hover { background: var(--gold); color: var(--ink); }

/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 2;
}
.hamburger span {
  width: 22px; height: 1px;
  background: var(--cream);
  display: block;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ── Mobile overlay state ──
   When nav.open is set by JS on screens ≤1024px,
   the nav expands to full screen and .nav-center
   switches from horizontal bar to vertical centred list.
   Nothing changes on desktop — nav.open has no effect above 1024px.
*/
@media (max-width: 1024px) {
  nav {
    padding: 0 32px;
  }
  .nav-center { display: none; }
  .nav-right .nav-book { display: none; }
  .hamburger { display: flex; }

  /* Full-screen overlay when open */
  nav.open {
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(9, 20, 36, 0.98);
    box-shadow: none;
    gap: 0;
  }

  /* Show the links vertically when nav is open */
  nav.open .nav-center {
    display: flex;
    flex-direction: column;
    position: static;
    transform: none;
    gap: 0;
    text-align: center;
    width: 100%;
  }
  nav.open .nav-center li {
    border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  }
  nav.open .nav-center a {
    display: block;
    padding: 20px 48px;
    font-size: 11px;
    letter-spacing: 5px;
    color: rgba(247, 243, 236, 0.7);
  }
  nav.open .nav-center a:hover,
  nav.open .nav-center a.active { color: var(--gold); }
  nav.open .nav-center a::after { display: none; }

  /* Show Reserve button inside open menu */
  nav.open .nav-right {
    margin-top: 28px;
  }
  nav.open .nav-right .nav-book {
    display: inline-block;
    padding: 13px 36px;
  }

  /* Hide hamburger label, keep it top-right when open */
  nav.open .hamburger {
    position: absolute;
    top: 24px; right: 24px;
  }
  nav.open .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -1000%);
    display: none;
  }
}

@media (max-width: 640px) {
  nav { padding: 0 20px; height: 68px; }
  nav.open { height: 100vh; }
}


/* -----------------------------------------------------------------------------
   4. REVEAL ANIMATION
----------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.23,1,0.32,1), transform 0.9s cubic-bezier(0.23,1,0.32,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: 0.1s; }
.rd2 { transition-delay: 0.2s; }
.rd3 { transition-delay: 0.3s; }


/* -----------------------------------------------------------------------------
   5. FOOTER
----------------------------------------------------------------------------- */
footer { background: #07111D; padding: 80px 64px 36px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 54px;
  padding-bottom: 54px;
  border-bottom: 1px solid rgba(247, 243, 236, 0.06);
  margin-bottom: 32px;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 300;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold); display: block;
  margin-bottom: 16px; text-decoration: none;
}
.footer-logo span { font-style: italic; color: var(--cream); }
.footer-tag { font-size: 12px; line-height: 2; color: rgba(247,243,236,0.33); font-weight: 200; margin-bottom: 22px; }
.footer-story-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); text-decoration: none; font-weight: 300;
  margin-bottom: 22px; transition: gap 0.3s;
}
.footer-story-link:hover { gap: 13px; }
.f-socials { display: flex; gap: 10px; }
.f-soc {
  width: 34px; height: 34px;
  border: 1px solid rgba(247,243,236,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(247,243,236,0.3); text-decoration: none;
  font-size: 12px; transition: all 0.3s;
}
.f-soc:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h4 { font-size: 9px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; font-weight: 400; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col li a { font-size: 12px; color: rgba(247,243,236,0.33); text-decoration: none; font-weight: 200; transition: color 0.3s; }
.footer-col li a:hover { color: var(--gold-pale); }
.addr-block { margin-bottom: 16px; }
.addr-block strong { font-family: 'Cormorant Garamond', serif; font-size: 14px; color: rgba(247,243,236,0.52); display: block; margin-bottom: 3px; font-weight: 400; }
.addr-block p { font-size: 11px; line-height: 1.9; color: rgba(247,243,236,0.24); font-weight: 200; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.f-copy { font-size: 10px; color: rgba(247,243,236,0.18); font-weight: 200; }
.f-policy { display: flex; gap: 22px; }
.f-policy a { font-size: 10px; color: rgba(247,243,236,0.18); text-decoration: none; transition: color 0.3s; }
.f-policy a:hover { color: var(--gold); }


/* -----------------------------------------------------------------------------
   6. RESPONSIVE — Footer only (nav breakpoints already above in section 3)
----------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  footer { padding: 60px 32px 30px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  footer { padding: 50px 20px 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
