/* =========================================================
   Shashank & Shali — Wedding Invitation Website
   Design: Black & white, hand-drawn invitation style
   Fonts: Great Vibes · Dancing Script · Caveat
   ========================================================= */

/* ---------------------------------------------------------
   RESET & BASE
   --------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: #f4f2ee;
  color: #111;
  font-family: 'Caveat', cursive;
  min-height: 100vh;
  padding: 48px 16px 64px;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------
   CARD CONTAINER
   --------------------------------------------------------- */
.card {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-left: 2.5px solid #111;
  border-right: 2.5px solid #111;
  position: relative;
}

/* ---------------------------------------------------------
   WAVY BORDERS (top & bottom SVG decorations)
   --------------------------------------------------------- */
.wavy-border {
  width: 100%;
  line-height: 0;
  display: block;
  overflow: hidden;
}

.wavy-border svg {
  display: block;
  width: 100%;
  height: 56px;
}

/* ---------------------------------------------------------
   SECTION SHARED
   --------------------------------------------------------- */
section {
  padding: 52px 64px;
  text-align: center;
}

@media (max-width: 520px) {
  section {
    padding: 40px 28px;
  }
}

/* ---------------------------------------------------------
   DIVIDERS
   --------------------------------------------------------- */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 64px;
}

.divider--inner {
  padding: 0;
  margin: 20px 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: #111;
}

.divider-gem {
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: #111;
  flex-shrink: 0;
  line-height: 1;
}

@media (max-width: 520px) {
  .divider {
    padding: 0 28px;
  }
}

/* ---------------------------------------------------------
   DECORATIVE ELEMENTS
   --------------------------------------------------------- */
.deco {
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.heart {
  font-size: 18px;
}

.sparkle {
  font-size: 16px;
}

.dot {
  font-size: 28px;
  line-height: 0.5;
}

/* Positioned decos around the couple photo */
.couple-wrap .deco {
  position: absolute;
}

.heart-top  { top: -14px; left: 50%; transform: translateX(-50%); font-size: 22px; }
.sp-tl      { top: 12%;  left: -28px; }
.dot-tl     { top: 30%;  left: -16px; }
.sp-tr      { top: 6%;   right: -28px; }
.dot-tr     { top: 22%;  right: -16px; }
.sp-bl      { bottom: 18%; left: -26px; }
.heart-br   { bottom: 14%; right: -22px; font-size: 16px; }
.dot-br     { bottom: 30%; right: -14px; }

/* Inline deco clusters */
.deco-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 18px;
}

.deco-cluster--left  { justify-content: flex-start; }
.deco-cluster--right { justify-content: flex-end; }

/* ---------------------------------------------------------
   SECTION 1 · HERO
   --------------------------------------------------------- */
.section-hero {
  padding-top: 60px;
  padding-bottom: 56px;
}

.title-save {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(52px, 13vw, 88px);
  font-weight: 400;
  line-height: 1.0;
  color: #111;
  display: block;
}

