/* ==========================================================================
   PASUMAI SOLAI PLANT NURSERY & LANDSCAPING - TAMIL NADU
   Custom Design System & Modern Aesthetics
   Colors:
     Primary:    #2E7D32
     Secondary:  #66BB6A
     Dark:       #1B5E20
     Accent:     #9CCC65
     Background: #F8F6EE
     Section:    #E8F5E9
     Text:       #263238
     CTA:        #E67E22
   ========================================================================== */

:root {
  --primary: #2E7D32;
  --primary-hover: #256628;
  --secondary: #66BB6A;
  --dark: #1B5E20;
  --darker: #0d3811;
  --accent: #9CCC65;
  --bg: #F8F6EE;
  --section: #E8F5E9;
  --section-alt: #F1F8E9;
  --text: #263238;
  --text-muted: #546E7A;
  --text-light: #ECEFF1;
  --cta: #E67E22;
  --cta-hover: #D35400;
  --white: #FFFFFF;
  --border-light: rgba(46, 125, 50, 0.15);
  --shadow-sm: 0 4px 12px rgba(27, 94, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(27, 94, 32, 0.10);
  --shadow-lg: 0 16px 40px rgba(27, 94, 32, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base resets & typography */
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: 72px; /* space for mobile floating actions */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--dark);
}

/* Custom background & section utilities */
.bg-theme { background-color: var(--bg) !important; }
.bg-section { background-color: var(--section) !important; }
.bg-section-alt { background-color: var(--section-alt) !important; }
.bg-primary-custom { background-color: var(--primary) !important; color: #fff; }
.bg-dark-custom { background-color: var(--dark) !important; color: #fff; }
.bg-accent-custom { background-color: var(--accent) !important; color: var(--dark); }
.bg-cta-custom { background-color: var(--cta) !important; color: #fff; }
.text-primary-custom { color: var(--primary) !important; }
.text-dark-custom { color: var(--dark) !important; }
.text-cta-custom { color: var(--cta) !important; }
.text-secondary-custom { color: var(--secondary) !important; }
.border-custom { border-color: var(--border-light) !important; }

/* Notification Topbar */
.top-bar {
  background-color: var(--dark);
  color: var(--text-light);
  font-size: 0.86rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
  color: #fff;
  opacity: 0.9;
  text-decoration: none;
  margin-right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar a:hover {
  opacity: 1;
  color: var(--accent);
}

.tamil-pill {
  background: rgba(156, 204, 101, 0.22);
  color: #c5e1a5;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(156, 204, 101, 0.35);
}

/* Navbar */
.navbar-custom {
  background-color: rgba(248, 246, 238, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
  padding: 10px 0;
}

.navbar-custom.scrolled {
  box-shadow: var(--shadow-md);
  padding: 7px 0;
}

.navbar-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
  flex-shrink: 0;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .navbar-custom .navbar-collapse {
    flex-wrap: nowrap !important;
  }
  .navbar-custom .navbar-nav {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 2px !important;
  }
}

@media (max-width: 991.98px) {
  .navbar-custom .navbar-collapse {
    flex-wrap: wrap !important;
  }
  .navbar-custom .navbar-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    padding: 12px 0 !important;
  }
}

.nav-link-custom {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text) !important;
  padding: 6px 9px !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap !important;
}

@media (min-width: 1400px) {
  .nav-link-custom {
    font-size: 0.92rem;
    padding: 7px 12px !important;
  }
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--primary) !important;
  background-color: rgba(46, 125, 50, 0.08);
}

/* Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  border: none;
  color: #fff !important;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--dark), var(--darker));
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(46, 125, 50, 0.35);
}

.btn-cta-custom {
  background: linear-gradient(135deg, var(--cta), #d35400);
  border: none;
  color: #fff !important;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(230, 126, 34, 0.32);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta-custom:hover {
  background: linear-gradient(135deg, #d35400, #b94600);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.42);
}

.navbar-custom .btn-cta-custom {
  padding: 7px 18px;
  font-size: 0.88rem;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.btn-whatsapp {
  background: #25D366;
  border: none;
  color: #fff !important;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-whatsapp:hover {
  background: #1ebd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.38);
}

.btn-outline-custom {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary) !important;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-custom:hover {
  background-color: var(--primary);
  color: #fff !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   HOMEPAGE HERO SLIDER / CAROUSEL
   Smooth fade, rich overlays, responsive typography, modern controls
   ========================================================================== */
.hero-slider-section {
  position: relative;
  overflow: hidden;
  background-color: var(--darker);
}

.hero-carousel {
  position: relative;
  width: 100%;
}

.hero-carousel .carousel-item {
  position: relative;
  min-height: 600px;
  background-color: var(--darker);
}

@media (min-width: 992px) {
  .hero-carousel .carousel-item {
    min-height: 680px;
  }
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  transform: scale(1.04);
  transition: transform 7s ease-out;
  filter: brightness(0.92) contrast(1.04);
}

.carousel-item.active .hero-slide-bg {
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    rgba(6, 32, 10, 0.84) 0%, 
    rgba(10, 42, 15, 0.68) 38%, 
    rgba(10, 42, 15, 0.32) 70%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 2;
}

@media (max-width: 767.98px) {
  .hero-slide-overlay {
    background: linear-gradient(
      180deg, 
      rgba(6, 32, 10, 0.85) 0%, 
      rgba(10, 42, 15, 0.60) 50%,
      rgba(6, 32, 10, 0.82) 100%
    );
  }
}

.hero-slide-content {
  position: relative;
  z-index: 3;
  padding: 70px 0 90px;
}

@media (min-width: 992px) {
  .hero-slide-content {
    padding: 100px 0 110px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.16;
  color: #fff;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.2rem;
  }
}

@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.8rem;
  }
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
  margin-bottom: 28px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 992px) {
  .hero-subtitle {
    font-size: 1.18rem;
  }
}

