* {
  box-sizing: border-box;
}

:root {
  --paper: rgba(255, 250, 244, 0.91);
  --brown: #6f4327;
  --brown-soft: #8a5734;
  --gold: #b8864d;
  --rose: #a8655f;
  --text: #4a3529;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", "Noto Sans", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top,
      rgba(255, 255, 255, 0.92),
      rgba(250, 236, 215, 0.92)
    ),
    linear-gradient(135deg, #f7ead6, #f3d7b7);
}

.page {
  overflow: hidden;
}

.music-button {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 20;
  border: 1px solid rgba(184, 134, 77, 0.55);
  background: rgba(255, 250, 244, 0.92);
  color: var(--brown);
  border-radius: 999px;
  padding: 12px 18px;
  font-family: "Montserrat", "Noto Sans", sans-serif;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(93, 60, 32, 0.16);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  position: relative;
  background:
    linear-gradient(rgba(255, 248, 238, 0.56), rgba(255, 248, 238, 0.94)),
    url("./assets/background.jpg") center/cover;
}

.hero-card {
  width: min(710px, 100%);
  padding: 56px 36px;
  text-align: center;
  background: var(--paper);
  border: 1px solid rgba(166, 124, 82, 0.32);
  border-radius: 34px;
  box-shadow: 0 30px 90px rgba(93, 60, 32, 0.2);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 2;
}

.small-title {
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 12px;
  color: #9b6a3f;
  margin: 0 0 18px;
  font-weight: 700;
}

h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(62px, 15vw, 126px);
  line-height: 0.9;
  margin: 0;
  color: var(--brown);
  font-weight: 600;
  letter-spacing: 0.2px;
}

h1 span {
  display: block;
  font-style: normal;
  font-size: 0.46em;
  margin: 12px 0 2px;
  color: var(--gold);
  font-weight: 500;
}

.song-title {
  margin: 18px auto 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  color: var(--brown-soft);
  font-size: clamp(26px, 6vw, 43px);
  line-height: 1.25;
  font-weight: 600;
}

.subtitle {
  margin: 30px auto 12px;
  max-width: 570px;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 600;
}

.text {
  max-width: 570px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.85;
}

.hero-countdown {
  margin: 28px auto 0;
  width: min(370px, 100%);
  padding: 18px 14px;
  border-radius: 24px;
  background: rgba(138, 87, 52, 0.1);
  border: 1px solid rgba(184, 134, 77, 0.35);
}

.hero-countdown p {
  margin: 0 0 8px;
  color: #9b6a3f;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-countdown strong {
  display: block;
  color: var(--brown);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 7vw, 50px);
  line-height: 1.1;
  font-weight: 700;
}

.divider {
  width: 118px;
  height: 1px;
  background: var(--gold);
  margin: 30px auto;
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  top: -4px;
}

.divider::before {
  left: -10px;
}

.divider::after {
  right: -10px;
}

.owners span {
  display: block;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9b6a3f;
  margin-bottom: 8px;
  font-weight: 700;
}

.owners strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(38px, 8vw, 56px);
  color: var(--brown);
  font-weight: 600;
}

.button {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--brown-soft);
  color: white;
  text-decoration: none;
  font-family: "Montserrat", "Noto Sans", sans-serif;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(93, 60, 32, 0.22);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(93, 60, 32, 0.28);
}

.button.outline {
  background: transparent;
  color: var(--brown);
  border: 1px solid var(--gold);
  box-shadow: none;
}

.section {
  padding: 82px 18px;
  text-align: center;
}

