/* =========================================================
   Nitya & Aziz - components.css
   Hero, event scenes, motifs, rituals, cards, FAQ, tree
   ========================================================= */

/* ============ HERO ============ */
/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: calc(var(--nav-h) + 2rem) 1.2rem 3rem;
  overflow: hidden;
  background: #5A7AAA;
  isolation: isolate;
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2; max-width: min(62rem, 94vw);
  opacity: 0; transform: translateY(16px);
  transition: opacity 1.4s cubic-bezier(.22,1,.36,1), transform 1.4s cubic-bezier(.22,1,.36,1);
}
.hero.tree-ready .hero__inner { opacity: 1; transform: none; }
.hero__scroll {
  position: absolute; bottom: clamp(2rem, 5vh, 3.5rem); left: 50%; transform: translateX(-50%);
  z-index: 2; opacity: 0; transition: opacity 1s ease 0.6s;
}
.hero.tree-ready .hero__scroll { opacity: 1; }

.hero__eyebrow {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.35em; font-weight: 600;
  font-size: clamp(0.68rem, 0.55rem + 0.4vw, 0.82rem); color: rgba(42,26,10,0.45);
  margin-bottom: 1.6rem;
}
.hero__names {
  font-size: clamp(3.6rem, 2rem + 12vw, 9.5rem); font-style: italic; line-height: 0.92;
  margin: 0; letter-spacing: -0.02em; white-space: nowrap;
  color: #2A1208;
  text-shadow: 0 0 40px rgba(240,200,120,0.5), 0 0 80px rgba(230,180,90,0.3), 0 0 140px rgba(220,170,80,0.2);
}
.hero .amp { color: #F5F0EB; text-shadow: 0 1px 2px rgba(0,0,0,0.15); }
.hero__rule {
  width: 48px; height: 1px; margin: 1.6rem auto;
  background: linear-gradient(90deg, transparent, rgba(42,26,10,0.3), transparent);
}
.hero__meta {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.18em; font-weight: 500;
  font-size: clamp(0.82rem, 0.7rem + 0.45vw, 1rem); color: rgba(42,26,10,0.55);
}
.hero__scroll a,
a.hero__scroll {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(42,26,10,0.2);
  color: rgba(42,26,10,0.4); font-size: 1rem;
  transition: border-color 0.3s, color 0.3s;
}
.hero__scroll:hover { border-color: rgba(42,26,10,0.5); color: rgba(42,26,10,0.8); }
.hero__scroll span { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* Nav over sunrise hero */
body.hero-visible .nav {
  background: rgba(74,104,152,0.4);
  border-bottom-color: rgba(255,255,255,0.08);
}
body.hero-visible .nav::before { backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
body.hero-visible .nav__names { color: #FFF8F0; }
body.hero-visible .nav__links a { color: rgba(255,248,240,0.75); }
body.hero-visible .nav__links a:hover { color: #FFF8F0; opacity: 1; }
body.hero-visible.menu-open .nav__links a { color: var(--on); }
body.hero-visible.menu-open .nav__links a:hover { color: var(--accent-2); }
body.hero-visible.menu-open .nav__toggle span { background: var(--on); }
body.hero-visible .nav .amp { color: rgba(255,248,240,0.5); }
body.hero-visible .nav__toggle span { background: #FFF8F0; }

/* ============ SECTION INTRO (Events header) ============ */
.section-head { text-align: center; padding: clamp(4rem, 10vw, 7rem) 1rem 1rem; }
.section-head h2 { font-size: clamp(2.4rem, 1.6rem + 5vw, 4.4rem); font-style: italic; }
.section-head p { color: var(--on); font-size: 1.12rem; margin-top: 0.4rem; }

/* At-a-glance schedule on home */
.glance { width: min(540px, 92vw); margin: 2rem auto 0; }
.glance li a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 0.4rem; border-bottom: 1px solid var(--card-line);
  transition: padding 240ms ease, background 240ms ease;
}
.glance li:first-child a { border-top: 1px solid var(--card-line); }
.glance li a:hover { padding-left: 1rem; background: color-mix(in srgb, var(--accent-2) 8%, transparent); }
.glance__name { font-family: var(--display); font-style: italic; font-size: 1.5rem; color: var(--accent); }
.glance__date {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.95rem; color: var(--on); white-space: nowrap;
}

/* ============ Events password gate ============ */
.events-content { display: none; }
body.unlocked .events-content { display: block; }
body.unlocked .gate { display: none; }
/* "guest" tier sees only the last 3 events; "family" tier sees all */
body.access-guest #haldi,
body.access-guest #mehendi,
body.access-guest #pellikuthuru { display: none !important; }
body.access-guest .glance li[data-tier="family"] { display: none; }

.gate { min-height: 76vh; display: grid; place-items: center; padding: calc(var(--nav-h) + 3rem) 1.2rem 4rem; }
.gate__card {
  width: min(440px, 100%); background: var(--card); border: 1px solid var(--card-line);
  border-radius: 24px; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  padding: clamp(2rem, 5vw, 3rem); text-align: center; box-shadow: 0 30px 70px -40px rgba(0,0,0,0.5);
}
.gate__lock { width: 46px; height: 46px; margin: 0 auto 0.9rem; color: var(--accent-2); }
.gate__lock svg { width: 100%; height: 100%; }
.gate__title { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); font-style: italic; margin-top: 0.3rem; }
.gate__hint { color: var(--on-soft); margin: 0.5rem auto 1.5rem; max-width: 34ch; }
.gate__form { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.gate__input {
  flex: 1 1 200px; min-width: 0; font-family: var(--body); font-size: 1.05rem;
  padding: 0.72rem 1.1rem; border: 1px solid var(--card-line); border-radius: 999px;
  background: color-mix(in srgb, #fff 55%, var(--bg-2)); color: var(--on); text-align: center;
}
.gate__input:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.gate__btn { flex: 0 0 auto; cursor: pointer; }
.gate__error { color: #b3261e; margin-top: 1rem; font-size: 0.98rem; }
@media (max-width: 460px) {
  .gate__form { flex-direction: column; }
  .gate__btn { width: 100%; justify-content: center; }
}

/* ============ EVENT SCENES ============ */
.scene {
  min-height: 100svh; display: grid; place-items: center;
  padding: calc(var(--nav-h) + 2.5rem) 1.2rem 3rem;
}
.scene__card {
  position: relative; width: min(720px, 100%); overflow: hidden;
  background: var(--card); border: 1px solid var(--card-line); border-radius: 26px;
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  padding: clamp(2.4rem, 5.5vw, 3.6rem); text-align: center;
  box-shadow: 0 30px 70px -40px rgba(0,0,0,0.5);
}
/* faded number sits as a corner accent (not behind the centered motif) */
.scene__ghost {
  position: absolute; top: -0.08em; right: 0.1em; left: auto; transform: none;
  font-family: var(--display); font-style: italic; font-weight: 600;
  font-size: clamp(4.5rem, 2.5rem + 11vw, 9.5rem); line-height: 1.05;
  color: color-mix(in srgb, var(--accent-2) 16%, transparent); z-index: 0; pointer-events: none;
}
.scene__card > *:not(.scene__ghost) { position: relative; z-index: 1; }
.scene__motif { height: clamp(96px, 17vw, 140px); margin: 0 auto 1.1rem; color: var(--accent-2); display: flex; align-items: center; justify-content: center; }
.scene__motif svg { height: 100%; width: auto; margin-inline: auto; }
.scene__name { margin-bottom: 0.5rem; }
.scene__title { font-size: clamp(2.6rem, 1.8rem + 5vw, 4.4rem); font-style: italic; }
.scene__tagline { font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--on-soft); margin-top: 0.2rem; }

/* facts: When / Where / Wear */
.facts { margin: 1.8rem auto 0; max-width: 30rem; text-align: left; }
.fact { display: flex; gap: 1rem; padding: 0.9rem 0; border-top: 1px solid var(--card-line); }
.fact:last-child { border-bottom: 1px solid var(--card-line); }
.fact dt {
  flex: 0 0 5.2rem; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.74rem; color: var(--accent-2); padding-top: 0.32em;
}
.fact dd { flex: 1; font-size: 1.08rem; color: var(--on); }
.fact dd .muted { color: var(--on-soft); font-style: italic; }
.fact dd a { border-bottom: 1px solid color-mix(in srgb, var(--accent-2) 50%, transparent); }

.scene__cta { margin-top: 1.9rem; }

/* ============ MOTIF: string lights (Mehendi) ============ */
.lights { display: flex; justify-content: center; gap: 1.7rem; height: clamp(96px, 17vw, 140px); align-items: center; }
.lights i {
  width: 17px; height: 17px; border-radius: 50%; background: var(--accent-2); position: relative;
  box-shadow: 0 0 20px var(--accent-2); animation: twinkle 2.6s ease-in-out infinite;
}
.lights i::before { content: ""; position: absolute; bottom: 100%; left: 50%; width: 1.5px; height: 22px; background: color-mix(in srgb, var(--accent-2) 50%, transparent); }
.lights i:nth-child(2){ animation-delay: .4s } .lights i:nth-child(3){ animation-delay: .9s }
.lights i:nth-child(4){ animation-delay: 1.3s } .lights i:nth-child(5){ animation-delay: .2s }
@keyframes twinkle { 0%,100% { opacity: .45; } 50% { opacity: 1; } }

/* ============ Ceremony key-times ============ */
.keytimes { width: var(--read); margin: 0 auto clamp(2rem, 5vw, 3rem); text-align: center; }
.keytimes > .label { display: block; margin-bottom: 1.1rem; }
.keytimes__list {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: 1rem clamp(1.6rem, 5vw, 3.4rem);
}
.keytime { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; position: relative; min-width: 7.5rem; }
.keytime + .keytime::before {
  content: ""; position: absolute; left: calc(-1 * clamp(0.8rem, 2.5vw, 1.7rem)); top: 6px; bottom: 6px; width: 1px;
  background: color-mix(in srgb, var(--accent-2) 45%, transparent);
}
.keytime__t { font-family: var(--display); font-style: italic; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); color: var(--accent); line-height: 1; }
.keytime__e { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; color: var(--on); }
.keytimes__note { margin: 1.6rem auto 0; max-width: 56ch; color: var(--on-soft); font-size: 1.02rem; line-height: 1.55; }
.keytimes__note strong { color: var(--accent); font-weight: 600; }
.keytimes__note a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent-2) 55%, transparent); white-space: nowrap; }

/* ============ PAGE: rituals (ceremony) ============ */
.rituals { width: var(--read); margin: 1rem auto clamp(3rem,8vw,6rem); position: relative; list-style: none; padding-left: 0; }
.rituals::before {
  content: ""; position: absolute; left: 25px; top: 30px; bottom: 80px; width: 2px;
  background: linear-gradient(var(--accent-2), color-mix(in srgb, var(--accent-2) 12%, transparent));
}
.ritual { position: relative; padding: 0 0 3rem 4.8rem; min-height: 56px; }
.ritual__num {
  position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-2);
  border: 2px solid var(--accent-2); color: var(--accent);
  font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1;
  font-variant-numeric: lining-nums; box-shadow: 0 4px 14px -8px rgba(0,0,0,0.4); z-index: 1;
}
.ritual__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.55rem; padding-top: 0.55rem; }
.chip {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.66rem;
  color: var(--accent); background: var(--chip-bg); border: 1px solid var(--card-line);
  padding: 0.28em 0.85em; border-radius: 999px;
}
.ritual__title { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); }
.ritual__sub { font-family: var(--display); font-style: italic; color: var(--accent-2); font-size: 1.12rem; margin: 0.1rem 0 0.7rem; }
.ritual__text { color: var(--on); }
.ritual__text + .ritual__text { margin-top: 0.8rem; }
.ritual__text a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent-2) 55%, transparent); }

