:root {
  --primary: #c9edf2;
  --soft: #eef9fb;
  --navy: #28485d;
  --blue: #5d9aaa;
  --gold: #c4a25a;
  --brown: #786156;
  --green: #5f9450;
  --white: #ffffff;
  --text: #405b68;
  --shadow: 0 18px 50px rgba(37, 70, 94, .14);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, .95) 0 18%, transparent 42%),
    linear-gradient(135deg, #fbfefe 0%, var(--primary) 48%, #f5fbf8 100%);
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

h1,
h2,
h3 {
  font-family: "IM Fell Double Pica", serif;
}

.container {
  width: min(1050px, 92%);
  margin: auto;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  background: var(--white);
  text-align: center;
  transition: opacity .7s ease, visibility .7s ease;
}

.loader img {
  width: min(280px, 72vw);
  animation: float 3s ease-in-out infinite;
}

.loader p {
  color: var(--navy);
  letter-spacing: 2px;
}

.loader.is-hidden,
.popup.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(rgba(192, 230, 239, .82), rgba(255, 255, 255, .94)),
    url("assets/watercolor1.png") center top / min(760px, 100%) no-repeat;
  transition: opacity .8s ease, visibility .8s ease;
}

.popup-card {
  width: min(520px, 94vw);
  padding: clamp(26px, 6vw, 42px);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  animation: pop .8s ease both;
}

.popup-flower {
  width: min(340px, 100%);
  margin: auto;
}

.popup-logo {
  width: clamp(190px, 36vw, 260px);
  height: auto;
  margin: 0 auto 18px;
}

.mini {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  padding: 24px;

}

.popup-kicker {
  color: var(--brown);
  letter-spacing: 2px;
  white-space: nowrap;
}

.brand-script {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: "Beau Rivage", cursive;
  font-size: clamp(58px, 12vw, 100px);
  font-weight: 400;
  line-height: .9;
  text-transform: none;
}

.description-brand {
  margin-bottom: 10px;
  color: var(--navy);
  font-family: "Beau Rivage", cursive;
  font-size: clamp(54px, 10vw, 86px);
  font-weight: 400;
  line-height: .9;
}

.popup h1,
.hero h1 {
  margin: 0;
  color: var(--navy);
  font-family: "IM Fell Double Pica", cursive;
  font-size: clamp(72px, 15vw, 142px);
  font-weight: 400;
  line-height: .86;
  text-shadow: 0 8px 26px rgba(37, 70, 94, .12);
}

.popup h2,
.hero h2 {    
  font-family: "Niconne", cursive;
  margin: 4px 0 10px;
  color: var(--blue);
  font-size: clamp(38px, 8vw, 76px);
  letter-spacing: 8px;
  line-height: 1;
}

.meaning,
.subtitle {
  color: #526d7c;
  font-size: clamp(11px, 2vw, 16px);
}

.guest {
  margin: 28px 0;
}

button,
.scroll-btn,
.map-btn {
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.primary-btn,
.scroll-btn,
.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 30px;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(37, 70, 94, .22);
}

.primary-btn:hover,
.scroll-btn:hover,
.map-btn:hover,
.gallery-card:hover {
  transform: translateY(-3px);
}

.music-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99;
  width: 58px;
  height: 58px;
  padding: 0;
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow);
}

.music-btn.is-playing {
  background: var(--navy);
  color: var(--white);
}

.nav-dots {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 90;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}

.nav-dots a {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(37, 70, 94, .35);
  transition: transform .2s ease, background .2s ease;
}

.nav-dots a:hover,
.nav-dots a.is-active {
  transform: scale(1.45);
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 70px 20px;
  text-align: center;
}

.hero-flower {
  width: min(760px, 100%);
  margin: 0 auto 10px;
  animation: float 5s ease-in-out infinite;
}

.event-title {
  margin-bottom: 0;
  color: var(--brown);
  font-size: clamp(30px, 5vw, 48px);
}

.hero-brand {
  margin-top: -4px;
  color: var(--navy);
  font-size: clamp(68px, 13vw, 112px);
}

.subtitle {
  max-width: 760px;
  margin: 12px auto 24px;
  line-height: 1.75;
}

.event-summary {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 26px auto 30px;
}

.event-summary div {
  min-height: 170px;
  padding: 22px 16px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 22px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow);
}

.event-summary span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(95, 148, 80, .13);
  font-size: 22px;
}

.event-summary p {
  margin: 0 0 7px;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
}

.event-summary strong {
  display: block;
  color: var(--navy);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.45;
}

.detail-content.is-collapsed {
  display: none;
}

section {
  padding: 80px 0;
}

