/*
  Garg Trading Company Website Styles
  -----------------------------------
  HOW TO CHANGE COLORS:
  - Update the CSS variables in :root below.
  - primary color = --color-primary
  - secondary color = --color-secondary
*/

:root {
  --color-primary: #2e7d32;
  --color-secondary: #ff9800;
  --color-bg: #f4f6f5;
  --color-white: #ffffff;
  --color-text: #1f2a1f;
  --color-muted: #5d6a5d;
  --shadow-soft: 0 10px 30px rgba(24, 51, 28, 0.12);
  --radius: 14px;
  --transition: 0.3s ease;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-text);
  background: linear-gradient(180deg, #ffffff 0%, #f8faf8 35%, var(--color-bg) 100%);
  line-height: 1.6;
}

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-heading h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.3rem);
  margin-bottom: 0.8rem;
  color: #1d3a20;
}

.section-heading p {
  color: var(--color-muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e7ece7;
}

.navbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 0.6rem;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
}

.logo-text {
  color: #153118;
  font-weight: 700;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
}

.nav-links a {
  color: #244228;
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: #eaf4eb;
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #dce5dc;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #234326;
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  background-image: url("https://images.unsplash.com/photo-1543168256-418811576931?auto=format&fit=crop&w=1800&q=75");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(26, 65, 33, 0.82) 0%, rgba(44, 106, 52, 0.7) 40%, rgba(255, 152, 0, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 760px;
  animation: heroFade 1.2s ease both;
}

.hero-kicker {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  opacity: 0.95;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0.8rem 0 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.05rem;
  max-width: 62ch;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.32);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #266c2b;
}

.btn-secondary {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.3);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #ef8c00;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4rem;
  border: 1px solid #e7ece7;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-bottom: 0.6rem;
  color: #1e4822;
}

.highlights-list {
  padding-left: 1rem;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e3e9e3;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 16px 34px rgba(24, 51, 28, 0.2);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-content {
  padding: 1rem 1.1rem 1.3rem;
}

.product-content h3 {
  margin-bottom: 0.5rem;
  color: #1e4923;
}

/* Services */
.services {
  background: #f7faf7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.3rem;
  border: 1px solid #e4ebe4;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  color: #1f4b24;
  margin-bottom: 0.5rem;
}

/* Why Choose Us */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.benefit {
  text-align: center;
  background: #fff;
  border: 1px solid #e5ece5;
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
}

.icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.3rem;
  align-items: start;
}

.contact-info,
.contact-form {
  background: #fff;
  border: 1px solid #e5ebe5;
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
}

.contact-info h3,
.contact-form h3 {
  margin-bottom: 0.8rem;
  color: #1f4b24;
}

.contact-info a {
  color: #1f4b24;
}

.whatsapp-btn {
  display: inline-block;
  margin-top: 0.4rem;
  text-decoration: none;
  color: #fff;
  background: #25d366;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 0.55rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #cfd8cf;
  border-radius: 10px;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(46, 125, 50, 0.2);
  border-color: var(--color-primary);
}

.error {
  color: #c62828;
  min-height: 1rem;
  font-size: 0.85rem;
}

.form-status {
  min-height: 1.2rem;
  font-weight: 600;
}

.map-wrapper {
  margin-top: 1.3rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid #e2e8e2;
}

.map-wrapper iframe {
  width: 100%;
  height: 340px;
  border: 0;
}

/* Footer */
.site-footer {
  background: #132a15;
  color: #dbe8dc;
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 1.2rem;
}

.site-footer h3 {
  color: #fff;
  margin-bottom: 0.6rem;
}

.quick-links {
  list-style: none;
}

.quick-links li + li {
  margin-top: 0.3rem;
}

.site-footer a {
  color: #dbe8dc;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.socials {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.copyright {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.92rem;
  border-top: 1px solid rgba(219, 232, 220, 0.15);
  padding-top: 1rem;
}

/* Scroll reveal animation classes */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles for tablets */
@media (max-width: 992px) {
  .about-grid,
  .product-grid,
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero {
    min-height: 78vh;
  }
}

/* Responsive styles for mobile */
@media (max-width: 760px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    right: 1rem;
    top: 72px;
    width: min(280px, 92vw);
    background: #fff;
    border: 1px solid #e2e8e2;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: 0.6rem;
    display: none;
    flex-direction: column;
  }

  .nav-links.open {
    display: flex;
  }

  .about-grid,
  .product-grid,
  .services-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 4rem 0;
  }
}
