/* ============================================================
   HOME PAGE — HERO REDESIGN
   Layout based strictly on mockup (hero-home.jpg)
   ============================================================ */

/* ── Hide default navbar on home page ── */
.navbar { display: none; }

/* ══════════════════════════════════════════════════════════════
   HERO SECTION — full viewport
══════════════════════════════════════════════════════════════ */
.home-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #1a1208;
}

/* ── Image/video carousel layers ── */
.home-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  background: #1a1208 url('../images/laptop/hero-home.webp') center center / cover no-repeat;
  transition: opacity 0.8s ease-in-out;
}

.home-hero__img.visible {
  opacity: 1;
}

.home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.home-hero__video.visible {
  opacity: 1;
}

.home-hero__video--alt {
  z-index: 1;
}

/* Mobile: adjust video framing so subject (girl/waterfall) is centered */
@media (max-width: 480px) {
  .home-hero__video {
    object-position: center 25%;
  }
}

/* Tablet portrait: adjust video framing so subject (girl in green) face shows */
@media (min-width: 481px) and (max-width: 768px) {
  .home-hero__video {
    object-position: center 10%;
  }
}

/* Tablet landscape: adjust video framing for waterfall/girl scene */
@media (min-width: 769px) and (max-width: 1024px) {
  .home-hero__video {
    object-position: center 20%;
  }
}

/* ── Vignette overlay for text legibility ── */
.home-hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.30) 0%,
      rgba(0,0,0,0.05) 35%,
      rgba(0,0,0,0.05) 60%,
      rgba(0,0,0,0.50) 100%
    ),
    linear-gradient(to right,
      rgba(0,0,0,0.40) 0%,
      rgba(0,0,0,0.0) 55%
    );
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   TOP LOGO BLOCK — centered at very top of viewport
   Sits ABOVE the header bar, exactly as in mockup
══════════════════════════════════════════════════════════════ */
/* logo-wrap dissolved into 3-col header grid */
.home-hero__logo-wrap {
  display: contents;
}

.home-hero__logo {
  height: 110px;
  width: auto;
  filter: drop-shadow(0 1px 12px rgba(0,0,0,0.45));
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* ── Logo center column ── */
.home-header__logo-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ── Menu right column ── */
.home-header__menu-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* ══════════════════════════════════════════════════════════════
   HEADER BAR — gold-tinted strip, sits BELOW the logo block
   Position is calculated: logo height (~90px) + top padding (~14px) + logo padding = ~118px
══════════════════════════════════════════════════════════════ */
.home-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(160, 120, 40, 0.12);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: none;
  padding: 0.5rem 0;
  transition: background 0.5s ease, padding 0.4s ease, backdrop-filter 0.5s ease;
}


/* ── Scroll animation — header compresses + solid dark gold on scroll ── */
.home-header.scrolled {
  background: linear-gradient(135deg, #0d0a04 0%, #3a2c10 25%, #6b5530 50%, #3a2c10 75%, #0d0a04 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0.4rem 0;
  box-shadow: 0 1px 0 rgba(201, 169, 110, 0.25),
              0 4px 24px rgba(0, 0, 0, 0.18);
}

.home-header.scrolled .home-hero__logo {
  opacity: 0.85;
}

.home-header.scrolled .menu-label,
.home-header.scrolled .home-header__social {
  opacity: 0.80;
}

.home-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── Social icons — far left of header bar ── */
.home-header__social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 3px;
  background: transparent;
  color: white;
  transition: all 0.35s ease;
  cursor: pointer;
  text-decoration: none;
}

.social-icon:hover {
  border-color: var(--aman-gold, #c9a96e);
  background: rgba(201, 169, 110, 0.15);
}

.social-icon svg { display: block; }

/* ── MENU button — far right of header bar ── */
.home-header__menu-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0;
  color: white;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 28px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 1px;
  background: rgba(255,255,255,0.85);
  transition: all 0.35s ease;
}

/* Only show 2 lines — hide the middle span */
.hamburger span:nth-child(2) {
  display: none;
}

.menu-label {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.88);
  text-transform: uppercase;
}

