/* ============================================================
   Aromates Spices — responsive.css
   Mobile-first responsive overrides
   ============================================================ */

/* ── Mobile (320px+) ─────────────────────────────────────── */
@media (max-width: 479px) {
  :root {
    --section-padding: 64px;
  }

  .hero-heading { font-size: 2rem; }
  .section-title { font-size: 1.875rem; }

  .stat-card { padding: 1.25rem 1rem; }
  .stat-card__number { font-size: 2rem; }

  .btn-xl { padding: 1rem 2rem; font-size: 0.8125rem; }

  .cta-box { padding: 2.5rem 1.25rem; }

  .pull-quote { font-size: 1.375rem; }

  .footer-grid { padding-block: 3rem; }

  .parallax-section { min-height: 80vh; }

  /* Stack process steps clearly */
  .process-grid { gap: 1.5rem; }
}

/* ── Tablet (768px – 1023px) ─────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  :root { --section-padding: 80px; }

  .two-col { gap: 2rem; }

  .stats-grid { gap: 1.25rem; }

  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Desktop (1024px+) ───────────────────────────────────── */
@media (min-width: 1024px) {
  :root { --section-padding: 96px; }

  .hero-heading { font-size: 3.5rem; }
  .section-title { font-size: 3.5rem; }
  .pull-quote { font-size: 3rem; }

  .product-grid { column-gap: 3rem; row-gap: 4rem; }

  .insights-grid { gap: 2rem; }

  .cert-grid { grid-template-columns: repeat(4, 1fr); }

  /* Process horizontal line */
  .process-grid { position: relative; }
}

/* ── Large Screens (1280px+) ─────────────────────────────── */
@media (min-width: 1280px) {
  :root { --section-padding: 120px; }

  .hero-heading { font-size: 4rem; }
}

/* ── Image responsiveness ────────────────────────────────── */
img {
  max-width: 100%;
  height: auto;
}

/* ── No horizontal scroll ────────────────────────────────── */
body, html { overflow-x: hidden; }

/* ── Responsive images in cards ─────────────────────────── */
.insight-card__img,
.product-card__img,
.variety-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Responsive nav ──────────────────────────────────────── */
@media (max-width: 767px) {
  .navbar-brand img { height: 36px; }
  .navbar-brand-text { font-size: 1.125rem; }
}

/* ── Responsive forms ────────────────────────────────────── */
@media (max-width: 767px) {
  .form-row-two {
    grid-template-columns: 1fr;
  }
}

.form-row-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ── Responsive footer ───────────────────────────────────── */
@media (max-width: 767px) {
  .footer-grid { gap: 2rem; }

  .footer-social-row { margin-top: 1rem; }
}

/* ── Hero button stack ───────────────────────────────────── */
@media (max-width: 479px) {
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── Variety card responsive ─────────────────────────────── */
@media (min-width: 768px) {
  .variety-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

/* ── Logistics two-col ───────────────────────────────────── */
@media (min-width: 768px) {
  .logistics-content { order: 2; }
  .logistics-image { order: 1; }
}

/* ── Map stats mobile fallback ───────────────────────────── */
@media (max-width: 1023px) {
  .map-stats-mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
  }

  .map-stat-m {
    background: var(--clr-surface-container);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
  }

  .map-stat-m__number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--clr-primary);
    margin-bottom: 0.25rem;
  }

  .map-stat-m__label {
    font-family: var(--font-label);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-secondary);
  }
}

/* ── Parallax mobile fallback ────────────────────────────── */
@media (max-width: 767px) {
  .parallax-bg {
    background-attachment: scroll;
    transform: none !important;
    height: 100%;
    top: 0;
  }

  .parallax-section { min-height: 70vh; }
}

/* ── CTA buttons ─────────────────────────────────────────── */
@media (max-width: 639px) {
  .cta-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }
}

.cta-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

/* ── Nav container padding ───────────────────────────────── */
@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

