/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Open+Sans:wght@400;500&display=swap");

:root {
  --primary: #4caf50;
  --secondary: #8bc34a;
  --dark: #388e3c;
  --light: #f1f8e9;
  --text: #333;
  --white: #fff;
}

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

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  height: 80px;
  width: auto;
}

/* Navigation */
nav {
  flex: 1;
  display: flex;
  justify-content: center;
  transition: left 0.3s ease;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s;
  white-space: nowrap;
}

nav a:hover {
  color: var(--primary);
}

/* Header Icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex: 0 0 auto;
}

.header-icons a {
  color: #4a2c2a;
  font-size: 1.4rem;
  transition: all 0.3s;
  position: relative;
}

.header-icons a:hover {
  color: #4caf50;
  transform: translateY(-2px);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #4caf50;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}

.menu-toggle span {
  width: 2rem;
  height: 0.25rem;
  background: var(--text);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

/* Prevent background scroll when menu open */
.no-scroll {
  overflow: hidden;
}

/* Animate hamburger into "X" */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.slideshow {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  width: 80%;
  z-index: 10;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid var(--primary);
  font-size: 1.1rem;
}

.cta-button:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Why Choose Us */
.why-choose-us {
  padding: 4rem 5%;
  text-align: center;
  background: #f5f9f5;
}

.section-header h2 {
  font-size: 2.2rem;
  color: #1e5631;
  margin-bottom: 0.8rem;
}

.section-header p {
  color: #4a6b57;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.features-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem auto;
  max-width: 1200px;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  flex: 1 1 250px;
  max-width: 280px;
  box-shadow: 0 3px 10px rgba(46, 92, 60, 0.1);
  border-top: 4px solid #2a8a5c;
  transition: transform 0.3s;
}

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

.feature-icon {
  font-size: 2rem;
  color: #2a8a5c;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  color: #1e5631;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #556b5f;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.feature-badge {
  background: #e1f0e7;
  color: #1e5631;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-block;
}

.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px dashed #c1d7c9;
  flex-wrap: wrap;
}

.trust-item {
  flex: 1;
  min-width: 120px;
}

.trust-number {
  font-size: 2rem;
  font-weight: 800;
  color: #1e5631;
  display: block;
  line-height: 1;
}

.trust-label {
  font-size: 0.9rem;
  color: #4a6b57;
  font-weight: 500;
}

/* FOOTER */
.footer-with-bg {
  position: relative;
  padding: 3rem 5% 1rem;
  color: #f5deb3;
  overflow: hidden;
}

.footer-with-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../Images/footerBack.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
  z-index: -1;
}

.footer-with-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #f8f1e7;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-family: "Poppins", sans-serif;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #f5deb3;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #8b5e3b;
}

.social-icons {
  display: flex;
  gap: 1rem;
  font-size: 1.8rem;
  margin: 1rem 0;
}

.footer-section i {
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 222, 179, 0.2);
  padding-top: 1.5rem;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: #f5deb3;
  text-decoration: none;
  font-size: 0.9rem;
}

.social-icons {
  margin: 1rem 0;
}

.social-icons a {
  color: var(--white);
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--secondary);
}

/* ===================== */
/* Responsive Design */
/* ===================== */

/* Large Desktop Screens */
@media (min-width: 1440px) {
  .hero-text h1 {
    font-size: 3.5rem;
  }
  .hero-text p {
    font-size: 1.5rem;
  }
  .features-container {
    justify-content: space-between;
    max-width: 1400px;
  }
  .feature-card {
    max-width: 320px;
  }
  .footer-container {
    max-width: 1400px;
  }
}

/* Tablets */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-text p {
    font-size: 1.1rem;
  }
  nav ul {
    gap: 1rem;
  }
  nav a {
    font-size: 1rem;
  }
}

/* Tablets and Large Phones */
@media (max-width: 768px) {
  header {
    padding: 0.8rem 5%;
  }
  .logo img {
    height: 60px;
  }
  .menu-toggle {
    display: flex;
  }
  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 150;
  }
  nav.active {
    left: 0;
  }
  nav ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  nav a {
    font-size: 1.2rem;
  }
  .header-icons {
    gap: 1rem;
  }
  .header-icons a {
    font-size: 1.2rem;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .cta-button {
    padding: 10px 25px;
    font-size: 1rem;
  }
  .feature-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .trust-indicators {
    gap: 1.5rem;
  }
  .trust-item {
    min-width: 100px;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  header {
    padding: 0.6rem 5%;
  }
  .logo img {
    height: 50px;
  }
  .hero-text {
    width: 90%;
  }
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .hero-text p {
    font-size: 0.9rem;
  }
  .section-header h2 {
    font-size: 1.8rem;
  }
  .section-header p {
    font-size: 1rem;
  }
  .feature-card {
    padding: 1.5rem;
  }
  .trust-indicators {
    gap: 1rem;
  }
  .trust-number {
    font-size: 1.5rem;
  }
  .trust-label {
    font-size: 0.8rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-bottom ul {
    justify-content: center;
  }
  .social-icons {
    justify-content: center;
  }
}

/* Very Small Phones */
@media (max-width: 360px) {
  .hero-text h1 {
    font-size: 1.5rem;
  }
  .cta-button {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
  .header-icons {
    gap: 0.8rem;
  }
  .header-icons a {
    font-size: 1.1rem;
  }
  .feature-card h3 {
    font-size: 1.1rem;
  }
  .feature-card p {
    font-size: 0.85rem;
  }
}

/* High-resolution displays */
@media (min-resolution: 192dpi) {
  .logo img {
    filter: contrast(1.1);
  }
}

/* Print styles */
@media print {
  header,
  .hero,
  .footer-with-bg::before,
  .footer-with-bg::after {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
  .footer-with-bg {
    color: #000;
    background: #fff;
  }
  .footer-section a {
    color: #000;
  }
}
