/* =========================
   MOBILE RESPONSIVE STYLES
   Osun Community Website
   ========================= */

/* ===== SMALL PHONES (DEFAULT MOBILE) ===== */
@media (max-width: 480px) {

  body {
    font-size: 15px;
  }
html, body {
  background: var(--cream);
  overscroll-behavior: none;
  min-height: 100%;
}
  section {
    padding: 55px 5%;
  }

  h1 {
    font-size: clamp(32px, 10vw, 48px);
    line-height: 1.05;
  }

  h2 {
    font-size: 24px;
    line-height: 1.2;
  }

  p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  /* ===== HEADER ===== */
  .site-header,
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 5%;
  }

  /* NAV LINKS STACK */
  nav,
  .nav-links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  nav a,
  .nav-links a {
    margin: 0;
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  /* ===== HERO ===== */
  .hero,
  .contact-hero {
    padding: 90px 5% 70px;
  }

  .hero img {
    width: 130px;
  }

  /* ===== ABOUT + COMMUNITY ===== */
  #about .intro {
    margin-bottom: 25px;
  }

  #about .intro h2 {
    font-size: 26px;
  }

  #about .intro p {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .gallery {
    grid-template-columns: 1fr !important;
    gap: 12px;
    margin-top: 15px;
  }

  .gallery img {
    height: 200px;
    border-radius: 14px;
  }

  /* ===== CARDS ===== */
  .cards {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .card {
    padding: 22px;
  }

  /* ===== CONTACT ===== */
  .contact-content {
    grid-template-columns: 1fr !important;
    gap: 30px;
    padding-top: 50px;
  }

  .contact-form {
    padding: 22px;
  }

  input,
  textarea {
    font-size: 0.95rem;
  }

  button {
    width: 100%;
  }

  /* ===== FOOTER ===== */
  footer {
    text-align: center;
    padding: 30px 5%;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 22px;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ===== TABLETS ===== */
@media (max-width: 768px) {

  .site-header,
  header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards {
    grid-template-columns: 1fr;
  }

  /* ===== MOBILE MENU SYSTEM ===== */
  .menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }
}

/* ===== MOBILE MENU OVERRIDE (IMPORTANT FIX) ===== */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--cream);
    cursor: pointer;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-container {
    align-items: flex-start;
  }
}