/* ================================================================
   EAMIL INTERNATIONAL — Infrastructure Page
   infrastructure.css · v7.0
   Changes:
   – Navbar: transparent dark bg on hero, white links, no X button
   – Hero: content aligned bottom-left like contact page reference
   – Capacity cards: better mobile layout, remove eyebrow stat on mobile
   – Facility sections: sub-images (thumbs) removed, text-only layout
   – QC section: image row removed, cards improved
   – General: cleaner responsive, tighter typography
   ================================================================ */

/* ══════════════════════════════════════════════════════════════
   NAVBAR — OVERRIDE FOR INFRASTRUCTURE PAGE
   Make navbar transparent with dark gradient over hero image,
   white/cream links so they're visible on the dark hero bg.
   Remove the ::before ✕ close button from mobile drawer.
   ══════════════════════════════════════════════════════════════ */

/* Force transparent dark-gradient navbar at top of infra page */
.infra-page .navbar:not(.scrolled),
body:has(.infra-hero) .navbar:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(23,20,15,0.68) 0%, rgba(23,20,15,0.20) 100%);
  border-bottom: 1px solid rgba(250,247,242,0.08);
  box-shadow: none;
}

/* Link colour on the dark transparent navbar */
body:has(.infra-hero) .navbar:not(.scrolled) .nav-links a {
  color: rgba(250,247,242,0.88);
}
body:has(.infra-hero) .navbar:not(.scrolled) .nav-links a:hover {
  color: var(--ivory);
}
body:has(.infra-hero) .navbar:not(.scrolled) .nav-links a.active {
  color: var(--brass-pale);
}
body:has(.infra-hero) .navbar:not(.scrolled) .hamburger span {
  background: var(--ivory);
}

/* Hamburger hover on dark bg */
body:has(.infra-hero) .navbar:not(.scrolled) .hamburger:hover {
  background: rgba(255,255,255,0.14);
}

/* Remove the CSS ✕ pseudo-element that appears inside the mobile drawer.
   The hamburger itself animates to an X — we don't need the extra one. */
.nav-links::before {
  display: none !important;
  content: none !important;
}

/* ══════════════════════════════════════════════════════════════
   INFRA HERO — cinematic, content aligned bottom-left (like contact page)
   ══════════════════════════════════════════════════════════════ */
.infra-hero {
  min-height: clamp(520px, 72vh, 820px);
  padding-top: calc(var(--nav-h) + var(--sp-7));
  padding-bottom: var(--sp-8);
  padding-inline: var(--gutter);
  display: flex;
  align-items: flex-end;       /* content sits at bottom — matching contact hero */
}

/* Layered cinematic overlay */
.infra-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(160deg, rgba(23,20,15,0.82) 0%, rgba(23,20,15,0.48) 55%, rgba(23,20,15,0.70) 100%),
    radial-gradient(ellipse at 70% 40%, rgba(184,146,58,0.10) 0%, transparent 55%);
}

/* Subtle grain texture */
.infra-hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

/* Override ::before/::after from page-hero in style.css */
.infra-hero::before,
.infra-hero::after { display: none; }

/* Hero inner z-index above overlays */
.infra-hero .page-hero-inner {
  z-index: 3;
  position: relative;
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
}

/* Breadcrumb */
.infra-hero .page-hero-breadcrumb {
  margin-bottom: 0.85rem;
}

/* Eyebrow — visible on desktop, hidden on small mobile */
.infra-hero .eyebrow {
  color: var(--brass-light);
  display: inline-block;
}

/* Hero H1 */
.infra-hero h1 {
  color: var(--text-on-dark);
  max-width: 720px;
  margin-top: 0.5rem;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
}
.infra-hero h1 em { color: var(--brass-pale); }

/* Hero paragraph */
.infra-hero-p {
  color: rgba(250,247,242,0.58);
  max-width: 540px;
  margin-top: 1rem;
  font-size: 0.97rem;
  line-height: 1.82;
}

/* Hero inline stats bar */
.infra-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 2rem;
  padding: 1rem 1.4rem;
  background: rgba(250,247,242,0.06);
  border: 1px solid rgba(250,247,242,0.10);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: fit-content;
  max-width: 100%;
}
.ihs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.4rem;
  gap: 0.2rem;
}
.ihs-num {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 300;
  color: var(--brass-light);
  line-height: 1;
  letter-spacing: -0.03em;
}
.ihs-lbl {
  font-family: var(--font-ui);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.40);
  white-space: nowrap;
}
.ihs-div {
  width: 1px;
  height: 2rem;
  background: rgba(250,247,242,0.12);
  flex-shrink: 0;
}

