:root {
  /* Greenery & Nursery Solid Colors */
  --color-green-light: #e8f5e9;
  --color-green-soft: #c8e6c9;
  --color-green-primary: #4caf50;
  --color-green-dark: #2e7d32;
  --color-green-leaf: #388e3c;
  --color-green-forest: #1b5e20;
  
  --color-earth-brown: #795548;
  --color-sunlight-yellow: #fbc02d;

  /* Beautiful Gradients for Gardening Theme */
  --gradient-nursery: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
  --gradient-forest: linear-gradient(135deg, #43a047 0%, #1b5e20 100%);
  --gradient-sunlight: linear-gradient(135deg, #fdfc47 0%, #24fe41 100%);
  --gradient-earth: linear-gradient(135deg, #795548 0%, #4e342e 100%);
  --gradient-mint: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);

  /* Google Sans Font Family Stack */
  --font-family-base: "Google Sans", sans-serif;
}

/* Global Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-family-base) !important;
  font-weight: 400; /* Regular body weight */
  color: #333;
  background-color: #fafafa;
  line-height: 1.6;
  text-transform: capitalize; /* Global text transform as requested */
  overflow-x: hidden;
}

/* Max font weight 600 as requested */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--color-green-forest);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

strong, b {
  font-weight: 600;
}

/* Global Responsiveness for Media */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Responsive Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 576px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2.5rem;
  }
}

