/* ============================================================
   Varghese Luxury — Hero section (background video + overlay)
   ============================================================ */

:root {
  --gold: #d9b45a;
  --gold-bright: #f6e6b4;
  --gold-deep: #8a5a1e;
  --cream: #f2e7cf;
  --navy-1: #14375c;
  --navy-2: #0a1f38;
  --navy-3: #040c18;
}

/* neutralise the placeholder layout from preloader.css */
.site {
  display: block;
  min-height: 0;
  padding: 0;
  text-align: left;
  background: var(--navy-2);
}

/* ---------- Hero shell ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--cream);
  isolation: isolate;
}

/* ---------- Background slideshow ---------- */
.hero__slides {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.4s ease-in-out;
  will-change: opacity, transform;
}

.hero__slide.is-active {
  opacity: 1;
  animation: hero-kenburns 8s ease-out forwards;
}

@keyframes hero-kenburns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.09); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: opacity .3s linear; transform: none; }
  .hero__slide.is-active { animation: none; transform: none; }
}

/* darkening + brand tint so the text always reads */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4,12,24,.72) 0%, rgba(4,12,24,.40) 45%, rgba(4,12,24,.88) 100%),
    radial-gradient(ellipse 95% 75% at 50% 44%, rgba(8,20,38,.20) 0%, rgba(4,12,24,.66) 100%);
}

/* ---------- Top nav ---------- */
.hero__nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(20px, 5vw, 64px);
}

.hero__logo {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: .28em;
  text-indent: .28em;
  text-decoration: none;
  color: var(--gold);
}
.hero__logo span {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: .5em;
  letter-spacing: .5em;
  color: var(--cream);
}

.hero__menu {
  display: flex;
  gap: clamp(16px, 2.6vw, 40px);
}
.hero__menu a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  opacity: .82;
  transition: opacity .25s ease, color .25s ease;
}
.hero__menu a:hover { opacity: 1; color: var(--gold-bright); }

/* hamburger toggle (mobile only) */
.hero__nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.hero__nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  transition: transform .25s ease, opacity .2s ease;
}
.hero__nav.is-open .hero__nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hero__nav.is-open .hero__nav-toggle span:nth-child(2) { opacity: 0; }
.hero__nav.is-open .hero__nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Center content ---------- */
.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px clamp(20px, 6vw, 64px) 96px;
  max-width: 900px;
  margin: 0 auto;
}

.hero__eyebrow {
  margin: 0 0 18px;
  font-size: clamp(10px, 1.4vw, 13px);
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1.08;
  font-size: clamp(34px, 6.4vw, 72px);
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
}

.hero__text {
  margin: 24px auto 0;
  max-width: 560px;
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 300;
  line-height: 1.8;
  color: var(--cream);
  opacity: .92;
}

.hero__actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 15px 34px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn--gold {
  color: var(--navy-3);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 10px 30px rgba(217,180,90,.28);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(217,180,90,.42); }
.btn--ghost {
  color: var(--cream);
  border: 1px solid rgba(242,231,207,.5);
}
.btn--ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

/* ---------- Scroll cue ---------- */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1px solid rgba(242,231,207,.45);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold-bright);
  animation: hero-scroll 1.8s ease-in-out infinite;
}
@keyframes hero-scroll {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

@media (max-width: 720px) {
  .hero__nav-toggle { display: flex; }
  .hero__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    flex-direction: column;
    gap: 0;
    padding: 6px 0 10px;
    background: rgba(4, 12, 24, .97);
    border-top: 1px solid rgba(217, 180, 90, .22);
    box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .6);
  }
  .hero__nav.is-open .hero__menu { display: flex; }
  .hero__menu a {
    padding: 13px clamp(20px, 6vw, 40px);
    font-size: 12.5px;
    opacity: .92;
  }
  .hero__menu a:hover { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll span { animation: none; }
}
