/* =========================================================
   events.css — Events page in the site's cream editorial
   language: inset-image hero (mirrors the homepage hero),
   alternating corner-marked chapter pairs (mirrors the
   homepage occasions ledger), cream typographic closing CTA.
   Builds on tokens from ../index.css and page.css.
   ========================================================= */

/* =========================================================
   HERO — inset image frame on cream, compresses on scroll
   ========================================================= */
.ev-hero {
  position: relative;
  z-index: 2;
  /* min-height, not height: a fixed height + overflow:hidden silently
     clips the badge/title/lede whenever their combined content is
     taller than the viewport (long lede copy, narrow/short screens).
     min-height keeps the full-bleed look for normal content while
     letting the section grow instead of clipping when it doesn't fit. */
  min-height: max(640px, 100vh);
  background: var(--cream);
  padding: 28px;
  transition: padding-left 0.12s linear, padding-right 0.12s linear;
}

.ev-hero__frame {
  position: relative;
  width: 100%;
  min-height: calc(max(640px, 100vh) - 56px);
  border-radius: 25px;
  isolation: isolate;
  /* Grid, not flex: stacks __visual and __content in the same cell so
     the frame's height is driven by whichever is taller (usually
     __visual's min-height floor, but __content wins and grows the
     frame if its text ever needs more room). Nothing here clips. */
  display: grid;
}

/* Image/darken/overlay layer — this is the ONLY part that clips to
   the rounded corners. Kept separate from __content so long text can
   never be hidden by the image frame's own overflow:hidden. */
.ev-hero__visual {
  grid-row: 1;
  grid-column: 1;
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  isolation: isolate;
}

.ev-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transform: scale(1.04);
  animation: evHeroZoom 14s var(--ease) forwards;
}

@keyframes evHeroZoom {
  to { transform: scale(1); }
}

.ev-hero__darken {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.ev-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.28) 45%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.ev-hero__content {
  grid-row: 1;
  grid-column: 1;
  align-self: end;
  position: relative;
  z-index: 2;
  padding: 0 8vw 10vh;
  max-width: 1100px;
}

.ev-hero__badge {
  display: block;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(243, 237, 225, 0.8);
  margin-bottom: 28px;
}

.ev-hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin: 0 0 32px;
}

.ev-hero__title em {
  font-style: italic;
}

.ev-hero__lede {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.6;
  color: rgba(243, 237, 225, 0.95);
  max-width: 54ch;
  margin: 0;
  background: rgba(20, 21, 15, 0.72);
  padding: 14px 20px;
  border-radius: 14px;
}

/* =========================================================
   CHAPTERS — alternating editorial pairs on cream
   ========================================================= */
.ev-chapters {
  position: relative;
  z-index: 2;
  background: var(--cream);
  padding: 110px 56px 40px;
}

.ev-chapter {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto 110px;
  /* Clears the fixed Jodha Bai/Book now/Menu pills when a link (e.g.
     the homepage's Lotus House card) jumps straight to a chapter's id. */
  scroll-margin-top: 140px;
}

.ev-chapter:last-child {
  margin-bottom: 60px;
}

.ev-chapter--flip .ev-chapter__media {
  order: 2;
}

/* ---- Image frame with the site's corner marks ---- */
.ev-chapter__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: var(--cream-2);
  /* Scroll-in state — events.js adds .is-revealed */
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  will-change: transform, opacity;
}

.ev-chapter__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.14);
  transition: transform 1.3s var(--ease);
  will-change: transform;
}

.ev-chapter.is-revealed .ev-chapter__media {
  opacity: 1;
  transform: translateY(0);
}

.ev-chapter.is-revealed .ev-chapter__media img {
  transform: scale(1.02);
}

.ev-chapter:hover .ev-chapter__media img {
  transform: scale(1.08);
}

/* ---- Text side ---- */
.ev-chapter__body {
  /* Scroll-in state — trails the image slightly */
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s var(--ease) 0.12s,
    transform 0.9s var(--ease) 0.12s;
  will-change: transform, opacity;
}

.ev-chapter.is-revealed .ev-chapter__body {
  opacity: 1;
  transform: translateY(0);
}

.ev-chapter__num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 18px;
}

.ev-chapter__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 24px;
}

.ev-chapter__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.72em;
  color: var(--accent);
  white-space: nowrap;
}

.ev-chapter__text {
  font-family: var(--sans);
  font-size: clamp(34px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.75;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 32px;
}

/* ---- Chapter link — circle arrow + label, mirrors occasions rows ---- */
.ev-chapter__link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: gap 0.35s var(--ease);
}

.ev-chapter__link:hover {
  gap: 20px;
}

.ev-chapter__link-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.ev-chapter__link-arrow svg {
  width: 17px;
  height: 17px;
}

.ev-chapter__link:hover .ev-chapter__link-arrow {
  background: var(--ink);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--cream);
  transform: rotate(45deg);
}

/* =========================================================
   PROPOSAL PHOTOGRAPHY — structured package beneath the
   chapters, editorial two-column layout echoing the
   Photoshoots page's package tiers.
   ========================================================= */
.ev-proposal {
  position: relative;
  z-index: 2;
  background: var(--cream);
  padding: 0 56px 90px;
}

.ev-proposal__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 56px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.ev-proposal.is-revealed .ev-proposal__inner {
  opacity: 1;
  transform: translateY(0);
}

.ev-proposal__tag {
  display: block;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.ev-proposal__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 20px;
}

.ev-proposal__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.ev-proposal__lede {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(32px, 2.8vw, 38px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 42ch;
  margin: 0;
}

.ev-proposal__inc {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.ev-proposal__inc li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(32px, 2.6vw, 36px);
  color: var(--ink);
  line-height: 1.5;
}

.ev-proposal__mark {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--accent);
  margin-top: 3px;
}