.page-hero-deco { z-index: 3; }

/* ── Hero responsive ─────────────────────────── */
@media (max-width: 900px) {
  .infra-hero {
    min-height: clamp(420px, 60vh, 580px);
    padding-bottom: var(--sp-6);
  }
  .ihs-item { padding: 0 0.9rem; }
  .ihs-num  { font-size: 1.25rem; }
}

@media (max-width: 600px) {
  .infra-hero {
    min-height: clamp(360px, 56vh, 500px);
    padding-bottom: var(--sp-5);
  }
  .infra-hero-p { display: none; }
  .infra-hero-stats {
    padding: 0.7rem 0.8rem;
    border-radius: var(--r-md);
    margin-top: 1.4rem;
  }
  .ihs-item { padding: 0 0.7rem; }
  .ihs-num  { font-size: 1.1rem; }
  .ihs-lbl  { font-size: 0.46rem; }
}

@media (max-width: 400px) {
  .infra-hero {
    min-height: clamp(320px, 54vh, 440px);
    padding-bottom: var(--sp-4);
  }
  /* On very small screens hide the 28K stat row entirely to
     reduce clutter (per brief: remove "28,000 sq ft iso" on phone) */
  .infra-hero-stats { display: none; }
  .infra-hero .eyebrow { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   CAPACITY STATS — enhanced card layout
   ══════════════════════════════════════════════════════════════ */
.capacity-section {
  padding: var(--sp-6) var(--gutter);
  background: var(--ivory-warm);
  border-bottom: 1px solid var(--stone-100);
}
.capacity-section .sec-head {
  max-width: var(--max-w);
  margin-inline: auto;
}

.capacity-grid {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: var(--sp-4);
}

.cap-card {
  padding: 2rem 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--stone-100);
  border-radius: var(--r-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--dur-md) var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Accent top bar */
.cap-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brass-deep), var(--brass-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-md) var(--ease);
  border-radius: 0 0 2px 2px;
}
.cap-card:hover::before { transform: scaleX(1); }
.cap-card:hover {
  transform: translateY(-6px);
  border-color: var(--brass-muted);
  box-shadow: var(--sh-lg), 0 0 0 1px var(--brass-muted);
}

/* Number */
.cap-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 300;
  color: var(--brass);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.25rem;
}

/* Unit label */
.cap-unit {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-hint);
  margin-bottom: 0.9rem;
}

/* Divider line between label and description */
.cap-card::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--brass-muted);
  margin: 0 auto 0.9rem;
  order: 3;
}

.cap-card p {
  font-size: 0.80rem;
  line-height: 1.7;
  color: var(--text-muted);
  order: 4;
}

/* ── Capacity responsive ─────────────────────── */
@media (max-width: 960px) {
  .capacity-grid { grid-template-columns: repeat(2, 1fr); }
  .capacity-section { padding: var(--sp-5) var(--gutter); }
}
@media (max-width: 540px) {
  .capacity-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .cap-card {
    padding: 1.4rem 1rem 1.25rem;
    border-radius: var(--r-lg);
  }
  .cap-num { font-size: 1.8rem; }
  .capacity-section { padding: var(--sp-4) var(--gutter); }
}

/* ══════════════════════════════════════════════════════════════
   FACILITY SECTIONS — no sub-images (thumbs removed via CSS)
   Text-only media column replaced with a decorative text panel
   ══════════════════════════════════════════════════════════════ */
.facility-section {
  padding: var(--sp-6) var(--gutter);
  max-width: var(--max-w);
  margin-inline: auto;
}

.facility-alt {
  background: var(--ivory-warm);
  max-width: 100%;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  border-top: 1px solid var(--stone-100);
  border-bottom: 1px solid var(--stone-100);
}
.facility-alt .facility-section-inner {
  max-width: var(--max-w);
  margin-inline: auto;
}

.facility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.facility-grid.reverse .facility-media { order: 2; }
.facility-grid.reverse .facility-text  { order: 1; }

/* ── Main image frame — keep it, improve it ── */
.facility-main {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  background: var(--ivory-warm);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  max-height: 420px;
  position: relative;
}
.facility-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  display: block;
}
.facility-main:hover img { transform: scale(1.04); }

