/* style.css */
:root {
  --bg-cream: #faf6f0;
  --card-white: #ffffff;
  --gold: #bfa15f;
  --gold-border: rgba(191, 161, 95, 0.35);
  --charcoal: #2b2725;
  --muted: #78726d;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #ede5da;
  color: var(--charcoal);
  font-family: 'Cormorant Garamond', serif;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Page Frame Container */
.page-container {
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-cream);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.08);
  overflow-x: hidden;
}

/* Header & Audio Controller */
.top-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(to bottom, rgba(250, 246, 240, 0.98), rgba(250, 246, 240, 0));
}

.music-toggle-btn {
  background: #ffffff;
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.music-toggle-btn:hover {
  border-color: var(--gold);
  transform: scale(1.05);
}

.music-icon {
  font-size: 0.85rem;
  color: var(--gold);
  line-height: 1;
}

.music-toggle-btn.playing {
  border-color: var(--gold);
  animation: gentlePulse 2.5s infinite ease-in-out;
}

@keyframes gentlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(191, 161, 95, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(191, 161, 95, 0); }
}

.header-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  color: var(--gold);
}

.header-spacer {
  width: 32px;
}

/* Card Section */
.card-section {
  padding: 0.5rem 1.4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.art-frame {
  width: 100%;
  max-width: 380px;
  border-radius: 190px 190px 16px 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(191, 161, 95, 0.16);
  border: 1px solid rgba(191, 161, 95, 0.3);
  background: var(--card-white);
}

.card-image {
  width: 100%;
  height: auto;
  display: block;
}

.quote {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
  margin-top: 1.6rem;
}

/* Timer Section */
.timer-section {
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
}

.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 55px;
}

.time-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--charcoal);
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 0.3rem;
  width: 100%;
}

.time-lbl {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 0.45rem;
}

.time-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-top: -1.1rem;
}

/* Venue Section */
.venue-section {
  padding: 2rem 1.4rem;
}

.venue-card {
  position: relative;
  background: var(--card-white);
  border: 1px solid var(--gold-border);
  padding: 2.6rem 1.4rem 2.2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.hall-frame {
  width: 100%;
  max-width: 300px;
  margin: 1.2rem auto 1.4rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.hall-image {
  width: 100%;
  height: auto;
  display: block;
}

.venue-title {
  font-family: 'Pinyon Script', cursive;
  font-size: 3.4rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.venue-location {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.event-dates {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 1.8rem;
}

.map-button {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-decoration: none;
  color: var(--charcoal);
  border: 1px solid var(--gold);
  padding: 0.8rem 1.8rem;
  transition: all 0.3s ease;
}

.map-button:hover {
  background: var(--gold);
  color: #ffffff;
}

/* Travel & Connectivity */
.travel-section {
  padding: 2.5rem 1.4rem;
  text-align: center;
}

.travel-heading {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
  font-weight: 400;
}

.travel-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.travel-card {
  background: var(--card-white);
  border: 1px solid var(--gold-border);
  padding: 1.6rem 1.2rem;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.travel-icon {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.travel-mode {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.travel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.travel-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Contact / Assistance */
.contact-section {
  padding: 1rem 1.4rem 2rem;
}

.contact-box {
  background: rgba(191, 161, 95, 0.08);
  border: 1px dashed var(--gold);
  padding: 1.8rem 1.2rem;
  text-align: center;
  border-radius: 4px;
}

.contact-sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.contact-btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: #ffffff;
  border: 1px solid var(--gold);
  padding: 0.75rem 1.6rem;
  text-decoration: none;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: var(--gold);
  color: #ffffff;
}

/* Corner Accents */
.corner-filigree {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--gold);
}

.top-left { top: 6px; left: 6px; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.top-right { top: 6px; right: 6px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); }
.bottom-left { bottom: 6px; left: 6px; border-bottom: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.bottom-right { bottom: 6px; right: 6px; border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold); }

/* Footer */
.footer {
  text-align: center;
  padding: 2.5rem 1rem 3.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.crest {
  display: block;
  color: var(--gold);
  margin-top: 0.75rem;
  font-size: 0.75rem;
}

/* Desktop Polished Viewport */
@media (min-width: 768px) {
  body {
    padding: 3rem 0;
    background: radial-gradient(circle at 50% 30%, #f7f3ec 0%, #ded4c3 100%);
  }

  .page-container {
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(44, 41, 39, 0.16);
    border: 1px solid rgba(191, 161, 95, 0.4);
  }

  .top-header {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }
}

/* ====================================================
   Desktop & Laptop Layout (Widescreen Polish)
   ==================================================== */
@media (min-width: 768px) {
  body {
    background: radial-gradient(circle at 50% 25%, #f7f3ec 0%, #ded4c3 100%);
    padding: 3.5rem 0 5rem;
  }

  /* Expand canvas width for comfortable laptop reading */
  .page-container {
    max-width: 580px;
    border-radius: 20px;
    box-shadow: 
      0 30px 90px rgba(44, 41, 39, 0.16),
      0 1px 3px rgba(191, 161, 95, 0.3);
    border: 1px solid rgba(191, 161, 95, 0.35);
  }

  .top-header {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 1.2rem 2rem;
  }

  /* Let the invitation artwork scale with proper margins */
  .art-frame {
    max-width: 480px;
    border-radius: 240px 240px 20px 20px;
  }

  /* Countdown: slightly larger spacing */
  .countdown-grid {
    gap: 1.5rem;
  }

  .time-box {
    min-width: 70px;
  }

  .time-val {
    font-size: 2.8rem;
  }

  /* Venue Card polish */
  .venue-card {
    padding: 3.2rem 2.4rem 2.8rem;
  }

  .hall-frame {
    max-width: 380px;
  }

  .venue-title {
    font-size: 4rem;
  }

  /* Travel Cards: Convert from stacked pills to a balanced grid */
  .travel-section {
    padding: 3rem 2.2rem;
  }

  .travel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  /* Let the venue card span full width across the 2 columns */
  .travel-card:last-child {
    grid-column: span 2;
  }

  .travel-card {
    padding: 1.8rem 1.4rem;
  }

  .contact-section {
    padding: 1rem 2.2rem 3rem;
  }
}

/* Ultra-wide screens (MacBook Pro / 1440p+) */
@media (min-width: 1200px) {
  .page-container {
    max-width: 620px;
  }

  .art-frame {
    max-width: 510px;
  }
}