/* ========================================
   AGROXCEL CHEMICAL COMPANY - PREMIUM CSS
   ======================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Crimson+Pro:wght@300;400;500;600&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Color Palette */
:root {
  /* Primary Colors - Lighter, Modern Palette */
  --primary-green: #2d8b4f;
  --primary-dark: #1a5f35;
  --secondary-brown: #8b6f47;
  --accent-gold: #f4a500;
  --brand-orange: #f08b1f;
  --brand-blue: #149bc5;
  
  /* Neutral Colors */
  --bg-cream: #faf8f3;
  --bg-white: #ffffff;
  --text-dark: #2c2c2c;
  --text-light: #666666;
  --border-light: #e5e5e5;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2d8b4f 0%, #3fa866 100%);
  --gradient-gold: linear-gradient(135deg, #f4a500 0%, #ffb52e 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(45, 139, 79, 0.88) 0%, rgba(63, 168, 102, 0.82) 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Crimson Pro', serif;
  --font-sans: 'Montserrat', sans-serif;
  --focus-ring: 0 0 0 0.2rem rgba(45, 139, 79, 0.28);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Keep content from hiding under sticky nav when jumping to anchors */
html {
  scroll-padding-top: 90px;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-check-input:focus-visible,
.navbar-toggler:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

ul, ol {
  list-style: none;
}

section {
  padding: clamp(3.25rem, 6vw, 5rem) 0;
  position: relative;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.75rem;
  font-weight: 600;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.section-title h2 {
  margin-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gradient-gold);
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 0.5rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   UTILITIES
   ======================================== */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-outline:hover {
  background: var(--primary-green);
  color: var(--bg-white);
  transform: translateY(-2px);
}

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

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  background: var(--accent-gold);
  color: var(--primary-dark);
}

.text-primary {
  color: var(--primary-green);
}

.text-gold {
  color: var(--accent-gold);
}

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

.bg-cream {
  background-color: var(--bg-cream);
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-green);
  padding: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.1;
}

.navbar-brand .brand-logo {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  object-fit: contain;
}

.navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
}

.navbar-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--primary-green);
}

.navbar-brand .brand-subname {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.navbar-nav {
  padding: 1rem 0;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.6rem 1.25rem;
  position: relative;
  transition: var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-green);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.dropdown-menu {
  border: none;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  background: var(--bg-white);
}

.dropdown-item {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  padding: 0.625rem 1.5rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--bg-cream);
  color: var(--primary-green);
  padding-left: 1.75rem;
}

/* Mobile Menu Toggle */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  position: relative;
  height: 90vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a5f35 0%, #2d8b4f 50%, #3fa866 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
  background-image: url('../images/hero-pattern.png');
  background-size: cover;
  background-position: center;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--bg-white);
}

.hero-kicker {
  margin-bottom: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d8e6dc;
  font-weight: 700;
}

.hero-content h1 {
  color: var(--bg-white);
  margin-bottom: 1.5rem;
}

.hero-content .lead {
  font-size: clamp(1.05rem, 2.4vw, 1.375rem);
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 4rem;
  display: flex;
  gap: 3rem;
}

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

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.hero-stat-label {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
}

/* Decorative Elements */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-shape-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  bottom: -150px;
  left: -100px;
}

/* ========================================
   FEATURES / CARDS
   ======================================== */

.feature-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth), background-color var(--transition-base);
  height: 100%;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h4 {
  margin-bottom: 1rem;
  font-size: 1.375rem;
}

.feature-card p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* ========================================
   WHY CHOOSE PREMIUM SECTION
   ======================================== */

.why-choose-premium {
  background: linear-gradient(180deg, #ffffff 0%, #f5f7f3 100%);
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.why-choose-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 2.25rem;
  align-items: center;
}

.why-choose-image-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  min-height: 440px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #dde6da;
  box-shadow: 0 18px 44px rgba(24, 39, 27, 0.14);
}

.why-choose-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-overline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4f7a56;
  font-weight: 700;
}

.why-overline::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: #7ca183;
}

.why-choose-intro h3 {
  margin-bottom: 0.9rem;
  color: #173426;
  font-size: clamp(1.65rem, 2.5vw, 2.7rem);
  line-height: 1.18;
  max-width: 560px;
}

.why-choose-intro p {
  margin: 0;
  color: #3f5447;
  max-width: 600px;
  font-size: 1.08rem;
  line-height: 1.9;
}