.home-header__menu-btn:hover .hamburger span { background: var(--aman-gold, #c9a96e); }
.home-header__menu-btn:hover .menu-label    { color: var(--aman-gold, #c9a96e); }

/* ══════════════════════════════════════════════════════════════
   HERO TEXT — lower left
   Matches mockup: large script title, bold subtitle, locations
══════════════════════════════════════════════════════════════ */
.home-hero__text {
  position: absolute;
  bottom: 16%;
  left: 5%;
  z-index: 100;
  color: white;
}

/* "Mistress Tantra" — Allonges Regular, large script matching mockup */
.home-hero__title {
  font-family: 'Allonges', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3.15rem, 7.5vw, 7.5rem);
  font-weight: 400;
  font-style: normal;
  color: white;
  line-height: 1.0;
  letter-spacing: 0.01em;
  margin: 0 0 0.15rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
  /* Anti-FOUT: start invisible, JS fades in once font is loaded */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.home-hero__title.font-loaded {
  opacity: 1;
}

/* "TANTRICA GODDESS" — bold, spaced caps */
.home-hero__subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.97);
  margin: 0 0 0.25rem;
  display: block;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

/* "SAN FRANCISCO ◈ BOSTON" — lighter, with mandala divider */
.home-hero__locations {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(0.9rem, 1.6vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* Mandala separator between SAN FRANCISCO and BOSTON */
.mandala-sep {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
  opacity: 0.80;
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.25));
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   SCROLL CTA — bottom centre
══════════════════════════════════════════════════════════════ */
.home-hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  animation: heroFloat 3s ease-in-out infinite;
}

.scroll-word {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.70);
  text-transform: uppercase;
}

.scroll-ornament-svg {
  width: 40px;
  height: 72px;
  animation: scrollPulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(201,169,110,0.2));
}

@keyframes heroFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-7px); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50%       { opacity: 0.55; transform: translateY(4px); }
}

/* ══════════════════════════════════════════════════════════════
   FULLSCREEN NAV OVERLAY
══════════════════════════════════════════════════════════════ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(160deg, #1a1408 0%, #2a1f0e 25%, #3d2e14 50%, #2a1f0e 75%, #1a1408 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  overflow: hidden;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay__close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.3s ease;
  font-family: var(--font-body);
}

.nav-overlay__close:hover { color: var(--aman-gold, #c9a96e); }

.nav-overlay__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.nav-overlay__links a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.3s ease, transform 0.3s ease;
  line-height: 1;
  position: relative;
  padding: 0.3em 0;
}

/* Decorative hover — gold underline with ornamental center diamond */
.nav-overlay__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--aman-gold, #c9a96e), transparent);
  transition: width 0.4s ease, left 0.4s ease;
}