/* Utility Classes: Typography */
.text-capitalize { text-transform: capitalize; }
.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; /* Max 600 allowed */ }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Utility Classes: Background Gradients */
.bg-gradient-nursery { background: var(--gradient-nursery); color: white; }
.bg-gradient-forest { background: var(--gradient-forest); color: white; }
.bg-gradient-sunlight { background: var(--gradient-sunlight); color: #333; }
.bg-gradient-earth { background: var(--gradient-earth); color: white; }
.bg-gradient-mint { background: var(--gradient-mint); color: white; }

/* Utility Classes: Text Gradients */
.text-gradient-nursery {
  background: var(--gradient-nursery);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-forest {
  background: var(--gradient-forest);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Utility Classes: Responsive Flexbox */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Utility Classes: Responsive Grid */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .grid-cols-sm-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-cols-md-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-md-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-cols-lg-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-lg-4 { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================
   STICKY SOCIAL ICONS
   ========================================= */
.sticky-social-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sticky-social-bar.hidden-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  pointer-events: none;
}

.sticky-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: white;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.sticky-social-icon.facebook {
  background: linear-gradient(135deg, #1877F2, #0d5bb5);
}

.sticky-social-icon.whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.sticky-social-icon.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.sticky-social-icon.youtube {
  background: linear-gradient(135deg, #FF0000, #c40000);
}

.sticky-social-icon.phone {
  background: linear-gradient(135deg, #007BFF, #0056b3);
}

.sticky-social-icon.uparrow {
  background: linear-gradient(135deg, #f09433, #e6683c);
}

.sticky-social-icon:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.sticky-social-icon .sticky-label {
  position: absolute;
  right: 55px;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}

.sticky-social-icon:hover .sticky-label {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* =========================================
   MOBILE SIDEBAR FIXES (GLOBAL)
   ========================================= */
.sidebar-overlay {
  z-index: 999998 !important;
}
.mobile-sidebar {
  top: 0 !important;
  margin: 0 !important;
  height: 100vh !important;
  max-height: 100vh !important;
  z-index: 999999 !important;
  padding-bottom: 120px !important; /* Ensures the login button is never cut off */
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}
.mobile-sidebar.active {
  top: 0 !important;
  z-index: 999999 !important;
}
.sidebar-overlay.active {
  z-index: 999998 !important;
}

@media (max-width: 768px) {
  .mobile-nav .nav-link {
    font-size: 1rem !important; /* Slightly smaller font for mobile links */
    padding: 0.4rem 0 !important;
  }
  .mobile-nav .login-btn {
    padding: 0.8rem !important;
    margin-top: 1rem !important;
    font-size: 0.95rem !important;
  }
}


/* Center Footer and Fix Social Icon Overlap on Mobile */
@media (max-width: 768px) {
  .premium-footer, .footer-text, .footer-col {
    text-align: center !important;
  }
  .footer-text {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-col-title::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .footer-socials {
    justify-content: center !important;
  }
  .footer-newsletter form {
    justify-content: center !important;
  }
  /* Hide the right-side sticky bar so it doesn't overlap centered footer text */
  .sticky-social-bar {
    display: none !important;
  }
}

.desktop-inline-mobile-block {
  display: inline-block;
}
@media (min-width: 768px) {
  .desktop-inline-mobile-block {
    display: inline-block;
  }
}

.footer-bottom div {
  white-space: nowrap !important;
}



@media (max-width: 768px) {
  .footer-bottom {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .footer-bottom div {
    white-space: nowrap !important;
    line-height: 1.4 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .contact-card {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    text-align: left !important;
    align-items: flex-start !important;
  }
  section:not(.footer-section) {
    padding-bottom: 1.5rem !important;
  }
}

/* =========================================
   MOBILE BANNER/HERO TITLE ENFORCEMENT
   ========================================= */
@media (max-width: 768px) {
  .about-banner-content h1,
  .sv-half-banner h1,
  .founder-hero-content h1,
  .founder-hero h1,
  .timeline-header h1,
  .timeline-hero-text h1,
  .service-hero-title,
  .pkh-hero-title,
  .pd-header h1,
  .login-header h1,
  .header-titles h1,
  .hero-title,
  .hero-container h1,
  .about-banner h1,
  .infrastructure-hero h1,
  div[class*="banner"] h1,
  div[class*="hero"] h1,
  section[class*="banner"] h1,
  section[class*="hero"] h1 {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    text-align: center !important;
  }
  
  /* Enforce Vertical and Horizontal Centering for Banner Containers */
  .about-banner,
  .sv-half-banner,
  .timeline-hero,
  .founder-hero,
  .pkh-hero,
  .promo-banner,
  .hero-section,
 
  div[class*="hero"],
  section[class*="banner"],
  section[class*="hero"] {
    display: flex !important;
    align-items: center !important; /* Vertically center in container */
    justify-content: center !important; /* Horizontally center */
    padding-bottom: 0 !important;
    padding-top: 0 !important;
  }

  /* Enforce Centering for Banner Content Wrappers and Subtitles */
  .about-banner-content,
  .sv-half-banner-content,
  .timeline-hero-text,
  .founder-hero-content,
  .service-hero-content,
  .hero-content,
  .hero-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Horizontally center elements inside */
    justify-content: center !important; /* Vertically center elements inside */
    text-align: center !important;
    width: 100% !important;
    padding: 0 1rem !important;
    margin: 0 auto !important;
  }
  
  /* Enforce Subtitle / Paragraph Centering */
  .about-banner-content p,
  .sv-half-banner-content p,
  .timeline-hero-text p,
  .founder-hero-content p,
  .service-hero-content p,
  .hero-content p,
  .hero-container p,
  div[class*="banner"] p,
  div[class*="hero"] p,
  section[class*="banner"] p,
  section[class*="hero"] p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* =========================================
   DISABLE GREEN OVERLAYS AND MOVING EFFECTS
   ========================================= */
/* Remove green shade from all banner overlays and replace with a standard black shade */
.hero-bg-overlay,
.founder-hero-overlay,
.about-banner-overlay,
.timeline-hero-overlay,
.sv-half-banner-overlay,
div[class*="hero-overlay"],
div[class*="banner-overlay"],
.service-hero-premium::before {
    background: rgba(0, 0, 0, 0.5) !important;
}

/* Disable moving effect / zoom on banner backgrounds */
.hero-bg-video,
.sv-half-banner,
.timeline-hero,
.founder-hero,
.pkh-hero,
.promo-banner,
.hero-section,
.service-hero-premium,
div[class*="hero"] img,
div[class*="hero"] video,
section[class*="hero"] img,
section[class*="hero"] video {
    animation: none !important;
}

/* Exclude .about-banner from having animations disabled to preserve its moving effect */
div[class*="banner"]:not(.about-banner) img,
div[class*="banner"]:not(.about-banner) video,
section[class*="banner"]:not(.about-banner) img,
section[class*="banner"]:not(.about-banner) video {
    animation: none !important;
}

/* =========================================
   STRICT BANNER HEIGHTS
   ========================================= */
.founder-hero,
.about-banner,
.sv-half-banner,
.timeline-hero,
.pkh-hero,
.service-hero-premium {
    height: 50vh !important;
    min-height: 50vh !important;
    max-height: 50vh !important;
}

@media (max-width: 768px) {
    .founder-hero,
    .about-banner,
    .sv-half-banner,
    .timeline-hero,
    .pkh-hero,
    .service-hero-premium {
        height: 40vh !important;
        min-height: 40vh !important;
        max-height: 40vh !important;
    }
}

/* =========================================
   FOOTER BOTTOM FULL-WIDTH BORDER OVERRIDE
   ========================================= */
.premium-footer .footer-bottom {
    border-top: none !important;
    position: relative !important;
}
.premium-footer .footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw; /* strictly creates a 5vw gap on left and right */
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

/* Fix for .about-image-wrapper hover cropping */
.about-image-wrapper {
  transition: transform 0.5s ease !important;
}
.about-image-wrapper:hover {
  transform: scale(1.03) !important;
}
.about-image-wrapper img {
  transition: none !important;
}
.about-image-wrapper:hover img {
  transform: none !important;
}