/* ===================================================================
   Payyanad Agri Products – Redesigned Stylesheet
   Modern agricultural / food-processing brand UI
   =================================================================== */

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== CSS Variables & Design Tokens ===== */
:root {
  /* Primary Greens */
  --color-primary: #1a6b3c;
  --color-primary-dark: #0d3320;
  --color-primary-light: #27ae60;
  --color-primary-subtle: #e8f5e9;

  /* Earth Tones */
  --color-accent: #c8a951;
  --color-accent-dark: #a88b32;
  --color-warm-beige: #faf8f4;

  /* Neutrals */
  --color-bg: #f7f6f2;
  --color-white: #ffffff;
  --color-text: #2c2c2c;
  --color-text-light: #5a5a5a;
  --color-text-muted: #888888;
  --color-border: #e8e6e1;
  --color-card-bg: #ffffff;

  /* Hero */
  --color-hero-overlay: rgba(13, 51, 32, 0.72);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-width: 1160px;
  --header-height: 72px;

  /* Radius */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 50px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.10);
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header / Navbar ===== */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--color-primary);
}

.logo .logo-icon {
  font-size: 1.5rem;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

/* Navigation */
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  position: relative;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.nav-links a.active {
  color: var(--color-primary);
  font-weight: 600;
  background: var(--color-primary-subtle);
}

/* ERP Button (hidden for now) */
.erp-btn {
  display: none !important;
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
  font-weight: 600 !important;
  padding: 9px 22px !important;
  border-radius: var(--radius-pill) !important;
  margin-left: 12px;
  font-size: 0.88rem !important;
  letter-spacing: 0.02em;
}

.erp-btn:hover {
  background: var(--color-primary-dark) !important;
  color: var(--color-white) !important;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary-dark);
  padding: 6px;
  border-radius: var(--radius-sm);
}

.menu-toggle:hover {
  background: var(--color-primary-subtle);
}

/* ===== Hero Section (Home Page) ===== */
@keyframes heroGradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes floatBlob {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.08;
  }

  50% {
    transform: translateY(-30px) rotate(5deg);
    opacity: 0.14;
  }
}

@keyframes floatBlobAlt {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.06;
  }

  50% {
    transform: translateY(20px) rotate(-3deg);
    opacity: 0.1;
  }
}

.hero {
  background: linear-gradient(135deg, #071f12 0%, #0d3320 15%, #1a6b3c 35%, #20854a 55%, #1a6b3c 75%, #0d3320 100%);
  background-size: 250% 250%;
  animation: heroGradientShift 14s ease infinite;
  color: var(--color-white);
  min-height: 78vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Organic leaf-shaped glow — top right */
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 520px;
  height: 520px;
  background: radial-gradient(ellipse at 30% 40%, rgba(39, 174, 96, 0.2) 0%, rgba(39, 174, 96, 0.06) 40%, transparent 70%);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: floatBlob 8s ease-in-out infinite;
}

/* Warm accent blob — bottom left */
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 460px;
  height: 460px;
  background: radial-gradient(ellipse at 60% 50%, rgba(200, 169, 81, 0.16) 0%, rgba(200, 169, 81, 0.04) 50%, transparent 70%);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: floatBlobAlt 10s ease-in-out infinite;
}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-text p {
  font-size: 1.1rem;
  opacity: 0.88;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Product category circles in hero */
.hero-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.category-circle .circle-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.category-circle .circle-icon:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.08);
}

.category-circle span:last-child {
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.9;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
  font-family: var(--font-family);
}

.btn-primary {
  background: var(--color-white);
  color: var(--color-primary-dark);
}

.btn-primary:hover {
  background: var(--color-warm-beige);
  color: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-green {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
}

.btn-green:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

/* ===== Sections ===== */
.section {
  padding: 80px 24px;
}

.section-alt {
  background: var(--color-white);
}

.section-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ===== Highlights (Home – "What We Do") ===== */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.highlight-card {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.highlight-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 18px;
}

.highlight-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.highlight-card p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== About Page ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h2 {
  font-size: 1.7rem;
  color: var(--color-primary-dark);
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--color-text-light);
  line-height: 1.8;
  font-size: 0.95rem;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-image img {
  width: 100%;
  object-fit: cover;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  background: var(--color-card-bg);
  padding: 36px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--color-border);
}

