/* ===========================
   responsive.css
   Handles breakpoints & hamburger menu
   =========================== */

/* ----- Hamburger Button ----- */
.hamburger,
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
}

/* ----- Menu ----- */
.menu,
#mainMenu {
  display: flex;
  list-style: none;
  gap: 20px;
}

/* ===========================
   Responsive Breakpoints
   =========================== */

/* ----- Mobile Portrait ≤480px ----- */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 28px;
  }
  .hero-content p {
    font-size: 16px;
  }
  .hero-image {
    min-width: 100%;
  }
  nav {
    padding: 0 12px;
  }

  .headings {
    font-size: 24px;
    margin: 20px 0 15px;
  }
  .product-content h1 {
    font-size: 22px;
  }
  .product-content p {
    font-size: 14px;
  }
  .tagline {
    font-size: 1rem;
  }

  /* Hamburger & menu */
  #mainMenu {
    display: none;
    flex-direction: column;
    background: #e6f0ff;
    width: 100%;
  }
  #mainMenu.show {
    display: flex;
  }
}

/* ----- Mobile Landscape / Small Tablets ≤576px ----- */
@media (max-width: 576px) {
  .hero-section {
    flex-direction: column;
    padding: 30px 15px;
    gap: 20px;
    text-align: center;
  }
  .hero-content,
  .hero-image {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .menu {
    display: none;
    position: absolute;
    top: 75px;
    right: 0;
    width: 240px;
    background: #e6f0ff;
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  .menu.show {
    display: flex;
  }
  .menu li {
    width: 100%;
  }
  .menu a {
    padding: 12px 20px;
    font-size: 16px;
  }

  .dropdown,
  .sub-dropdown {
    position: static;
    min-width: unset;
    box-shadow: none;
  }

  .product-section {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 20px 8% 40px;
  }
  .headings {
    font-size: 28px;
  }
  .product-content h1 {
    font-size: 26px;
  }
  .product-content p {
    font-size: 15px;
  }

  .nav-toggle,
  .hamburger {
    display: flex;
  } /* show hamburger */
}

/* ----- Tablet Portrait ≤768px ----- */
@media (max-width: 768px) {
  .hero-content {
    max-width: 100%;
  }
  .hero-image {
    min-width: 100%;
  }

  .product-section {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 20px 8% 40px;
  }
  .headings {
    font-size: 28px;
  }
  .product-content h1 {
    font-size: 26px;
  }
  .product-content p {
    font-size: 15px;
  }
}

/* ----- Tablet Landscape ≤992px ----- */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 36px;
  }

  .product-section {
    gap: 30px;
    padding: 20px 5% 50px;
  }
  .headings {
    font-size: 30px;
  }
  .product-content h1 {
    font-size: 28px;
  }

  /* Mobile menu toggle */
  .menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #e6f0ff;
    padding: 20px;
    z-index: 999;
  }
  .menu.show {
    display: block;
  }
  .menu ul {
    flex-direction: column;
  }
  .nav-toggle {
    display: block;
  }
}

/* ----- Small Laptop ≤1200px ----- */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 40px;
  }
  .headings {
    font-size: 32px;
  }
  .product-content h1 {
    font-size: 32px;
  }
}

/* ----- Standard Desktop ≥1201px ----- */
@media (min-width: 1201px) {
  .hero-content h1 {
    font-size: 48px;
  }
  .menu {
    display: flex !important;
  }
  .nav-toggle {
    display: none;
  } /* hide hamburger */
}

/* ----- Large Desktop ≥1920px ----- */
@media (min-width: 1920px) {
  body {
    font-size: 18px;
  }
}
/* Default: hide hamburger on desktop */
.nav-toggle,
.hamburger {
  display: none; /* hide by default */
}

/* Mobile / Tablet: show hamburger */
@media (max-width: 991px) {
  .nav-toggle,
  .hamburger {
    display: flex; /* show on smaller screens */
  }
}

/* Desktop: hide hamburger */
@media (min-width: 992px) {
  .nav-toggle,
  .hamburger {
    display: none; /* hide on larger screens */
  }
}
