/* ================================================
   VELURE — Luxury Travel Website
   Complete Stylesheet
   ================================================ */

/* ── CSS Custom Properties ── */
:root {
  /* Colors */
  --clr-black:       #0a0a0a;
  --clr-dark:        #111111;
  --clr-dark-card:   #1a1a1a;
  --clr-gray-800:    #2a2a2a;
  --clr-gray-600:    #666666;
  --clr-gray-400:    #999999;
  --clr-gray-200:    #e0e0e0;
  --clr-light:       #f5f5f3;
  --clr-white:       #ffffff;
  --clr-cream:       #faf9f7;
  --clr-accent:      #c8a97e;

  /* Typography */
  --ff-heading:      'Playfair Display', Georgia, 'Times New Roman', serif;
  --ff-body:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad:     clamp(80px, 10vw, 140px);
  --container-max:   1320px;
  --gutter:          clamp(20px, 4vw, 60px);

  /* Transitions */
  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:     cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Header height */
  --header-h:        72px;
}


/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff-body);
  font-weight: 300;
  color: var(--clr-white);
  background: var(--clr-black);
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s var(--ease-smooth);
}

a:hover { opacity: 0.75; }

::selection {
  background: var(--clr-accent);
  color: var(--clr-black);
}


/* ================================================
   HEADER / NAVBAR
   ================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-h);
  transition: background 0.5s var(--ease-smooth),
              backdrop-filter 0.5s var(--ease-smooth),
              border-color 0.5s var(--ease-smooth);
  border-bottom: 1px solid transparent;
}

/* Scrolled state — glass effect */
.header.is-scrolled {
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* When over light sections */
.header.is-light {
  background: rgba(245, 245, 243, 0.7);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.header.is-light .header__logo-text,
.header.is-light .header__logo-star,
.header.is-light .header__link {
  color: var(--clr-black);
}

.header.is-light .header__cta {
  background: var(--clr-black);
  color: var(--clr-white);
}

.header.is-light .header__burger span {
  background: var(--clr-black);
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-white);
  z-index: 1001;
}

.header__logo-star {
  font-size: 0.7rem;
  opacity: 0.7;
  color: var(--clr-accent);
}

/* Navigation links */
.header__nav {
  display: flex;
  gap: 36px;
}

.header__link {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-gray-200);
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-white);
  transition: width 0.4s var(--ease-out);
}

.header__link:hover { opacity: 1; }
.header__link:hover::after { width: 100%; }

.header.is-light .header__link::after {
  background: var(--clr-black);
}

/* Right side */
.header__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__cta {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 24px;
  border-radius: 100px;
  background: var(--clr-white);
  color: var(--clr-black);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.header__cta:hover {
  opacity: 1;
  transform: scale(1.04);
}

/* Hamburger */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out),
              opacity 0.3s;
}

.header__burger.is-active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.header__burger.is-active span:nth-child(2) {
  opacity: 0;
}

.header__burger.is-active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-menu__link {
  font-family: var(--ff-heading);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--clr-white);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
}

.mobile-menu.is-open .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered appearance */
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { transition-delay: 0.32s; }


/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 16px 38px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out),
              background 0.3s;
}

.btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.btn--white {
  background: var(--clr-white);
  color: var(--clr-black);
}

.btn--dark {
  background: var(--clr-dark-card);
  color: var(--clr-white);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn--dark:hover {
  background: var(--clr-gray-800);
}

.btn--black {
  background: var(--clr-black);
  color: var(--clr-white);
}

.btn__icon {
  font-size: 1rem;
  opacity: 0.6;
}


/* ================================================
   HERO SECTION
   ================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.45) 0%,
    rgba(10, 10, 10, 0.30) 50%,
    rgba(10, 10, 10, 0.70) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--gutter);
}

.hero__headline {
  font-family: var(--ff-heading);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--clr-white);
}

.hero__headline-line {
  display: block;
  overflow: hidden;
}

.hero__sub {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 300;
  color: var(--clr-gray-200);
  line-height: 1.7;
  margin-bottom: 44px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero__scroll-text {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-gray-400);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--clr-gray-400), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%      { opacity: 0.4; transform: scaleY(0.6); }
}


/* ================================================
   SHARED SECTION STYLES
   ================================================ */
.section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Backgrounds */
.section__parallax-bg,
.section__bg {
  position: absolute;
  inset: -15% 0;           /* extra space for parallax */
  z-index: 0;
}

.section__parallax-img,
.section__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlays */
.section__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 10, 10, 0.40);
}

.section__overlay--dense {
  background: rgba(10, 10, 10, 0.55);
}

.section__overlay--gradient {
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.75) 0%,
    rgba(10, 10, 10, 0.30) 50%,
    rgba(10, 10, 10, 0.45) 100%
  );
}

/* Content containers */
.section__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  width: 100%;
  padding: var(--section-pad) var(--gutter);
}

.section__content--center { text-align: center; }

