/* —— Variables (cool slate, sea mist, plum accent) —— */
:root {
  --cream: #e4ecf2;
  --blush: #cfd9e6;
  --blush-deep: #7a9aad;
  --gold: #2f4f6f;
  --gold-soft: #7eb8c9;
  --ink: #0e141c;
  --ink-muted: #4a5d6e;
  --rose: #8b4f6e;
  --white: #f5f9fc;
  --shadow: rgba(14, 20, 28, 0.1);
  --line: rgba(47, 79, 111, 0.22);
  --haldi: #b45309;
  --haldi-bg: linear-gradient(145deg, #fffbeb 0%, #fef3c7 45%, #fde68a 100%);
  --haldi-highlight-bg: #f59e0b;
  --haldi-highlight-text: #451a03;
  --muhurtam: #0c4a6e;
  --muhurtam-bg: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 40%, #bae6fd 100%);
  --muhurtam-highlight-bg: #0369a1;
  --muhurtam-highlight-text: #f0f9ff;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-sans: "Outfit", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4rem;
}

/* Anchor targets clear fixed header (Lenis + native) */
#hero,
#story,
#details,
#venue,
#countdown,
#footer {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
  height: auto;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

html.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

html.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  position: relative;
  z-index: 10;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--rose);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* —— Petals —— */
.petals {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.petals span {
  position: absolute;
  width: 10px;
  height: 14px;
  background: linear-gradient(
    135deg,
    rgba(126, 184, 201, 0.55),
    rgba(245, 249, 252, 0.4)
  );
  border-radius: 50% 0 50% 50%;
  opacity: 0.4;
  animation: petal-float 18s linear infinite;
}

.petals span:nth-child(1) {
  left: 8%;
  animation-delay: 0s;
  animation-duration: 22s;
}
.petals span:nth-child(2) {
  left: 22%;
  animation-delay: -4s;
  animation-duration: 19s;
}
.petals span:nth-child(3) {
  left: 38%;
  animation-delay: -8s;
}
.petals span:nth-child(4) {
  left: 55%;
  animation-delay: -2s;
  animation-duration: 24s;
}
.petals span:nth-child(5) {
  left: 72%;
  animation-delay: -12s;
}
.petals span:nth-child(6) {
  left: 88%;
  animation-delay: -6s;
  animation-duration: 21s;
}
.petals span:nth-child(7) {
  left: 15%;
  top: 40%;
  animation-delay: -10s;
  animation-duration: 26s;
}
.petals span:nth-child(8) {
  left: 65%;
  top: 60%;
  animation-delay: -14s;
}

@keyframes petal-float {
  0% {
    transform: translateY(110vh) rotate(0deg) scale(1);
  }
  100% {
    transform: translateY(-20vh) rotate(360deg) scale(0.6);
  }
}

/* —— Music toggle —— */
.music-toggle {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(245, 249, 252, 0.94);
  backdrop-filter: blur(8px);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 28px var(--shadow);
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s;
}

.music-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(14, 20, 28, 0.12);
}

.music-toggle[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--gold);
}

.music-toggle__icon {
  font-size: 1rem;
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  min-height: var(--header-h);
  background: linear-gradient(
    to bottom,
    rgba(228, 236, 242, 0.96),
    rgba(228, 236, 242, 0.72),
    transparent
  );
  transition: background 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(245, 249, 252, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header__brand {
  font-family: var(--font-script);
  font-size: 1.75rem;
  color: var(--ink);
  text-decoration: none;
}

.site-header__nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-header__nav a {
  color: var(--ink-muted);
  text-decoration: none;
}

.site-header__nav a:hover {
  color: var(--gold);
}

@media (min-width: 900px) {
  .site-header__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
    max-width: min(72vw, 52rem);
  }
  .site-header__menu {
    display: none;
  }
}

@media (min-width: 900px) and (max-width: 1249px) {
  .site-header__nav {
    font-size: 0.65rem;
    gap: 0.55rem;
    letter-spacing: 0.05em;
  }
}

.site-header__menu {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0;
}

.site-header__menu span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s;
}

.site-header__menu.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.site-header__menu.is-open span:nth-child(2) {
  opacity: 0;
}
.site-header__menu.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  z-index: 35;
  background: rgba(228, 236, 242, 0.98);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
}

