/* Koperasi Produsen Peternak Cikal Maju (PCM) Website Theme
   Palette synced to Official PCM Logo: Deep Moss Olive, Vibrant Agri-Lime & Sunrise Vermilion-Orange */
:root {
  --forest-950: #0C2307;
  --forest-900: #173F0B;
  --primary: #23780B;
  --primary-bright: #53D61A;
  --primary-hover: #173F0B;
  --accent: #D95308;
  --accent-text: #9A3412;
  --accent-light: #FBB03B;
  --accent-focus: #F59E0B;
  --sage-100: #EEF9E5;
  --sage-200: #C4E7AC;
  --canvas-50: #FAFBF6;
  --canvas-100: #F2F7E8;
  --amber-100: #FFF4E5;
  --ink-900: #102415;
  --ink-700: #283D2E;
  --ink-500: #526658;
  --white: #FFFFFF;
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.btn-primary {
  background: var(--primary);
  box-shadow: 0 6px 18px rgba(43, 138, 16, 0.28);
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.wa-float {
  background: var(--primary);
  box-shadow: 0 12px 28px rgba(43, 138, 16, 0.36);
}
.wa-float:hover {
  background: var(--forest-900);
}
.eyebrow {
  color: var(--accent-text);
}
.eyebrow::before {
  background: linear-gradient(90deg, #E15208 0%, #FBB03B 50%, #53D61A 100%);
  height: 3px;
}

.badge-green {
  background: var(--sage-100);
  color: var(--forest-900);
  border: 1px solid var(--sage-200);
}
.badge-amber {
  background: var(--amber-100);
  color: var(--accent-text);
  border: 1px solid rgba(225, 82, 8, 0.28);
}

/* Hero Section */
.coop-hero {
  position: relative;
  min-height: 590px;
  display: flex;
  align-items: center;
  background: var(--forest-950);
  color: var(--white);
  overflow: hidden;
  padding: 58px 0 54px;
}
.coop-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.coop-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  opacity: 0.5;
}
.coop-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(106deg, rgba(13, 38, 7, 0.96) 0%, rgba(24, 66, 12, 0.86) 48%, rgba(13, 38, 7, 0.34) 100%);
}
.coop-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: center;
}
.coop-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(225, 82, 8, 0.26);
  border: 1px solid rgba(253, 186, 116, 0.56);
  color: #FFEDD5;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.coop-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.95rem, 3.7vw, 3.05rem);
  line-height: 1.14;
  margin-bottom: 14px;
}
.coop-hero h1 span { color: var(--accent-light); }
.coop-hero p.lead {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 22px;
  max-width: 590px;
}
.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.hero-pill {
  background: rgba(13, 38, 7, 0.78);
  border: 1px solid rgba(253, 186, 116, 0.42);
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 0.81rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-pill svg { color: var(--accent-light); }

.hero-right-panel {
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(253, 186, 116, 0.38);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-kpi {
  background: rgba(13, 38, 7, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
}
.hero-kpi strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.32rem;
  color: var(--accent-light);
  line-height: 1.15;
}
.hero-kpi span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.86);
}

