/* ==========================================================================
   Agro Pak Farms (Private) Limited — Mobile-First Stylesheet
   Palette matched to Official Letterhead & Logo (#132B1D + #C9A23F)
   ========================================================================== */

:root {
  --forest-950: #0b1a11;
  --forest-900: #132b1d;
  --forest-800: #1b3d29;
  --forest-700: #265338;
  --gold-500: #c9a23f;
  --gold-400: #ddb959;
  --gold-600: #9e7b22;
  --ivory: #faf9f5;
  --sage: #f1f4ee;
  --white: #ffffff;
  --ink: #17241c;
  --muted: #4a5b50;
  --border: rgba(19, 43, 29, 0.12);
  --border-gold: rgba(201, 162, 63, 0.35);
  --shadow-sm: 0 4px 14px rgba(11, 26, 17, 0.06);
  --shadow-md: 0 12px 30px rgba(11, 26, 17, 0.09);
  --shadow-lg: 0 22px 48px rgba(11, 26, 17, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container-max: 1240px;
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--ivory);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: 72px; /* room for mobile sticky action bar */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition), transform var(--transition);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, .font-display {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--forest-900);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold-500);
  color: var(--forest-950);
  padding: 0.75rem 1rem;
  font-weight: 700;
  z-index: 999;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: 8px;
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

/* Top Corporate Utility Bar (letterhead motif) */
.topbar {
  background: var(--forest-950);
  color: rgba(250, 249, 245, 0.88);
  font-size: 0.78rem;
  border-bottom: 2px solid var(--gold-500);
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-block: 0.5rem;
}
.topbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gold-400);
  font-weight: 600;
}
.topbar-links {
  display: none;
  align-items: center;
  gap: 1.25rem;
}
.topbar-links a:hover {
  color: var(--gold-400);
}
@media (min-width: 768px) {
  .topbar-links {
    display: flex;
  }
}

/* Sticky Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 245, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(19, 43, 29, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex-shrink: 0;
}
.brand img {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  font-weight: 700;
  color: var(--forest-900);
  line-height: 1.1;
  white-space: nowrap;
}
.brand-sub {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-top: 2px;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .brand img {
    width: 48px;
    height: 48px;
  }
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.12rem;
}
@media (min-width: 1180px) {
  .desktop-nav {
    display: flex;
  }
}
.nav-link {
  padding: 0.5rem 0.65rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--forest-900);
  background: rgba(19, 43, 29, 0.08);
}
.nav-link.active {
  box-shadow: inset 0 -2px 0 var(--gold-500);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

a.header-cta {
  display: none;
}
@media (min-width: 768px) {
  a.header-cta {
    display: inline-flex;
  }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--forest-900);
  cursor: pointer;
}
.menu-toggle:hover {
  border-color: var(--gold-500);
}
@media (min-width: 1180px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile Slide-Out Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 26, 17, 0.58);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: var(--forest-900);
  color: var(--ivory);
  z-index: 210;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  overflow-y: auto;
  border-left: 3px solid var(--gold-500);
}
.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.drawer-close {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-block: 1.25rem;
}
.drawer-nav a {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  color: rgba(250, 249, 245, 0.9);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-nav a.active,
.drawer-nav a:hover {
  background: rgba(201, 162, 63, 0.16);
  color: var(--gold-400);
}
.drawer-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.86rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}
.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}
.btn-gold {
  background: var(--gold-500);
  color: var(--forest-950);
  box-shadow: 0 8px 20px rgba(201, 162, 63, 0.25);
}
.btn-gold:hover {
  background: var(--gold-400);
  transform: translateY(-1px);
}
.btn-forest {
  background: var(--forest-900);
  color: var(--white);
}
.btn-forest:hover {
  background: var(--forest-800);
  transform: translateY(-1px);
}
.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--gold-400);
}
.btn-outline-forest {
  background: transparent;
  border-color: var(--forest-900);
  color: var(--forest-900);
}
.btn-outline-forest:hover {
  background: var(--forest-900);
  color: var(--white);
}

/* Hero Sections */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest-950);
  color: var(--white);
}
@media (min-width: 768px) {
  .hero {
    min-height: 600px;
  }
}
.hero-subpage {
  min-height: 320px;
}
@media (min-width: 768px) {
  .hero-subpage {
    min-height: 380px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(11, 26, 17, 0.92) 0%,
    rgba(19, 43, 29, 0.78) 52%,
    rgba(11, 26, 17, 0.55) 100%
  );
  z-index: 2;
}

/* Letterhead diagonal gold accent strip on heroes */
.hero-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold-500) 0%, var(--gold-400) 50%, var(--forest-700) 100%);
  z-index: 4;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-block: 3.5rem;
  max-width: 760px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(201, 162, 63, 0.18);
  border: 1px solid rgba(221, 185, 89, 0.45);
  color: var(--gold-400);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.95rem, 5.2vw, 3.35rem);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: clamp(0.98rem, 2.3vw, 1.15rem);
  color: rgba(250, 249, 245, 0.9);
  margin-bottom: 1.75rem;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--gold-400);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* KPI Stat Strip */