/* ── Print ───────────────────────────────────────────────── */
@media print {
  .navbar, .whatsapp-btn, .scroll-top, #preloader { display: none !important; }
  body { padding-top: 0; }
  a[href]::after { content: " (" attr(href) ")"; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE FIXES FOR NEW PAGES
══════════════════════════════════════════════════════════ */

/* ── Nav links: hide on mobile, show on desktop ──────────── */
@media (max-width: 1023px) {
  .nav-links { display: none !important; }
  .nav-cta   { display: none !important; }
  .hamburger { display: flex !important; }
}

@media (min-width: 1024px) {
  .hamburger { display: none !important; }
}

/* ── Hero responsive ─────────────────────────────────────── */
@media (max-width: 767px) {
  .hero--page  { min-height: 50vh !important; }
  .hero--short { min-height: 45vh !important; }

  .hero h1,
  .text-display-lg { font-size: clamp(1.75rem, 8vw, 3rem) !important; }
}

/* ── Product grid: 1-col on very small, 2-col on 640+ ───── */
@media (max-width: 639px) {
  .product-grid { grid-template-columns: 1fr; }
  .standards-grid { grid-template-columns: 1fr !important; }
  .cert-grid { grid-template-columns: 1fr 1fr !important; }
  .services-grid { grid-template-columns: 1fr !important; }
}

/* ── About page infrastructure grid ─────────────────────── */
@media (max-width: 1023px) {
  .infra-grid { grid-template-columns: 1fr !important; }
}

/* ── Product detail hero (stack on mobile) ───────────────── */
@media (max-width: 767px) {
  .product-detail-hero { grid-template-columns: 1fr !important; }
  .product-overview-grid { grid-template-columns: 1fr !important; }
  .specs-grid { grid-template-columns: 1fr !important; }
  .related-products-grid { grid-template-columns: 1fr !important; }
}

/* ── Compliance grid ─────────────────────────────────────── */
@media (max-width: 1023px) {
  .compliance-grid { grid-template-columns: 1fr !important; }
}

/* ── Export lifecycle ────────────────────────────────────── */
@media (max-width: 1023px) {
  .lifecycle-row-1,
  .lifecycle-row-2 { grid-template-columns: 1fr !important; }
}

/* ── Mission/Vision ──────────────────────────────────────── */
@media (max-width: 767px) {
  .mission-vision-grid { grid-template-columns: 1fr !important; }
}

/* ── CTA horizontal: stack on mobile ────────────────────── */
@media (max-width: 767px) {
  .cta-box--horizontal {
    flex-direction: column;
    padding: 2rem 1.5rem !important;
    text-align: center;
  }
  .cta-box--horizontal .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Footer grid: 1-col on mobile ────────────────────────── */
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr !important; }
}

/* ── Glass panel padding on mobile ──────────────────────── */
@media (max-width: 767px) {
  .glass-panel { padding: 2rem 1.25rem !important; }
}

/* ── Product form grid: 1-col on mobile ─────────────────── */
@media (max-width: 639px) {
  #product-inquiry-form { grid-template-columns: 1fr !important; }
  #product-inquiry-form > div[style*="grid-column"] {
    grid-column: 1 !important;
  }
}

/* ── Product details enquiry form: 1-col on mobile ──────── */
@media (max-width: 639px) {
  .pd-form { grid-template-columns: 1fr !important; }
}

/* ── Key highlights / feature grids: 1-col on small mobile ── */
@media (max-width: 479px) {
  .pd-highlights__grid { grid-template-columns: 1fr !important; }
  .pd-feature-grid { grid-template-columns: 1fr !important; }
}

/* ── Export services: region tag list 1-col on small mobile ── */
@media (max-width: 479px) {
  .es-regions { grid-template-columns: 1fr !important; }
}

/* ── About page: key-facts strip 1-col on small mobile ──── */
@media (max-width: 479px) {
  .au-key-facts { grid-template-columns: 1fr !important; }
}
