/* =========================================================
   LUXEEVENTS — HOME PAGE STYLES
   ========================================================= */

/* -----------------------------
   ROOT VARIABLES
------------------------------ */
:root {
  --bg-dark: #0B0B0B;
  --bg-dark-2: #151515;
  --bg-light: #F5F1EA;
  --text-light: #F5F1EA;
  --text-muted: #B8B1A6;
  --accent: #C8A96B;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Manrope', sans-serif;

  --section-pad-y: clamp(72px, 11vw, 160px);
  --section-pad-x: clamp(24px, 6vw, 96px);

  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

/* -----------------------------
   RESET
------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.01em;
}

p { margin: 0; }

button {
  font-family: inherit;
  cursor: pointer;
}

.sr-only-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* -----------------------------
   SHARED / UTILITY
------------------------------ */
.label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.label--light { color: var(--accent); }

.section-heading {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  color: var(--text-light);
  max-width: 16ch;
}

.section-heading--light { color: var(--text-light); }

.section-sub {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background-color 0.4s var(--ease-premium), color 0.4s var(--ease-premium), border-color 0.4s var(--ease-premium);
  white-space: nowrap;
}

.btn--solid {
  background: var(--accent);
  color: var(--bg-dark);
  border: 1px solid var(--accent);
}
.btn--solid:hover {
  background: transparent;
  color: var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(245, 241, 234, 0.35);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--light { border-color: rgba(245,241,234,0.5); }

/* -----------------------------
   1. HERO
------------------------------ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--section-pad-x);
  padding-bottom: clamp(56px, 8vw, 100px);
  overflow: hidden;
}

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

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,0.35) 0%, rgba(11,11,11,0.55) 55%, rgba(11,11,11,0.88) 100%);
  opacity: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
}

.hero__heading {
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  line-height: 1.05;
  color: var(--text-light);
}

.hero__line {
  display: block;
  overflow: hidden;
}

.hero__line > span,
.hero__line {
  transform: translateY(0);
}

.hero__sub {
  margin-top: 28px;
  max-width: 46ch;
  font-size: 1.08rem;
  color: var(--text-muted);
  opacity: 0;
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  right: var(--section-pad-x);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

/* -----------------------------
   2. INTRODUCTION
------------------------------ */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 100px);
  padding: var(--section-pad-y) var(--section-pad-x);
  background: var(--bg-dark);
}

.intro__heading {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.18;
  max-width: 14ch;
}

.intro__body {
  margin-top: 26px;
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.intro__image-mask {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  clip-path: inset(6% 6% 6% 6%);
}

.intro__image-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

/* -----------------------------
   3. SERVICES
------------------------------ */
.services {
  padding: var(--section-pad-y) var(--section-pad-x);
  background: var(--bg-dark-2);
}

.services__intro {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
}

.service-card__media {
  position: absolute;
  inset: 0;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-premium);
}

.service-card:hover .service-card__media img,
.service-card:focus-visible .service-card__media img {
  transform: scale(1.06);
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,0.05) 30%, rgba(11,11,11,0.85) 100%);
  transition: background 0.5s var(--ease-premium);
}

.service-card:hover .service-card__overlay {
  background: linear-gradient(180deg, rgba(11,11,11,0.15) 20%, rgba(11,11,11,0.92) 100%);
}

.service-card__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  transition: transform 0.6s var(--ease-premium);
}

.service-card:hover .service-card__content,
.service-card:focus-visible .service-card__content {
  transform: translateY(-6px);
}

.service-card__index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.service-card__title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--text-light);
}

.service-card__desc {
  margin-top: 10px;
  max-width: 34ch;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.service-card__arrow {
  display: inline-block;
  margin-top: 18px;
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.4s var(--ease-premium);
}

.service-card:hover .service-card__arrow,
.service-card:focus-visible .service-card__arrow {
  transform: translateX(8px);
}

/* -----------------------------
   4. FEATURED EXPERIENCE
------------------------------ */
.featured {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: var(--section-pad-x);
  overflow: hidden;
}

.featured__media {
  position: absolute;
  inset: -10% 0;
  z-index: 0;
}

.featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.featured__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11,11,11,0.9) 10%, rgba(11,11,11,0.25) 60%);
}

.featured__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding-bottom: clamp(40px, 8vw, 90px);
}

