/* ================================================
   SUPPLY SOLUTIONS — ABOUT PAGE RESPONSIVE CSS
   Add AFTER about-us.css:
   <link rel="stylesheet" href="about-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 ─── */
.hero-title,
.hero-content h1  { font-size: clamp(2rem, 6vw, 5.5rem); }
.section-heading  { font-size: clamp(1.6rem, 3.5vw, 2.8rem); }
.serve-header-section h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); }
.vm-card h3       { font-size: clamp(1.4rem, 3vw, 2rem); }
.values-header h3 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.stats-content h2 { font-size: clamp(1.4rem, 3vw, 2.5rem); }
.contact-header h2{ font-size: clamp(1.8rem, 3.5vw, 2.8rem); }

/* ─── NAVBAR ─── */
.navbar { height: 70px; }
.nav-wrapper { padding: 0 20px; height: 100%; }

.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-dark, #1a2f3d);
  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); }

/* ─── DROPDOWN (desktop hover) ─── */
.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;
  opacity: 1;
  visibility: visible;
  transform: none;
}
.dropdown:hover .dropdown-menu { display: block; }
.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);
  padding-left: 25px;
}

/* ─── HERO ─── */
.hero-section { margin-top: 70px; }

/* ─── STATISTICS: disable parallax on touch ─── */
@media (hover: none) {
  .statistics-banner { background-attachment: scroll; }
}

/* ======================================================
   TABLET — max-width: 1024px
   ====================================================== */
@media (max-width: 1024px) {

  /* Company Profile: stack */
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .profile-image {
    height: 400px;
  }

  /* Serve grid: 2 cols */
  .serve-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  /* Vision/Mission: stack */
  .vm-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Core Values: 2 cols */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Stats: column */
  .stats-grid {
    flex-direction: column;
    gap: 2.5rem;
  }

  /* Footer: 2 cols */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Sections: tighter padding */
  .company-profile,
  .how-we-serve-clients,
  .vision-mission,
  .contact-section { padding: 70px 0; }

  .statistics-banner {
    padding: 70px 0;
    background-attachment: scroll;
  }
}

/* ======================================================
   MOBILE — max-width: 768px
   ====================================================== */
@media (max-width: 768px) {

  /* ── Hamburger ── */
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .nav-menu.active { left: 0; }

  .nav-menu > li {
    width: 100%;
    border-bottom: 1px solid #f0ebe0;
  }

  .nav-menu > li > a,
  .nav-menu > li > span {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    color: #333;
    text-decoration: none;
  }

  .nav-menu > li > span {
    cursor: pointer;
    justify-content: space-between;
  }

  /* Mobile dropdown */
  .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);
  }

  .dropdown.open .dropdown-menu { display: block; }

  .dropdown-menu li a {
    padding: 12px 24px 12px 32px;
    font-size: 0.9rem;
  }

  /* ── Hero ── */
  .hero-section {
    height: 400px;
  }

  /* ── Company Profile ── */
  .company-profile { padding: 60px 0; }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .profile-image {
    height: 300px;
    border-radius: 8px;
  }

  .section-heading { margin-bottom: 1rem; }

  /* ── How We Serve ── */
  .how-we-serve-clients { padding: 60px 0; }

  .serve-header-section { margin-bottom: 2.5rem; }

  .serve-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .serve-card {
    padding: 0 8px;
  }

  /* ── Vision & Mission ── */
  .vision-mission { padding: 60px 0; }

  .vm-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .vm-card { padding: 2rem 1.5rem; }

  /* Core Values: 2 cols on mobile (icons are small enough) */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .value-item { padding: 1.5rem 1rem; }

  .core-values { margin-top: 3rem; }

  /* ── Statistics ── */
  .statistics-banner {
    padding: 60px 0;
    background-attachment: scroll;
  }

  .stats-grid {
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
  }

  .stat-number { font-size: clamp(2.5rem, 8vw, 4rem); }

  /* ── Contact ── */
  .contact-section { padding: 60px 0; }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    font-size: 1rem;
  }

  .btn-submit {
    width: 100%;
    padding: 1rem;
  }

  /* ── Footer ── */
  .footer { padding: 50px 0 20px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-about { padding-right: 0; }

  /* ── General ── */
  .container { padding: 0 16px; }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}

/* ======================================================
   SMALL MOBILE — max-width: 480px
   ====================================================== */
@media (max-width: 480px) {

  .hero-section { height: 320px; }

  /* Core Values: 1 col on very small screens */
  .values-grid {
    grid-template-columns: 1fr;
  }

  .vm-card { padding: 1.5rem 1.25rem; }

  .btn-primary {
    width: 100%;
    text-align: center;
  }

  .profile-text { font-size: 0.98rem; }

  .serve-card p { font-size: 0.93rem; }

  .stat-number { font-size: 2.8rem; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: flex !important;
    left: -100%;
  }

  .nav-menu.active {
    left: 0 !important;
  }
}

/* Dropdown arrow */
.dropdown > span::after {
  content: '';
  display: inline-block;
  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;
}

@media (max-width: 768px) {
  .dropdown.open > span::after {
    transform: rotate(-135deg);
    margin-top: 2px;
  }
}

/* Desktop nav vertical centering fix */
@media (min-width: 769px) {
  .nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
  }

  .nav-menu {
    display: flex;
    align-items: center;
  }
}

/* Mobile dropdown open state */
@media (max-width: 768px) {

  .dropdown > span {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 24px;
    cursor: pointer;
  }

  .dropdown > span::after {
    content: '';
    display: inline-block;
    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 > span::after {
    transform: rotate(-135deg);
    margin-top: 4px;
  }

  .dropdown .dropdown-menu {
    display: none !important;
  }

  .dropdown.open .dropdown-menu {
    display: block !important;
  }
}