/* ==========================================================================
   SAKSHI & ROHIT | RESPONSIVE MOBILE STYLESHEET
   100% Mobile-First Luxury Layout for Heritage Scroll Template
   Tested for iPhone SE, 13/14/15/16 Pro Max, Android Devices, Tablets, and Desktop
   ========================================================================== */

/* --------------------------------------------------------------------------
   Mobile Devices (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Floating Header Music Controller */
  .royal-music-btn {
    top: max(12px, env(safe-area-inset-top, 12px));
    right: max(12px, env(safe-area-inset-right, 12px));
    padding: 6px 13px;
    gap: 6px;
  }

  .hero-monogram-badge {
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
    padding: 5px;
  }

  .hero-monogram-img {
    width: 50px;
    height: 50px;
  }

  /* 1. Hero Section */
  .hs-hero {
    min-height: 540px;
    height: 100svh;
  }

  .hs-hero-content {
    padding: 24px 14px 18px;
    width: 95%;
  }

  .hero-ganesh-lead {
    font-size: clamp(0.68rem, 2.6vw, 0.84rem);
    margin-bottom: 6px;
    letter-spacing: 2px;
    gap: 8px;
    white-space: nowrap;
  }

  .hero-ganesh-lead::before,
  .hero-ganesh-lead::after {
    width: clamp(10px, 3.5vw, 24px);
  }

  .hero-kicker-intro {
    font-size: 0.7rem;
    letter-spacing: 2.8px;
    margin-bottom: 6px;
    white-space: nowrap;
  }

  .hero-family-subtitle {
    font-size: clamp(1rem, 3.4vw, 1.25rem);
    margin-bottom: 10px;
    letter-spacing: 1px;
    white-space: nowrap;
  }

  .hero-main-names {
    font-size: clamp(1.35rem, 6.2vw, 2.2rem);
    letter-spacing: clamp(1px, 0.4vw, 2px);
    margin: 4px 0 10px;
    gap: 2px 6px;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }

  .hero-main-names .h-amp {
    font-size: 1.15em;
    margin: 0 2px;
  }

  .hero-kicker-sub {
    font-size: 1.08rem;
    margin-bottom: 18px;
  }

  .hs-scroll-arrow {
    width: 40px;
    height: 40px;
  }

  .hs-lantern-floating.l1 { width: 45px; top: 3%; left: 3%; }
  .hs-lantern-floating.l2 { width: 55px; top: 6%; right: 3%; }
  .hs-lantern-floating.l3 { display: none; }
  .hs-lantern-floating.l4 { width: 50px; top: 60%; right: 4%; }
  .hs-lantern-floating.l5 { width: 44px; top: 76%; left: 4%; }

  /* 2. Save The Date */
  .std-section {
    padding: 60px 14px;
  }

  .std-circle-wrap {
    width: clamp(320px, 88vw, 360px);
    height: clamp(320px, 88vw, 360px);
  }

  .std-scratch-wrap,
  .std-circle-inner {
    width: 68%;
    height: 68%;
    padding: 6px;
  }

  .std-revealed-date {
    padding: 8px 6px;
  }

  .std-scratch-guide {
    margin: 12px auto 0;
    padding: 5px 14px;
    font-size: 0.70rem;
  }

  .std-quick-btn {
    font-size: 0.70rem;
    padding: 5px 14px;
  }

  .std-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 2px;
    margin-bottom: 2px;
  }

  .std-weekday {
    font-size: 0.92rem;
    margin-bottom: 0px;
    line-height: 1.1;
  }

  .std-day {
    font-size: clamp(2.2rem, 7vw, 2.8rem);
    letter-spacing: 2px;
    line-height: 1;
    margin: 2px 0;
  }

  .std-year {
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 3px;
  }

  .std-muhurta-pill {
    padding: 2px 10px;
    margin: 2px 0 4px;
  }

  .std-muhurta-pill .m-en {
    font-size: 0.64rem;
  }

  .std-venue {
    font-size: 0.72rem;
    line-height: 1.2;
    max-width: 200px;
    margin-top: 1px;
  }

  /* 3. Meet The Couple */
  .meet-couple-section {
    padding: 55px 14px;
  }

  .mc-photo-card {
    max-width: 270px;
    margin: 0 auto 24px;
    padding: 10px;
  }

  .mc-heading {
    font-size: 2.3rem;
  }

  .mc-message {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .mc-message-en {
    font-size: 1.05rem;
    line-height: 1.6;
  }

  .couple-clan-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 18px 0;
  }

  .clan-box {
    padding: 14px 12px;
  }

  /* 4. Our Story (Stacked Deck & Spread Mode on Mobile) */
  .story-section {
    padding: 55px 14px 65px;
  }

  .story-title {
    font-size: 3rem;
  }

  .story-sub {
    font-size: 0.74rem;
    letter-spacing: 1px;
  }

  .btn-story-deck-toggle {
    padding: 8px 18px;
    font-size: 0.75rem;
    margin-top: 10px;
  }

  .story-deck-wrapper {
    min-height: 340px;
  }

  /* Stacked State on Mobile */
  .story-deck.is-stacked {
    height: 340px;
    max-width: 260px;
  }

  .story-deck.is-stacked .story-polaroid {
    width: 200px;
  }

  .deck-tap-prompt {
    padding: 8px 16px;
    font-size: 0.72rem;
  }

  /* Spread State on Mobile */
  .story-deck.is-spread {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .story-deck.is-spread .story-polaroid {
    padding: 8px 8px 12px;
    border-radius: 10px;
  }

  .polaroid-caption {
    font-size: 0.82rem;
    margin-top: 6px;
  }

  /* 5. Journey Timeline (Flawless Royal Centered Ribbon & Symmetrical Milestones) */
  .timeline-section {
    padding: 55px 8px 45px;
  }

  .tl-title {
    font-size: 3rem;
  }

  .tl-sub {
    font-size: 0.98rem;
    padding: 0 10px;
  }

  .tl-lamp {
    width: 36px;
    top: 10px;
  }
  .tl-lamp-left { left: 6px; }
  .tl-lamp-right { right: 6px; }

  .tl-stage {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    min-height: auto;
  }

  /* Centered embroidered silk ribbon */
  .tl-ribbon-clip {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(44px, 13vw, 56px);
    height: 100%;
    z-index: 1;
    overflow: visible;
  }

  .tl-ribbon-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
  }

  .tl-items {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .tl-item {
    position: relative;
    width: calc(50% - 14px) !important;
    max-width: none !important;
  }

  .tl-left {
    align-self: flex-start !important;
    text-align: right !important;
    padding-right: 10px !important;
    padding-left: 0 !important;
  }

  .tl-right {
    align-self: flex-end !important;
    text-align: left !important;
    padding-left: 10px !important;
    padding-right: 0 !important;
  }

  /* Gold connector line extending between card and center ribbon */
  .tl-connector {
    display: block !important;
    position: absolute;
    top: 18px;
    width: 12px;
    height: 1.5px;
    background: #C9A24B;
    z-index: 4;
  }

  .tl-left .tl-connector {
    right: -12px;
    left: auto;
  }
  .tl-left .tl-connector::after {
    content: "◆";
    position: absolute;
    right: -4px;
    top: -5px;
    color: #D4AF37;
    font-size: 8px;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.8);
  }

  .tl-right .tl-connector {
    left: -12px;
    right: auto;
  }
  .tl-right .tl-connector::after {
    content: "◆";
    position: absolute;
    left: -4px;
    top: -5px;
    color: #D4AF37;
    font-size: 8px;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.8);
  }

  .tl-item-inner {
    background: #FFFDF9;
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    border-radius: 12px;
    padding: 10px 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    position: relative;
  }

  .tl-item.highlight-tl .highlight-inner {
    border: 2px solid #D4AF37;
    background: linear-gradient(135deg, #FFFDF8 0%, #FFF7E6 100%);
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.28);
  }

  .tl-milestone-badge {
    font-size: 1.15rem;
    margin-bottom: 2px;
  }

  .tl-item-title {
    font-size: 0.82rem;
    line-height: 1.25;
    margin-bottom: 2px;
  }

  .tl-desc {
    font-size: 0.7rem;
    line-height: 1.35;
    margin-bottom: 3px;
  }

  .tl-date {
    font-size: 0.62rem;
    letter-spacing: 0.3px;
  }

  /* 6. Horizontal Unrolled Scroll Invitation */
  .scroll-invitation-section {
    padding: 55px 8px 65px;
  }

  .scroll-main-title {
    font-size: 3rem;
  }

  .scroll-jhumka {
    width: 28px;
    top: -12px;
  }
  .jhumka-left { left: 2px; }
  .jhumka-right { right: 2px; }

  .scroll-invitation-h {
    max-width: 100%;
  }

  .handle-rod {
    width: 9px;
    height: 440px;
  }

  .handle-knob {
    width: 24px;
    height: 24px;
  }
  .knob-top { margin-bottom: -5px; }
  .knob-bottom { margin-top: -5px; }

  .paper-region-h {
    min-height: 440px;
  }

  .paper-inner-h {
    padding: 22px 8px;
  }

  .scroll-title-wrap {
    margin: 2px auto 8px;
  }

  .scroll-event-name {
    font-size: 1.65rem;
    line-height: 1.15;
  }

  .scroll-event-name-en {
    font-size: 0.68rem;
    letter-spacing: 2px;
  }

  .scroll-description {
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 8px;
  }

  .scroll-royal-divider {
    width: 100px;
    margin: 4px auto 8px;
  }

  .scroll-detail-row {
    font-size: 0.78rem;
    gap: 7px;
  }

  /* 7. Celebrations / Rituals */
  .celebrations-section {
    padding: 55px 12px 65px;
  }

  .celebrations-head {
    margin-bottom: 28px;
  }

  .cel-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 2px;
  }

  .cel-title {
    font-size: 2.3rem;
    line-height: 1.15;
  }

  .cel-sub {
    font-size: 0.98rem;
    padding: 0 8px;
  }

  .celebrations-grid {
    gap: 18px;
  }

  .event-ritual-card {
    padding: 8px;
    border-radius: 18px;
  }

  .card-inner-frame {
    padding: 3px;
    border-radius: 12px;
  }

  .event-art-wrap {
    height: 165px;
    border-radius: 10px;
  }

  .event-time-chip {
    padding: 3px 8px;
    font-size: 0.65rem;
    bottom: 8px;
    right: 8px;
  }

  .event-details-wrap {
    padding: 12px 10px 10px;
  }

  .event-attire-chip {
    font-size: 0.6rem;
    padding: 2.5px 8px;
    margin-bottom: 6px;
  }

  .event-name {
    font-size: 1.35rem;
  }

  .event-theme-sub {
    font-size: 0.92rem;
    margin-bottom: 10px;
  }

  .event-meta-list {
    margin-bottom: 12px;
    padding: 7px 8px;
  }

  .event-meta-row {
    font-size: 0.76rem;
    gap: 6px;
  }

  .meta-venue {
    font-size: 0.88rem;
  }

  .btn-event-map, .btn-event-cal {
    padding: 7px 8px;
    font-size: 0.64rem;
    letter-spacing: 0.3px;
  }

  /* 8. Before We Meet */
  .before-meet-section {
    padding: 55px 14px;
  }

  .before-title {
    font-size: 3rem;
  }

  .before-sub {
    font-size: 1rem;
  }

  /* 9. Venue & Countdown */
  .venue-countdown-section {
    padding: 55px 14px;
  }

  .vc-heading {
    font-size: 2.8rem;
  }

  .countdown-grid-wrap {
    gap: 5px;
  }

  .cd-box {
    min-width: 58px;
    padding: 8px 3px;
  }

  .cd-val {
    font-size: 1.4rem;
  }

  .cd-lbl {
    font-size: 0.6rem;
    letter-spacing: 0.5px;
  }

  .cd-dots {
    font-size: 1.2rem;
  }

  .dest-photo-box {
    height: 185px;
  }

  .dest-name {
    font-size: 1.45rem;
  }

  .dest-addr {
    font-size: 0.8rem;
  }

  .btn-dest-maps {
    padding: 10px 20px;
    font-size: 0.72rem;
  }

  /* 10. Blessings & RSVP */
  .heritage-footer {
    padding: 50px 14px 25px;
  }

  .blessings-wrap {
    padding: 28px 16px 24px;
  }

  .blessings-names {
    font-size: 2.8rem;
  }

  .blessings-en {
    font-size: 0.96rem;
  }



  /* Modals on Mobile */
  .story-modal-box {
    max-height: 90vh;
  }

  .sm-photo-col {
    padding: 14px;
  }

  .sm-polaroid {
    max-width: 190px;
    padding: 8px 8px 12px;
  }

  .sm-text-col {
    padding: 16px 14px;
  }

  .sm-title-text {
    font-size: 1.7rem;
  }

  .sm-loc-tag {
    font-size: 0.74rem;
  }

  .sm-story-desc {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }
}

/* --------------------------------------------------------------------------
   Smallest Phones (<= 375px: iPhone SE, older Android)
   -------------------------------------------------------------------------- */
@media (max-width: 375px) {
  .hero-main-names {
    font-size: clamp(1.22rem, 5.8vw, 1.55rem) !important;
    letter-spacing: 1px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }

  .std-circle-wrap {
    width: 280px;
    height: 280px;
  }

  .std-day {
    font-size: 2.1rem;
    letter-spacing: 1.5px;
  }

  .story-deck.is-stacked {
    max-width: 230px;
  }

  .story-deck.is-stacked .story-polaroid {
    width: 180px;
  }

  .handle-rod {
    width: 8px;
  }

  .handle-knob {
    width: 20px;
    height: 20px;
  }

  .cd-box {
    min-width: 52px;
    padding: 6px 2px;
  }

  .cd-val {
    font-size: 1.25rem;
  }

  .tl-stage {
    padding-left: 40px;
  }

  .tl-ribbon-clip {
    left: 10px;
    width: 18px;
  }

  .tl-connector {
    left: -28px;
    width: 28px;
  }
}
