/* ==========================================================================
   Maa Laxmi Dudh Dairy — layout fixes (loaded after style.css on every page)
   ========================================================================== */

/* ---------- Footer: keep side padding --------------------------------------
   .footer-top shares the element with .container. A padding rule on
   .footer-top in style.css was overriding the container's side padding,
   so on phones the footer text touched the screen edge. */
.site-footer .container {
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Header on phones ---------------------------------------------- */
@media (max-width: 640px) {
  .site-header .nav-wrap {
    gap: 10px;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* logo + name may shrink so the buttons always fit */
  .site-header .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }
  .site-header .brand-mark img {
    width: 40px;
    height: auto;
  }
  .site-header .brand-text {
    font-size: clamp(.95rem, 4.3vw, 1.15rem);
    line-height: 1.15;
    white-space: normal;   /* may wrap to 2 lines on narrow phones */
    overflow-wrap: anywhere;
  }

  .site-header .nav-toggle,
  .site-header .nav-cta {
    flex: none;
  }
  .site-header .nav-cta {
    gap: 8px;
  }

  /* Login lives inside the ☰ menu on phones, so hide the dropdown here */
  .site-header .nav-dropdown {
    display: none;
  }

  /* WhatsApp becomes a round icon button */
  .site-header .nav-wa {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .site-header .nav-wa svg {
    width: 22px;
    height: 22px;
    margin: 0;
  }
  .site-header .nav-wa-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* very small phones (e.g. iPhone SE, 320px) */
@media (max-width: 360px) {
  .site-header .brand-mark img { width: 34px; }
}