.blessing {
  text-align: center; width: var(--read); margin: 0 auto clamp(3rem,9vw,6rem); padding-top: 1rem;
}
.blessing p { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--on); }
.blessing strong { color: var(--accent); font-weight: 600; }
.blessing__seal { margin-top: 1.4rem; text-transform: uppercase; letter-spacing: 0.3em; color: var(--accent-2); font-family: var(--display); font-size: 0.84rem; }

/* ============ CARDS (transport / activities) ============ */
.band { width: var(--shell); margin: 0 auto; padding: clamp(2rem,5vw,3.5rem) 0; }
.band > .label { display: block; text-align: center; }
.band__title { text-align: center; font-size: clamp(1.9rem,1.4rem+2.4vw,2.8rem); font-style: italic; margin: 0.2rem 0 0.4rem; }
.band__intro { text-align: center; color: var(--on-soft); max-width: 52ch; margin: 0 auto 2rem; }
.cards { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.card {
  --cardpad: clamp(1.9rem, 2.4vw, 2.5rem);
  background: var(--card); border: 1px solid var(--card-line); border-radius: 22px;
  padding: var(--cardpad); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; flex-direction: column; gap: 0.6rem; overflow: hidden;
  transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -34px rgba(0,0,0,0.55); border-color: color-mix(in srgb, var(--accent-2) 55%, transparent); }
.card__media {
  margin: calc(-1 * var(--cardpad)) calc(-1 * var(--cardpad)) 1.1rem;
  height: clamp(155px, 20vw, 195px); overflow: hidden;
  border-radius: 21px 21px 0 0; background: color-mix(in srgb, var(--accent-2) 18%, transparent);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__kicker { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.82rem; color: var(--accent-2); }
.card h3 { font-size: 1.75rem; }
.card p { color: var(--on); font-size: 1.13rem; line-height: 1.6; flex: 1; }
.card .linkrow { align-self: flex-start; margin-top: 0.5rem; font-size: 1.08rem; }
.card__rate { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-top: 1px dashed var(--card-line); color: var(--on); font-size: 1.1rem; }
.card__rate:first-of-type { border-top: 0; }
.card__rate b { color: var(--accent); font-weight: 600; font-size: 1.18rem; }

/* ============ FAQ ============ */
.faq { width: var(--read); margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--card-line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.4rem 2.6rem 1.4rem 0; position: relative;
  font-family: var(--display); font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.7rem); color: var(--accent); font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 0.1rem; top: 50%; transform: translateY(-50%);
  color: var(--accent-2); font-size: 1.9rem; transition: transform 300ms ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { padding: 0 0 1.5rem; color: var(--on); font-size: 1.18rem; line-height: 1.7; max-width: 62ch; }
.faq__a a { color: var(--accent); border-bottom: 1px solid var(--accent-2); }

/* ============ WEDDING TREE ============ */
.tree-wrap { width: clamp(280px, 54vw, 460px); margin: 0.4rem auto 0.8rem; }
.tree { width: 100%; height: auto; overflow: visible; }
.tree .branch {
  fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1700ms cubic-bezier(.4,0,.2,1);
}
.is-in .tree .branch { stroke-dashoffset: 0; }
.tree .leaf {
  transform-box: fill-box; transform-origin: center; transform: scale(0);
  transition: transform 700ms cubic-bezier(.2,.8,.3,1.4);
}
.is-in .tree .leaf { transform: scale(1); }
.tree .leaf:nth-child(odd) { transition-delay: 900ms; }
.tree .leaf:nth-child(even) { transition-delay: 1150ms; }
.tree .bloom { transition-delay: 1300ms; }
@media (prefers-reduced-motion: reduce) {
  .tree .branch { stroke-dashoffset: 0; transition: none; }
  .tree .leaf { transform: scale(1); transition: none; }
}

/* ============ small helpers ============ */
.center { text-align: center; }
.spacer-lg { height: clamp(3rem, 8vw, 6rem); }
@media (max-width: 540px) {
  .fact { flex-direction: column; gap: 0.15rem; }
  .fact dt { padding-top: 0; }
}