/* Modern Carousel Indicators */
.hero-carousel .carousel-indicators {
  bottom: 20px;
  margin-bottom: 0;
  z-index: 5;
  gap: 8px;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background-color: transparent;
  opacity: 0.6;
  transition: all 0.3s ease;
  padding: 0;
  margin: 0;
}

.hero-carousel .carousel-indicators .active {
  width: 32px;
  border-radius: 12px;
  background-color: var(--accent);
  border-color: var(--accent);
  opacity: 1;
}

/* Sleek Circular Navigation Arrows */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 52px;
  height: 52px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  opacity: 0.85;
  transition: all 0.3s ease;
  z-index: 5;
}

.hero-carousel .carousel-control-prev {
  left: 20px;
}

.hero-carousel .carousel-control-next {
  right: 20px;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  opacity: 1;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  width: 22px;
  height: 22px;
}

@media (max-width: 767px) {
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    display: none;
  }
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Inner Page Header with Background Images & Overlays */
.page-header {
  position: relative;
  background-color: var(--darker);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 75px 0 70px;
  overflow: hidden;
  background-image: url('/images/hero-slide-1.jpg');
}

.page-header-about {
  background-image: url('/images/hero-slide-4.jpg') !important;
  background-position: center 30% !important;
}

.page-header-plants {
  background-image: url('/images/hero-slide-1.jpg') !important;
  background-position: center center !important;
}

.page-header-products {
  background-image: url('/images/hero-slide-2.jpg') !important;
  background-position: center center !important;
}

.page-header-services {
  background-image: url('/images/hero-slide-2.jpg') !important;
  background-position: center 40% !important;
}

.page-header-landscaping {
  background-image: url('/images/hero-slide-3.jpg') !important;
  background-position: center center !important;
}

.page-header-gallery {
  background-image: url('/images/hero-slide-3.jpg') !important;
  background-position: center 45% !important;
}

.page-header-contact {
  background-image: url('/images/hero-slide-1.jpg') !important;
  background-position: center 35% !important;
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg, 
    rgba(6, 32, 10, 0.86) 0%, 
    rgba(12, 48, 16, 0.72) 50%, 
    rgba(6, 32, 10, 0.82) 100%
  );
  z-index: 1;
}

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

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: var(--bg);
  clip-path: ellipse(65% 100% at 50% 100%);
  z-index: 2;
}

.page-header-title,
.page-header h1,
.page-header .display-4 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.page-header-desc,
.page-header p.lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 720px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* Cards & Components */
.custom-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(46, 125, 50, 0.3);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
  background-color: var(--section);
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.custom-card:hover .card-img-wrapper img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--dark);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.card-badge.badge-cta {
  background: var(--cta);
}

.card-badge.badge-accent {
  background: var(--accent);
  color: var(--dark);
}

.plant-spec-pill {
  background: var(--section);
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Category Filter Tabs */
.filter-tabs-wrapper {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 28px;
  scrollbar-width: thin;
}

.filter-tab-btn {
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-tab-btn:hover,
.filter-tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(46, 125, 50, 0.25);
}

/* Service & Landscaping Cards */
.feature-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--section);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 18px;
  transition: all 0.3s ease;
}

.custom-card:hover .feature-icon-box {
  background: var(--primary);
  color: #fff;
}

/* Before & After Interactive Container */
.before-after-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 380px;
}

.before-after-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-badge {
  position: absolute;
  bottom: 16px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  backdrop-filter: blur(6px);
}

.ba-badge-before {
  left: 16px;
  background: rgba(38, 50, 56, 0.85);
}

.ba-badge-after {
  right: 16px;
  background: rgba(46, 125, 50, 0.9);
  border: 1px solid var(--accent);
}

/* Reviews / Testimonials */
.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  height: 100%;
  position: relative;
}

.star-rating {
  color: #FFB300;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.reviewer-thumb {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

/* Floating Bottom Action Bar for Mobile */
.floating-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  padding: 10px 16px;
  z-index: 1040;
  display: flex;
  gap: 8px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

@media (min-width: 992px) {
  .floating-action-bar {
    display: none !important;
  }
}

.floating-action-btn {
  flex: 1;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

/* Floating Desktop Quick Contact Bubble */
.desktop-wa-float {
  display: none;
}

@media (min-width: 992px) {
  .desktop-wa-float {
    display: flex;
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #25D366;
    color: #fff !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    z-index: 1050;
    transition: all 0.3s ease;
  }
  .desktop-wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 26px rgba(37, 211, 102, 0.6);
  }
}

/* Footer */
.footer-custom {
  background: var(--darker);
  color: rgba(255, 255, 255, 0.78);
  padding: 70px 0 25px;
  border-top: 4px solid var(--primary);
}

.footer-title {
  color: #fff;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 38px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  margin-top: 50px;
  font-size: 0.88rem;
}

/* Forms */
.custom-input {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background-color: #fff;
}

.custom-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.15);
  outline: none;
}
