/* =============================================================================
   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);
}

/* NAV logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.logo img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

/* 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: 12px;
  letter-spacing: 2px;
  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: 13px;
    letter-spacing: 3px;
    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: 52px 64px 10px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(247, 243, 236, 0.08);
  margin-bottom: 0px;
}

/* FOOTER logo */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 14px;
}
.footer-logo img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

/* Shared wordmark letter-spacing lives HERE */
.logo-word {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
}
.logo-word span {
  font-style: italic;
  color: var(--cream);
}

.footer-tag {
  font-size: 13px; line-height: 1.9;
  color: #9A9590;
  font-weight: 300; margin-bottom: 18px;
  max-width: 260px;
}

.footer-follow {
  font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase;
  color:#8C8780;
  font-weight: 300; margin-bottom: 10px;
}

.f-socials { display: flex; gap: 10px; }
.f-soc {
  width: 32px; height: 32px;
  border: 1px solid rgba(247,243,236,0.15);
  display: flex; align-items: center; justify-content: center;
  color:#8C8780; 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: 11px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px; font-weight: 400;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col li a {
  font-size: 13px; color: #B0ABA4;
  text-decoration: none; font-weight: 300; transition: color 0.3s;
}
.footer-col li a:hover { color: var(--gold-pale); }

.f-contact-item {
  display: flex; align-items: flex-start;
  gap: 10px; margin-bottom: 10px;
}
.f-contact-item a {
  color: #B0ABA4;
  text-decoration: none;
  font-size: 13px;
  font-weight: 300;
  transition: color 0.3s;
}
.f-contact-item a:hover { color: var(--gold); }
.f-contact-item i {
  color: #C9A84C; font-size: 13px;
  margin-top: 2px; flex-shrink: 0;
  width: 16px; text-align: center;
}
.f-contact-item span {
  font-size: 13px; color:#B0ABA4;
  font-weight: 300; line-height: 1.6;
}

.footer-bottom { display: flex; justify-content: center;padding: 10px 0; }
.f-copy {
  font-size: 11px; color: #8C8780;
  font-weight: 300; text-align: center;
}


@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer { padding: 44px 32px 24px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  footer { padding: 40px 20px 20px; }
}
