/* ═══════════════════════════════════════════════════════════════════════════
   mobile-fixes.css  —  Enn Panai Private Limited
   Fixes:  half-visible images on mobile, oversized images, alignment issues
   Import AFTER styles.css so these rules take precedence.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. GLOBAL IMAGE SAFETY ─────────────────────────────────────────────── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── 2. SUSTAINABILITY BANNER IMAGE ─────────────────────────────────────── */
.sustainability-img-banner {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  margin: 2rem 0;
  position: relative;
  max-height: 480px;
}

.sustainability-img-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ── 3. WGSN IMAGE INSIDE CARD ──────────────────────────────────────────── */
.wgsn-img-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 1.2rem;
}

.wgsn-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ── 4. DIRECTOR / FOUNDER PHOTOS ───────────────────────────────────────── */
.director-photo-wrap {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 1.2rem;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 4;
}

.director-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── 5. APP ICON ────────────────────────────────────────────────────────── */
.app-card-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 14px;
}

.app-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── 6. NAV — HAMBURGER & MOBILE MENU ──────────────────────────────────── */
/*
   IMPORTANT: nav must stay position:fixed (set in styles.css + GPU layer fix).
   Do NOT override with position:sticky here — that breaks the fixed mobile nav.
   We only adjust padding and overflow behaviour below.
*/
@media (max-width: 768px) {

  nav {
    padding: 0 1rem;
    /* position: fixed  ← already set in styles.css, do not override */
    /* top: 0           ← already set in styles.css, do not override */
    z-index: 1000;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    overflow-x: hidden;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .nav-item > a {
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    box-shadow: none;
    border-left: 3px solid var(--sage-deep, #4a6741);
    margin-left: 1rem;
  }
}

/* ── 7. HERO SECTION ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  #hero {
    padding: 5rem 1.25rem 3rem;
    min-height: 100svh;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-badges {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .hbadge {
    font-size: 0.65rem;
    padding: 0.3rem 0.7rem;
  }
}

/* ── 8. PROCESS FLOW ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .process-flow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    overflow: visible;
  }
}

@media (max-width: 420px) {
  .process-flow {
    grid-template-columns: 1fr;
  }
}

/* ── 9. STAT / SDG / IMPACT GRIDS ──────────────────────────────────────── */
@media (max-width: 400px) {
  .stat-grid,
  .sdg-grid,
  .impact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── 10. COMPARE GRID ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .compare-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .compare-col {
    border-radius: 12px;
  }
}

/* ── 11. DIRECTORS GRID ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .directors-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .director-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .director-bio-points {
    text-align: left;
  }
}

/* ── 12. PRODUCT GRID ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 13. STATUS STRIP ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .status-strip {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (max-width: 360px) {
  .status-strip {
    grid-template-columns: 1fr;
  }
}

/* ── 14. REC GRID ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .rec-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 15. SOCIAL LINKS ROW ───────────────────────────────────────────────── */
.social-row {
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.social-label {
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  display: block;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  text-decoration: none;
  color: white;
  transition: background 0.2s;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  flex: 0 1 auto;
}

.social-btn:hover {
  background: rgba(255,255,255,0.2);
}

@media (max-width: 480px) {
  .social-links {
    gap: 0.5rem;
  }

  .social-btn {
    padding: 0.65rem 0.9rem;
    font-size: 0.68rem;
  }

  .social-btn span {
    display: inline;
  }
}

/* ── 16. FOOTER LINKS ───────────────────────────────────────────────────── */
.footer-link {
  margin-top: 3rem;
  text-align: center;
  font-family: var(--serif);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-muted);
}

.footer-link a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-copy {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── 17. SUSTAIN APP ROW ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sustain-app-row {
    flex-direction: column;
    gap: 2rem;
  }

  .app-card {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
}

/* ── 18. ENABLES GRID ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .enables-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 19. CONTACT ROWS ───────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .contact-rows {
    gap: 0.8rem;
  }

  .contact-row {
    padding: 0.9rem 1rem;
    gap: 0.8rem;
  }

  .cr-val {
    font-size: 0.82rem;
    word-break: break-word;
  }
}

/* ── 20. SECTION HORIZONTAL OVERFLOW GUARD ──────────────────────────────── */
section,
.sec-cream,
.sec-sage,
.sec-blush,
.sec-lilac,
.sec-peach,
.sec-sky {
  overflow-x: hidden;
}

/* ── 21. BODY OVERFLOW GUARD ────────────────────────────────────────────── */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}