/* ============================================================================
   FarmOrbit (फार्मऑर्बिट / ଫାର୍ମଅରବିଟ୍) - Modern Design System
   Crafted with unified Plus Jakarta Sans typography, high-contrast palette,
   generous whitespace, rounded-3xl cards, and subtle micro-animations.
   Full native script support for English, Odia, and Hindi.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800&family=Noto+Sans+Oriya:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700&display=swap');

:root {
  /* Brand Emerald Palette */
  --emerald-950: #022c22;
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;

  /* Harvest Amber Palette */
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;
  --amber-50:  #fffbeb;

  /* Slate Neutrals */
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  /* UI Tokens */
  --radius-card: 1.5rem;
  --radius-button: 9999px;
  --radius-input: 1rem;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 20px 30px -10px rgba(6, 78, 59, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
}

/* Unified Universal Typography Engine */
html, body, button, input, select, textarea, p, h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Oriya', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure Font Awesome Icons and Pseudo-elements Render Properly (Prevents Empty Boxes) */
.fa, .fas, .far, .fal, .fab, .fa-solid, .fa-regular, .fa-brands,
.fa::before, .fas::before, .far::before, .fal::before, .fab::before,
.fa-solid::before, .fa-regular::before, .fa-brands::before,
[class^="fa-"]::before, [class*=" fa-"]::before {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  line-height: 1;
  -webkit-font-smoothing: antialiased !important;
}

.fab, .fab::before, .fa-brands, .fa-brands::before {
  font-family: "Font Awesome 6 Brands" !important;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  background-color: #f8fafc;
  background-image: radial-gradient(rgba(16, 185, 129, 0.07) 1px, transparent 1px), radial-gradient(rgba(5, 150, 105, 0.04) 1px, #f8fafc 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  color: var(--slate-900);
  line-height: 1.6;
}

/* 100% Full-Width Dark Navigation Header (#121619) */
.site-header {
  width: 100% !important;
  min-width: 100% !important;
  background-color: #121619 !important;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
}

.top-announcement-bar {
  width: 100% !important;
  min-width: 100% !important;
  background-color: #0b0e11 !important;
}

/* Crisp White Menu Navigation Links */
.nav-link {
  color: #ffffff !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover {
  color: #fbbf24 !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #10b981;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #059669;
}

/* Section Spacing Utilities */
.section-padding {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
@media (min-width: 768px) {
  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* Modern Card Styles & Elevation */
.modern-card {
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.modern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -8px rgba(6, 78, 59, 0.12), 0 10px 18px -6px rgba(0, 0, 0, 0.05);
  border-color: rgba(16, 185, 129, 0.35);
}

/* Tractor & Implement Cards */
.tractor-card {
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tractor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 35px -10px rgba(5, 150, 105, 0.15), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(16, 185, 129, 0.4);
}

/* Brand Card Pill */
.brand-pill-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 0.85rem 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.brand-pill-card:hover {
  transform: translateY(-4px);
  border-color: #059669;
  box-shadow: 0 12px 20px -6px rgba(5, 150, 105, 0.15);
}

/* Capsule Badges */
.capsule-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* High Contrast Headings */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: #0f172a;
}
h1 { font-weight: 900; line-height: 1.15; }
h2 { font-weight: 800; line-height: 1.22; }
h3 { font-weight: 800; line-height: 1.28; }

p {
  line-height: 1.7;
  color: #475569;
}

/* Natural Paddy Field Hero Background */
.natural-paddy-hero {
  position: relative;
  background-color: #064e3b;
  background-image: 
    linear-gradient(180deg, rgba(6, 38, 28, 0.88) 0%, rgba(6, 78, 59, 0.68) 45%, rgba(6, 38, 28, 0.92) 100%),
    url('https://upload.wikimedia.org/wikipedia/commons/e/e1/Rice_Farmer_Near_Anantapalli_Village_Odisha.JPG');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
@media (max-width: 768px) {
  .natural-paddy-hero {
    background-attachment: scroll;
    background-position: center top;
  }
}

.hero-title {
  font-weight: 900 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.14 !important;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6), 0 12px 35px rgba(0, 0, 0, 0.75);
}

.hero-subheading {
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.7 !important;
  color: #f8fafc !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7), 0 4px 16px rgba(0, 0, 0, 0.6);
}

.hero-highlight {
  color: #fbbf24 !important;
  font-weight: 900 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Natural Paddy Field Golden Harvest Banner */
.natural-paddy-banner {
  position: relative;
  background-color: #d97706;
  background-image: 
    linear-gradient(90deg, rgba(180, 83, 9, 0.92) 0%, rgba(217, 119, 6, 0.85) 50%, rgba(180, 83, 9, 0.94) 100%),
    url('https://upload.wikimedia.org/wikipedia/commons/1/12/Paddy_field_in_Punjab.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Prices */
.kisan-price {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  font-weight: 900;
}

/* Range Slider Styling */
input[type=range] {
  accent-color: #059669;
}

/* Pulsing Voice Search button */
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.voice-recording {
  animation: pulse-ring 1.5s infinite;
  background-color: #ef4444 !important;
  color: #ffffff !important;
}

/* Modals */
.modal-fade-in {
  animation: fadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Mobile Bottom Navigation Bar */
.mobile-nav-bar {
  display: none;
}
@media (max-width: 768px) {
  .mobile-nav-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #e2e8f0;
    z-index: 40;
    padding: 8px 6px;
  }
}

/* Buttons & Inputs */
button, input, select, textarea {
  transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

/* High-Legibility Table Layout */
table th {
  letter-spacing: 0.05em;
  font-weight: 800;
  text-transform: uppercase;
}
table td {
  letter-spacing: -0.006em;
  line-height: 1.6;
}

/* Odia & Hindi Multilingual Typography Tuning */
html[lang="or"] body, html[lang="or"] p, html[lang="or"] div {
  line-height: 1.76 !important;
}
html[lang="hi"] body, html[lang="hi"] p, html[lang="hi"] div {
  line-height: 1.7 !important;
}

/* Phone Format */
.phone-format {
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

/* Print Styles */
@media print {
  header, footer, .mobile-nav-bar, #filterSection, #sellModal, #onRoadModal, button {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  #comparisonMatrix {
    display: block !important;
  }
}
