/* ═══════════════════════════════════════════════════════════════
   Sia Exim — Shared Frontend Styles
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Brand Palette - Professional Agro Export (Vibrant Green) */
  --h: 142; /* Vibrant Green */
  --s: 72%; 
  
  --primary-50:  hsl(var(--h), var(--s), 95%);
  --primary-100: hsl(var(--h), var(--s), 85%);
  --primary-200: hsl(var(--h), var(--s), 70%);
  --primary-300: hsl(var(--h), var(--s), 50%);
  --primary-400: hsl(var(--h), var(--s), 40%);
  --primary-500: hsl(var(--h), var(--s), 30%);
  --primary-600: hsl(var(--h), var(--s), 25%);
  --primary-700: hsl(var(--h), var(--s), 20%);
  --primary-800: hsl(var(--h), var(--s), 15%);
  --primary-900: hsl(var(--h), var(--s), 10%);

  --accent-h: 24; /* Action Orange */
  --accent-500: hsl(var(--accent-h), 95%, 53%);
  --accent-600: hsl(var(--accent-h), 85%, 45%);

  /* Warmer Neutrals for an Organic Vibe */
  --neutral-50:  #faf9f6; /* Off-white linen */
  --neutral-100: #f2eee8;
  --neutral-200: #e8e2d8;
  --neutral-400: #a8a090;
  --neutral-600: #6b6354;
  --neutral-800: #3d3830;
  --neutral-900: #1f1d19;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.1);
  --shadow:    0 4px 6px -1px rgb(0 0 0 / 0.15), 0 2px 4px -2px rgb(0 0 0 / 0.15);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.2), 0 4px 6px -4px rgb(0 0 0 / 0.2);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.25), 0 8px 10px -6px rgb(0 0 0 / 0.25);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.3);
  
  --glass: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: blur(16px);

  /* Visibility Utilities */
  --text-readable-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

html.dark {
    --neutral-50:  #060b14; /* Deep Navy */
    --neutral-100: #0f172a;
    --neutral-200: #1e293b;
    --neutral-400: #64748b;
    --neutral-600: #94a3b8;
    --neutral-800: #e2e8f0;
    --neutral-900: #f8fafc;

    --glass: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --primary-50: #064e3b; /* Darker green backgrounds */
    --primary-600: #34d399; /* Brighter green for visibility */
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
  font-family: 'Inter', system-ui, sans-serif; 
  -webkit-font-smoothing: antialiased; 
  background-color: var(--neutral-50);
  color: var(--neutral-900);
}
h1,h2,h3,h4,h5,h6 { font-family: 'Outfit', 'Inter', sans-serif; color: var(--neutral-900); }
img { display: block; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--neutral-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--neutral-400); }

/* ── Navbar scroll shrink ── */
#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
#navbar.scrolled .nav-logo-text { font-size: 1.25rem; }

/* ── Smooth page transitions ── */
.page-enter { animation: fadeSlideUp .5s ease both; }
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Section labels ── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary-600);
  background: var(--primary-50); padding: 5px 14px;
  border-radius: 20px; margin-bottom: 16px;
}

/* ── Gradient text ── */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Divider line ── */
.divider-line {
  width: 48px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-600), var(--primary-400));
  margin: 12px 0 20px;
}
.divider-line.center { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-full); font-size: 14px;
  font-weight: 600; cursor: pointer; border: none;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); text-decoration: none;
  font-family: inherit; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600)); color: var(--primary-contrast);
  box-shadow: 0 10px 20px -5px hsla(var(--h), var(--s), 45%, 0.4);
}
.btn-primary:hover { 
  background: linear-gradient(135deg, var(--primary-600), hsla(var(--h), var(--s), 40%, 1)); 
  transform: translateY(-2px); 
  box-shadow: 0 15px 30px -5px hsla(var(--h), var(--s), 45%, 0.5); 
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent; color: var(--primary-700);
  border: 2px solid var(--primary-600);
}
.btn-outline:hover { background: var(--primary-600); color: #fff; }
.btn-ghost {
  background: var(--glass); color: var(--neutral-900);
  backdrop-filter: var(--glass-blur); 
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Cards ── */
.card-hover {
  transition: transform .3s ease, box-shadow .3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ── Product card ── */
.product-card {
  background: var(--neutral-100); border-radius: var(--radius-xl);
  overflow: hidden; border: 1px solid var(--neutral-100);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-100);
}
.product-card .card-img { overflow: hidden; position: relative; }
.product-card .card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .card-img img { transform: scale(1.1); }
.product-card .card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 70%);
  opacity: 0; transition: opacity .4s ease;
  display: flex; align-items: flex-end; padding: 24px;
}
.product-card:hover .card-overlay { opacity: 1; }