/* Grids & Cards */
.card {
  background: var(--white);
  border: 1px solid var(--sage-200);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(13, 38, 7, 0.06);
}
.card-forest {
  background: linear-gradient(155deg, var(--forest-900) 0%, var(--forest-950) 100%);
  color: var(--white);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(253, 186, 116, 0.34);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.engine-card {
  background: var(--white);
  border: 1px solid var(--sage-200);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 22px rgba(13, 38, 7, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.engine-card.emerald-top { border-top: 4px solid var(--primary-bright); }
.engine-card.amber-top { border-top: 4px solid #E15208; }

/* Interactive 6-Step Value Chain Stepper */
.stepper-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.step-tab {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(253, 186, 116, 0.28);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: left;
  color: var(--white);
  transition: all 0.2s ease;
}
.step-tab strong {
  display: block;
  font-size: 0.72rem;
  color: var(--accent-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.step-tab span {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  display: block;
}
.step-tab:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translate3d(0, -2px, 0);
}
.step-tab[aria-pressed="true"] {
  background: linear-gradient(135deg, #D95308 0%, #9A3412 100%);
  border-color: var(--accent-light);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(251, 176, 59, 0.22);
}
.step-tab[aria-pressed="true"] strong { color: #FEF3C7; }

/* Filter & Product Grid */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.unit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.unit-card {
  background: var(--white);
  border: 1px solid var(--sage-200);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(13, 38, 7, 0.06);
}
.unit-card:hover {
  transform: translate3d(0, -5px, 0);
  box-shadow: 0 18px 40px rgba(13, 38, 7, 0.13);
}
.unit-card.hidden { display: none; }
.unit-img {
  position: relative;
  height: 210px;
  background: var(--forest-950);
  overflow: hidden;
  cursor: pointer;
}
.unit-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.unit-card:hover .unit-img img { transform: scale(1.055); }
.unit-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}
.unit-tag.amber { background: #C2410C; }
.unit-tag.forest { background: var(--forest-900); }
.unit-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.unit-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 14px;
}
.spec-pill {
  background: var(--canvas-100);
  border: 1px solid var(--sage-200);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.78rem;
}
.spec-pill label {
  display: block;
  font-size: 0.67rem;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 700;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sage-200);
  background: var(--forest-950);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(13, 38, 7, 0.08);
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease;
}
.gallery-tile.hidden {
  display: none;
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.3s ease;
}
.gallery-tile.photo-people img {
  object-position: center 22%;
}
.gallery-tile:hover img { transform: scale(1.05); }
.gallery-cap {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: rgba(13, 38, 7, 0.86);
  color: var(--white);
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(253, 186, 116, 0.28);
  z-index: 2;
  backdrop-filter: blur(8px);
}

/* Leadership & Monogram Cards (No Portrait Photos) */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.leader-card {
  background: var(--white);
  border: 1px solid var(--sage-200);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 22px rgba(13, 38, 7, 0.06);
}
.leader-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.monogram-badge {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  background: linear-gradient(135deg, var(--forest-900) 0%, var(--primary) 100%);
  border: 2px solid var(--accent-light);
  flex-shrink: 0;
  box-shadow: 0 5px 14px rgba(13, 38, 7, 0.16);
}
.monogram-badge.orange {
  background: linear-gradient(135deg, #9A3412 0%, #E15208 100%);
  border-color: #FEF08A;
}

/* Simulator Panel */
.sim-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.form-group { margin-bottom: 13px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--forest-900);
  margin-bottom: 5px;
}
.form-control {
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1.5px solid var(--sage-200);
  background: var(--white);
  color: var(--ink-900);
  transition: border-color 0.2s ease;
}
.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 138, 16, 0.16);
}
.wa-preview-box {
  background: rgba(13, 38, 7, 0.9);
  border: 1px solid rgba(253, 186, 116, 0.35);
  border-radius: 12px;
  padding: 16px;
  font-size: 0.86rem;
  line-height: 1.56;
  color: rgba(255, 255, 255, 0.92);
  white-space: pre-wrap;
  min-height: 190px;
}

/* Contact & Dual QR */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.qr-dual-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.qr-item {
  background: var(--canvas-50);
  border: 1px solid var(--sage-200);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.qr-item img {
  width: 112px;
  height: 112px;
  background: var(--white);
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--sage-200);
  cursor: pointer;
}

.clean-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.clean-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-700);
  line-height: 1.5;
}
.clean-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--primary);
}

/* ==================== UI/UX PRO MAX FLAGSHIP ELEVATION ==================== */
.coop-hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 78% 28%, rgba(251, 176, 59, 0.22), transparent 46%),
    radial-gradient(circle at 18% 72%, rgba(83, 214, 26, 0.14), transparent 42%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
}

.hero-kpi {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, background-color 0.22s ease;
  font-variant-numeric: tabular-nums;
}
.hero-kpi:hover {
  transform: translate3d(0, -3px, 0);
  border-color: rgba(251, 176, 59, 0.56);
  background: rgba(255, 255, 255, 0.13);
}

.unit-card:hover, .leader-card:hover {
  transform: translate3d(0, -5px, 0);
  border-color: var(--primary);
  box-shadow: 0 18px 42px rgba(13, 38, 7, 0.13);
}

.step-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.step-nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.step-progress-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.step-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.step-nav-btn:hover {
  background: var(--accent-light);
  color: var(--forest-950);
  border-color: var(--accent-light);
}

/* Curated Gallery Tiles & Lightbox Navigation Bar */
.gallery-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 38, 7, 0) 46%, rgba(13, 38, 7, 0.82) 100%);
  pointer-events: none;
  z-index: 1;
}
.gallery-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(13, 38, 7, 0.16);
}
.lightbox-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.lightbox-nav-bar[hidden] { display: none; }
.lightbox-nav-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--sage-200);
  background: var(--sage-100);
  color: var(--forest-900);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.lightbox-nav-btn:hover {
  background: var(--forest-900);
  color: var(--white);
  border-color: var(--forest-900);
}
.lightbox-counter {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-500);
  font-variant-numeric: tabular-nums;
}

.contact-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (min-width: 1440px) {
  .coop-hero { min-height: 625px; padding: 68px 0 60px; }
}

@media (max-width: 1160px) {
  .coop-hero-grid { grid-template-columns: 1.08fr 1fr; gap: 26px; }
  .leader-grid, .unit-grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stepper-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1023px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .coop-hero { min-height: auto; padding: 48px 0 44px; }
  .coop-hero-grid,
  .grid-2,
  .sim-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .leader-grid,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .unit-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stepper-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .qr-dual-box {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-kpi-grid,
  .unit-specs {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (max-width: 460px) {
  .hero-kpi-grid,
  .qr-dual-box,
  .unit-specs,
  .stepper-grid {
    grid-template-columns: 1fr;
  }
  .hero-pill { width: 100%; }
}