.stat-strip {
  background: var(--forest-900);
  color: var(--ivory);
  border-bottom: 1px solid rgba(201, 162, 63, 0.28);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-block: 1.5rem;
}
@media (min-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}
.stat-item {
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--gold-500);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 10px 10px 0;
}
.stat-val {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--gold-400);
}
.stat-lbl {
  font-size: 0.82rem;
  color: rgba(250, 249, 245, 0.84);
  margin-top: 0.15rem;
}

/* Section Layout */
.section {
  padding-block: clamp(3rem, 6vw, 4.75rem);
}
.section-sage {
  background: var(--sage);
}
.section-forest {
  background: var(--forest-900);
  color: var(--ivory);
}
.section-forest h2,
.section-forest h3 {
  color: var(--white);
}

.section-header {
  max-width: 720px;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.section-header.centered {
  margin-inline: auto;
  text-align: center;
}
.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.5rem;
}
.section-forest .section-kicker {
  color: var(--gold-400);
}
.section-header h2 {
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--muted);
  font-size: 1rem;
}
.section-forest .section-header p {
  color: rgba(250, 249, 245, 0.82);
}

/* Grids */
.grid {
  display: grid;
  gap: 1.35rem;
}
.grid-2 {
  grid-template-columns: 1fr;
}
.grid-3 {
  grid-template-columns: 1fr;
}
.grid-4 {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--forest-900);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.card:hover .card-media img {
  transform: scale(1.04);
}
.card-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(19, 43, 29, 0.9);
  color: var(--gold-400);
  border: 1px solid rgba(201, 162, 63, 0.45);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.card-body {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-600);
  margin-bottom: 0.35rem;
}
.card-title {
  font-size: 1.22rem;
  margin-bottom: 0.6rem;
}
.card-text {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 1rem;
  flex: 1;
}

.specs-list {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  font-size: 0.83rem;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}
.spec-key {
  color: var(--muted);
  font-weight: 600;
}
.spec-val {
  color: var(--forest-900);
  font-weight: 700;
  text-align: right;
}

.card-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
}

/* Value Chain Timeline */
.process-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(221, 185, 89, 0.25);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--forest-950);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.process-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.process-card p {
  font-size: 0.91rem;
  color: rgba(250, 249, 245, 0.82);
}

/* Feature Icon Cards (Non-image typographic cards) */
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 1.45rem;
  box-shadow: var(--shadow-sm);
}
.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(19, 43, 29, 0.08);
  color: var(--forest-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
}
.pillar-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.pillar-card p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Corporate Official Registration / Letterhead Block */
.letterhead-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.letterhead-banner {
  background: var(--forest-900);
  color: var(--ivory);
  padding: 1.5rem;
  border-bottom: 4px solid var(--gold-500);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.letterhead-banner h3 {
  color: var(--white);
  font-size: 1.35rem;
}
.letterhead-grid {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .letterhead-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 2rem;
  }
}
.reg-box {
  background: var(--sage);
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-500);
}
.reg-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.reg-value {
  font-weight: 700;
  color: var(--forest-900);
  margin-top: 0.25rem;
  font-size: 0.98rem;
}

/* Filter Bar & Search */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 900px) {
  .filter-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-pill {
  min-height: 42px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
}
.filter-pill.active,
.filter-pill:hover {
  background: var(--forest-900);
  color: var(--gold-400);
  border-color: var(--forest-900);
}
.search-input {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  min-width: 240px;
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 0.92rem;
}
.data-table th {
  background: var(--forest-900);
  color: var(--gold-400);
  text-align: left;
  padding: 0.95rem 1rem;
  font-weight: 700;
}
.data-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table tr:last-child td {
  border-bottom: none;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 880px;
  margin-inline: auto;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.15rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--forest-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  min-height: 54px;
}
.faq-icon {
  color: var(--gold-600);
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-a {
  display: none;
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
  font-size: 0.94rem;
  border-top: 1px solid rgba(19, 43, 29, 0.06);
  padding-top: 0.9rem;
}
.faq-item.open .faq-a {
  display: block;
}

/* Testimonials */
.quote-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quote-stars {
  color: var(--gold-500);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.quote-text {
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 1.2rem;
  font-style: italic;
}
.quote-author {
  font-weight: 700;
  color: var(--forest-900);
}
.quote-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Forms */
.form-card {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-md);
}
.form-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--forest-900);
}
.field-control {
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(19, 43, 29, 0.22);
  background: var(--ivory);
  color: var(--ink);
  color-scheme: light;
  width: 100%;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field-control:focus {
  outline: none;
  border-color: var(--gold-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201, 162, 63, 0.18);
}
textarea.field-control {
  min-height: 120px;
  resize: vertical;
}
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.alert {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.93rem;
}
.alert-success {
  background: #e9f7ef;
  border: 1px solid #84cfa3;
  color: #124b28;
}
.alert-error {
  background: #fdecec;
  border: 1px solid #f2a2a2;
  color: #7c1d1d;
}

/* Gallery & Modals */
.gallery-card {
  cursor: pointer;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 26, 17, 0.86);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open {
  display: flex;
}
.modal-box {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: sticky;
  top: 0.75rem;
  float: right;
  margin: 0.75rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--forest-900);
  color: var(--gold-400);
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 5;
}