/* ── Category pill ── */
.cat-pill {
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary-600);
  background: var(--primary-50); padding: 3px 12px;
  border-radius: 20px; display: inline-block;
}

/* ── Stats counter ── */
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1;
  font-family: 'Outfit', sans-serif;
}

/* ── Testimonial card ── */
.testimonial-card {
  background: var(--neutral-100); border-radius: var(--radius-lg);
  padding: 28px; border: 1px solid var(--neutral-100);
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute; top: 16px; right: 24px;
  font-size: 72px; line-height: 1; color: var(--primary-100);
  font-family: Georgia, serif; pointer-events: none;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-100);
  transform: translateY(-3px);
}

/* ── Blog card ── */
.blog-card {
  background: var(--neutral-100); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--neutral-100);
  box-shadow: var(--shadow-sm);
  transition: all .3s ease; display: flex; flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--primary-100);
}
.blog-card .blog-img { overflow: hidden; }
.blog-card .blog-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.blog-card:hover .blog-img img { transform: scale(1.05); }

/* ── Tag pill ── */
.tag-pill {
  font-size: 11px; font-weight: 600; color: var(--primary-700);
  background: var(--primary-50); padding: 3px 10px;
  border-radius: 20px; display: inline-block;
  transition: all .15s;
}
.tag-pill:hover { background: var(--primary-100); }

/* ── Form inputs ── */
.input-field {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--neutral-200); border-radius: var(--radius);
  font-size: 14px; font-family: inherit; color: var(--neutral-900);
  background: var(--neutral-50); outline: none;
  transition: border-color .15s, box-shadow .15s;
  color-scheme: light dark;
}
.input-field option {
  background: var(--neutral-50);
  color: var(--neutral-900);
}
.input-field:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}
.input-field::placeholder { color: var(--neutral-400); }

/* ── Notification toast ── */
.site-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--neutral-900); color: #fff;
  padding: 12px 24px; border-radius: 50px;
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-lg); z-index: 9999;
  animation: toastIn .3s ease;
  display: flex; align-items: center; gap: 8px;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Skeleton loader ── */
.skeleton {
  background: linear-gradient(90deg, var(--neutral-100) 25%, var(--neutral-50) 50%, var(--neutral-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Floating label ── */
.float-label { position: relative; }
.float-label input, .float-label textarea {
  padding-top: 20px; padding-bottom: 8px;
}
.float-label label {
  position: absolute; left: 16px; top: 14px;
  font-size: 14px; color: var(--neutral-400);
  transition: all .15s ease; pointer-events: none;
}
.float-label input:focus ~ label,
.float-label input:not(:placeholder-shown) ~ label,
.float-label textarea:focus ~ label,
.float-label textarea:not(:placeholder-shown) ~ label {
  top: 6px; font-size: 10px; font-weight: 600;
  color: var(--primary-600); letter-spacing: .05em; text-transform: uppercase;
}

/* ── Animated underline nav ── */
.nav-link {
  position: relative; font-size: 14px; font-weight: 500;
  color: var(--neutral-700); text-decoration: none;
  padding-bottom: 2px; transition: color .2s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--primary-600);
  border-radius: 1px; transition: width .25s ease;
}
.nav-link:hover { color: var(--primary-700); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--primary-700); font-weight: 600; }

/* ── Hero badge ── */
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 6px 16px; border-radius: 50px;
  letter-spacing: .05em; text-transform: uppercase;
}

/* ── Scroll indicator ── */
.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.6); font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ── Responsive utilities ── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .btn { padding: 10px 20px; font-size: 13px; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* ── Contact section ── */
#contact .contact-card {
  background: var(--neutral-100); border-radius: var(--radius-xl);
  padding: 32px; border: 1px solid var(--neutral-100);
  box-shadow: var(--shadow);
  transition: box-shadow .3s ease;
}
#contact .contact-card:hover { box-shadow: var(--shadow-md); }

/* ── WhatsApp pulse ── */
.whatsapp-btn {
  animation: waPulse 3s infinite;
}
@keyframes waPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.4); }
  50%      { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
}

/* ── Page hero ── */
.page-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.6);
}
.breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: .4; }

/* ── Footer ── */
.footer-link {
  color: var(--gray-400); font-size: 14px; text-decoration: none;
  transition: color .15s;
}
.footer-link:hover { color: #fff; }

/* ── Animate on scroll (custom) ── */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].revealed {
  opacity: 1; transform: translateY(0);
}
[data-reveal][data-delay="100"] { transition-delay: .1s; }
[data-reveal][data-delay="200"] { transition-delay: .2s; }
[data-reveal][data-delay="300"] { transition-delay: .3s; }
[data-reveal][data-delay="400"] { transition-delay: .4s; }