.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(46px, 9vw, 74px);
  color: var(--rose);
  margin: 0 0 30px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.section-title::after {
  content: "";
  display: block;
  width: 86px;
  height: 2px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-text {
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.info-grid {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.info-card {
  background: rgba(255, 250, 244, 0.82);
  border: 1px solid rgba(166, 124, 82, 0.28);
  border-radius: 24px;
  padding: 25px 18px;
  min-height: 136px;
  box-shadow: 0 18px 45px rgba(93, 60, 32, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.info-card p {
  margin: 0 0 10px;
  color: #9b6a3f;
  font-size: 20px;

  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.info-card strong {
  font-size: 18px;

  line-height: 1.45;
}

.countdown {
  width: min(780px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.countdown div {
  padding: 25px 10px;
  border-radius: 26px;
  background: #fff8ee;
  border: 1px solid rgba(166, 124, 82, 0.26);
}

.countdown strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 7vw, 58px);
  color: var(--brown);
  font-weight: 700;
}

.countdown span {
  display: block;
  margin-top: 8px;
  color: #9b6a3f;
  font-size: 14px;
  font-weight: 600;
}

.timeline {
  width: min(660px, 100%);
  margin: 0 auto;
  text-align: left;
}

.timeline div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(166, 124, 82, 0.28);
}

.timeline span {
  color: var(--brown-soft);
  font-weight: 800;
}

.timeline p {
  margin: 0;
  line-height: 1.6;
}

.location,
.rsvp,
.wishes-section {
  background: rgba(255, 250, 244, 0.45);
}

.location p,
.rsvp p {
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.address-note {
  margin-top: 10px !important;
  color: var(--brown-soft);
  font-weight: 700;
}

/* ── Location card ─────────────────────────────────────────────────────────── */
.location-card {
  width: min(760px, 100%);
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 250, 244, 0.9);
  border: 1px solid rgba(166, 124, 82, 0.28);
  box-shadow: 0 24px 70px rgba(93, 60, 32, 0.14);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.location-map-preview {
  border-radius: 0;
  overflow: hidden;
  min-height: 280px;
}

.location-map-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
  filter: sepia(18%) saturate(0.9);
}

.location-info {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  text-align: left;
}

.location-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.loc-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.location-detail strong {
  display: block;
  color: var(--brown);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.location-detail p {
  margin: 0;
  font-size: 14px;
  color: var(--brown-soft);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .location-card {
    grid-template-columns: 1fr;
  }
  .location-map-preview,
  .location-map-preview iframe {
    min-height: 200px;
  }
  .location-info {
    padding: 24px 20px;
  }
}

/* ── Wishes carousel ────────────────────────────────────────────────────── */
.wishes-carousel-wrap {
  width: min(1000px, 100%);
  margin: 28px auto 0;
}

.wishes-scroll-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 28px;
  border: 1px solid rgba(166, 124, 82, 0.28);
  background: rgba(255, 250, 244, 0.65);
  padding: 20px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.wishes-scroll-wrap:active {
  cursor: grabbing;
}

.wishes-scroll-wrap::-webkit-scrollbar {
  display: none;
}

.wishes-scroll-wrap .wishes-track {
  display: flex;
  gap: 18px;
  width: max-content;
}

.wishes-scroll-wrap .wish-card {
  scroll-snap-align: start;
  flex-shrink: 0;
}

.wish-empty {
  opacity: 0.6;
  font-style: italic;
}

/* Dots */
.wishes-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.wish-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(166, 124, 82, 0.28);
  cursor: pointer;
  padding: 0;
  transition:
    background 0.25s,
    transform 0.25s,
    width 0.25s;
  flex-shrink: 0;
}

.wish-dot.active {
  background: var(--gold);
  width: 22px;
  border-radius: 4px;
  transform: scale(1.1);
}

.wish-card {
  width: 280px;
  min-height: 138px;
  text-align: left;
  padding: 20px;
  border-radius: 22px;
  background: #fff8ee;
  border: 1px solid rgba(166, 124, 82, 0.22);
  box-shadow: 0 14px 35px rgba(93, 60, 32, 0.08);
}

.wish-card strong {
  display: block;
  color: var(--brown-soft);
  margin-bottom: 10px;
}

.wish-card p {
  margin: 0;
  line-height: 1.55;
}

footer {
  padding: 44px 18px;
  text-align: center;
  background: var(--brown);
  color: white;
}

footer p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 58px;
  margin: 0 0 8px;
  font-weight: 600;
}

footer span {
  opacity: 0.85;
}

.ornament {
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(184, 134, 77, 0.32);
  border-radius: 50%;
  z-index: 1;
}

.top-left {
  top: 42px;
  left: -88px;
}

.bottom-right {
  right: -88px;
  bottom: 42px;
}

.soft-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(184, 134, 77, 0.12);
  filter: blur(2px);
  z-index: 1;
}

.circle-one {
  width: 160px;
  height: 160px;
  top: 16%;
  right: 10%;
}

.circle-two {
  width: 110px;
  height: 110px;
  bottom: 16%;
  left: 11%;
}

.bottom-popup {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(140%);
  width: min(560px, calc(100% - 28px));
  z-index: 60;
  background: rgba(255, 250, 244, 0.96);
  border: 1px solid rgba(184, 134, 77, 0.42);
  border-radius: 24px;
  padding: 18px 18px 16px;
  box-shadow: 0 24px 70px rgba(74, 53, 41, 0.28);
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease;
}

.bottom-popup.show {
  transform: translateX(-50%) translateY(0);
}

.bottom-popup p {
  margin: 0 32px 6px 0;
  color: var(--brown);
  line-height: 1.45;
}

.bottom-popup span {
  display: block;
  margin-right: 32px;
  line-height: 1.45;
}

.bottom-popup button:not(.popup-close) {
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--brown-soft);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.popup-close,
.modal-close {
  position: absolute;
  border: 0;
  background: transparent;
  color: var(--brown);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.popup-close {
  top: 14px;
  right: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 18px;
}

.modal.show {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(74, 53, 41, 0.44);
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fffaf4;
  border: 1px solid rgba(184, 134, 77, 0.42);
  border-radius: 28px;
  padding: 30px 24px;
  box-shadow: 0 30px 90px rgba(74, 53, 41, 0.32);
}

.modal-close {
  top: 16px;
  right: 18px;
}

.modal-content h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  color: var(--rose);
  font-size: 42px;
  margin: 0 34px 10px 0;
}

.modal-content p {
  margin: 0 0 20px;
  line-height: 1.55;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  text-align: left;
  font-weight: 700;
  color: var(--brown);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(166, 124, 82, 0.35);
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: white;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 77, 0.18);
}

.submit-button {
  margin-top: 8px;
  width: 100%;
}

.form-status {
  min-height: 22px;
  margin: 0 !important;
  font-weight: 700;
  color: var(--brown-soft);
}

@media (max-width: 760px) {
  .music-button {
    right: 12px;
    top: 12px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .hero-card {
    padding: 44px 22px;
    border-radius: 28px;
  }

  .subtitle {
    font-size: 16px;
  }

  .text {
    font-size: 15px;
  }

  .info-grid,
  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline div {
    grid-template-columns: 74px 1fr;
  }
}

@media (max-width: 420px) {
  .info-grid,
  .countdown {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 16px;
  }

  .wish-card {
    width: 250px;
  }

  .modal-content {
    padding: 28px 18px;
  }
}
.map-btn {
  display: flex;
  justify-content: center;
  gap: 5%;
}
.map-btn img {
  width: 20px;
  height: 20px;
  border-radius: 20%;
}
