/* ================================================
   SUPPLY SOLUTIONS — HOTEL SUPPLIES RESPONSIVE CSS
   Add AFTER hotel-supplies.css:
   <link rel="stylesheet" href="hotel-responsive.css">
   ================================================ */

/* ─── BASE ─── */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; width: 100%; }
img { max-width: 100%; height: auto; display: block; }

/* ─── FLUID TYPOGRAPHY ─── */
.header-content h1   { font-size: clamp(1.6rem, 4vw, 3rem); }
.product-content h2  { font-size: clamp(1.4rem, 3vw, 2rem); }
.contact-header h2   { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }

/* ─── NAVBAR ─── */
.navbar { height: 70px; }
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 100%;
}

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--navy-blue, #1a2332);
  border-radius: 3px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ─── DESKTOP NAV CENTERING ─── */
@media (min-width: 769px) {
  .nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
  }
  .nav-menu {
    display: flex;
    align-items: left;
  }
}

/* ─── DESKTOP DROPDOWN ─── */
/* This page uses <a> directly (not <span>) for dropdowns */
.dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  min-width: 220px;
  list-style: none;
  padding: 8px 0;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 8px;
  z-index: 2000;
}

.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu li { padding: 0; }
.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #333;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu li a:hover {
  background: #f9f5ef;
  color: var(--gold, #c9a55c);
}

/* ─── DROPDOWN ARROW (desktop) ─── */
.dropdown > a::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: rotate(45deg);
  margin-left: 6px;
  margin-bottom: 2px;
  transition: transform 0.3s ease;
  vertical-align: middle;
}

/* ─── PAGE HEADER ─── */
.page-header { margin-top: 70px; }

/* ─── PARALLAX OFF on touch ─── */
@media (hover: none) {
  .page-header { background-attachment: scroll; }
}

/* ======================================================
   TABLET — max-width: 968px
   ====================================================== */
@media (max-width: 968px) {

  .page-header { height: 350px; }

  /* Product rows: stack */
  .product-row,
  .product-row.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }

  /* On tablet, alternate image position manually */
  .product-section:nth-child(even) .product-image {
    order: -1;
  }

  .product-image img { height: 320px; }

  .product-number { font-size: 5rem; }

  /* Footer: 2 cols */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .product-section { padding: 70px 0; }
}

/* ======================================================
   MOBILE — max-width: 768px
   ====================================================== */
@media (max-width: 768px) {

  /* ── Hamburger ── */
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    left: -100%; top: 70px;
    flex-direction: column;
    background: var(--cream);
    width: 100%; text-align: left;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0,0,0,0.08);
    padding: 2rem 0;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

  .nav-menu.active { left: 0; }

  .nav-menu > li {
    width: 100%;
    border-bottom: 1px solid #f0ebe0;
  }

  /* Regular links */
  .nav-menu > li > a {
    display: block;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    width: 100%;
  }

  /* Hide desktop arrow on mobile */
  .dropdown > a::after { display: none; }

  /* Mobile dropdown toggle via JS adding .open */
  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border-radius: 0;
    background: #f9f5ef;
    width: 100%;
    padding: 0;
    border-left: 3px solid var(--gold, #c9a55c);
    min-width: unset;
  }

  .dropdown.open .dropdown-menu { display: block; }

  .dropdown-menu li a {
    padding: 12px 24px 12px 32px;
    font-size: 0.9rem;
  }

  /* ── Page Header ── */
  .page-header { height: 250px; }

  /* ── Product Sections ── */
  .product-section { padding: 50px 0; }

  .product-row,
  .product-row.reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    direction: ltr;
  }

  /* Image always on top on mobile */
  .product-image { order: -1; }
  .product-image img { height: 260px; border-radius: 10px; }

  .product-number { font-size: 4rem; }

  .cta-button { width: 100%; text-align: center; }

  /* ── Contact ── */
  .contact-section { padding: 60px 0; }

  .contact-form input,
  .contact-form textarea { width: 100%; font-size: 1rem; }

  .submit-button { width: 100%; }

  /* ── Footer ── */
  .footer { padding: 50px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* ── General ── */
  .container { padding: 0 16px; }

  .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
  .scroll-top { bottom: 80px; left: 16px; width: 42px; height: 42px; font-size: 1.2rem; }
}

/* ======================================================
   SMALL MOBILE — max-width: 480px
   ====================================================== */
@media (max-width: 480px) {
  .page-header { height: 470px; }
  .product-image img { height: 220px; }
  .product-number { font-size: 3rem; }
  .breadcrumb { font-size: 0.82rem; }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex !important;
  }

  .nav-menu {
    display: flex !important;
    position: fixed;
    left: -100%;
  }

  .nav-menu.active {
    left: 0 !important;
  }
}


@media (max-width: 768px) {
  .dropdown > a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }

  .dropdown > a::after {
    content: '';
    display: inline-block !important;
    width: 8px;
    height: 8px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }

  .dropdown.open > a::after {
    transform: rotate(-135deg);
    margin-top: 4px;
  }
}