.mobile-drawer[hidden] {
  display: none !important;
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mobile-drawer a {
  color: var(--ink);
  text-decoration: none;
}

/* —— Section navigation (desktop) —— */
.section-nav {
  position: fixed;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 42;
  display: none;
}

@media (min-width: 1100px) {
  .section-nav {
    display: block;
  }
}

.section-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.section-nav__link {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(245, 249, 252, 0.7);
  transition:
    transform 0.35s var(--ease-out),
    background 0.35s,
    border-color 0.35s;
  position: relative;
}

.section-nav__link span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.section-nav__link:hover,
.section-nav__link:focus-visible {
  transform: scale(1.2);
  border-color: var(--gold);
  outline: none;
}

.section-nav__link.is-active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(47, 79, 111, 0.22);
}

.section-nav__link::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: rgba(245, 249, 252, 0.95);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(47, 79, 111, 0.2);
  transition:
    opacity 0.25s,
    transform 0.25s var(--ease-out);
}

.section-nav__link:hover::after,
.section-nav__link:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* —— Parallax sections —— */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  inset: -12% -5%;
  will-change: transform;
  pointer-events: none;
}

.parallax-layer--deep {
  background:
    radial-gradient(
      ellipse 80% 50% at 50% 0%,
      rgba(200, 214, 228, 0.9),
      transparent
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 100%,
      rgba(126, 184, 201, 0.35),
      transparent
    ),
    linear-gradient(180deg, var(--cream) 0%, var(--blush) 100%);
  z-index: 0;
}

.parallax-layer--mid {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
}

.parallax-layer--front {
  z-index: 2;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.4) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 85% 70%,
      rgba(47, 79, 111, 0.08) 0%,
      transparent 35%
    );
}

.parallax-layer--section {
  background: linear-gradient(
    165deg,
    var(--cream) 0%,
    var(--blush) 45%,
    var(--white) 100%
  );
  opacity: 0.95;
}

/* Mandala (CSS radial pattern) */
.mandala {
  width: min(90vw, 520px);
  height: min(90vw, 520px);
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      transparent 0deg 8deg,
      rgba(47, 79, 111, 0.06) 8deg 16deg
    ),
    radial-gradient(
      circle,
      transparent 35%,
      rgba(139, 79, 110, 0.08) 36%,
      transparent 37%
    ),
    radial-gradient(
      circle,
      transparent 55%,
      rgba(47, 79, 111, 0.1) 56%,
      transparent 58%
    );
  mask-image: radial-gradient(circle, black 45%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, black 45%, transparent 70%);
}

.mandala--hero {
  animation: mandala-spin 120s linear infinite;
}

@keyframes mandala-spin {
  to {
    transform: rotate(360deg);
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hero__top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 1.25rem) 1.5rem 1.5rem;
  /* Mobile: ~75% of viewport for the main hero band */
  min-height: 75vh;
  min-height: 75dvh;
  min-height: 75svh;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero__top {
    min-height: min(68dvh, 640px);
  }
}