.featured__heading {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.14;
}

.featured__body {
  margin-top: 22px;
  max-width: 48ch;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.featured__content .btn { margin-top: 32px; }

/* -----------------------------
   5. WHY LUXEEVENTS
------------------------------ */
.why {
  padding: var(--section-pad-y) var(--section-pad-x);
  background: var(--bg-dark);
  border-top: 1px solid rgba(245,241,234,0.08);
}

.why__intro { max-width: 640px; margin-bottom: clamp(40px, 6vw, 72px); }

.why__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid rgba(245,241,234,0.14);
}

.why__item {
  padding: 32px 8px 0 0;
  border-bottom: 1px solid rgba(245,241,234,0.14);
}

.why__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 18px;
}

.why__label {
  display: block;
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 16ch;
}

/* -----------------------------
   6. SIGNATURE MOMENTS
------------------------------ */
.gallery {
  padding: var(--section-pad-y) var(--section-pad-x);
  background: var(--bg-dark-2);
}

.gallery > .label {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 140px;
  grid-auto-flow: row dense;
  gap: 14px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  grid-column: span 2;
  grid-row: span 2;
  border-radius: 2px;
}

.gallery__item--tall { grid-row: span 3; }
.gallery__item--wide { grid-column: span 3; grid-row: span 2; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-premium);
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.07);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: linear-gradient(180deg, rgba(11,11,11,0) 55%, rgba(11,11,11,0.75) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-premium);
}

.gallery__item:hover .gallery__overlay,
.gallery__item:focus-visible .gallery__overlay {
  opacity: 1;
}

.gallery__overlay span {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* -----------------------------
   7. OUR APPROACH
------------------------------ */
.approach {
  padding: var(--section-pad-y) var(--section-pad-x);
  background: var(--bg-dark);
}

.approach__list {
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid rgba(245,241,234,0.14);
}

.approach__item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(245,241,234,0.14);
}

.approach__number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
}

.approach__text h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  color: var(--text-light);
  margin-bottom: 10px;
}

.approach__text p {
  color: var(--text-muted);
  max-width: 52ch;
  font-size: 1rem;
}

/* -----------------------------
   8. TESTIMONIAL
------------------------------ */
.testimonial {
  padding: var(--section-pad-y) var(--section-pad-x);
  background: var(--bg-dark-2);
  text-align: center;
}

.testimonial__slider {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  min-height: 160px;
}

.testimonial__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease-premium);
}

.testimonial__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.testimonial__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.4;
  color: var(--text-light);
}

.testimonial__meta {
  margin-top: 24px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.testimonial__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.testimonial__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245,241,234,0.3);
  transition: background 0.4s var(--ease-premium);
}

.testimonial__dots span.is-active {
  background: var(--accent);
}

/* -----------------------------
   9. FINAL CTA
------------------------------ */
.final-cta {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--section-pad-x);
  overflow: hidden;
}

.final-cta__media {
  position: absolute;
  inset: 0;
}

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

.final-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,0.55) 0%, rgba(11,11,11,0.82) 100%);
}

.final-cta__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.final-cta__heading {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.08;
}

.final-cta__body {
  margin-top: 24px;
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.final-cta__content .btn { margin-top: 34px; }

.final-cta__categories {
  margin-top: 30px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* -----------------------------
   SCROLL REVEAL BASE STATES
   (JS toggles .is-visible; CSS provides the fallback/initial state)
------------------------------ */
.reveal-up {
  opacity: 0;
  transform: translateY(36px);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s var(--ease-premium), transform 0.9s var(--ease-premium);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: 1fr; }
  .why__list { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-auto-rows: 120px; }
}

@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
  }
  .intro__media { order: -1; }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --section-pad-x: 20px;
  }

  .hero {
    justify-content: flex-end;
    padding-bottom: 64px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    justify-content: center;
  }

  .hero__scroll {
    right: 20px;
    bottom: 24px;
  }

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

  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery__item,
  .gallery__item--tall,
  .gallery__item--wide {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 4 / 3;
  }

  .approach__item {
    grid-template-columns: 60px 1fr;
    gap: 18px;
  }

  .featured, .final-cta {
    min-height: 90vh;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero__img { transform: none; }

  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-card__media img,
  .gallery__item img,
  .service-card__content,
  .service-card__arrow {
    transition: none;
  }
}
