/* =====================================================
   Desktop — hide mobile-only elements
   ===================================================== */
.nav-hamburger   { display: none; }
.nav-mobile-menu { display: none; }

/* =====================================================
   Mobile — max 720px
   ===================================================== */
@media (max-width: 720px) {

  /* ── Header ── */
  header {
    padding: 0.4rem 1rem !important;
    background: transparent !important;
    backdrop-filter: none !important;
  }

  header.shrink {
    background: transparent !important;
    backdrop-filter: none !important;
  }

  /* ── Nav: logo centred, hamburger absolute right ── */
  .nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    position: relative;
  }

  /* Hide desktop link groups */
  .nav-links { display: none; }

  /* Hide lang toggle from header on mobile — it's inside the dropdown */
  .lang-toggle { display: none; }

  /* Logo */
  .nav-logo img {
    height: 100px !important;
  }

  header.shrink .nav-logo img {
    height: 50px !important;
  }

  /* ── Hamburger button ── */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 36px;
    flex-shrink: 0;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-hamburger span {
    display: block;
    height: 1.5px;
    background: #fff;
    border-radius: 2px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.65));
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  .nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* ── Mobile dropdown menu ── */
  .nav-mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 8, 5, 0.88);
    backdrop-filter: blur(12px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s ease;
    z-index: 300;
  }

  .nav-mobile-menu.is-open {
    max-height: 480px;
  }

  .nav-mobile-menu a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.95rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.88);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s ease, color 0.2s ease;
    font-family: "FjordOne-Regular", Georgia, serif;
  }

  .nav-mobile-menu a:hover {
    background: rgba(184,154,90,0.12);
    color: #fff;
  }

  .nav-mobile-lang {
    display: flex;
    gap: 0.8rem;
    padding: 1rem 0;
  }

  /* ── Sections ── */
  .bg-photo-section {
    min-height: 100vh;
    margin-bottom: 100vh;
  }

  .bg-photo-section:last-of-type {
    margin-bottom: 0;
  }

  /* Paper cards: generous padding but not excessive */
  .paper-card {
    min-height: auto;
    padding: 3.2rem 1.6rem 3.6rem;
    font-size: 1rem;
  }

  /* Invitation card */
  .section--invitation .paper-card--details {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  /* Formal invitation text — tighter on mobile */
  .invitation-formal { margin-bottom: 2rem; max-width: 100%; }
  .invite-names { font-size: clamp(2.8rem, 12vw, 4rem); }
  .invite-day   { font-size: clamp(1.2rem, 5vw, 1.6rem); }

  /* FAQ accordion — slightly smaller answer max-height on mobile */
  .faq-item.is-open p { max-height: 500px; }

  /* Footer monogram smaller on mobile */
  .footer-monogram { height: 40px; }

  /* Two-column → one column */
  .two-col { grid-template-columns: 1fr; gap: 2rem; }

  /* ── Countdown ── */
  /* Hero countdown (on photo, white) */
  .countdown--hero {
    width: 100%;
    margin: 0 auto;
    padding: 0 1.2rem;
    justify-content: center;
    gap: clamp(0.8rem, 4vw, 2rem);
    bottom: 6vh;
  }

  .countdown--hero .count-unit {
    flex: 0 0 auto;
    min-width: 0;
  }

  .countdown--hero .count-number {
    font-size: clamp(2.2rem, 8.5vw, 3.5rem);
    letter-spacing: 0.04em;
    width: auto;
  }

  .countdown--hero .count-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    margin-top: 0.35rem;
  }

  /* Inline countdown (inside paper card) */
  .countdown--elegant {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    padding: 0;
  }

  .countdown--elegant .count-unit { min-width: 0; flex: 1; text-align: center; }
  .countdown--elegant .count-number {
    font-size: clamp(2rem, 9vw, 3rem);
    letter-spacing: 0.02em;
    width: auto;
  }
  .countdown--elegant .count-label {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    margin-top: 0.4rem;
  }

  /* ── h2 on mobile ── */
  h2 {
    font-size: clamp(2.8rem, 7vw, 3.6rem);
    margin-bottom: 1.2rem;
  }

  /* ── Details section ── */
  .details-date {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 1.2rem;
  }

  .details-strip-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .details-icon {
    height: 140px;
  }

  .details-block-title {
    font-size: 0.82rem;
  }

  .details-block-sub {
    font-size: 0.82rem;
  }

  /* ── Envelope — full width on mobile ── */
  .envelope-scene {
    width: min(340px, 92vw);
  }

  .env-letter {
    transition: opacity 1.8s ease;
  }

  .env-body {
    transition: transform 1.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.6s ease;
  }

  /* ── Story section ── */
  .paper-card--story { padding: 3.2rem 1.6rem 4rem; }

  .story-big-title {
    font-size: clamp(3.4rem, 10vw, 4.5rem);
    margin-bottom: 1.8rem;
  }

  .story-two-col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .story-photo-col {
    order: -1;
    margin-bottom: 2rem;
  }

  .story-oval-wrap { width: 58%; }
  .story-polaroids-row { width: 100%; }
  .story-polaroid { max-width: 115px; padding: 6px 6px 26px; }
  .story-polaroid--1 { max-width: 130px; }

  /* Collapsible story text */
  .story-text-body {
    position: relative;
    max-height: 9rem;
    overflow: hidden;
    transition: max-height 0.55s ease;
  }

  /* max-height when expanded set via JS (scrollHeight) — see initStoryToggle() */

  .story-text-body::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3.5rem;
    background: linear-gradient(to bottom, transparent, var(--story-bg, #faf8f4));
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .story-text-body.is-expanded::after {
    opacity: 0;
  }

  /* Story toggle button */
  .story-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.1rem;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-dark);
    cursor: pointer;
    font-family: "FjordOne-Regular", Georgia, serif;
    font-style: italic;
    opacity: 0.82;
    transition: opacity 0.2s ease;
  }

  .story-toggle-btn:hover { opacity: 1; }

  .story-toggle-btn .btn-arrow {
    display: inline-block;
    font-style: normal;
    font-size: 1rem;
    transition: transform 0.35s ease;
    line-height: 1;
  }

  .story-toggle-btn.is-expanded .btn-arrow {
    transform: rotate(180deg);
  }

  /* ── Registry grid ── */
  .registry-grid { grid-template-columns: 1fr; gap: 1.4rem; }

  /* ── FAQ ── */
  .faq-item .label { font-size: 0.72rem; }
  .faq-item p { font-size: 1rem; }

  /* ── Invitation text ── */
  .invite-request.invite-request--big { font-size: 1.26rem; }

  /* ── RSVP ── */
  .rsvp-lead { font-size: 0.88rem; }
  .rsvp-form { max-width: 100%; }
  .rsvp-form input,
  .rsvp-form select,
  .rsvp-form textarea { font-size: 1rem; } /* prevent iOS zoom */

  /* ── Hotel ── */
  .hotel-rate-note { font-size: 0.85rem; }
  .hotel-btns { flex-direction: column; align-items: center; }

  /* ── Touch targets: ensure 44px minimum on all interactive elements ── */
  .details-pill,
  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .lang-btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .rates-modal-close,
  #btn-honeymoon-close,
  #btn-honeymoon-close-bottom {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
  }

  .zelle-copy-btn {
    min-height: 36px;
    padding: 0.5rem 0.9rem;
  }
}

/* =====================================================
   Hide story toggle on desktop
   ===================================================== */
@media (min-width: 721px) {
  .story-toggle-btn { display: none; }

  /* Break invitation text out to full viewport width so it can be big and centred */
  .invitation-formal--simple {
    width: 100vw;
  }

}

/* =====================================================
   #site-bg is position:fixed and handles all backgrounds.
   No mobile override needed — works on iOS too.
   ===================================================== */