.hero__stack {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__layer--bg {
  z-index: 0;
  background:
    radial-gradient(
      ellipse 140% 90% at 50% -20%,
      rgba(200, 214, 228, 0.95),
      transparent 55%
    ),
    radial-gradient(
      ellipse 80% 60% at 0% 100%,
      rgba(126, 184, 201, 0.35),
      transparent 50%
    ),
    radial-gradient(
      ellipse 70% 50% at 100% 80%,
      rgba(160, 188, 208, 0.4),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      var(--white) 0%,
      var(--blush) 55%,
      var(--cream) 100%
    );
}

.hero__layer--floral-mid {
  z-index: 1;
  opacity: 0.55;
  background:
    radial-gradient(
      ellipse 100px 70px at 12% 28%,
      rgba(160, 188, 208, 0.55),
      transparent
    ),
    radial-gradient(
      ellipse 90px 60px at 88% 22%,
      rgba(126, 184, 201, 0.45),
      transparent
    ),
    radial-gradient(
      ellipse 80px 90px at 70% 75%,
      rgba(200, 214, 228, 0.5),
      transparent
    ),
    radial-gradient(
      ellipse 70px 50px at 25% 82%,
      rgba(47, 79, 111, 0.12),
      transparent
    );
}

.hero__layer--mandala {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.42;
}

.hero__layer--floral-front {
  z-index: 3;
  opacity: 0.4;
  background:
    radial-gradient(
      ellipse 60px 45px at 8% 60%,
      rgba(255, 255, 255, 0.5),
      transparent
    ),
    radial-gradient(
      ellipse 50px 40px at 92% 55%,
      rgba(255, 255, 255, 0.35),
      transparent
    ),
    radial-gradient(
      ellipse 120px 80px at 50% 100%,
      rgba(200, 214, 228, 0.25),
      transparent
    );
}

.hero__layer--vignette {
  z-index: 4;
  background: radial-gradient(
    ellipse 85% 75% at 50% 45%,
    transparent 0%,
    rgba(228, 236, 242, 0.15) 100%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 5;
  max-width: 44rem;
}

.hero__blessing {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1rem;
  font-weight: 500;
}

.hero__names {
  margin: 0 0 1.35rem;
  font-weight: 400;
  line-height: 1.12;
}

.hero__name {
  font-family: var(--font-script);
  font-size: clamp(3.25rem, 13vw, 6rem);
  color: var(--ink);
  display: inline-block;
}

.hero__heart {
  display: inline-block;
  margin: 0 0.35rem;
  font-size: clamp(1.25rem, 4vw, 2rem);
  color: var(--rose);
  vertical-align: middle;
  animation: heart-pulse 2.2s ease-in-out infinite;
}

@keyframes heart-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

.hero-enter {
  opacity: 0;
  transform: translateY(40px);
  animation: hero-in 1.15s var(--ease-out) forwards;
}

.hero-enter--1 {
  animation-delay: 0.12s;
}
.hero-enter--2 {
  animation-delay: 0.42s;
}
.hero-enter--3 {
  animation-delay: 0.78s;
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-enter {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.hero__intro {
  position: relative;
  z-index: 6;
  padding: clamp(1.35rem, 3vw, 2rem) 0 clamp(1.75rem, 4vw, 2.5rem);
  background: linear-gradient(
    180deg,
    rgba(245, 249, 252, 0.92) 0%,
    var(--cream) 100%
  );
  border-top: 1px solid var(--line);
  box-shadow: 0 -20px 50px rgba(14, 20, 28, 0.06);
}

.hero__intro-inner {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
  max-width: 960px;
}

@media (min-width: 768px) {
  .hero__intro-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.hero__photo {
  margin: 0 auto;
  max-width: 100%;
  min-height: clamp(220px, 36vh, 320px);
  max-height: min(42vh, 360px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px var(--shadow);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero__photo {
    margin: 0;
    min-height: clamp(240px, 34vh, 340px);
    max-height: min(40vh, 340px);
  }
}

.hero__photo img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(42vh, 360px);
  object-fit: contain;
  object-position: center center;
  display: block;
}

@media (min-width: 768px) {
  .hero__photo img {
    max-height: min(40vh, 340px);
  }
}

.hero__intro-copy {
  text-align: center;
}

@media (min-width: 768px) {
  .hero__intro-copy {
    text-align: left;
  }
}

.hero__intro-names {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  color: var(--ink);
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.hero__intro-amp {
  font-family: var(--font-serif);
  font-size: 0.55em;
  font-style: italic;
  color: var(--gold-soft);
  margin: 0 0.15em;
  vertical-align: middle;
}

.hero__intro-date {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--gold);
  margin: 0 0 1rem;
  font-weight: 600;
}

.hero__intro-date sup {
  font-size: 0.55em;
  vertical-align: super;
}

.hero__intro-line {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-style: italic;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.6;
  max-width: 28rem;
}

@media (min-width: 768px) {
  .hero__intro-line {
    margin-inline: 0;
  }
}

@media (max-width: 767px) {
  .hero__intro-line {
    margin-inline: auto;
  }
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 1.5rem);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.countdown__unit {
  min-width: 4.25rem;
  padding: 0.65rem 0.5rem;
  background: rgba(245, 249, 252, 0.75);
  border: 1px solid rgba(47, 79, 111, 0.25);
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
}

.countdown__unit span {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.countdown__unit small {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, #1a3349 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(47, 79, 111, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(26, 51, 73, 0.45);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, #1a3349 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(47, 79, 111, 0.35);
  width: 100%;
  max-width: 20rem;
  margin-inline: auto;
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(26, 51, 73, 0.45);
}

/* —— Reveal animations —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  transform: translateX(-32px);
}

.reveal--left.is-visible {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(32px);
}

.reveal--right.is-visible {
  transform: translateX(0);
}

.reveal--up {
  transform: translateY(40px);
}

.reveal--zoom {
  opacity: 0;
  transform: translateY(36px) scale(0.94);
  transition:
    opacity 0.95s var(--ease-out),
    transform 0.95s var(--ease-out);
}

.reveal--zoom.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* —— Couple story —— */
.section--story {
  background: var(--cream);
  min-height: min(52vh, 560px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story__bg {
  z-index: 0;
}

.story__photo-bg {
  z-index: 1;
  background-image: url("../images/triuph.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.78;
}

.story__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Softer centre so artwork reads; slightly stronger edges for depth */
  background:
    radial-gradient(
      ellipse 95% 90% at 50% 48%,
      rgba(245, 249, 252, 0.18) 0%,
      rgba(228, 236, 242, 0.42) 48%,
      rgba(207, 217, 230, 0.72) 100%
    ),
    linear-gradient(
      180deg,
      rgba(228, 236, 242, 0.35) 0%,
      transparent 22%,
      transparent 78%,
      rgba(228, 236, 242, 0.45) 100%
    );
}

.section--story .story__wrap {
  position: relative;
  z-index: 5;
}

/* Frosted card: text stays sharp; edges still show triuph */
.story__panel {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 4.5vw, 2.75rem) clamp(1.35rem, 4vw, 2.25rem);
  text-align: center;
  background: rgba(245, 249, 252, 0.94);
  border: 1px solid rgba(47, 79, 111, 0.14);
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 18px 48px rgba(14, 20, 28, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.section--story .section__head--story {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.section--story .section__head--story .section__petal {
  opacity: 1;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.9));
}

.story__opening {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.story__body {
  max-width: 36rem;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 2.35vw, 1.22rem);
  line-height: 1.85;
  color: var(--ink);
  text-align: center;
}

.story__lead {
  margin: 0 0 1.1rem;
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.75vw, 1.42rem);
  line-height: 1.55;
}

.story__p {
  margin: 0 0 1.35rem;
  font-weight: 500;
  color: rgba(14, 20, 28, 0.88);
}

.story__tagline {
  margin: 0;
  font-size: clamp(1.12rem, 2.5vw, 1.32rem);
  font-weight: 600;
  color: var(--rose);
  line-height: 1.55;
}

.story__tagline em {
  font-style: italic;
}

/* —— Countdown section —— */
.countdown-section {
  background: linear-gradient(
    180deg,
    var(--cream) 0%,
    var(--blush) 45%,
    var(--cream) 100%
  );
}

.countdown-section__inner {
  text-align: center;
}

.countdown--large {
  justify-content: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  flex-wrap: wrap;
}

.countdown--large .countdown__unit {
  min-width: clamp(4.5rem, 14vw, 6.5rem);
  padding: 1rem 0.75rem;
  border-radius: 16px;
  background: rgba(245, 249, 252, 0.88);
  border: 1px solid rgba(47, 79, 111, 0.28);
  box-shadow: 0 12px 40px var(--shadow);
}

.countdown--large .countdown__unit span {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
}

.countdown--large .countdown__unit small {
  font-size: 0.7rem;
}

/* —— Sections —— */
.section {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 1.5rem;
  overflow: hidden;
}

.container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}

.section__head {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section__petal {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  opacity: 0.85;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.section__sub {
  margin: 0;
  font-size: 1.2rem;
  color: var(--ink-muted);
  font-family: var(--font-serif);
  font-style: italic;
}

/* —— Wedding details (two distinct cards) —— */
.details {
  background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 100%);
}

.details-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .details-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.details-grid .detail-card:nth-child(2).reveal {
  transition-delay: 0.14s;
}

.detail-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(14, 20, 28, 0.1);
  min-height: 12rem;
}

.detail-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--haldi), #f59e0b, var(--haldi));
}

.detail-card__accent--muhurtam {
  top: 0;
  bottom: 0;
  left: auto;
  right: 0;
  width: 7px;
  height: auto;
  background: linear-gradient(180deg, #0369a1, var(--muhurtam), #0c4a6e);
}

.detail-card__body {
  position: relative;
  padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1.25rem, 3vw, 1.75rem);
  padding-top: clamp(1.65rem, 3.5vw, 2.1rem);
}

.detail-card--muhurtam .detail-card__body {
  padding-right: clamp(1.65rem, 3.5vw, 2.25rem);
}

.detail-card--haldi {
  background: var(--haldi-bg);
  border: 1px solid rgba(180, 83, 9, 0.28);
}

.detail-card--haldi .detail-card__title {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 2.65rem);
  font-weight: 400;
  color: var(--haldi);
  margin: 0 0 0.65rem;
  line-height: 1.15;
}

.detail-card--muhurtam {
  background: var(--muhurtam-bg);
  border: 1px solid rgba(12, 74, 110, 0.25);
  text-align: right;
}

.detail-card--muhurtam .detail-card__body {
  text-align: right;
}

.detail-card--muhurtam .detail-card__title--muhurtam {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muhurtam);
  margin: 0 0 0.75rem;
}

.detail-card__eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(180, 83, 9, 0.85);
  margin-bottom: 0.35rem;
}

.detail-card__eyebrow--muhurtam {
  color: rgba(12, 74, 110, 0.85);
  letter-spacing: 0.18em;
}

.detail-card__when {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: var(--ink-muted);
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

.detail-card__day {
  font-weight: 600;
  color: var(--ink);
}

.detail-card__time {
  margin: 0;
  line-height: 1.5;
}

.detail-card__highlight {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.95rem;
  border-radius: 10px;
}

.detail-card__highlight--haldi {
  background: var(--haldi-highlight-bg);
  color: var(--haldi-highlight-text);
  box-shadow:
    0 0 0 1px rgba(180, 83, 9, 0.35),
    0 6px 20px rgba(245, 158, 11, 0.35);
}

.detail-card__highlight--muhurtam {
  background: var(--muhurtam-highlight-bg);
  color: var(--muhurtam-highlight-text);
  box-shadow:
    0 0 0 1px rgba(3, 105, 161, 0.4),
    0 6px 22px rgba(3, 105, 161, 0.28);
}

.detail-card__lagna {
  display: inline-block;
  margin-left: 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-style: italic;
  font-weight: 600;
  color: var(--muhurtam);
}

@media (max-width: 767px) {
  .detail-card--muhurtam {
    text-align: left;
  }

  .detail-card--muhurtam .detail-card__body {
    text-align: left;
  }

  .detail-card__lagna {
    display: block;
    margin: 0.5rem 0 0;
    margin-left: 0;
  }
}

/* —— Venue —— */
.venue {
  background: var(--cream);
}

.venue__parallax {
  z-index: 0;
}

.venue__inner {
  z-index: 2;
}

.venue__layout {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.25rem);
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .venue__layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 36%);
    align-items: start;
    gap: clamp(1.5rem, 3vw, 2rem);
  }
}