.ev-proposal__addons {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.7;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin: 0 0 32px;
}

.ev-proposal__addons-label {
  display: block;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .ev-proposal__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 720px) {
  .ev-proposal {
    padding: 0 20px 60px;
  }
  .ev-proposal__inner {
    padding-top: 40px;
  }
}

/* =========================================================
   SCOPE — the full breadth of occasions hosted, as a clean
   hairline tag grid rather than another photo/text chapter.
   ========================================================= */
.ev-scope {
  position: relative;
  z-index: 2;
  background: var(--cream);
  padding: 0 56px 90px;
}

.ev-scope__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.ev-scope__head {
  max-width: 640px;
  margin-bottom: 48px;
}

.ev-scope__tag {
  display: block;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.ev-scope__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.ev-scope__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.ev-scope__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.ev-scope__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 30px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.ev-scope__item-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ev-scope__item-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink);
  transition: color 0.35s var(--ease);
}

.ev-scope__item-desc {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  transition: color 0.35s var(--ease);
}

.ev-scope__mark {
  flex: 0 0 auto;
  font-size: 13px;
  font-style: normal;
  color: var(--accent);
  margin-top: 6px;
  transition: color 0.35s var(--ease);
}

.ev-scope__item:hover {
  background: var(--ink);
}

.ev-scope__item:hover .ev-scope__item-title {
  color: var(--cream);
}

.ev-scope__item:hover .ev-scope__item-desc {
  color: rgba(243, 237, 225, 0.65);
}

.ev-scope__item:hover .ev-scope__mark {
  color: rgba(243, 237, 225, 0.7);
}

@media (max-width: 720px) {
  .ev-scope {
    padding: 0 20px 60px;
  }
  .ev-scope__head {
    margin-bottom: 32px;
  }
  .ev-scope__grid {
    grid-template-columns: 1fr;
  }
  .ev-scope__item {
    padding: 22px 4px;
  }
  .ev-scope__item-title {
    font-size: 17px;
  }
  .ev-scope__item-desc {
    font-size: 12px;
  }
}

/* =========================================================
   PREVIOUS EVENTS & CELEBRATIONS — small proof-of-work grid
   ========================================================= */
.ev-previous {
  position: relative;
  z-index: 2;
  background: var(--cream);
  padding: 0 56px 60px;
}

.ev-previous__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.ev-previous__tag {
  display: block;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 36px;
}

.ev-previous__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ev-previous__frame {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream-2);
}

.ev-previous__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 720px) {
  .ev-previous {
    padding: 0 20px 44px;
  }
  .ev-previous__tag {
    margin-bottom: 20px;
  }
  .ev-previous__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ev-previous__frame {
    aspect-ratio: 4 / 3;
  }
}

/* =========================================================
   CLOSING CTA — cream, centred, gold pill, lift-off edge
   ========================================================= */
.ev-cta {
  position: relative;
  z-index: 2;
  background: var(--cream);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 60px 80px -50px rgba(0, 0, 0, 0.55);
  padding: 120px 32px 160px;
  text-align: center;
}

.ev-cta__inner {
  max-width: 760px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.ev-cta.is-visible .ev-cta__inner {
  opacity: 1;
  transform: translateY(0);
}

.ev-cta__mark {
  display: block;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 24px;
}

.ev-cta__kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 22px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.ev-cta__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 24px;
}

.ev-cta__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.ev-cta__lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 48px;
}

.ev-cta .cta {
  font-size: 18px;
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .ev-hero__img {
    animation: none;
    transform: scale(1);
  }
  .ev-chapter__media,
  .ev-chapter__media img,
  .ev-chapter__body,
  .ev-cta__inner {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .ev-chapter {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 88px;
  }
  /* Image always leads on small screens regardless of --flip */
  .ev-chapter--flip .ev-chapter__media {
    order: 0;
  }
  .ev-chapter__media {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 720px) {
  .ev-hero {
    padding: 14px;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
  .ev-hero__frame {
    border-radius: 20px;
    /* Floor matches the aspect-ratio square; grid lets it grow taller
       than this if __content's text needs more room than that. */
    min-height: calc(100vw - 28px);
  }
  .ev-hero__content {
    padding: 0 20px 40px;
  }
  .ev-hero__badge {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .ev-hero__title {
    font-size: clamp(24px, 8vw, 36px);
    margin-bottom: 14px;
  }
  .ev-hero__lede {
    display: none;
  }

  .ev-chapters {
    padding: 72px 20px 24px;
  }
  .ev-chapter {
    margin-bottom: 72px;
  }
  .ev-chapter__media {
    border-radius: 18px;
  }
  .ev-chapter__title {
    font-size: clamp(34px, 11vw, 52px);
  }
  .ev-chapter__text {
    max-width: 100%;
    font-size: 16px;
  }
  .ev-chapter__link-arrow {
    width: 38px;
    height: 38px;
  }

  .ev-proposal__tag {
    font-size: 12px;
    letter-spacing: 0.22em;
  }
  .ev-proposal__title {
    font-size: clamp(28px, 9vw, 38px);
  }
  .ev-proposal__lede {
    font-size: 16px;
    max-width: 100%;
  }
  .ev-proposal__inc li {
    font-size: 15px;
  }
  .ev-proposal__addons {
    font-size: 15px;
  }
  .ev-proposal__addons-label {
    font-size: 11px;
  }

  .ev-cta {
    padding: 88px 24px 120px;
    border-radius: 0 0 28px 28px;
  }
  .ev-cta__title {
    font-size: clamp(38px, 12vw, 56px);
  }
}
