/* Premium B2B Import & Export Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --primary-color: #2E7D32;       /* Forest Agriculture Green */
  --primary-hover: #1b5e20;
  --secondary-color: #FF6F00;     /* Warm Amber/Orange */
  --secondary-hover: #e65100;
  --accent-color: #FFF8E1;        /* Warm Cream background */
  --dark-color: #1A1A2E;          /* Rich Navy */
  --light-bg: #F8F9FA;
  --white: #FFFFFF;
  --text-muted: #6C757D;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --font-headings: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark-color);
  background:
    radial-gradient(circle at top left, rgba(46, 125, 50, 0.06), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 111, 0, 0.05), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfbf8 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: rgba(46, 125, 50, 0.18);
  color: var(--dark-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
}

p {
  color: #2f343a;
}

.container {
  position: relative;
}

section {
  position: relative;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-heading .eyebrow,
.text-uppercase {
  letter-spacing: 0.08em;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 2vw, 2.7rem);
  margin-bottom: 0.75rem;
}

.section-heading p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  isolation: isolate;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(26, 26, 46, 0.82), rgba(46, 125, 50, 0.72)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.18));
  z-index: -1;
}

.page-hero h1 {
  font-size: clamp(2.3rem, 4vw, 4.5rem);
  margin-bottom: 0.75rem;
}

.page-hero .lead {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
}

/* Top Bar */
.top-bar {
  background-color: var(--dark-color);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-bar a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transition);
}
.top-bar a:hover {
  color: var(--secondary-color);
}

/* Main Header */
.main-header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  z-index: 1000;
  backdrop-filter: blur(8px);
}
.main-header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  animation: slideDown 0.3s forwards;
  box-shadow: var(--shadow-md);
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.navbar-brand img {
  max-height: 55px;
}

.site-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.site-logo-header {
  max-width: 320px;
  max-height: 86px;
}

.navbar-brand .site-logo-header {
  max-height: 86px;
}

.site-logo-footer {
  max-width: 220px;
  max-height: 72px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}

.footer-logo-link:hover {
  padding-left: 0;
  opacity: 0.9;
}
.nav-link {
  font-weight: 500;
  color: var(--dark-color);
  padding: 24px 15px !important;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}
.dropdown-menu {
  border-radius: 14px;
  padding: 10px;
}
.dropdown-item {
  border-radius: 10px;
}
.dropdown-item:hover {
  background: rgba(46, 125, 50, 0.08);
  color: var(--primary-color);
}
.navbar-toggler:focus {
  box-shadow: none;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 10px 24px;
  font-weight: 600;
  border-radius: 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  padding: 10px 24px;
  font-weight: 600;
  border-radius: 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary::after,
.btn-secondary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-22deg);
  transition: left 0.65s ease;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
  left: 130%;
}

/* Slider Section */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: min(78vh, 680px);
  min-height: 520px;
}
.slide-item {
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  animation: heroImageDrift 12s ease-in-out infinite alternate;
}
.slide-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 46, 0.65); /* Rich Navy Tint */
}
.slide-content {
  position: relative;
  z-index: 10;
  max-width: 760px;
}
.slide-content h1 {
  font-size: clamp(2.6rem, 4.2vw, 4.8rem);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s both;
  text-wrap: balance;
}
.slide-content p {
  font-size: 1.15rem;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s 0.2s both;
  max-width: 640px;
}
.slide-content .btn {
  animation: fadeInUp 0.8s 0.4s both;
}

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

@keyframes heroImageDrift {
  from { background-position: center center; }
  to { background-position: center 42%; }
}

/* Stats Section */
.stats-section {
  background:
    linear-gradient(180deg, rgba(255, 248, 225, 0.95), rgba(255, 255, 255, 0.98)),
    linear-gradient(90deg, rgba(46, 125, 50, 0.08), transparent 30%, rgba(255, 111, 0, 0.05));
  padding: 68px 0;
}
.stat-card {
  text-align: center;
  padding: 18px 16px;
}
.stat-card h3 {
  font-size: 3rem;
  color: var(--primary-color);
  font-weight: 700;
}
.stat-card p {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0;
}

/* Product Cards */
.product-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(26, 26, 46, 0.06);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.product-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 235px;
  background: linear-gradient(180deg, rgba(46, 125, 50, 0.04), rgba(255, 255, 255, 0.75));
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.product-card:hover img {
  transform: scale(1.08);
}
.badge-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.wishlist-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--white);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}
.wishlist-btn:hover, .wishlist-btn.active {
  color: #d63031;
  transform: scale(1.1);
}
.product-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-origin {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--dark-color);
  min-height: 58px;
}
.product-meta-specs {
  font-size: 0.85rem;
  margin-bottom: 15px;
  background: var(--light-bg);
  padding: 8px 12px;
  border-radius: 6px;
}
.product-price-range {
  font-weight: 700;
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-top: auto;
  margin-bottom: 15px;
}

/* Category Slider */
.category-scroll {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 15px 5px;
  scrollbar-width: thin;
}
.category-scroll::-webkit-scrollbar {
  height: 6px;
}
.category-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}
.category-scroll-card {
  min-width: 180px;
  background: var(--white);
  padding: 25px 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 26, 46, 0.06);
  transition: var(--transition);
  text-decoration: none;
  color: var(--dark-color);
}
.category-scroll-card:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px);
}
.category-scroll-card i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}
.category-scroll-card:hover i {
  color: var(--white);
}