.venue__col--place {
  min-width: 0;
}

.venue__card {
  background: rgba(245, 249, 252, 0.92);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(47, 79, 111, 0.2);
  box-shadow: 0 20px 50px var(--shadow);
}

.venue__blessing {
  background: rgba(245, 249, 252, 0.94);
  border-radius: 20px;
  border: 1px solid rgba(47, 79, 111, 0.16);
  box-shadow: 0 14px 40px var(--shadow);
  padding: clamp(1.1rem, 2.5vw, 1.5rem) clamp(1rem, 2.5vw, 1.35rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  min-height: 0;
}

.venue__blessing .family__text {
  margin: 0.35rem 0;
}

.venue__highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(47, 79, 111, 0.1);
}

.venue__marker {
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  background: var(--rose);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 6px rgba(139, 79, 110, 0.25);
  animation: marker-glow 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes marker-glow {
  0%,
  100% {
    box-shadow: 0 0 0 6px rgba(139, 79, 110, 0.25);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(139, 79, 110, 0.12);
  }
}

.venue__name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
}

.venue__place {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.venue__map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 200px;
  margin: 0;
  background: var(--blush);
}

.venue__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* —— Family (text block; may appear inside venue) —— */
.family__wrap {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.floral-divider {
  color: var(--gold);
  max-width: 100%;
  margin: 1rem 0;
}

.floral-divider svg {
  width: 100%;
  height: auto;
  display: block;
}

.floral-divider--flip {
  transform: scaleY(-1);
}

.family__lead {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 0.75rem;
}

.family__names {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 500;
  margin: 0 0 1.25rem;
  line-height: 1.45;
}

.family__invite {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--rose);
  margin: 0 0 0.75rem;
}

.family__host {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin: 0;
}

/* —— Footer —— */
.footer {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--ink);
  color: rgba(245, 249, 252, 0.88);
}

.footer__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-style: italic;
  margin: 0 0 0.75rem;
  color: var(--gold-soft);
}

.footer__names {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}