/* Ornamental diamond at center of underline */
.nav-overlay__links a::before {
  content: '✦';
  position: absolute;
  bottom: -0.5em;
  left: 50%;
  transform: translateX(-50%) scale(0);
  font-size: 0.5em;
  color: var(--aman-gold, #c9a96e);
  transition: transform 0.3s ease 0.1s, opacity 0.3s ease 0.1s;
  opacity: 0;
  line-height: 1;
}

.nav-overlay__links a:hover,
.nav-overlay__links a.active {
  color: var(--aman-gold, #c9a96e);
  transform: scale(1.04);
}

.nav-overlay__links a:hover::after,
.nav-overlay__links a.active::after {
  width: 100%;
  left: 0;
}

.nav-overlay__links a:hover::before,
.nav-overlay__links a.active::before {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.nav-overlay__social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* ============================================================
   NAV OVERLAY — Decorative Mandalas Scattered Across Overlay
   Five slowly rotating mandalas positioned around the overlay
   for an elegant, immersive feel. Nothing is clipped.
   ============================================================ */
.nav-overlay__mandalas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.nav-mandala {
  position: absolute;
  width: 220px;
  height: 220px;
  object-fit: contain;
  opacity: 0.30;
  animation: navMandalaSpin 90s linear infinite;
  filter: brightness(2) saturate(0.7);
}

/* Top-left corner — peeks into view */
.nav-mandala--top-left {
  top: 4%;
  left: 3%;
  width: 200px;
  height: 200px;
  opacity: 0.22;
  animation-duration: 110s;
}

/* Top-right corner — peeks into view */
.nav-mandala--top-right {
  top: 6%;
  right: 4%;
  width: 180px;
  height: 180px;
  opacity: 0.22;
  animation-direction: reverse;
  animation-duration: 95s;
}

/* Mid-left — sits beside the nav links */
.nav-mandala--mid-left {
  top: 42%;
  left: 2%;
  width: 240px;
  height: 240px;
  opacity: 0.32;
  animation-duration: 100s;
  animation-direction: reverse;
}

/* Mid-right — balances the left */
.nav-mandala--mid-right {
  top: 38%;
  right: 2%;
  width: 260px;
  height: 260px;
  opacity: 0.32;
  animation-duration: 85s;
}

/* Bottom-center — anchor piece */
.nav-mandala--bottom-center {
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  opacity: 0.36;
  animation-direction: reverse;
  animation-duration: 80s;
}

@keyframes navMandalaSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Bottom-center mandala needs its translateX preserved during rotation */
.nav-mandala--bottom-center {
  animation: navMandalaSpinCenter 80s linear infinite reverse;
}

@keyframes navMandalaSpinCenter {
  from { transform: translateX(-50%) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(360deg); }
}

@media (max-width: 768px) {
  .nav-mandala {
    width: 160px;
    height: 160px;
    opacity: 0.24;
  }
  .nav-mandala--top-left {
    top: 2%;
    left: 0%;
    width: 140px;
    height: 140px;
    opacity: 0.18;
  }
  .nav-mandala--top-right {
    top: 3%;
    right: 0%;
    width: 130px;
    height: 130px;
    opacity: 0.18;
  }
  .nav-mandala--mid-left {
    top: 40%;
    left: -6%;
    width: 180px;
    height: 180px;
    opacity: 0.28;
  }
  .nav-mandala--mid-right {
    top: 36%;
    right: -6%;
    width: 190px;
    height: 190px;
    opacity: 0.28;
  }
  .nav-mandala--bottom-center {
    bottom: 2%;
    width: 220px;
    height: 220px;
    opacity: 0.30;
  }
}

@media (max-width: 480px) {
  .nav-mandala {
    width: 120px;
    height: 120px;
    opacity: 0.20;
  }
  .nav-mandala--top-left {
    top: 1%;
    left: -4%;
    width: 110px;
    height: 110px;
    opacity: 0.15;
  }
  .nav-mandala--top-right {
    top: 2%;
    right: -3%;
    width: 100px;
    height: 100px;
    opacity: 0.15;
  }
  .nav-mandala--mid-left {
    top: 38%;
    left: -8%;
    width: 140px;
    height: 140px;
    opacity: 0.22;
  }
  .nav-mandala--mid-right {
    top: 34%;
    right: -8%;
    width: 150px;
    height: 150px;
    opacity: 0.22;
  }
  .nav-mandala--bottom-center {
    bottom: 1%;
    width: 180px;
    height: 180px;
    opacity: 0.25;
  }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .home-hero__logo {
    height: 95px;
  }

  .home-header {
    padding: 0.5rem 0;
  }

  .home-header__inner {
    padding: 0 1.2rem;
    grid-template-columns: auto 1fr;
  }

  /* Hide social icons on mobile */
  .home-header__social {
    display: none;
  }

  /* Logo left-justified */
  .home-header__logo-col {
    justify-content: flex-start;
  }

  /* Remove MENU label on mobile, just show hamburger bars */
  .home-header__menu-btn .menu-label {
    display: none;
  }

  .home-header__menu-btn {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  /* TASK 1: Hero text — larger and higher up on mobile */
  .home-hero__text {
    bottom: 25%;
    left: 19px;
    right: 19px;
  }

  .home-hero__title {
    font-size: clamp(3.8rem, 15vw, 6.5rem);
  }

  .home-hero__subtitle {
    font-size: clamp(1.15rem, 4.5vw, 1.6rem);
  }

  .home-hero__locations {
    font-size: clamp(0.85rem, 3vw, 1.15rem);
  }

  .mandala-sep {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 480px) {
  .home-hero__logo {
    height: 80px;
  }

  .home-header__inner {
    padding: 0 0.8rem;
  }

  .home-hero__title {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .home-hero__subtitle {
    font-size: clamp(1.05rem, 5vw, 1.35rem);
  }

  .home-hero__locations {
    font-size: clamp(0.8rem, 3.2vw, 1rem);
  }
}

/* ============================================================
   MOBILE MENU — reduced font size and height
   ============================================================ */
@media (max-width: 768px) {
  .nav-overlay__links {
    gap: 1.2rem;
  }

  .nav-overlay__links a {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    padding: 0.15em 0;
  }

  /* Show new tablet hero image as fallback while video loads */
  .home-hero__img {
    background-image: url('../images/tablet-p/hero-home.webp');
    background-size: cover;
    background-position: center 10%;
  }
}

@media (max-width: 480px) {
  .nav-overlay__links {
    gap: 0.8rem;
  }

  .nav-overlay__links a {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
    padding: 0.1em 0;
  }

  /* Show new mobile hero image as fallback while video loads */
  .home-hero__img {
    background-image: url('../images/mobile/hero-home.webp');
    background-size: cover;
    background-position: center 25%;
  }
}