/* Why Choose Us Cards */
.feature-card {
  padding: 30px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 26, 46, 0.05);
  height: 100%;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(46, 125, 50, 0.14), rgba(255, 111, 0, 0.12));
  color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.feature-icon i {
  font-size: 1.5rem;
  line-height: 1;
}

/* Blog Cards */
.blog-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 26, 46, 0.05);
  transition: var(--transition);
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.blog-image-wrapper {
  height: 200px;
  overflow: hidden;
}
.blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.blog-card:hover img {
  transform: scale(1.05);
}
.blog-info {
  padding: 20px;
}
.blog-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.blog-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  animation: pulse 2s infinite;
}
.whatsapp-float:hover {
  color: white;
  background-color: #20ba5a;
}
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--dark-color);
  color: var(--white);
  padding: 15px 30px;
  border-radius: 40px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-lg);
  max-width: 90%;
}
.cookie-consent button {
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.cookie-consent button:hover {
  background-color: var(--secondary-hover);
}

/* Footer Section */
footer {
  background:
    linear-gradient(180deg, rgba(26, 26, 46, 0.98), rgba(22, 31, 38, 0.98)),
    linear-gradient(90deg, rgba(46, 125, 50, 0.08), transparent 35%, rgba(255, 111, 0, 0.08));
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 30px;
  font-size: 0.95rem;
}
footer h5 {
  font-family: var(--font-headings);
  color: var(--white);
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}
footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary-color);
}
footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: var(--transition);
}
footer a:hover {
  color: var(--secondary-color);
}
footer ul li {
  margin-bottom: 12px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  margin-top: 50px;
  font-size: 0.85rem;
}

/* Interactive Tabs and Galleries (Product Detail) */
.product-gallery-main {
  border: 1px solid #E0E0E0;
  border-radius: 14px;
  overflow: hidden;
  height: 450px;
  background: var(--light-bg);
  position: relative;
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.product-thumbnail-item {
  width: 80px;
  height: 80px;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
}
.product-thumbnail-item.active, .product-thumbnail-item:hover {
  border-color: var(--primary-color);
}
.product-thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticky-quote-sidebar {
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-md);
  border-radius: 14px;
  background: var(--white);
  border: 1px solid rgba(26, 26, 46, 0.05);
}

.custom-nav-tabs .nav-link {
  color: var(--dark-color);
  font-weight: 600;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 15px 25px !important;
}
.custom-nav-tabs .nav-link.active {
  color: var(--primary-color) !important;
  border-bottom: 2px solid var(--primary-color) !important;
  background: transparent !important;
}
.custom-nav-tabs .nav-link:hover {
  border-bottom-color: var(--primary-color);
}

/* Image Zoom */
.zoom-wrapper {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.zoom-wrapper img {
  transition: transform 0.1s ease-out;
}

/* Project-wide motion polish */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-on-scroll.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-28px);
}

.reveal-right {
  transform: translateX(28px);
}

.reveal-scale {
  transform: scale(0.96);
}

.reveal-left.reveal-visible,
.reveal-right.reveal-visible,
.reveal-scale.reveal-visible {
  transform: translateX(0) scale(1);
}

.product-card,
.feature-card,
.blog-card,
.category-scroll-card,
.stat-card,
.sticky-quote-sidebar,
.product-gallery-main,
.custom-nav-tabs,
.accordion-item,
.table,
.alert,
.card {
  backface-visibility: hidden;
}

.navbar-brand,
.top-bar span,
.top-bar a {
  animation: fadeInUp 0.6s ease both;
}

.dropdown-menu {
  animation: menuFade 0.18s ease both;
}

.form-control,
.form-select {
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.14);
  transform: translateY(-1px);
}

.card,
.table,
.alert,
.list-group,
.accordion,
.breadcrumb,
.form-control,
.form-select {
  border-radius: 14px;
}

.breadcrumb {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(26, 26, 46, 0.45);
}

.table {
  overflow: hidden;
}

.table thead th {
  background: #f6f7f5;
  color: var(--dark-color);
  border-bottom: 1px solid rgba(26, 26, 46, 0.08);
}

.table > :not(caption) > * > * {
  padding: 1rem 0.9rem;
}

.alert {
  border: 1px solid rgba(26, 26, 46, 0.06);
}

.card {
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 26, 46, 0.05);
}

.card-header {
  background: transparent;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none !important;
  }
}

@media (max-width: 767.98px) {
  .site-logo-header,
  .navbar-brand .site-logo-header {
    max-width: 220px;
    max-height: 68px;
  }

  .reveal-on-scroll {
    transform: translateY(18px);
  }

  .btn-primary:hover,
  .btn-secondary:hover,
  .product-card:hover,
  .feature-card:hover,
  .blog-card:hover {
    transform: none;
  }

  .page-hero {
    min-height: 260px;
  }

  .hero-slider {
    min-height: 460px;
    height: 70vh;
  }

  .slide-content p {
    font-size: 1rem;
  }
}