.value-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 14px;
}

.value-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== Featured Products (Home Page) ===== */
.featured-section {
  background: var(--color-warm-beige);
}

.featured-products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}

.featured-product-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  text-align: center;
}

.featured-img-wrap {
  background: #fdf9f0;
  padding: 16px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.featured-product-card h3 {
  padding: 16px 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.featured-cta {
  text-align: center;
  margin-top: 36px;
}

/* ===== Products Page ===== */
.products-section {
  background: var(--color-warm-beige);
}

.product-category-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary-subtle);
  letter-spacing: -0.01em;
}

.product-category-heading:first-of-type {
  margin-top: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

.product-img-wrap {
  background: #fdf9f0;
  padding: 16px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.product-card .product-info {
  padding: 16px 20px;
  text-align: center;
}

.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.product-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== Process Page ===== */
.process-timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 33px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-primary-light), var(--color-primary-dark));
  border-radius: 2px;
}

.process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 32px;
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 66px;
  height: 66px;
  min-width: 66px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(26, 107, 60, 0.3);
  border: 3px solid var(--color-white);
}

.step-content {
  background: var(--color-card-bg);
  padding: 24px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary-light);
}

.step-content h3 {
  font-size: 1.08rem;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--color-primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-item h3 {
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.map-placeholder {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  height: 100%;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 1.02rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: none;
  border-radius: var(--radius);
}

/* ===== Page Banner (Inner Pages) ===== */
.page-banner {
  background: linear-gradient(135deg, #0d3320 0%, #1a6b3c 60%, #27ae60 100%);
  color: var(--color-white);
  text-align: center;
  padding: 56px 24px 48px;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.page-banner h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.page-banner p {
  font-size: 1.05rem;
  opacity: 0.85;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 36px 24px;
  margin-top: auto;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.site-footer a {
  color: var(--color-accent);
}

.site-footer a:hover {
  color: var(--color-white);
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, #0a2e1a 0%, #145530 30%, #1a6b3c 60%, #20854a 100%);
  background-size: 200% 200%;
  animation: heroGradientShift 14s ease infinite;
  color: var(--color-white);
  text-align: center;
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(ellipse at 40% 50%, rgba(200, 169, 81, 0.12) 0%, transparent 70%);
  border-radius: 60% 40% 50% 50%;
  animation: floatBlobAlt 10s ease-in-out infinite;
}

.cta-banner h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  margin-bottom: 24px;
  opacity: 0.88;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.02rem;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
}

.cta-banner .hero-actions {
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ===== Responsive — Tablet ===== */
@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-categories {
    grid-template-columns: repeat(3, 1fr);
    max-width: 340px;
    margin: 0 auto;
  }

  .highlights,
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .featured-products {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Responsive — Mobile ===== */
@media (max-width: 700px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }

  .erp-btn {
    margin-left: 0 !important;
    text-align: center;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 56px 0;
  }

  .hero-split {
    gap: 36px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-categories {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 300px;
  }

  .category-circle .circle-icon {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
  }

  .category-circle span:last-child {
    font-size: 0.75rem;
  }

  /* Sections */
  .section {
    padding: 48px 16px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    margin-bottom: 32px;
  }

  /* Grids */
  .highlights,
  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .featured-products {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Banner */
  .page-banner {
    padding: 40px 16px 32px;
  }

  .page-banner h1 {
    font-size: 1.7rem;
  }

  /* Process */
  .process-timeline::before {
    left: 29px;
  }

  .step-number {
    width: 58px;
    height: 58px;
    min-width: 58px;
    font-size: 1.1rem;
  }

  .step-content {
    padding: 20px;
  }

  /* CTA */
  .cta-banner {
    padding: 40px 16px;
  }

  .cta-banner h2 {
    font-size: 1.4rem;
  }
}

/* ===== Small Mobile ===== */
@media (max-width: 400px) {
  .hero-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .container {
    padding: 0 16px;
  }
}