/* =============================================
   SHASWAT AGRI INDUSTRIES — Shared Stylesheet
   ============================================= */

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

/* ---------- CSS Variables ---------- */
:root {
  --green:       #1a5c28;
  --green-dark:  #143f1d;
  --green-light: #2a7a3a;
  --amber:       #f5a623;
  --amber-dark:  #d4891a;
  --white:       #ffffff;
  --off-white:   #fafaf7;
  --gray-100:    #f4f4f1;
  --gray-200:    #e8e8e2;
  --gray-400:    #9a9a8e;
  --gray-600:    #666655;
  --gray-800:    #333322;
  --text:        #1a1a14;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.12);
  --transition:  0.25s ease;
  --max-width:   1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--off-white);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---------- Typography helpers ---------- */
.serif { font-family: var(--font-serif); }
.amber { color: var(--amber); }
.green { color: var(--green); }

/* ---------- Container ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  height: 64px;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo svg { width: 40px; height: 40px; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-text .brand { font-family: var(--font-serif); font-size: 17px; font-weight: 700; color: var(--green); letter-spacing: 0.5px; }
.nav-logo-text .sub { font-size: 9px; font-weight: 600; color: var(--amber); letter-spacing: 2px; text-transform: uppercase; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

/* CTA button */
.btn-quote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--green);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: background var(--transition), transform var(--transition);
}
.btn-quote:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-quote svg { width: 14px; height: 14px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 0;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}
.nav-mobile a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-200);
  transition: color var(--transition);
}
.nav-mobile a:last-child { border: none; }
.nav-mobile a:hover, .nav-mobile a.active { color: var(--green); }
.nav-mobile .btn-quote { margin-top: 16px; justify-content: center; }
.nav-mobile.open { display: flex; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: var(--white); border: 2px solid var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--text); border: 2px solid var(--gray-200); }
.btn-outline-dark:hover { border-color: var(--green); color: var(--green); }
.btn-amber { background: var(--amber); color: var(--white); border: 2px solid var(--amber); }
.btn-amber:hover { background: var(--amber-dark); border-color: var(--amber-dark); }
.btn svg { width: 16px; height: 16px; }

/* =============================================
   PAGE HERO (green banner — all interior pages)
   ============================================= */
.page-hero {
  background: var(--green);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px,
    transparent 1px, transparent 20px
  );
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
  opacity: 0.9;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-hero h1 .italic { font-style: italic; color: var(--amber); }
.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =============================================
   SECTION HEADINGS
   ============================================= */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title .amber { color: var(--amber); }
.section-title .green { color: var(--green); }
.section-desc {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 560px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-brand .nav-logo-text .brand { color: var(--white); }
.footer-brand .tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-top: 14px;
  line-height: 1.7;
  max-width: 240px;
}
.footer-brand .social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-brand .social-links a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background var(--transition), color var(--transition);
}
.footer-brand .social-links a:hover { background: var(--amber); color: var(--white); }
.footer-brand .social-links svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-contact-item svg { width: 16px; height: 16px; color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.5; }
.footer-contact-item a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--amber); }

/* =============================================
   PRODUCT CARDS (used on home + products page)
   ============================================= */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--gray-100);
}
.product-card-body { padding: 20px; }
.product-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(26,92,40,0.1);
  color: var(--green);
  margin-bottom: 10px;
}
.product-card-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.product-card-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 18px;
}
.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  transition: gap var(--transition);
}
.product-card-link:hover { gap: 10px; }
.product-card-link svg { width: 16px; height: 16px; }

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  background: var(--off-white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--gray-200);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-number span { color: var(--amber); }
.stat-label {
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =============================================
   WHY CHOOSE US CARDS
   ============================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: rgba(26,92,40,0.2); }
.why-icon {
  width: 52px; height: 52px;
  background: rgba(26,92,40,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.why-icon svg { width: 26px; height: 26px; color: var(--green); }
.why-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.why-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  background: var(--green);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px,
    transparent 1px, transparent 24px
  );
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-section h2 em { font-style: italic; color: var(--amber); }
.cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =============================================
   FORM ELEMENTS
   ============================================= */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.form-group label .required { color: var(--amber); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control::placeholder { color: var(--gray-400); }
.form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,92,40,0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* =============================================
   SPECS TABLE
   ============================================= */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
.specs-table th {
  background: var(--green);
  color: var(--white);
  padding: 10px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.specs-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--text);
}
.specs-table tr:last-child td { border-bottom: none; }
.specs-table tr:nth-child(even) td { background: var(--gray-100); }
.specs-table td:first-child { font-weight: 600; color: var(--gray-600); width: 45%; }

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
}
.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-600);
}
.breadcrumb-inner a { color: var(--green); transition: color var(--transition); }
.breadcrumb-inner a:hover { color: var(--green-dark); }
.breadcrumb-inner svg { width: 16px; height: 16px; }

/* =============================================
   TOAST NOTIFICATION
   ============================================= */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--green);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--gray-200); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--gray-200); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .btn-quote { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .page-hero { padding: 56px 0 48px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .stat-item:last-child { border-bottom: none; }
}