.section__content--left {
  text-align: left;
  max-width: 680px;
  margin-right: auto;
}

/* Headlines */
.section__headline {
  font-family: var(--ff-heading);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.section__headline--large {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.section__text {
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  font-weight: 300;
  color: var(--clr-gray-200);
  line-height: 1.7;
  max-width: 520px;
}


/* ================================================
   SECTION 4 — REVEAL TEXT
   ================================================ */
.section__headline--reveal {
  position: relative;
  min-height: 1.4em;
}

.reveal-text {
  display: block;
  transition: opacity 0.6s var(--ease-smooth),
              transform 0.6s var(--ease-smooth);
}

.reveal-text--from {
  opacity: 1;
}

.reveal-text--to {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
}

/* Active state (toggled by GSAP) */
.reveal-text--from.is-hidden {
  opacity: 0;
  transform: translateY(-20px);
}

.reveal-text--to.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ================================================
   SECTION 5 — LIGHT THEME TRANSITION / BLUR REVEAL
   ================================================ */
.section--light {
  background: var(--clr-cream);
  color: var(--clr-black);
}

.section--transition {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section__headline--blur {
  font-family: var(--ff-heading);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.25;
  color: var(--clr-black);
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--gutter);

  /* Start blurry — GSAP will animate to sharp */
  filter: blur(18px);
  opacity: 0.2;
  transform: scale(0.96);
  transition: none; /* GSAP handles this */
}


/* ================================================
   SECTION 6 — BENTO GRID
   ================================================ */
.section--bento {
  min-height: auto;
  padding: var(--section-pad) 0;
}

.bento {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Cards */
.bento__card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  transition: transform 0.5s var(--ease-out);
}

.bento__card:hover {
  transform: translateY(-4px);
}

.bento__card--dark {
  background: var(--clr-dark);
  color: var(--clr-white);
}

.bento__card--light {
  background: var(--clr-white);
  color: var(--clr-black);
  border: 1px solid var(--clr-gray-200);
}

.bento__card-inner {
  position: relative;
  z-index: 2;
}

.bento__card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.bento__card--dark .bento__card-tag {
  background: rgba(255, 255, 255, 0.08);
  color: var(--clr-accent);
}

.bento__card--light .bento__card-tag {
  background: var(--clr-cream);
  color: var(--clr-gray-600);
}

.bento__card-title {
  font-family: var(--ff-heading);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.bento__card-text {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.65;
  max-width: 320px;
  margin-bottom: 28px;
}

.bento__card--dark .bento__card-text { color: var(--clr-gray-400); }
.bento__card--light .bento__card-text { color: var(--clr-gray-600); }

.bento__card-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.bento__card-link--dark { color: var(--clr-black); }

/* Card decorative image */
.bento__card-img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 60%;
  z-index: 1;
  overflow: hidden;
  border-radius: 16px 0 20px 0;
  opacity: 0.35;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.5), transparent);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.5), transparent);
}

.bento__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bottom text block */
.bento__bottom {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px var(--gutter) 40px;
}

.bento__bottom-text {
  font-family: var(--ff-heading);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.2;
  color: var(--clr-black);
  margin-bottom: 40px;
}

.bento__bottom-text em {
  font-style: italic;
  color: var(--clr-accent);
}


/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--clr-black);
  color: var(--clr-white);
  padding: 80px 0 40px;
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-white);
}

.footer__tagline {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--clr-gray-600);
}

.footer__links {
  display: flex;
  gap: 60px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col-title {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-gray-400);
  margin-bottom: 4px;
}

.footer__col a {
  font-size: 0.88rem;
  color: var(--clr-gray-200);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 0.78rem;
  color: var(--clr-gray-600);
}


/* ================================================
   ANIMATION INITIAL STATES (GSAP overrides these)
   ================================================ */
[data-animate="hero"] {
  opacity: 0;
  transform: translateY(40px);
}

[data-animate="slide-up"] {
  opacity: 0;
  transform: translateY(50px);
}

[data-animate="fade-in"] {
  opacity: 0;
}


/* ================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ================================================ */
@media (max-width: 1024px) {
  .header__nav { display: none; }
  .header__burger { display: flex; }
  .header__cta { display: none; }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento__card {
    min-height: 400px;
  }

  .footer__top {
    flex-direction: column;
    gap: 40px;
  }

  .footer__links {
    flex-wrap: wrap;
    gap: 40px;
  }
}


/* ================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ================================================ */
@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  .hero__headline {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero__sub {
    font-size: 0.92rem;
    margin-bottom: 32px;
  }

  .btn {
    padding: 14px 30px;
    font-size: 0.82rem;
  }

  .section__headline {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .section__headline--large {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .bento__card {
    min-height: 340px;
    padding: 28px;
  }

  .bento__card-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .bento__bottom {
    padding: 50px 0 20px;
  }

  .bento__bottom-text {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .footer__links {
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero__scroll-indicator {
    bottom: 24px;
  }
}