.why-choose-grid {
  margin-top: 1.8rem;
  margin-left: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: linear-gradient(135deg, #203f2f 0%, #1a3529 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(223, 236, 225, 0.2);
  box-shadow: 0 20px 42px rgba(16, 30, 22, 0.25);
}

.why-choose-feature {
  padding: 2rem 1.6rem 1.8rem;
  border-right: 1px solid rgba(221, 235, 224, 0.2);
}

.why-choose-feature h4 {
  margin-bottom: 0.65rem;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  color: #f6fbf7;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.why-choose-feature h4 i {
  color: #ffd24a;
}

.why-choose-feature p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.72;
  color: rgba(238, 249, 242, 0.84);
}

.why-choose-feature:last-child {
  border-right: 0;
}

/* ========================================
   PRODUCT CARDS
   ======================================== */

.product-card {
  background: var(--bg-white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-grid-item {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-grid-item.is-hidden {
  display: none !important;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.product-card-clickable {
  cursor: pointer;
}

.product-image {
  position: relative;
  height: 260px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(244, 165, 0, 0.12), transparent 35%),
    linear-gradient(180deg, #f8fbf8 0%, #eef4ef 100%);
}

.product-image img {
  width: calc(100% - 1rem);
  height: calc(100% - 1rem);
  object-fit: contain;
  object-position: center;
  margin: 0.5rem;
  filter: drop-shadow(0 12px 18px rgba(16, 38, 24, 0.2));
  transition: var(--transition-smooth);
}

.product-card:hover .product-image img {
  transform: scale(1.02);
}

.product-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 1rem;
  background: var(--accent-gold);
  color: var(--primary-dark);
  border: none;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.product-content {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--primary-green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.product-description {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.6;
}

.product-specs {
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: var(--bg-cream);
  border-radius: 8px;
}

.product-spec {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.8125rem;
}

.product-spec:last-child {
  border-bottom: none;
}

.product-spec-label {
  font-weight: 600;
  color: var(--text-dark);
}

.product-spec-value {
  color: var(--text-light);
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.product-actions .btn {
  flex: 1;
  padding: 0.625rem;
  font-size: 0.8125rem;
  text-align: center;
}

/* ========================================
   CERTIFICATIONS
   ======================================== */

.certification-grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px);
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.certification-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(20, 155, 197, 0.15), rgba(240, 139, 31, 0.14));
  border: 1px solid rgba(20, 155, 197, 0.2);
  border-radius: 50%;
  color: var(--brand-blue);
  font-size: 2rem;
  font-weight: 700;
}

.certification-name {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
}

.cert-card {
  border: 1px solid #dfe9f1;
  background: #ffffff;
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 230px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.cert-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #bed3e4;
}

.cert-card-thumb {
  width: 100%;
  border: 1px solid #e0eaf2;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.9rem;
  background: #f7fbff;
}

.cert-card-thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.cert-card-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: #1d3446;
  margin-bottom: 0.3rem;
}

.cert-card-meta {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #617585;
}

.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cert-modal.is-open {
  display: flex;
}

.cert-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 30, 0.72);
  backdrop-filter: blur(2px);
}

.cert-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(1100px, 96vw);
  max-height: 96vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #d8e4ee;
  box-shadow: 0 24px 60px rgba(8, 28, 46, 0.35);
  padding: 0.6rem;
}

.cert-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #e9f1f8;
  color: #1c3446;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.cert-modal-close:hover {
  background: #dbe9f4;
}

.cert-modal-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  margin: 0 2.6rem 0.75rem 0;
  color: #3a5468;
}

.cert-modal-dialog img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 90vh;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid #dee9f2;
  object-fit: contain;
}

.cert-modal-note {
  margin: 0.6rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #607586;
}

/* ========================================
   CTA BANNER
   ======================================== */

.cta-banner {
  background: var(--gradient-primary);
  color: var(--bg-white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/pattern-dots.png');
  opacity: 0.1;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-content h2 {
  color: var(--bg-white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 2rem;
}

.footer-brand {
  color: var(--bg-white);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1.2;
}

.footer-brand-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
}

.footer-brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bg-white);
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.footer-title {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--bg-white);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 0.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item p,
.footer-contact-item a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-contact-item i {
  color: var(--accent-gold);
  margin-top: 0.25rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--bg-white);
  transition: var(--transition-base);
}

.social-link:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
}

/* ========================================
   ABOUT PAGE
   ======================================== */

