/* ==========================================================================
   FRESHCO HALAL MEAT EXPORT DIVISION - EXECUTIVE COMMERCIAL STYLESHEET
   Standard: International Halal Meat Trade & Institutional Food Procurement
   Brand: FreshCo Export Enterprises (M/S FRESH CO)
   Engineered by: Origin Systems
   ========================================================================== */

:root {
  --color-primary-dark: #0B1E13;
  --color-primary-green: #1B4D3E;
  --color-accent-gold: #C8A962;
  --color-accent-gold-dark: #8C6D28;
  --color-gold-hover: #D4AF37;
  --color-bg-light: #F8FAF8;
  --color-card-border: #E1E8E2;
  --color-text-main: #1A2E22;
  --color-text-muted: #556B5C;
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-card: 16px;
  --radius-pill: 9999px;
  --shadow-card: 0 4px 20px rgba(11, 30, 19, 0.06);
  --shadow-card-hover: 0 12px 32px rgba(11, 30, 19, 0.12);
}

/* Page Reset & Base */
.meat-page-body {
  margin: 0;
  padding: 0;
  background-color: #FFFFFF;
  color: var(--color-text-main);
  font-family: var(--font-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Reusable Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* ==========================================================================
   1. FIXED / STICKY HEADER (100% HOMEPAGE PARITY: TRANSPARENT -> SOLID WHITE)
   ========================================================================== */
.meat-page-body #main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 64px;
  z-index: 99999;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border-bottom: 1px solid transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Header state when at the top (100% transparent over panoramic hero banner) */
.meat-page-body #main-header:not(.scrolled) {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border-bottom: 1px solid transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.meat-page-body #main-header:not(.scrolled) .brand-logo-img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}

.meat-page-body #main-header:not(.scrolled) .nav-link {
  color: #FFFFFF !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
}

.meat-page-body #main-header:not(.scrolled) .nav-arrow {
  stroke: #FFFFFF !important;
}

.meat-page-body #main-header:not(.scrolled) .nav-link:hover,
.meat-page-body #main-header:not(.scrolled) .nav-item:hover > .nav-link {
  color: #D4B982 !important;
}

.meat-page-body #main-header:not(.scrolled) .nav-link.active {
  color: #D4B982 !important;
}

/* Header state when scrolled down: Solid White Bar matching Homepage */
.meat-page-body #main-header.scrolled {
  height: 64px !important;
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
  border-bottom: 1px solid var(--border-light, #E5E7EB) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.meat-page-body #main-header.scrolled .brand-logo-img {
  filter: none !important;
}

.meat-page-body #main-header.scrolled .nav-link {
  color: #222222 !important;
  text-shadow: none !important;
}

.meat-page-body #main-header.scrolled .nav-arrow {
  stroke: #222222 !important;
}

.meat-page-body #main-header.scrolled .nav-link:hover,
.meat-page-body #main-header.scrolled .nav-item:hover > .nav-link {
  color: var(--primary-green, #1B4D3E) !important;
}

.meat-page-body #main-header.scrolled .nav-link.active {
  color: var(--primary-green, #1B4D3E) !important;
  font-weight: 700;
}

/* Dropdown Menu Item Active Marker for Halal Meat */
.dropdown-link.active {
  background-color: var(--primary-green-dark, #5a6e40);
  color: #FFFFFF !important;
  font-weight: 700;
}

/* ==========================================================================
   2. HERO SECTION: SAME COMPACT PROPORTIONS AS ABOUT US HERO (WITH hero.jpg)
   ========================================================================== */
.meat-hero-section {
  position: relative;
  background-color: #0B1E13;
  background-image: linear-gradient(135deg, rgba(8, 22, 14, 0.78) 0%, rgba(10, 26, 16, 0.50) 50%, rgba(8, 22, 14, 0.76) 100%), url('assets/meat_hero_banner.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 116px 0 3.6rem;
  color: #FFFFFF;
  overflow: hidden;
  border-bottom: 1px solid rgba(200, 169, 98, 0.2);
}

.meat-hero-content {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.meat-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.85rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.meat-breadcrumb a {
  color: #C8A962;
  text-decoration: none;
  transition: color 0.2s;
}

.meat-breadcrumb a:hover {
  color: #FFFFFF;
}

.meat-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(200, 169, 98, 0.18);
  border: 1px solid rgba(200, 169, 98, 0.45);
  color: #EAD8AB;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.meat-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.meat-hero-title em {
  font-style: normal;
  color: #C8A962;
}

.meat-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto 1.8rem auto;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.meat-hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.meat-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 169, 98, 0.35);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.meat-metric-pill:hover {
  background: rgba(200, 169, 98, 0.16);
  border-color: #C8A962;
  transform: translateY(-1px);
}

.meat-metric-pill svg {
  color: #C8A962;
}

/* ==========================================================================
   3. FLAGSHIP DUAL PRODUCTS SHOWCASE (SMART TWO-CARD SYSTEM)
   ========================================================================== */
.meat-showcase-section {
  padding: 3.5rem 0 4.5rem 0;
  background-color: #FFFFFF;
}

.section-showcase-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.8rem auto;
}

.section-showcase-eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  color: #8C6D28;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}

.section-showcase-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0B1E13;
  margin: 0 0 0.8rem 0;
  letter-spacing: -0.02em;
}

.section-showcase-desc {
  font-size: 0.95rem;
  color: #556B5C;
  line-height: 1.6;
  margin: 0;
}

/* Dual Column Layout */
.showcase-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.meat-card {
  background: #FAF5EB;
  border: 1px solid rgba(200, 169, 98, 0.38);
  border-radius: var(--radius-card);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.meat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

/* Card Header with Modern Switcher */
.meat-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.card-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-species-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0B1E13;
  margin: 0;
  line-height: 1.25;
}

