/* ==========================================================================
   SHREE GANESH ALU BHANDAR - MAIN STYLESHEET
   Google Material Design & Glassmorphism Inspired
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --primary-color: #2E7D32;       /* Deep Agricultural Green */
  --secondary-color: #66BB6A;     /* Leaf Green */
  --accent-color: #FF9800;        /* Amber / Harvest Gold */
  --bg-color: #F8FAFC;            /* Clean Slate Gray / Off-white */
  --surface-color: #FFFFFF;       /* Pure White */
  --dark-color: #1F2937;          /* Charcoal Body Text */
  --text-muted: #6B7280;          /* Subtle Gray Text */
  --border-color: #E5E7EB;        /* Soft Border Gray */
  
  /* Glassmorphism & Elevation (Material Design) */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 14px 30px rgba(46, 125, 50, 0.15);

  /* Typography & Layout */
  --font-main: 'Poppins', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-padding {
  padding: 80px 0;
}

/* Typography Helpers */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .tag {
  display: inline-block;
  background-color: rgba(46, 125, 50, 0.1);
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 6px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--surface-color);
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
  background-color: #236327;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.btn-secondary {
  background-color: var(--surface-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--surface-color);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--surface-color);
  box-shadow: 0 4px 14px rgba(255, 152, 0, 0.3);
}

.btn-accent:hover {
  background-color: #e68a00;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   3. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 4px 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo i {
  font-size: 2rem;
  color: var(--primary-color);
}

.brand-text {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.brand-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--accent-color);
  font-weight: 600;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--dark-color);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-color);
}

/* --------------------------------------------------------------------------
   4. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.65)),
              url('https://images.unsplash.com/photo-1518977676601-b53f82aba655?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat;
  color: var(--surface-color);
  padding: 100px 0;
}

.hero-content {
  max-width: 750px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   5. FEATURE CARDS & SECTIONS
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(46, 125, 50, 0.2);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  text-align: center;
}

.product-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(46, 125, 50, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.product-card:hover .product-icon {
  background-color: var(--primary-color);
  color: var(--surface-color);
}

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.product-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Why Choose Us Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  background: rgba(255, 152, 0, 0.1);
  padding: 12px;
  border-radius: var(--radius-sm);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  position: relative;
}

.testimonial-card p {
  font-style: italic;
  color: var(--dark-color);
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface-color);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-main);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 24px 20px 24px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color), #1b5e20);
  color: var(--surface-color);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.cta-banner p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------------------
   6. GALLERY SECTION & LIGHTBOX
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(46, 125, 50, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: var(--surface-color);
  padding: 20px;
  text-align: center;
}

.gallery-overlay i {
  font-size: 2rem;
  margin-bottom: 8px;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: var(--radius-sm);
}

.lightbox-caption {
  position: absolute;
  bottom: 30px;
  color: var(--surface-color);
  font-size: 1.1rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: var(--surface-color);
  font-size: 2.5rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   7. CONTACT SECTION & MAP
   -------------------------------------------------------------------------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-card i {
  font-size: 1.25rem;
  color: var(--primary-color);
  background: rgba(46, 125, 50, 0.1);
  padding: 14px;
  border-radius: 50%;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.map-container {
  width: 100%;
  height: 350px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   8. FOOTER & BACK TO TOP
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--dark-color);
  color: #9CA3AF;
  padding-top: 60px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #374151;
}

.footer-brand h3 {
  color: var(--surface-color);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.footer-links h4, .footer-contact h4 {
  color: var(--surface-color);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.875rem;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: var(--primary-color);
  color: var(--surface-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent-color);
  transform: translateY(-4px);
}