
/* =======================================================
   Mobile Overrides (non-destructive)
   Place this file AFTER reset.css, framework.css, style.css, dark.css
   Goal: Improve mobile without changing desktop layout
   ======================================================= */

/* 1) Core container & widths */
@media (max-width: 1200px) {
  .content-width,
  .media-video-container,
  .hero-video {
    max-width: 100%;
    width: 100%;
    padding-inline: 16px;
    box-sizing: border-box;
  }
  .container { max-width: 100%; }
}

/* 2) Media: make fixed-size videos responsive */
@media (max-width: 1280px) {
  .media-video,
  .promo-video,
  .about-video,
  .hero-video {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    display: block;
  }
  /* Featured video container already uses aspect-ratio in style.css, just make sure iframe fills */
  .media-video-container .media-video {
    width: 100% !important;
    height: auto !important;
  }
}

/* 3) Top bar & navigation */
@media (max-width: 900px) {
  .tb-logo {
    margin-left: 16px;
  }
  .tb-menu {
    display: none;
    height: auto;
    padding-left: 16px;
  }
  .tb-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
  }
  .tb-menu ul li {
    float: none;
    margin: 0;
    padding: 8px 10px;
  }
  .tb-social ul {
    display: flex;
    gap: 8px;
  }
  .tb-social ul li {
    float: none;
    margin: 0;
  }
  .menu-mobile {
      display: block;
  }
  nav {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    background: #F5F5F5;
    flex-direction: column;
    align-items: center;
    display: none;
    z-index: 999;
    border-top: 1px solid #11151C;
    font-weight: bold;
    font-size: 0.8rem;
  }
  nav.show {
    display: flex;
  }
  nav a {
    padding: 15px 0;
    color: #11151C;
    text-decoration: none;
    text-transform: uppercase;
  }
  .menu-toggle {
    display: block;
    background: #11151C;
    border: 2px solid #11151C;
    padding: 0.65rem 0.5rem;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: 2px;
    color: #F5F5F5;
    cursor: pointer;
    margin-right: 25px;
  }
}

/* 4) Utility widths stack on small screens */
@media (max-width: 768px) {
  .one-third-width,
  .two-thirds-width,
  .half-width,
  .quarter-width,
  .content-width {
    width: 100% !important;
  }
}

/* 5) Headlines & large text scale down */
@media (max-width: 768px) {
  .mp-headline { font-size: clamp(28px, 5vw, 48px); margin: 24px 0; }
  .mp-headline p { padding: 8px 14px; }
  .hero-phrase { font-size: clamp(16px, 3.5vw, 20px); padding: 16px; }
  .verse-counter-number { font-size: clamp(40px, 12vw, 72px); padding: 0 16px; }
  .verse-counter-text { font-size: clamp(18px, 4.5vw, 24px); margin-bottom: 24px; }
}

/* 6) Scrolling marquee text & controls */
@media (max-width: 768px) {
  .scroll-wrapper { height: 64px; padding-top: 20px; }
  .scroll p { font-size: clamp(24px, 7vw, 36px); letter-spacing: 1px; }
  .scroll img { height: 40px; margin: 0 12px; }
  .scroll-down { margin-top: -20px; }
  .scroll-fade-left { display: none; }
  .scroll-fade-right {display: none; }
}

/* 7) Footer lists wrap better on mobile */
@media (max-width: 768px) {
  #footer ul { padding-left: 0; }
  #footer ul li { height: auto; line-height: 1.4; margin-bottom: 6px; }
}

/* 8) Resources list touch targets */
@media (max-width: 768px) {
  #resources ul li { padding: 14px; }
}

/* 9) Forms: inputs fill width */
@media (max-width: 768px) {
  .contact-form-text { width: 100%; margin: 8px 0; padding: 12px; font-size: 16px; }
  .contact-submit { width: 100%; padding: 12px; font-size: 16px; }
}

/* 10) Video thumbnail grid: tighter gap on mobile */
@media (max-width: 768px) {
  .thumb-grid { gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .thumb-title { font-size: 0.95rem; }
}

/* 11) Prevent horizontal overflow by default */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
}

/* 12) Helpful utilities */
@media (max-width: 768px) {
  .center-text-sm { text-align: center !important; }
  .stack-sm > * + * { margin-top: 12px; }
}