/* ── HIDE sub-image thumbnails entirely ── */
.facility-thumbs { display: none !important; }

/* ── Stage badge overlay on main image ── */
.facility-media {
  position: relative;
}

/* ── Text side ── */
.facility-text h2 { margin-bottom: 0.85rem; }
.facility-text p  { margin-bottom: 0.85rem; }

.facility-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.ff-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--stone-100);
  border-radius: var(--r-md);
  transition: border-color var(--dur-md), box-shadow var(--dur-md), transform var(--dur-md);
}
.ff-item:hover {
  border-color: var(--brass-muted);
  box-shadow: var(--sh-sm);
  transform: translateX(3px);
}
.ff-icon {
  color: var(--brass);
  font-size: 0.88rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.ff-item h5 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: 0;
  text-transform: none;
}
.ff-item p { font-size: 0.76rem; line-height: 1.65; }

/* facility-alt grid full-width */
.facility-alt .facility-grid { max-width: 100%; }

/* ── Facility responsive ─────────────────────── */
@media (max-width: 1200px) {
  .facility-section { padding: var(--sp-5) var(--gutter); }
  .facility-alt     { padding: var(--sp-5) var(--gutter); }
  .facility-main    { max-height: 360px; }
}
@media (max-width: 900px) {
  .facility-grid { grid-template-columns: 1fr; gap: 2rem; }
  .facility-grid.reverse .facility-media,
  .facility-grid.reverse .facility-text { order: unset; }
  .facility-main { max-height: 300px; }
}
@media (max-width: 540px) {
  .facility-section { padding: var(--sp-4) var(--gutter); }
  .facility-alt     { padding: var(--sp-4) var(--gutter); }
  .facility-main    { aspect-ratio: 16/9; max-height: 230px; border-radius: var(--r-lg); }
  .ff-item          { padding: 0.7rem 0.85rem; gap: 0.55rem; }
  .ff-item h5       { font-size: 0.86rem; }
  .ff-item p        { font-size: 0.72rem; }
  .facility-features { gap: 0.5rem; margin-top: 1rem; }
}

@media (min-width: 1400px) {
  .facility-grid  { gap: 6rem; }
  .facility-main  { max-height: 460px; }
}

/* ══════════════════════════════════════════════════════════════
   QUALITY CONTROL — remove image row, improve cards
   ══════════════════════════════════════════════════════════════ */
.quality-section {
  padding: var(--sp-7) var(--gutter);
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.quality-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(184,146,58,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.quality-section .sec-head {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
}
.quality-section h2         { color: var(--text-on-dark); }
.quality-section .sec-head p { color: rgba(250,247,242,0.45); }
.quality-section .eyebrow   { color: var(--brass-light); }

.quality-grid {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: var(--sp-5);
}

.qc-card {
  padding: 2rem 1.6rem 1.8rem;
  background: rgba(250,247,242,0.04);
  border: 1px solid rgba(250,247,242,0.08);
  border-radius: var(--r-xl);
  position: relative;
  transition: all var(--dur-md) var(--ease);
  display: flex;
  flex-direction: column;
}
.qc-card:hover {
  border-color: rgba(184,146,58,0.30);
  transform: translateY(-5px);
  box-shadow: 0 12px 48px rgba(0,0,0,0.32);
  background: rgba(250,247,242,0.06);
}

.qc-num {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: rgba(184,146,58,0.10);
  line-height: 1;
}

.qc-icon {
  width: 48px;
  height: 48px;
  background: rgba(184,146,58,0.10);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass-light);
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
  transition: background var(--dur-md);
}
.qc-card:hover .qc-icon {
  background: rgba(184,146,58,0.18);
}

.qc-card h4 {
  font-size: 1rem;
  color: var(--text-on-dark);
  margin-bottom: 0.55rem;
  font-weight: 500;
}
.qc-card p {
  font-size: 0.82rem;
  color: rgba(250,247,242,0.45);
  line-height: 1.75;
  flex: 1;
}

/* ── HIDE the 3 QC images below the cards ── */
.qc-image-row { display: none !important; }

/* ── QC responsive ───────────────────────────── */
@media (max-width: 900px) {
  .quality-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-section { padding: var(--sp-6) var(--gutter); }
}
@media (max-width: 560px) {
  .quality-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .quality-section { padding: var(--sp-5) var(--gutter); }
  .qc-card { padding: 1.4rem 1.25rem; }
}

/* ══════════════════════════════════════════════════════════════
   EXPORT PROCESS (STEP FLOW)
   ══════════════════════════════════════════════════════════════ */
.export-section {
  padding: var(--sp-6) var(--gutter);
  max-width: var(--max-w);
  margin-inline: auto;
}

/* Timeline wrapper */
.export-timeline {
  position: relative;
  margin-top: var(--sp-5);
}
.et-track {
  position: absolute;
  top: 40px;
  left: calc(8% + 40px);
  right: calc(8% + 40px);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--stone-200) 10%, var(--stone-200) 90%, transparent);
  z-index: 0;
  pointer-events: none;
}

