/* style.css - Sri Vijaya Durga Nursery */

/* ==========================================================================
   Google Fonts
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  /* Colors */
  --primary: #2e6b36;
  /* Deep Nature Green */
  --primary-light: #468c4f;
  /* Lighter Green */
  --primary-dark: #1b4521;
  /* Very Dark Green */
  --secondary: #e6f0e8;
  /* Subtle Mint/Green Tint */
  --accent: #ffb703;
  /* Warm Yellow for CTA elements */

  --text-dark: #1a1a1a;
  --text-muted: #555555;
  --text-light: #f4f4f4;
  --white: #ffffff;
  --bg-light: #fafafa;
  --bg-dark: #222222;

  --border-color: #e0e0e0;

  /* Typography */
  --font-family: 'Outfit', sans-serif;

  /* Layout */
  --container-width: 1280px;
  --header-height: 80px;

  /* Shadows & Transitions */
  --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 24px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
  --radius: 8px;
  --radius-lg: 16px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  margin-bottom: 0.5em;
  font-weight: 600;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 10px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: none;
  font-family: var(--font-family);
  font-size: 1rem;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--text-dark);
}

.btn-accent:hover {
  background-color: #e6a500;
  transform: translateY(-2px);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.py-5 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Responsive Sections */
section {
  padding: 80px 0;
}

/* Scroll Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Additional Layout & Components
   ========================================================================== */

/* Dropdown Menu Styles */
.nav-links ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.dropdown {
  position: relative;
}

.submenu-icon {
  font-size: 0.8em;
  margin-left: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  padding: 10px 20px;
  display: block;
  color: var(--text-dark);
}

.dropdown-menu a:hover {
  background-color: var(--bg-light);
  color: var(--primary);
}

/* Call Button in Header */
.call-btn {
  margin-right: 15px;
  padding: 8px 20px;
}

/* Updated Layout Utilities */
.flex-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.flex-row>* {
  flex: 1;
  min-width: 300px;
}

/* Image Utilities */
.rounded-image {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
}

.shadow {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.border-white {
  border: 4px solid var(--white);
}

.bg-primary-dark {
  background-color: var(--primary-dark);
}

.text-white {
  color: var(--white);
}

.text-white p,
.text-white h2 {
  color: var(--white);
}

.pt-5 {
  padding-top: 5rem;
}

.pb-5 {
  padding-bottom: 5rem;
}

/* Plant Category Grid */
.plant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: block;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.category-card .card-img {
  height: 180px;
  overflow: hidden;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.card-title {
  padding: 1.5rem;
  text-align: center;
}

.card-title h3 {
  margin-bottom: 5px;
  color: var(--primary-dark);
}

.text-sm {
  font-size: 0.85rem;
}

.text-muted {
  color: var(--text-muted);
}

/* Testimonials Grid */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.testimonial-card p {
  font-style: italic;
  margin: 1.5rem 0;
  color: var(--text-muted);
}

.stars {
  color: #ffc107;
}

/* Header & General Layout existing improvements */
.main-header {
  background-color: var(--white);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-dark);
}

.logo img {
  height: 50px;
}

.logo-text small {
  display: block;
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Hero Slider Section */
.hero-slider-section {
  position: relative;
  margin-top: var(--header-height);
  height: 90vh;
  min-height: 500px;
  padding: 0;
  margin-bottom: 0;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide .hero-content {
  color: var(--white);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease 0.3s;
}

.slide.active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

.slide-title {
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-text {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.slider-btn:hover {
  background: var(--primary);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* Slider Indicators */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.ml-1 {
  margin-left: 1rem;
}

.features-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.features-list i {
  color: var(--primary);
}

.bg-light {
  background-color: #f9fdfa;
}

/* Sticky WhatsApp */
.sticky-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s;
}

.sticky-whatsapp:hover {
  transform: scale(1.1);
  color: white;
}

/* Map Container */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
}

/* Footer */
.main-footer {
  background-color: #1a1a1a;
  color: var(--text-light);
  padding: 60px 0 20px;
}

.main-footer h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.main-footer h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 40px;
}

.footer-about .footer-logo {
  height: 60px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a:hover,
.footer-plants a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.9em;
  color: var(--text-muted);
}

.footer-contact address {
  font-style: normal;
}

.footer-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact i {
  color: var(--primary-light);
  margin-top: 4px;
}

/* Mobile Adjustments */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-dark);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    display: none;
    padding: 20px;
  }

  .nav-links.active {
    display: block;
  }

  .nav-links ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .dropdown-menu {
    position: relative;
    box-shadow: none;
    padding-left: 20px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .dropdown:hover .dropdown-menu {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .header-actions .call-btn {
    display: none;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .ml-1 {
    margin-left: 0;
  }
}