/* Footer */
.site-footer {
  background: var(--forest-950);
  color: rgba(250, 249, 245, 0.84);
  border-top: 4px solid var(--gold-500);
}
.footer-main {
  display: grid;
  gap: 2rem;
  padding-block: 3rem;
}
@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}
.footer-heading {
  color: var(--gold-400);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.footer-links {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--gold-400);
}
.values-ribbon {
  background: var(--forest-900);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 0.85rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-400);
}
.footer-bottom {
  padding-block: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(250, 249, 245, 0.68);
}

/* Mobile Sticky Action Bar */
.mobile-quickbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--forest-950);
  border-top: 2px solid var(--gold-500);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-quickbar a {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--ivory);
  gap: 0.15rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-quickbar a:last-child {
  border-right: none;
  background: var(--gold-500);
  color: var(--forest-950);
}
@media (min-width: 768px) {
  .mobile-quickbar {
    display: none;
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
}
.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal {
    opacity: 1;
    transform: none;
  }
}


/* ==========================================================================
   Agro Pak Farms v2.0 — Executive Corporate & B2B Process Components
   ========================================================================== */

@media (min-width: 768px) {
  .form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.corporate-trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding-block: 0.9rem;
}
.corporate-trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.5rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.corporate-trust-inner strong {
  color: var(--forest-900);
}

/* Split Corporate Showcase Layout */
.corp-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 900px) {
  .corp-split {
    grid-template-columns: 1.05fr 1fr;
  }
  .corp-split.corp-split-reverse .corp-split-media {
    order: 2;
  }
}

.corp-split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--forest-900);
}
.corp-split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.corp-media-badge {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(11, 26, 17, 0.9);
  backdrop-filter: blur(8px);
  border-left: 4px solid var(--gold-500);
  color: var(--ivory);
  padding: 0.75rem 1rem;
  border-radius: 0 10px 10px 0;
  font-size: 0.83rem;
}
.corp-media-badge strong {
  color: var(--gold-400);
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.corp-split-body h2 {
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  margin-bottom: 0.85rem;
}
.section-forest .corp-split-body h2 {
  color: var(--white);
}
.corp-split-body p.lead-copy {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.section-forest .corp-split-body p.lead-copy {
  color: rgba(250, 249, 245, 0.86);
}

.corp-checklist {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}
.corp-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.93rem;
  color: var(--ink);
}
.section-forest .corp-checklist li {
  color: rgba(250, 249, 245, 0.92);
}
.corp-checklist li::before {
  content: "\2714";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(201, 162, 63, 0.18);
  border: 1px solid var(--gold-500);
  color: var(--gold-600);
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.section-forest .corp-checklist li::before {
  color: var(--gold-400);
}

.breed-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.breed-pill {
  background: var(--sage);
  border: 1px solid rgba(19, 43, 29, 0.16);
  color: var(--forest-900);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
}

/* Farm Process Showcase Cards (Feeding, Weighing, Housing) */
.process-photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  margin-top: 2.25rem;
}
@media (min-width: 768px) {
  .process-photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.process-photo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.process-photo-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--forest-900);
}
.process-photo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.process-photo-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--forest-950);
  color: var(--gold-400);
  border: 1px solid var(--gold-500);
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.process-photo-body {
  padding: 1.25rem;
  flex: 1;
}
.process-photo-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}
.process-photo-body p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Company Profile PDF Banner */
.pdf-banner {
  background: linear-gradient(135deg, var(--forest-950) 0%, var(--forest-900) 60%, var(--forest-800) 100%);
  color: var(--ivory);
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 860px) {
  .pdf-banner {
    grid-template-columns: 1.5fr 1fr;
  }
}
.pdf-banner h2 {
  color: var(--white);
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  margin-bottom: 0.55rem;
}
.pdf-banner p {
  color: rgba(250, 249, 245, 0.86);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.pdf-banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.pdf-meta-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(221, 185, 89, 0.35);
  color: var(--gold-400);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.pdf-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Partnership Tiers Grid */
.partnership-tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .partnership-tier-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.tier-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(221, 185, 89, 0.28);
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}
.tier-card-light {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 1.45rem;
  box-shadow: var(--shadow-sm);
}
.tier-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-400);
  margin-bottom: 0.35rem;
}
.tier-card-light .tier-label {
  color: var(--gold-600);
}
.tier-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.tier-card-light h3 {
  color: var(--forest-900);
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
}
.tier-card p {
  color: rgba(250, 249, 245, 0.84);
  font-size: 0.9rem;
}
.tier-card-light p {
  color: var(--muted);
  font-size: 0.91rem;
}

/* Corporate Form Card Header */
.corp-form-card {
  border-top: 5px solid var(--gold-500);
}
.corp-form-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
}
.corp-form-kicker {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.corp-form-badge {
  background: var(--forest-900);
  color: var(--gold-400);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
}
