/* Base Reset & Colors */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #d97706;      /* Vibrant Orange / Warm Gold */
  --primary-dark: #b45309;
  --secondary: #15803d;    /* Deep Tropical Green */
  --dark: #1f2937;         /* Charcoal Dark Text */
  --light-bg: #f9fafb;
  --white: #ffffff;
  --gray-text: #4b5563;
  --border-color: #e5e7eb;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--white);
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Typography & Utilities */
h1, h2, h3 {
  color: var(--dark);
  line-height: 1.2;
}

.badge {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #11632e;
}

/* Top Bar */
.top-bar {
  background-color: var(--dark);
  color: #9ca3af;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links a {
  color: #9ca3af;
  margin-left: 1rem;
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--white);
}

/* Main Header */
.main-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo a {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.logo-sub {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--secondary);
  text-transform: uppercase;
}

.nav-menu ul {
  display: flex;
  gap: 1.5rem;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), 
              url('https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: var(--white);
  padding: 8rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  color: #e5e7eb;
}

/* About Intro */
.about-intro {
  padding: 4rem 0;
  background-color: var(--light-bg);
  text-align: center;
}

.about-intro h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-intro p {
  color: var(--gray-text);
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* CEO Section */
.ceo-section {
  padding: 5rem 0;
}

.ceo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.ceo-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.ceo-text p {
  color: var(--gray-text);
  margin-bottom: 1rem;
}

.ceo-name {
  color: var(--dark);
  margin-top: 1.5rem;
}

.ceo-card {
  background: var(--light-bg);
  border-left: 5px solid var(--primary);
  padding: 3rem 2rem;
  border-radius: 4px;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Products Spotlight */
.products-spotlight {
  background-color: var(--light-bg);
  padding: 5rem 0;
}

.section-desc {
  color: var(--gray-text);
  max-width: 750px;
  margin: 1rem auto 2rem auto;
}

/* Metrics Section */
.metrics-section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.progress-bars {
  max-width: 700px;
  margin: 0 auto;
}

.bar-item {
  margin-bottom: 1.5rem;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.bar-bg {
  background: #e5e7eb;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.bar-fill {
  background: var(--primary);
  height: 100%;
}

/* Partner Section */
.partner-section {
  background: linear-gradient(rgba(21, 128, 61, 0.9), rgba(21, 128, 61, 0.9)),
              url('https://images.unsplash.com/photo-1578916171728-46686eac8d58?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.partner-content {
  max-width: 750px;
  margin: 0 auto;
}

.partner-section .badge {
  color: #fef08a;
}

.partner-section h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.partner-section p {
  color: #f3f4f6;
  margin-bottom: 2rem;
}

/* Contact Grid */
.contact-section {
  padding: 5rem 0;
  background-color: var(--light-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: var(--white);
  padding: 2.5rem 1.5rem;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.contact-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-card h3 {
  margin-bottom: 0.8rem;
}

.contact-card p {
  color: var(--gray-text);
  font-size: 0.95rem;
}

.sub-text {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Footer */
.main-footer {
  background: var(--dark);
  color: #9ca3af;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: #9ca3af;
  margin-left: 1.5rem;
}

.footer-links a:hover {
  color: var(--white);
}

/* Base Reset & Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #d97706;      /* Orange Accent */
  --primary-dark: #b45309;
  --secondary: #15803d;    /* Tropical Green */
  --dark: #1f2937;         /* Charcoal Text */
  --light-bg: #f9fafb;     /* Section Background */
  --white: #ffffff;
  --gray-text: #4b5563;
  --border-color: #e5e7eb;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--white);
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Page Hero Header */
.page-hero {
  padding: 3rem 0;
  background: var(--light-bg);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.page-hero p {
  color: var(--gray-text);
  max-width: 600px;
  margin: 0 auto;
}

/* Catalogue Main Section */
.catalogue-section {
  padding: 3rem 0;
}

/* Search Bar & Dropdown Controls */
.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--gray-text);
}

.table-controls input,
.table-controls select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin: 0 0.25rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.table-controls input:focus,
.table-controls select:focus {
  border-color: var(--primary);
}

.search-box input {
  min-width: 220px;
}

/* Product Table */
.table-responsive {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--white);
  margin-bottom: 1.5rem;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.product-table th, 
.product-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.product-table th {
  background: var(--light-bg);
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.product-table tr:last-child td {
  border-bottom: none;
}

.product-table tbody tr:hover {
  background-color: #f3f4f6;
}

/* Pagination Bar & Active States */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--gray-text);
}

.pages {
  display: flex;
  gap: 0.3rem;
}

.pages button {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pages button.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  font-weight: 700;
}

.pages button:hover:not(:disabled):not(.active) {
  background: var(--light-bg);
  border-color: #d1d5db;
}

.pages button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Good to Know / Info Section */
.info-section {
  padding: 4rem 0;
  background: var(--light-bg);
  border-top: 1px solid var(--border-color);
}

.info-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--white);
  padding: 1.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.info-card p {
  color: var(--gray-text);
  font-size: 0.95rem;
}

/* Category Grids */
.category-grid-section,
.bottom-showcase-section {
  padding: 2.5rem 0;
  background-color: var(--white);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.category-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  background: var(--light-bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cat-img {
  height: 120px;
  background-size: cover;
  background-position: center;
}

.category-card h4 {
  padding: 0.8rem 0.5rem;
  font-size: 0.95rem;
  color: var(--dark);
}

.category-card h4 span {
  color: var(--primary);
  font-weight: 600;
}

/* Section Titles */
.section-title {
  margin-bottom: 1.5rem;
}

.section-title h2 {
  font-size: 1.8rem;
}

/* Good To Know Numbers */
.info-card {
  position: relative;
  overflow: hidden;
}

.info-number {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-weight: bold;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* CTA Download Banner */
.cta-banner {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0;
}

.cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.cta-text h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.cta-text p {
  color: #9ca3af;
}

.cta-actions {
  display: flex;
  gap: 1rem;
}

/* Styling Specifics for JAC Foods Layout */
.hero-jac {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
              url('https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  padding: 6rem 0;
  color: #ffffff;
}

.hero-jac h1 {
  color: #ffffff;
  font-size: 2.5rem;
  margin: 0.75rem 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.hero-jac .hero-subtitle {
  color: #e5e7eb;
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
}

.hero-jac .badge-light {
  background-color: #d97706; /* Rich warm amber tone */
  color: #ffffff;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
}

/* Products Grid */
.products-section {
  padding: 5rem 0;
  background-color: #f9fafb;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.product-card {
  background: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.product-icon {
  font-size: 2rem;
  color: #d97706;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #111827;
}

.product-card p {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Vision / Mission / Objective Section */
.vision-mission-section {
  padding: 5rem 0;
  background: #ffffff;
}

.grid-three-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.vm-card {
  background: #f9fafb;
  padding: 2.5rem 2rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.vm-card.highlight-card {
  background: #fffbeb;
  border-color: #fde68a;
}

.vm-icon {
  font-size: 2.2rem;
  color: #d97706;
  margin-bottom: 1rem;
}

.vm-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #111827;
}

.vm-card p {
  color: #4b5563;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Contact Grid */
.contact-section {
  padding: 5rem 0;
  background-color: #f3f4f6;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.contact-card {
  background: #ffffff;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.contact-icon {
  font-size: 2.2rem;
  color: #d97706;
  margin-bottom: 1rem;
}

/* Fix Section Spacing & Layout */
.about-overview-section {
  padding: 5rem 0;
  background-color: #ffffff;
}

/* Flex/Grid Alignment for Text + Image */
.about-overview-section .grid-two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* Gives text slightly more room */
  gap: 3.5rem;
  align-items: center;
}

/* Text Card Polish */
.about-text-card .badge {
  display: inline-block;
  background-color: #fef3c7;
  color: #d97706;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-text-card h2 {
  font-size: 2.2rem;
  color: #111827;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.about-text-card p {
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Image Container Frame & Shadow */
.about-image-wrapper {
  position: relative;
  width: 100%;
}

.about-image-wrapper img {
  width: 100%;
  height: 420px; /* Fixed height for consistent proportions */
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #f3f4f6;
  display: block;
}

/* Contact Page Hero */
.hero-contact {
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), 
              url('https://images.unsplash.com/photo-1610832958506-aa56368176cf?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  padding: 6rem 0;
  color: #ffffff;
}

.hero-contact h1 {
  color: #ffffff;
  font-size: 2.5rem;
  margin: 0.75rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-contact .hero-subtitle {
  color: #e5e7eb;
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Contact Details Cards Section */
.contact-details-section {
  padding: 5rem 0;
  background-color: #f9fafb;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-card-box {
  background: #ffffff;
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.contact-icon-wrapper {
  width: 64px;
  height: 64px;
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.contact-icon-wrapper i {
  font-size: 1.6rem;
  color: #d97706;
}

.contact-card-box h3 {
  font-size: 1.25rem;
  color: #111827;
  margin-bottom: 0.75rem;
}

.contact-value {
  font-size: 1.1rem;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.contact-value a {
  color: #d97706;
  text-decoration: none;
  font-weight: 600;
}

.contact-value a:hover {
  text-decoration: underline;
}

.contact-desc {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
}

.sub-text {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* Call to Action Section */
.contact-cta-section {
  padding: 4rem 0;
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.contact-cta-section h2 {
  font-size: 2rem;
  color: #111827;
  margin-bottom: 0.75rem;
}

.contact-cta-section p {
  color: #4b5563;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  background-color: #111827;
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: #1f2937;
}

/* Responsive fix for mobile */
@media (max-width: 768px) {
  .about-overview-section .grid-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-image-wrapper img {
    height: 280px;
  }
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  .table-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box input {
    width: 100%;
  }

  .pagination {
    flex-direction: column;
    align-items: center;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .ceo-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links a {
    margin: 0 0.75rem;
  }
}