.page-header {
  background: var(--gradient-primary);
  color: var(--bg-white);
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-header.page-header-image {
  background-image:
    linear-gradient(135deg, rgba(20, 83, 53, 0.86), rgba(14, 44, 71, 0.84)),
    var(--page-header-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/pattern-grid.png');
  opacity: 0.1;
}

.section-photo-bg {
  position: relative;
  background-image:
    linear-gradient(135deg, rgba(246, 252, 248, 0.93), rgba(253, 248, 239, 0.9)),
    var(--section-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.section-photo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 22%, rgba(39, 174, 96, 0.12), transparent 42%);
  pointer-events: none;
}

.section-photo-bg > .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  color: var(--bg-white);
  position: relative;
  z-index: 2;
}

.page-header .breadcrumb {
  background: transparent;
  padding: 0;
  margin-top: 1rem;
  position: relative;
  z-index: 2;
}

.breadcrumb-item,
.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
}

.breadcrumb-item.active {
  color: var(--accent-gold);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

.mission-vision-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.mvv-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition-smooth);
  border-top: 4px solid var(--primary-green);
}

.mvv-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.mvv-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}

.mvv-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-green);
}

.stats-section {
  background: var(--primary-dark);
  color: var(--bg-white);
  padding: 5rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* ========================================
   INFRASTRUCTURE PAGE
   ======================================== */

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

.infrastructure-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.infrastructure-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.infrastructure-image {
  height: 220px;
  overflow: hidden;
  background: var(--bg-cream);
}

.infrastructure-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.infrastructure-card:hover .infrastructure-image img {
  transform: scale(1.1);
}

.infrastructure-content {
  padding: 2rem;
}

.infrastructure-content h4 {
  margin-bottom: 1rem;
  color: var(--primary-green);
}

.infrastructure-content p {
  color: var(--text-light);
  font-size: 0.9375rem;
}

.infrastructure-list {
  list-style: none;
  margin-top: 1rem;
}

.infrastructure-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--text-light);
  font-size: 0.9375rem;
}

.infrastructure-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: 700;
}

/* ========================================
   EXPORTS PAGE
   ======================================== */

.world-map-section {
  background: var(--bg-white);
  padding: 4rem 0;
  text-align: center;
}

.world-map-placeholder {
  max-width: 900px;
  margin: 3rem auto;
  padding: 4rem 2rem;
  background: var(--bg-cream);
  border-radius: 12px;
  border: 2px dashed var(--border-light);
}

