/* Bansi Agro - Main Stylesheet */

/* ===== CSS Variables ===== */
:root {
  --primary-green: #1e7f3b;
  --secondary-green: #27ae60;
  --accent-gold: #f0c419;
  --dark-gray: #444444;
  --white: #ffffff;
  --light-bg: #f7faf7;
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --border-radius-lg: 12px;
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 16px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--secondary-green);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 48px;
}

/* ===== Top Bar ===== */
.top-bar {
  background: var(--primary-green);
  color: var(--white);
  padding: 10px 0;
  font-size: 0.875rem;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-item i {
  font-size: 1rem;
}

/* ===== Header ===== */
.header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-size: 1.75rem;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 1px;
}

/* Navigation */
.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a {
  color: var(--text-dark);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--primary-green);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-green);
  border-radius: 2px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--primary-green);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== Hero Section ===== */
.hero {
  background-color: var(--primary-green);
  color: var(--white);
  padding: 120px 0;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 127, 59, 0.6), rgba(39, 174, 96, 0.5));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-home {
  background-image: url('../images/hero-home.png');
}

.hero-about {
  background-image: url('../images/hero-about.png');
}

.hero-products {
  background-image: url('../images/hero-products.png');
}

.hero-infrastructure {
  background-image: url('../images/hero-infrastructure.png');
}

.hero-contact {
  background-image: url('../images/hero-contact.png');
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-green);
}

.btn-primary:hover {
  background: var(--light-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-green);
}

.btn-success {
  background: var(--primary-green);
  color: var(--white);
}

.btn-success:hover {
  background: var(--secondary-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--dark-gray);
  color: var(--white);
}

.btn-secondary:hover {
  background: #555555;
}

/* ===== Cards ===== */
.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 48px;
}

.card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Even cards: image on right */
.card:nth-child(even) {
  direction: rtl;
}

.card:nth-child(even) .card-content {
  direction: ltr;
}

.card-image {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.card-content {
  padding: 32px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 16px;
}

.card-text {
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.8;
}

/* ===== Highlights ===== */
.highlights {
  background: var(--light-bg);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  text-align: center;
}

.highlight-item {
  padding: 32px;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.highlight-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.highlight-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--white);
}

.highlight-icon.badge {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--primary-green);
}

.highlight-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 12px;
}

.highlight-text {
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== Products ===== */
.products-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 32px;
  margin-top: 48px;
}

.sidebar {
  background: var(--light-bg);
  padding: 24px;
  border-radius: var(--border-radius-lg);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 16px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-item {
  padding: 12px 16px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  border: 1px solid var(--border-color);
}

.category-item:hover,
.category-item.active {
  background: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}

.product-detail {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.product-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.product-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.product-info h2 {
  font-size: 2rem;
  color: var(--primary-green);
  margin-bottom: 12px;
}

.product-tagline {
  font-size: 1.125rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 20px;
}

.product-description {
  line-height: 1.8;
  color: var(--text-dark);
}

.product-section {
  margin-bottom: 32px;
}

.product-section h3 {
  font-size: 1.5rem;
  color: var(--primary-green);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--light-bg);
}

.product-section ul {
  list-style: disc;
  margin-left: 24px;
  line-height: 2;
  color: var(--text-dark);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  margin-top: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius);
  overflow: hidden;
}

thead {
  background: var(--primary-green);
  color: var(--white);
}

th,
td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--light-bg);
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 127, 59, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-text {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
}

/* ===== Form ===== */
.form-container {
  max-width: 800px;
  margin: 48px auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-weight: 500;
  color: var(--text-dark);
}

label.required::after {
  content: ' *';
  color: #e74c3c;
}

input,
select,
textarea {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(30, 127, 59, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.error-message {
  color: #e74c3c;
  font-size: 0.875rem;
  display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #e74c3c;
}

.form-group.error .error-message {
  display: block;
}

.form-buttons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 16px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  display: none;
  border: 1px solid #c3e6cb;
}

/* ===== Contact Info ===== */
.contact-info {
  background: var(--light-bg);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 24px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-item h4 {
  color: var(--primary-green);
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.contact-item p,
.contact-item a {
  color: var(--text-dark);
  line-height: 1.8;
}

.contact-item a:hover {
  color: var(--primary-green);
}

/* ===== Infrastructure ===== */
.infrastructure-banner {
  background: linear-gradient(135deg, rgba(30, 127, 59, 0.95), rgba(39, 174, 96, 0.9));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
  margin-bottom: 48px;
}

.infrastructure-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.infrastructure-banner p {
  font-size: 1.125rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

.machinery-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.machinery-list li {
  background: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-green);
  box-shadow: var(--shadow-sm);
}

/* ===== About ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}

.about-section {
  background: var(--white);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.about-section h3 {
  color: var(--primary-green);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.about-section p {
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.about-section ul {
  list-style: none;
  margin-top: 16px;
}

.about-section li {
  padding: 12px 0;
  padding-left: 28px;
  position: relative;
  line-height: 1.7;
}

.about-section li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: 700;
  font-size: 1.125rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: 48px 0 24px;
}

.footer-content {
  display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 32px;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact {
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav {
    position: fixed !important;
    top: 70px !important;
    left: -100% !important;
    width: 100% !important;
    height: calc(100vh - 70px) !important;
    flex-direction: column !important;
    background: var(--white) !important;
    padding: 24px !important;
    box-shadow: var(--shadow-lg) !important;
    transition: left 0.3s ease !important;
    gap: 0 !important;
    align-items: flex-start !important;
    display: flex !important;
    z-index: 999 !important;
  }

  .nav.active {
    left: 0 !important;
  }

  .nav a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Responsive Cards (Zigzag reset) */
  .card {
    grid-template-columns: 1fr;
  }

  .card:nth-child(even) {
    direction: ltr;
  }

  .card:nth-child(even) .card-content {
    direction: ltr;
  }

  .card-image {
    min-height: 200px;
  }

  .card-content {
    padding: 24px;
  }

  /* Responsive About Showcase */
  .about-showcase {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-image {
    min-height: 250px;
  }

  .products-container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .product-header {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  /* Infrastructure page responsive */
  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    grid-column: span 1 !important;
  }

  .machinery-list {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ===== Utility Classes ===== */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 32px;
}

.mb-4 {
  margin-bottom: 32px;
}

.hidden {
  display: none;
}

 .footer-qr {
          text-align: center;
        }
        
        .google-qr {
          width: 140px;
          max-width: 100%;
          border-radius: 12px;
          background: #fff;
          padding: 8px;
        }