/* Mobile layout for all pages. Loaded after each page's inline styles. */

.nav-toggle { display: none; }

@media (max-width: 768px) {

  /* ── Nav: burger + full-screen menu ── */
  #nav { padding: 0 16px; }
  .nav-logo { margin-left: 0; position: relative; z-index: 2; }
  .nav-logo-img { height: 52px; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-navy);
    position: relative;
    z-index: 2;
  }
  .nav-toggle span {
    display: block;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.2s ease;
  }
  .home #nav:not(.scrolled):not(.nav-open) .nav-toggle { color: var(--warm-ivory); }
  #nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  #nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  #nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .nav-links, .nav-book { display: none; }

  #nav.nav-open { background: var(--off-white); }
  #nav.nav-open .nav-logo-img { filter: none; }
  #nav.nav-open .nav-links {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    background: var(--off-white);
  }
  #nav.nav-open .nav-links a {
    font-size: 15px;
    color: var(--ink-navy);
    opacity: 1;
  }
  #nav.nav-open .nav-book {
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 40px;
    z-index: 1;
    padding: 18px;
    text-align: center;
    background: var(--ink-navy);
    color: var(--off-white);
  }

  /* ── Shared page headers ── */
  .page-header { padding: calc(var(--nav-h) + 40px) 16px 40px; }
  .page-header-title { font-size: 56px; }

  /* Stays sticky so the navy sections slide over it (top set in mobile.js) */
  .about-intro-sticky,
  .packages-intro-sticky {
    height: auto;
    padding: calc(var(--nav-h) + 40px) 0 56px;
  }
  .about-intro-sticky .page-header,
  .packages-intro-sticky .page-header { padding: 0 16px 28px; }
  .about-intro-sticky .about-intro,
  .packages-intro { padding: 0 16px; }
  .about-intro-statement,
  .packages-intro-statement { font-size: 26px; margin-bottom: 24px; }

  /* ── Footer CTA + footer ── */
  .footer-cta { padding: 56px 16px 24px; }
  .fcta-label { margin-bottom: 24px; }
  .fcta-headline { font-size: 46px; margin-bottom: 36px; }
  .fcta-btn { padding: 18px 32px; }

  footer { padding: 16px 16px 32px; }
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-base > div { align-items: flex-start !important; }
  .footer-social { justify-content: flex-start; }

  /* ── Home ── */
  .intro { padding: calc(var(--nav-h) + 24px) 16px 48px; align-items: flex-start; height: auto; }
  .intro-eyebrow { margin-bottom: 28px; }
  .intro-headline { font-size: 46px; }
  .intro-spacer { height: 120px; }

  #work.work { padding: 32px 16px 56px; }
  .work-grid { grid-template-columns: 1fr; row-gap: 16px; }
  .work-grid .work-card,
  .work-grid .work-view-all--bottom {
    grid-column: auto !important;
    grid-row: auto !important;
    margin-top: 0 !important;
  }
  .work-grid .work-card { aspect-ratio: 16 / 9 !important; }
  /* No hover on touch: keep titles and Watch Film visible */
  .work-grid .work-card-overlay {
    padding: 16px;
    background: linear-gradient(to top, rgba(3,27,69,0.8), rgba(3,27,69,0) 65%);
  }
  .work-grid .work-card-info { opacity: 1; transform: none; }
  .work-grid .wci-title { font-size: 18px; margin-bottom: 10px; }

  .credentials { padding: 28px 0; }
  .cred-track { gap: 56px; animation-duration: 18s; }
  .cred-item img { height: calc(var(--h, 36px) * 0.75); }

  /* ── Work ── */
  .work { padding-bottom: 0; }
  /* Not sticky: once the reel unpins it slid down over the bottom of the videos */
  .filter-bar {
    position: relative;
    top: auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 12px 16px;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  /* Swipe hint: background stays put while the buttons scroll; hidden at the end (mobile.js) */
  .filter-bar {
    padding-bottom: 28px;
    background: var(--off-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='12' fill='none' stroke='%238AB2F0' stroke-width='1.5'%3E%3Cpath d='M0 6h31M26 1l5 5-5 5'/%3E%3C/svg%3E") no-repeat right 16px bottom 8px;
  }
  .filter-bar.at-end { background-image: none; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; }
  .work-columns,
  .work-filtered-grid { grid-template-columns: repeat(2, 1fr); }
  .work-columns .work-card-overlay,
  .work-filtered-grid .work-card-overlay { padding: 10px; }
  .work-columns .wci-client,
  .work-filtered-grid .wci-client { font-size: 8px; margin-bottom: 4px; }
  .work-columns .wci-title,
  .work-filtered-grid .wci-title { font-size: 13px; margin-bottom: 8px; }
  .work-columns .wci-btn,
  .work-filtered-grid .wci-btn { padding: 6px 10px; font-size: 9px; }

  /* ── About ── */
  .about-sections { padding: 56px 16px 64px; }
  .about-row { grid-template-columns: 1fr; gap: 28px; margin-bottom: 64px; }
  .about-closing { padding: 0 16px 64px; }
  .about-closing-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .about-logos-col { min-height: 140px; }

  /* ── Packages ── */
  .packages { padding: 48px 16px 64px; }
  .packages-grid { grid-template-columns: 1fr; gap: 12px; }
  .pkg-card { padding: 32px 24px 36px; }

  /* ── Contact ── */
  .contact-section { padding: calc(var(--nav-h) + 32px) 16px 64px; }
  /* Photos sit between the intro paragraph and the form */
  .contact-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-left { display: contents; }
  .contact-photos { order: 1; margin-top: 32px; }
  .contact-form-wrap,
  .contact-direct { order: 2; }
  .contact-intro-text { font-size: 20px; line-height: 1.5; }
  .contact-photos { height: auto; width: 100%; }
  .contact-form input,
  .contact-form textarea { font-size: 16px; } /* stops iOS zooming in on focus */
}