.world-map-placeholder h3 {
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.country-item {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.country-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.country-flag {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.country-name {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-dark);
}

/* ========================================
   CONTACT PAGE
   ======================================== */

.contact-form-section {
  background: var(--bg-white);
}

.contact-info-card {
  background: var(--gradient-primary);
  color: var(--bg-white);
  padding: 3rem;
  border-radius: 12px;
  height: 100%;
}

.contact-info-card h3 {
  color: var(--bg-white);
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-content h5 {
  color: var(--bg-white);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.contact-info-content p {
  margin: 0;
  opacity: 0.9;
}

.contact-info-content a,
.contact-info-content p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.form-control {
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: var(--focus-ring);
  outline: none;
}

.form-control.is-invalid,
.form-check-input.is-invalid {
  border-color: #dc3545;
}

.field-error {
  color: #b42318;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  margin-top: 0.35rem;
}

.form-label {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.map-container {
  width: 100%;
  height: 450px;
  background: var(--bg-cream);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 3rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.facility-photo-wrap {
  margin: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.facility-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.facility-photo-caption {
  padding: 0.9rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: var(--text-light);
  background: #fff;
}

.map-facility-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.map-facility-grid .map-container {
  height: 100%;
  margin-top: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease both;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Scroll Reveal Animation */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Add animation only when JS is loaded */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.js-enabled .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   MOBILE MENU FIXES
   ======================================== */

@media (max-width: 991px) {
  .navbar-toggler {
    padding: 0.5rem;
    border: 2px solid var(--primary-green);
    border-radius: 4px;
    background: white;
    cursor: pointer;
    z-index: 1001;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(45, 139, 79, 0.25);
    outline: none;
  }
  
  .navbar-toggler-icon {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232d8b4f' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    margin-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .navbar-collapse.show {
    max-height: 500px;
    padding: 1rem 0;
    overflow-y: auto;
  }
  
  .navbar-nav {
    padding: 0.5rem 0;
  }
  
  .nav-link {
    padding: 0.75rem 1.5rem !important;
    border-bottom: 1px solid #f0f0f0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .nav-link:hover {
    background: var(--bg-cream);
  }
  
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    border: none;
    box-shadow: none;
    background: #f8f8f8;
    margin: 0;
    padding-left: 1rem;
  }
  
  .dropdown-item {
    padding: 0.5rem 1.5rem;
  }
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 991px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.75rem; }
  
  .hero {
    height: 70vh;
    min-height: 500px;
    padding: 3rem 0;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero-content .lead {
    font-size: 1.125rem;
  }
  
  .hero-stats {
    flex-direction: row;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-stat {
    min-width: 100px;
  }
  
  .mission-vision-values {
    grid-template-columns: 1fr;
  }

  section {
    padding: 4rem 0;
  }
}

@media (max-width: 767px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  
  .hero {
    height: auto;
    min-height: 450px;
    padding: 2rem 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-content .lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .hero-stats {
    flex-direction: column;
    margin-top: 2rem;
    gap: 1rem;
    align-items: center;
  }
  
  .hero-stat-number {
    font-size: 2rem;
  }
  
  .hero-stat-label {
    font-size: 0.75rem;
  }

  .why-choose-image-card {
    min-height: 340px;
  }

  .why-choose-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .why-choose-grid {
    margin-top: 1.2rem;
    margin-left: 0;
    grid-template-columns: 1fr;
  }

  .why-choose-feature {
    border-right: 0;
    border-bottom: 1px solid rgba(221, 235, 224, 0.2);
    padding: 1.2rem 1rem;
  }

  .why-choose-feature:last-child {
    border-bottom: 0;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .section-title {
    margin-bottom: 2.5rem;
  }
  
  .page-header {
    padding: 4rem 0 3rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  /* Better spacing for mobile */
  .feature-card,
  .product-content,
  .infrastructure-content {
    padding: 1.5rem;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  /* Certification grid for mobile */
  .certification-grid {
    grid-template-columns: minmax(240px, 380px);
    gap: 1rem;
  }
  
  /* Countries grid for mobile */
  .countries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .map-container {
    height: 340px;
  }

  .facility-photo {
    height: 300px;
  }

  .map-facility-grid {
    grid-template-columns: 1fr;
  }

  .map-facility-grid .map-container {
    min-height: 320px;
  }
}

@media (max-width: 575px) {
  .navbar-brand .brand-logo {
    width: 48px;
    height: 48px;
  }
  
  .navbar-brand .brand-name {
    font-size: 0.95rem;
  }
  
  .navbar-brand .brand-subname {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .hero-stat {
    min-width: 80px;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .hero {
    min-height: 420px;
  }
  
  .feature-card,
  .product-content,
  .infrastructure-content {
    padding: 1.25rem;
  }
  
  .certification-grid {
    grid-template-columns: minmax(220px, 1fr);
  }

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

  .cert-card {
    min-height: 200px;
  }

  .cert-modal-dialog {
    padding: 0.8rem;
  }

  .cert-modal-text {
    font-size: 0.85rem;
  }
  
  .map-container {
    height: 300px;
  }

  .facility-photo {
    height: 250px;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .navbar,
  .footer,
  .cta-banner,
  .btn,
  .hero-buttons {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  section {
    page-break-inside: avoid;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================
   HOME PAGE SUBTLE BACKGROUNDS
   ======================================== */

/* Alternating subtle backgrounds for home page */
.home-bg-light {
  background: linear-gradient(135deg, #f8fdf9 0%, #faf8f3 100%);
}

.home-bg-subtle-green {
  background: linear-gradient(135deg, #f0f8f4 0%, #e8f5ed 100%);
}

.home-bg-subtle-cream {
  background: linear-gradient(135deg, #fdfbf7 0%, #f9f5ee 100%);
}

/* Feature cards with subtle hover effect */
.feature-card {
  background: white;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f9fcfa 100%);
}

/* ========================================
   MOBILE CONTAINER PADDING
   ======================================== */

@media (max-width: 767px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Fix hero stats overflow */
  .hero-stats {
    padding: 0 0.5rem;
  }
  
  /* Better product cards on mobile */
  .product-card {
    margin-bottom: 1.5rem;
    min-height: auto;
  }

  .product-image {
    height: 240px;
  }
  .product-image img {
    width: calc(100% - 0.8rem);
    height: calc(100% - 0.8rem);
    margin: 0.4rem;
  }
  
  /* Navbar container full width on mobile */
  .navbar .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Footer better spacing */
  .footer {
    padding: 3rem 0 1.5rem;
  }
  
  .footer .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-brand {
    flex-wrap: wrap;
  }

  .footer-brand-text {
    font-size: 1rem;
  }

  .footer-contact-item {
    align-items: flex-start;
  }

  .footer-contact-item i {
    margin-top: 0.2rem;
    flex-shrink: 0;
  }

  .footer-bottom p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .contact-info-card {
    padding: 2rem 1.25rem;
  }

  .contact-info-content {
    min-width: 0;
  }

  .contact-info-content a {
    display: inline-block;
    max-width: 100%;
  }
  
  /* CTA Banner text size */
  .cta-banner h2 {
    font-size: 1.75rem;
  }
  
  .cta-banner p {
    font-size: 1rem;
  }
}
