/*
Theme Name: Siddhi Agri Theme
Theme URI: https://siddhiagriexim.com
Author: Siddhi Agri Exim
Author URI: https://siddhiagriexim.com
Description: Custom WordPress theme for Siddhi Agri Exim - Premium Agricultural Export Products
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: siddhi-agri-theme
Tags: agriculture, export, custom-theme
*/

/* ============================================================
   DESIGN SYSTEM — CSS CUSTOM PROPERTIES
   Mirrors the Next.js globals.css token system exactly
   ============================================================ */

:root {
  /* Brand Colors */
  --color-background:        #FFF8E1;   /* Cream */
  --color-foreground:        #5D4037;   /* Earth Brown */
  --color-primary:           #2E7D32;   /* Natural Green */
  --color-primary-foreground:#FFF8E1;   /* Cream on green */
  --color-secondary:         #F4C430;   /* Wheat Yellow */
  --color-secondary-foreground: #5D4037;
  --color-accent:            #FF8F00;   /* Spice Orange */
  --color-accent-foreground: #FFF8E1;
  --color-card:              #FFFFFF;
  --color-card-foreground:   #5D4037;
  --color-muted:             #F5F5F4;
  --color-muted-foreground:  #78716C;
  --color-border:            #F4C430;
  --color-input:             #E7E5E4;

  /* Specific UI Colors */
  --color-navbar-bg:         #FDF6E3;
  --color-dark-accent-bar:   #1a3a1a;
  --color-brand-text:        #3d2c1e;
  --color-cta-button:        #c8860a;
  --color-cta-button-hover:  #b5770a;
  --color-wheat-border:      #d4b87a;
  --color-white:             #FFFFFF;

  /* Typography */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif:   Georgia, 'Times New Roman', serif;

  /* Border Radius */
  --radius-sm:    0.375rem;   /* 6px */
  --radius-md:    0.5rem;     /* 8px */
  --radius-lg:    0.625rem;   /* 10px */
  --radius-xl:    0.875rem;   /* 14px */
  --radius-2xl:   1rem;       /* 16px */
  --radius-3xl:   1.5rem;     /* 24px */
  --radius-4xl:   2rem;       /* 32px */
  --radius-full:  9999px;

  /* Shadows */
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:    0 4px 6px -1px rgba(0,0,0,0.07);
  --shadow-lg:    0 10px 15px -3px rgba(0,0,0,0.07);
  --shadow-xl:    0 20px 25px -5px rgba(0,0,0,0.08);
  --shadow-2xl:   0 25px 50px -12px rgba(0,0,0,0.1);
  --shadow-card:  0 10px 40px -15px rgba(0,0,0,0.05);
  --shadow-product-hover: 0 25px 50px -12px rgba(46,125,50,0.1);

  /* Transitions */
  --transition-base:  all 0.3s ease;
  --transition-slow:  all 0.5s ease;
  --transition-fast:  all 0.15s ease;

  /* Spacing (matching Next.js section padding) */
  --section-py:   6rem;       /* py-24 = 96px */
  --container-px: clamp(1rem, 4vw, 2rem);
  --container-max: 80rem;     /* max-w-7xl = 1280px */
}

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

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

/* Container — matches Next.js Container component */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

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

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Text utilities */
.text-primary   { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent    { color: var(--color-accent); }
.text-muted     { color: var(--color-muted-foreground); }
.text-white     { color: #fff; }

/* Background utilities */
.bg-background  { background-color: var(--color-background); }
.bg-foreground  { background-color: var(--color-foreground); }
.bg-primary     { background-color: var(--color-primary); }
.bg-card        { background-color: var(--color-card); }

/* Section padding */
.section-py     { padding-top: var(--section-py); padding-bottom: var(--section-py); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
  line-height: 1;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background-color: #235e26;
  border-color: #235e26;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(46,125,50,0.25);
}

.btn-outline {
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background-color: rgba(255,255,255,0.2);
  color: #fff;
}

.btn-outline-green {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline-green:hover {
  background-color: rgba(46,125,50,0.1);
}

.btn-cta {
  background-color: var(--color-cta-button);
  color: #fff;
  border-color: var(--color-cta-button);
}
.btn-cta:hover {
  background-color: var(--color-cta-button-hover);
  border-color: var(--color-cta-button-hover);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(200,134,10,0.35);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  height: 3.5rem;
  border-radius: 0.75rem;
}

.btn-lg.rounded-full {
  border-radius: var(--radius-full);
}

/* ============================================================
   KEYFRAME ANIMATIONS
   Mirrors globals.css animations exactly
   ============================================================ */

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-20px); }
}

@keyframes floatRotate {
  0%   { transform: translateY(0) rotate(0deg) scale(1); }
  33%  { transform: translateY(-15px) rotate(10deg) scale(1.05); }
  66%  { transform: translateY(-8px) rotate(-8deg) scale(1); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}

@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* Animation utility classes */
.animate-float          { animation: float 4s ease-in-out infinite; }
.animate-float-rotate   { animation: floatRotate 20s ease-in-out infinite; }
.animate-infinite-scroll { animation: scroll var(--animation-duration, 40s) linear infinite; }
.animate-pulse          { animation: pulse 2s ease-in-out infinite; }
.animate-ping           { animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite; }
.animate-fade-in-up     { animation: fadeInUp 0.6s ease forwards; }
.animate-fade-in-down   { animation: fadeInDown 0.4s ease forwards; }
.animate-scale-in       { animation: scaleIn 0.4s ease forwards; }

.pause-on-hover:hover,
.pause-on-hover:active  { animation-play-state: paused; }

/* Intersection Observer reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}
