/* ==========================================================================
   Chandra Weds Sravani — Mobile First & Responsive Design
   Breakpoints: 320px, 375px, 430px, 768px, 1024px, 1440px
   ========================================================================== */

/* Large Tablets & Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .story-chapters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .venue-details-wrap {
    grid-template-columns: 1fr;
  }
  .venue-map-embed {
    height: 350px;
  }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .section-title {
    font-size: 2.1rem;
  }

  /* Envelope adjustments */
  .wedding-envelope {
    height: 260px;
  }
  .envelope-flap {
    height: 130px;
  }
  .wax-seal {
    top: 115px;
    width: 68px;
    height: 68px;
  }
  .wax-seal-inner {
    width: 52px;
    height: 52px;
  }
  .envelope-names {
    font-size: 2.3rem;
  }

  /* Hero */
  .hero-names-display {
    font-size: 3.2rem;
  }
  .hero-arch-container {
    max-width: 500px;
    width: 95%;
  }
  .hero-arch-frame {
    aspect-ratio: 4 / 3.08;
    height: auto;
    border-radius: 120px 120px 12px 12px;
  }
  .hero-arch-inner {
    border-radius: 112px 112px 8px 8px;
  }
  .hero-arch-inner img {
    object-position: 65% center;
  }
  .hero-tagline {
    font-size: 1.15rem;
  }
  .hero-date-badge {
    font-size: 1rem;
    padding: 6px 20px;
    letter-spacing: 0.16em;
  }

  /* Couple Profiles */
  .couple-profiles-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 480px;
    margin: 0 auto;
  }
  .couple-card-photo-wrap {
    height: 340px;
  }

  /* Events Grid */
  .events-grid {
    grid-template-columns: 1fr;
  }

  /* Traditional Invitation */
  .invitation-formal-card {
    padding: 36px 20px;
  }
  .invitation-bride-lead .name, .invitation-groom-lead .name {
    font-size: 2.6rem;
  }
  .invitation-hosts {
    font-size: 1.25rem;
  }

  /* Story Chapters */
  .story-chapters-grid {
    grid-template-columns: 1fr;
  }

  /* Countdown */
  .countdown-cards-grid {
    gap: 12px;
  }
  .countdown-card {
    padding: 18px 10px;
  }
  .countdown-value {
    font-size: 2.6rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
    gap: 14px;
  }
  .gallery-item-wide {
    grid-column: span 2;
  }

  /* RSVP */
  .rsvp-card {
    padding: 36px 22px;
  }
  .rsvp-radio-group {
    grid-template-columns: 1fr;
  }

  /* Floating controls position */
  .floating-dock {
    right: 14px;
    bottom: 16px;
    gap: 10px;
  }
  .floating-btn {
    width: 42px;
    height: 42px;
  }
  .top-floating-bar {
    right: 12px;
    top: 14px;
    gap: 8px;
  }
  .lang-switch-wrap {
    padding: 2px 3px;
  }
  .lang-btn {
    padding: 5px 9px;
    font-size: 0.75rem;
  }
  .music-toggle-btn {
    width: 44px;
    height: 44px;
  }
  .music-volume-drawer {
    display: none; /* Hide drawer on touch phones to prevent covering content */
  }

  /* Lightbox buttons */
  .lightbox-nav-btn {
    width: 40px;
    height: 40px;
  }
  .lightbox-prev-btn { left: 8px; }
  .lightbox-next-btn { right: 8px; }
  .lightbox-close-btn { top: 14px; right: 14px; }
  .lightbox-zoom-toolbar { top: 14px; left: 14px; }
}

/* Mobile Screens (max-width: 480px) */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .container, .container-narrow {
    width: 92%;
  }

  /* Opening Envelope */
  .envelope-wrap {
    max-width: 320px;
  }
  .wedding-envelope {
    height: 230px;
  }
  .envelope-flap {
    height: 115px;
  }
  .wax-seal {
    top: 100px;
    width: 62px;
    height: 62px;
  }
  .wax-seal-inner {
    width: 46px;
    height: 46px;
  }
  .envelope-names {
    font-size: 2rem;
  }
  .envelope-subtitle {
    font-size: 9px;
  }

  /* Hero */
  .hero-section {
    padding: 80px 14px 45px;
  }
  .hero-names-display {
    font-size: 2.7rem;
  }
  .hero-arch-container {
    width: 95%;
    max-width: 100%;
  }
  .hero-arch-frame {
    aspect-ratio: 4 / 3.08;
    height: auto;
    border-radius: 70px 70px 10px 10px;
    padding: 6px;
  }
  .hero-arch-inner {
    border-radius: 64px 64px 6px 6px;
  }
  .hero-arch-inner img {
    object-position: 65% center;
  }
  .hero-tagline {
    font-size: 1.1rem;
  }
  .hero-date-badge {
    font-size: 0.92rem;
    padding: 5px 14px;
    letter-spacing: 0.12em;
  }
  .hero-venue-summary {
    font-size: 0.85rem;
  }

  /* Section Titles */
  .section-title {
    font-size: 1.85rem;
  }
  .manifesto-lead {
    font-size: 1.65rem;
  }

  /* Countdown 4 Columns on Mobile */
  .countdown-cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .countdown-card {
    padding: 12px 6px;
    border-radius: 8px;
  }
  .countdown-value {
    font-size: 1.85rem;
  }
  .countdown-label {
    font-size: 9px;
    letter-spacing: 0.12em;
  }
  .countdown-wedding-date {
    font-size: 1.7rem;
  }

  /* Gallery Single/Double */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }
  .gallery-item-wide, .gallery-item-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Traditional Invitation */
  .invitation-formal-card {
    padding: 28px 14px;
  }
  .invitation-bride-lead .name, .invitation-groom-lead .name {
    font-size: 2.2rem;
  }
  .invitation-view-originals {
    flex-direction: column;
  }
  .view-card-btn {
    width: 100%;
    justify-content: center;
  }

  /* Venue buttons */
  .venue-action-buttons {
    flex-direction: column;
  }
  .venue-action-buttons a, .venue-action-buttons button {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer-couple-names {
    font-size: 2.6rem;
  }
}

/* Extra Small Mobile (320px - iPhone SE) */
@media (max-width: 360px) {
  .hero-names-display {
    font-size: 2.4rem;
  }
  .countdown-value {
    font-size: 1.6rem;
  }
  .envelope-wrap {
    max-width: 290px;
  }
  .wedding-envelope {
    height: 210px;
  }
}