.export-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}
.ex-step {
  padding: 0 0.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.ex-num {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: var(--surface);
  border: 1.5px solid var(--stone-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-md) var(--ease);
  box-shadow: var(--sh-xs);
  position: relative;
  z-index: 1;
}
.ex-step:hover .ex-num {
  background: var(--brass);
  border-color: var(--brass);
  box-shadow: var(--sh-brass);
  transform: scale(1.08);
}
.ex-num .n {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--brass);
  line-height: 1;
}
.ex-step:hover .ex-num .n { color: var(--ivory); }
.ex-step h5 {
  font-size: 0.70rem;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
}
.ex-step p {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Mobile accordion steps */
.export-steps-mobile { display: none; }
.esm-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--stone-100);
}
.esm-item:last-child { border-bottom: none; }
.esm-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--surface);
  border: 1.5px solid var(--stone-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  color: var(--brass);
  margin-top: 2px;
}
.esm-body h5 {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-transform: none;
  margin-bottom: 4px;
}
.esm-body p { font-size: 0.80rem; color: var(--text-muted); line-height: 1.65; }

@media (max-width: 960px) {
  .export-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-3);
  }
  .et-track { display: none; }
}
@media (max-width: 640px) {
  .export-timeline { display: none; }
  .export-steps-mobile { display: block; margin-top: var(--sp-4); }
  .export-section { padding: var(--sp-5) var(--gutter); }
}
@media (max-width: 480px) {
  .export-section { padding: var(--sp-4) var(--gutter); }
}

/* ══════════════════════════════════════════════════════════════
   FACILITY GALLERY SECTION
   ══════════════════════════════════════════════════════════════ */
.facility-gallery-section {
  padding: var(--sp-6) var(--gutter);
  background: var(--ivory-warm);
  border-top: 1px solid var(--stone-100);
}
.facility-gallery-wrap {
  max-width: var(--max-w);
  margin-inline: auto;
}
.facility-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 0.9rem;
  margin-top: var(--sp-4);
}
.fgg-item {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ivory-deep);
}
.fgg-tall {
  grid-row: span 2;
  aspect-ratio: unset;
}
.fgg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s var(--ease);
}
.fgg-item:hover img { transform: scale(1.045); }
.fgg-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(to top, rgba(23,20,15,0.76), transparent);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.88);
  pointer-events: none;
}

@media (max-width: 900px) {
  .facility-gallery-grid { grid-template-columns: 1fr 1fr; }
  .fgg-tall { grid-row: span 1; aspect-ratio: 4 / 3; }
  .facility-gallery-section { padding: var(--sp-5) var(--gutter); }
}
@media (max-width: 540px) {
  .facility-gallery-grid { grid-template-columns: 1fr; gap: 0.7rem; }
  .fgg-item { aspect-ratio: 16/9; }
  .facility-gallery-section { padding: var(--sp-4) var(--gutter); }
}

/* ══════════════════════════════════════════════════════════════
   INFRA CTA — keep legacy hidden
   ══════════════════════════════════════════════════════════════ */
.infra-cta { display: none !important; }

/* ══════════════════════════════════════════════════════════════
   GLOBAL OVERFLOW SAFETY NET
   ══════════════════════════════════════════════════════════════ */
.facility-section,
.capacity-section,
.quality-section,
.export-section,
.facility-gallery-section {
  overflow-x: hidden;
}

.facility-main img,
.facility-thumb img,
.fgg-item img,
.qc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ══════════════════════════════════════════════════════════════
   GLOBAL SECTION RHYTHM
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .capacity-section  { padding: var(--sp-5) var(--gutter); }
  .quality-section   { padding: var(--sp-6) var(--gutter); }
  .export-section    { padding: var(--sp-5) var(--gutter); }
}