.title-date {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(48px, 12vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  color: #111;
  margin-bottom: 36px;
  display: block;
}

.title-the {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 400;
  vertical-align: middle;
  margin-right: 4px;
}

/* Couple photo */
.couple-wrap {
  position: relative;
  width: min(290px, 80%);
  margin: 0 auto 32px;
}

.couple-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Fallback if image is missing */
.couple-wrap.no-image {
  width: min(290px, 80%);
  height: 240px;
  border: 1.5px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.couple-wrap.no-image::after {
  content: 'couple.png';
  font-family: 'Caveat', cursive;
  font-size: 16px;
  color: #bbb;
  font-style: italic;
}

.couple-wrap.no-image img {
  display: none;
}

.couple-names {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(34px, 8.5vw, 58px);
  font-weight: 700;
  color: #111;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-tagline {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(20px, 4.5vw, 30px);
  font-weight: 400;
  color: #111;
}

.btn-cal-scroll {
  display: inline-block;
  margin-top: 28px;
  font-family: 'Dancing Script', cursive;
  font-size: clamp(18px, 3.5vw, 22px);
  font-weight: 700;
  color: #111;
  text-decoration: none;
  border: 2px solid #111;
  padding: 10px 28px;
  letter-spacing: 0.02em;
  transition: background 0.18s ease, color 0.18s ease;
}

.btn-cal-scroll:hover {
  background: #111;
  color: #fff;
}

/* ---------------------------------------------------------
   SECTION 2 · INVITATION (Poetic)
   --------------------------------------------------------- */
.section-invite {
  padding-top: 48px;
  padding-bottom: 48px;
}

.poem-stanza {
  font-family: 'Caveat', cursive;
  font-size: clamp(18px, 3.8vw, 23px);
  line-height: 1.75;
  color: #111;
  margin-bottom: 22px;
}

.poem-stanza--italic {
  font-style: italic;
}

.invite-formal {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(19px, 4vw, 26px);
  line-height: 1.85;
  color: #111;
  margin-top: 8px;
}

.names-script {
  font-weight: 700;
  font-size: clamp(24px, 5.5vw, 34px);
  display: inline-block;
  margin-bottom: 2px;
}

/* ---------------------------------------------------------
   SECTION 3 · EVENT DETAILS
   --------------------------------------------------------- */
.section-details {
  padding-top: 48px;
  padding-bottom: 52px;
}

.detail-date {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(26px, 5.5vw, 38px);
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}

.detail-venue {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(20px, 4.2vw, 28px);
  font-weight: 400;
  color: #111;
  margin-bottom: 4px;
}

.detail-commences {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(18px, 3.8vw, 25px);
  color: #111;
  margin-bottom: 6px;
}

.detail-time {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(46px, 11vw, 72px);
  font-weight: 700;
  color: #111;
  line-height: 1.0;
  margin-bottom: 4px;
}

.detail-closing {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(18px, 3.8vw, 25px);
  line-height: 1.85;
  color: #111;
}

/* ---------------------------------------------------------
   SECTION 4 · COUNTDOWN
   --------------------------------------------------------- */
.section-countdown {
  padding-top: 52px;
  padding-bottom: 52px;
}

.section-heading {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(38px, 9vw, 58px);
  font-weight: 400;
  color: #111;
  line-height: 1.1;
  margin-bottom: 32px;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}

.count-num {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(40px, 9.5vw, 64px);
  font-weight: 700;
  line-height: 1;
  color: #111;
  min-width: 2ch;
  text-align: center;
}

.count-label {
  font-family: 'Caveat', cursive;
  font-size: clamp(13px, 2.5vw, 15px);
  color: #777;
  margin-top: 4px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.count-sep {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(28px, 7vw, 48px);
  color: #111;
  margin-bottom: 22px;
  line-height: 1;
}

.countdown-caption {
  font-family: 'Caveat', cursive;
  font-size: clamp(16px, 3vw, 20px);
  color: #888;
  font-style: italic;
}

/* ---------------------------------------------------------
   SECTION 5 · VENUE & MAP
   --------------------------------------------------------- */
.section-venue {
  padding-top: 52px;
  padding-bottom: 52px;
}

.venue-name {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(26px, 5.5vw, 38px);
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.venue-address {
  font-family: 'Caveat', cursive;
  font-size: clamp(16px, 3vw, 20px);
  color: #555;
  line-height: 1.65;
  margin-bottom: 26px;
}

.map-wrap {
  width: 100%;
  border: 2px solid #111;
  margin-bottom: 22px;
  overflow: hidden;
  line-height: 0;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 320px;
}

/* ---------------------------------------------------------
   SECTION 6 · CALENDAR
   --------------------------------------------------------- */
.section-calendar {
  padding-top: 52px;
  padding-bottom: 52px;
}

.cal-note {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(18px, 3.8vw, 24px);
  color: #555;
  line-height: 1.7;
  margin-bottom: 30px;
  font-style: italic;
}

.cal-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.cal-reminder {
  font-family: 'Caveat', cursive;
  font-size: clamp(14px, 2.5vw, 17px);
  color: #999;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.cal-reminder--gcal {
  color: #bbb;
  font-size: clamp(13px, 2.2vw, 15px);
}

/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */
.btn {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(18px, 3.8vw, 23px);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
  line-height: 1;
}

.btn--solid {
  background: #111;
  color: #fff;
  border: 2px solid #111;
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: #333;
  border-color: #333;
  outline: none;
}

.btn--outline {
  background: #fff;
  color: #111;
  border: 2px solid #111;
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: #f0eeea;
  outline: none;
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.section-footer {
  padding: 36px 64px 44px;
  text-align: center;
}

.footer-gifts {
  font-family: 'Caveat', cursive;
  font-size: clamp(16px, 3vw, 20px);
  color: #888;
  font-style: italic;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.footer-names {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(17px, 3.5vw, 22px);
  color: #aaa;
}

/* ---------------------------------------------------------
   RESPONSIVE — small screens
   --------------------------------------------------------- */
@media (max-width: 520px) {
  body {
    padding: 20px 8px 48px;
  }

  .couple-wrap {
    width: min(240px, 78%);
  }

  .sp-tl, .dot-tl { left: -18px; }
  .sp-tr, .dot-tr { right: -18px; }
  .sp-bl          { left: -18px; }
  .heart-br       { right: -14px; }
  .dot-br         { right: -10px; }

  .map-wrap iframe {
    height: 260px;
  }

  .section-footer {
    padding: 28px 28px 36px;
  }

  .cal-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }
}