.glass {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

h3 {
  margin: 0 0 24px;
  text-align: center;
  color: var(--navy);
  font-size: clamp(32px, 5vw, 50px);
}

.section-title {
  font-family: "Poppins", sans-serif;
  color: var(--green);
  font-size: clamp(16px, 2.6vw, 22px);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.quote p,
.map-section p {
  max-width: 850px;
  margin: 0 auto 18px;
  text-align: center;
  line-height: 1.9;
  font-size: clamp(16px, 2vw, 18px);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  min-height: 250px;
  display: grid;
  align-content: center;
  padding: 34px 24px;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 16px 40px rgba(37, 70, 94, .10);
}

.info-card span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--green);
  font-weight: 700;
}

.info-card h4 {
  margin: 22px 0 14px;
  color: var(--navy);
  font-size: 22px;
}

.info-card p {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
}

.countdown-section {
  padding-top: 40px;
}

.countdown-card {
  width: min(640px, 92%);
  margin: auto;
  padding: clamp(30px, 7vw, 50px);
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(239, 250, 253, .84));
  box-shadow: 0 24px 60px rgba(37, 70, 94, .16);
  backdrop-filter: blur(12px);
}

.countdown-card h3 {
  margin: 0 0 28px;
  text-align: center;
  color: var(--green);
  font-family: "Poppins", sans-serif;
  font-size: clamp(16px, 2.6vw, 22px);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  text-align: center;
  max-width: 520px;
  margin: auto;
}

.countdown div {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 20px 16px;
  border: 1px solid rgba(139, 90, 53, .10);
  border-radius: 28px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 12px 26px rgba(37, 70, 94, .08);
}

.countdown strong {
  display: block;
  color: var(--green);
  font-family: "Poppins", sans-serif;
  font-size: clamp(34px, 7vw, 50px);
  font-weight: 700;
  line-height: 1;
}

.countdown span {
  display: block;
  margin-top: 14px;
  color: var(--brown);
  font-family: "Poppins", sans-serif;
  font-size: clamp(13px, 2.4vw, 17px);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.timeline-card {
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.timeline-list {
  max-width: 780px;
  margin: auto;
  position: relative;
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(37, 70, 94, .10);
  border-radius: 20px;
  background: rgba(255, 255, 255, .64);
}

.timeline-item b {
  color: var(--green);
  font-size: 21px;
}

.timeline-item p {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.45;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 960px;
  margin: auto;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(37, 70, 94, .12);
}

.gallery-card img {
  width: 100%;
  height: clamp(280px, 52vw, 560px);
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-slideshow {
  aspect-ratio: 16 / 9;
}

.gallery-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 48%, rgba(20, 39, 52, .28) 100%),
    linear-gradient(180deg, rgba(20, 39, 52, .10), transparent 28%, rgba(20, 39, 52, .16));
}

.gallery-slideshow .gallery-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s ease-in-out, transform .35s ease;
}

.gallery-slideshow .gallery-slide.is-active {
  opacity: 1;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.map {
  margin: 28px 0;
  border: 8px solid var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

.map-section {
  text-align: center;
}

form {
  width: min(620px, 100%);
  margin: auto;
  display: grid;
  gap: 14px;
}

input,
select,
textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid rgba(37, 70, 94, .18);
  border-radius: 18px;
  font: inherit;
  background: var(--white);
  outline: none;
  transition: border .2s ease, box-shadow .2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(93, 154, 170, .14);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  min-height: 22px;
  margin: 0;
  text-align: center;
  color: var(--blue);
}

.google-form-wrap {
  width: min(760px, 100%);
  height: min(760px, 78vh);
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow);
}

.google-form-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

footer {
  text-align: center;
  padding: 60px 20px 90px;
}

footer img {
  width: min(520px, 100%);
  margin: auto;
  opacity: .9;
}

footer h3 {
  margin-top: 10px;
}

.petal {
  position: absolute;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, .8);
  border-radius: 80% 0 80% 0;
  animation: fall 8s linear infinite;
}

.petal-1 { left: 12%; top: -20px; animation-delay: 0s; }
.petal-2 { left: 48%; top: -20px; animation-delay: 2s; }
.petal-3 { left: 78%; top: -20px; animation-delay: 4s; }
.petal-4 { left: 28%; top: -20px; animation-delay: 6s; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(16, 33, 45, .78);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

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

.lightbox img {
  max-width: min(860px, 92vw);
  max-height: 82vh;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 12px 18px;
  background: var(--white);
  color: var(--navy);
}

@keyframes pop {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes fall {
  from {
    transform: translateY(-40px) rotate(0);
    opacity: .8;
  }
  to {
    transform: translateY(110vh) rotate(260deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 980px) {
  .event-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .popup h2,
  .hero h2 {
    letter-spacing: 4px;
  }

  section {
    padding: 54px 0;
  }

  .nav-dots {
    display: none;
  }

  .info-grid,
  .event-summary,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .countdown-card h3 {
    letter-spacing: 3px;
  }

  .section-title {
    letter-spacing: 3px;
  }

  .countdown div {
    min-height: 112px;
    padding: 20px 12px;
  }

  .timeline-item {
    grid-template-columns: 72px 1fr;
    padding: 16px;
  }

  .map iframe {
    height: 320px;
  }
}
