/* ============================================================
   mobile.css — ThingsYouMustKnow
   Add this to EVERY page:
   <link rel="stylesheet" href="mobile.css">
   ============================================================ */

/* ── Hamburger Button ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hamburger → X animation when open */
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Mobile Styles (max 768px) ── */
@media (max-width: 768px) {

  /* Show hamburger, hide normal nav layout */
  .hamburger { display: flex; }

  .site-header {
    flex-wrap: nowrap !important;
    position: relative;
    padding: 12px 5%;
  }

  /* Nav hidden by default on mobile */
  nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid #00a36c;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 199;
    padding: 10px 0 14px;
    width: 100%;
    margin-top: 0 !important;
  }

  /* Nav visible when .open class added by JS */
  nav.open { display: block !important; }

  nav ul {
    flex-direction: column !important;
    gap: 2px !important;
    padding: 0 16px;
  }

  nav a {
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-align: left !important;
    display: block;
  }

  nav a.active {
    background: #00a36c;
    color: white;
  }

  /* Logo sizing on mobile */
  .logo {
    font-size: 1.1em !important;
    gap: 10px !important;
  }
  .logo::before {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.1em !important;
  }

  /* Hero text sizing */
  .hero h1 { font-size: 1.8rem !important; }
  .hero p  { font-size: 0.95rem !important; }

  /* Hero stats — wrap nicely */
  .hero-stats {
    gap: 1.5rem !important;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Featured cards go single column */
  .featured-card,
  .featured-tip  { grid-template-columns: 1fr !important; }
  .featured-img,
  .ft-right      { min-height: 180px !important; }

  /* Product / tips grids go single column */
  .product-grid,
  .tips-grid,
  .strip-grid,
  .news-grid,
  .reason-grid   { grid-template-columns: 1fr !important; }

  /* Contact form row */
  .form-row { grid-template-columns: 1fr !important; }

  /* Sidebar stacks below content */
  .tips-main,
  .contact-main  { grid-template-columns: 1fr !important; }

  /* Sidebar cards go side by side on tablet */
  .contact-sidebar,
  .sidebar { display: flex; flex-direction: column; }

  /* Filter bar scroll */
  .cat-bar,
  .filter-bar { overflow-x: auto; flex-wrap: nowrap !important; }

  /* Newsletter form stacks */
  .newsletter form  { flex-direction: column; align-items: center; }
  .newsletter input { width: 100% !important; max-width: 320px; }

  /* Form card padding */
  .form-card { padding: 20px 16px !important; }
}

/* ── Tablet (768px – 1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .tips-grid    { grid-template-columns: repeat(2, 1fr) !important; }
  .strip-grid   { grid-template-columns: repeat(2, 1fr) !important; }
  .reason-grid  { grid-template-columns: repeat(2, 1fr) !important; }
}