.card-species-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #8C6D28;
  background: #FBF8F0;
  border: 1px solid #EAD8AB;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

/* Export Format Specification Pill */
.card-format-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #F4F7F5;
  color: #1B4D3E;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(27, 77, 62, 0.15);
  width: fit-content;
}

.card-format-pill svg {
  color: #8C6D28;
}

/* ==========================================================================
   MEDIA STAGE: ABSOLUTELY ZERO IMAGE CROPPING (NATURAL 4:3 RATIO)
   ========================================================================== */
.card-media-stage {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  background-color: #FFFFFF;
  border: 1px solid rgba(11, 30, 19, 0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.4rem;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-media-stage img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.card-media-stage:hover img {
  transform: scale(1.02);
}

/* Overlay Zoom Badge */
.stage-zoom-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(11, 30, 19, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(200, 169, 98, 0.4);
  transition: all 0.2s ease;
}

.stage-zoom-badge svg {
  color: #C8A962;
}

.card-media-stage:hover .stage-zoom-badge {
  background: #B5934C;
  border-color: #B5934C;
}

/* Card Mode Content Views (Carcass vs. Cuts) */
.card-mode-view {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mode-description {
  font-size: 0.9rem;
  color: #4A6353;
  line-height: 1.55;
  margin: 0 0 1.25rem 0;
}

/* Gold Spec Box (Carcass Weights or Cuts Breakdown) */
.spec-gold-box {
  background-color: #FBF8F0;
  border: 1px solid #EAD8AB;
  border-radius: 10px;
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}

.spec-box-heading {
  font-size: 0.8rem;
  font-weight: 800;
  color: #7A5C1E;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.spec-list li {
  font-size: 0.86rem;
  color: #1A2E22;
  line-height: 1.45;
  position: relative;
  padding-left: 1.2rem;
}

.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #8C6D28;
}

.spec-list li strong {
  color: #0B1E13;
  font-weight: 700;
}



/* Card Bottom Action Bar */
.card-action-bar {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(11, 30, 19, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-action-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1B4D3E;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-card-inquire {
  font-size: 0.82rem;
  font-weight: 700;
  color: #8C6D28;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}

.btn-card-inquire:hover {
  color: #0B1E13;
}

/* ==========================================================================
   4. COMPACT PACKAGING & INSTITUTIONAL MEATS SECTION
   ========================================================================== */
.meat-logistics-section {
  padding: 3.2rem 0 4.5rem 0;
  background: #FFFFFF !important;
  border-top: 1px solid rgba(15, 74, 42, 0.08);
  border-bottom: 1px solid rgba(15, 74, 42, 0.08);
  color: #0F172A;
}

.logistics-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.2rem auto;
}

.logistics-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  color: #A37F2C !important;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.65rem;
}

.logistics-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: #0F4A2A !important;
  margin: 0 0 1rem 0;
  letter-spacing: -0.025em;
}

.logistics-desc {
  font-size: 1.02rem;
  color: #475569 !important;
  line-height: 1.68;
  margin: 0;
}

.logistics-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Authentic Warm Ivory Card Palette */
.logistics-card {
  background: #FAF5EB !important;
  border: 1px solid rgba(200, 169, 98, 0.42) !important;
  border-radius: 16px;
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(15, 74, 42, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.logistics-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 169, 98, 0.75) !important;
  background: #FFFDF8 !important;
  box-shadow: 0 12px 32px rgba(15, 74, 42, 0.09);
}

.logistics-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(200, 169, 98, 0.22) !important;
  border: 1px solid rgba(200, 169, 98, 0.50) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F4A2A !important;
  margin-bottom: 1.4rem;
}

.logistics-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A !important;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.015em;
}

.logistics-card-desc {
  font-size: 0.94rem;
  color: #475569 !important;
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   5. HIGH-RESOLUTION DIAGRAM & COLD-ROOM LIGHTBOX MODAL
   ========================================================================== */
.diagram-lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(6, 18, 11, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  box-sizing: border-box;
}

.diagram-lightbox-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.diagram-lightbox-window {
  background: #0B1E13;
  border-radius: 14px;
  width: -moz-fit-content;
  width: fit-content;
  max-width: min(94vw, 1150px);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(200, 169, 98, 0.45);
  position: relative;
  z-index: 1000001;
  box-sizing: border-box;
}

.diagram-lightbox-header {
  padding: 0.8rem 1.25rem;
  background: #0B1E13;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(200, 169, 98, 0.3);
  position: relative;
  z-index: 1000002;
  gap: 1.5rem;
  box-sizing: border-box;
}

.diagram-lightbox-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.01em;
  margin: 0;
  white-space: nowrap;
}

.diagram-lightbox-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1000003;
  flex-shrink: 0;
}

.diagram-lightbox-close:hover {
  background: #B5934C;
  border-color: #B5934C;
  transform: scale(1.05);
}

.diagram-lightbox-body {
  padding: 0;
  margin: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0B1E13;
  line-height: 0;
}

.diagram-lightbox-body img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(94vw, 1150px);
  max-height: calc(90vh - 56px);
  object-fit: contain;
  border-radius: 0 0 13px 13px;
}

/* Seamless Dark-to-Dark Footer Transition (Removes Top Border Divider) */
.meat-page-body .master-site-footer {
  border-top: none !important;
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS (MEAT DIVISION SPECIFIC)
   ========================================================================== */
@media (max-width: 1024px) {
  .showcase-dual-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .logistics-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .meat-hero-title {
    font-size: 2rem;
  }
  
}
