/* ===== CUSTOM CSS FOR ACRES CLIMATETECH (Cleaned and responsive for index.php) ===== */

/* Google Fonts - Outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #0b2e1f;       /* Deep Green */
  --secondary-color: #2e7d32;     /* Forest Green */
  --accent-color: #069c6a;        /* Emerald / Vibrant Green */
  --light-bg: #f8fafc;            /* Off-white */
  --dark-bg: #111827;             /* Charcoal */
  --text-dark: #1e293b;           /* Slate */
  --text-light: #64748b;          /* Cool Gray */
  --white: #ffffff;
  
  --font-main: 'Outfit', sans-serif;
  --transition-speed: 0.3s;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-color);
}

.text-accent {
  color: var(--accent-color) !important;
}

.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

.bg-light-green {
  background-color: #ecfdf5;
}

/* Navbar Customization */
.navbar {
  transition: all var(--transition-speed) ease-in-out;
  padding: 1.2rem 0;
  background-color: transparent;
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  background-color: var(--primary-color) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 0.8rem 0;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--white) !important;
  margin: 0 0.5rem;
  position: relative;
  transition: color var(--transition-speed);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Buttons */
.btn-custom {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid var(--accent-color);
  transition: all var(--transition-speed);
}

.btn-custom:hover {
  background-color: transparent;
  color: var(--accent-color);
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  transition: all var(--transition-speed);
}

.btn-outline-custom:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Hero Sections */
.hero-section {
  position: relative;
  padding: 180px 0 100px;
  min-height: 80vh;

  display: flex;
  align-items: center;

  color: var(--white);

  overflow: hidden;
}

/* Animated Background Layer */
.hero-section::before {
  content: "";

  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(rgba(11, 46, 31, 0.82), rgba(11, 46, 31, 0.82)),
    url('../img/hero-640.webp');

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  animation: heroZoom 18s ease-in-out infinite alternate;

  transform-origin: center center;

  z-index: 1;
}

/* Tablet */
@media (min-width: 768px) {
  .hero-section::before {
    background-image:
      linear-gradient(rgba(11, 46, 31, 0.82), rgba(11, 46, 31, 0.82)),
      url('../img/hero-1440.webp');
  }
}

/* Large Desktop */
@media (min-width: 1440px) {
  .hero-section::before {
    background-image:
      linear-gradient(rgba(11, 46, 31, 0.82), rgba(11, 46, 31, 0.82)),
      url('../img/hero-1920.webp');
  }
}

/* Keep Content Above Background */
.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Background Animation */
@keyframes heroZoom {
  0% {
    transform: scale(1) translateY(0px);
  }

  100% {
    transform: scale(1.08) translateY(-10px);
  }
}

/* Typography */
.hero-section h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
}

.hero-section p {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
}

/* Custom Cards */
.feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-speed);
  border: 1px solid rgba(0, 0, 0, 0.02);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
}

.icon-box {
  width: 60px;
  height: 60px;
  background-color: #ecfdf5;
  color: var(--accent-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 30px;
}

.footer h5 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-speed);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-link:hover {
  color: var(--accent-color);
}

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

/* Contact form */
.form-control {
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}

/* Section Padding */
.section-padding {
  padding: 100px 0;
}

/* Glassmorphism utility */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    z-index: 9999;
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

/* Lenis Smooth Scrolling */
html.lenis, html.lenis body {
    height: auto;
    width: 100%;
}
  
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
  
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
  
.lenis.lenis-stopped {
    overflow: hidden;
}
  
.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

.stack-section {
    position: relative;
    padding: 100px 0;
}

.card-bg{
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
}

.bicrs-bg{
  background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url("../img/BRCS-bg.webp");
}
.erw-bg{
  background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url("../img/erw.webp");
}
.ra-bg{
  background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url("../img/regenerative-agri.webp");
}

.stack-card {
    position: sticky;
    top: 120px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 120px;
}

.card-inner {
    padding: 80px;
    background-color: var(--light-bg);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transition: transform 0.4s ease;
    width: 100%;
    overflow: hidden;
}

.stack-card:nth-child(1) .card-inner {
    background-color: var(--light-bg);
}

.stack-card:nth-child(2) .card-inner {
    background-color: var(--light-bg);
}

.stack-card:nth-child(3) .card-inner {
    background-color: var(--light-bg);
}

/* Equal Height & Content Spacing on Desktop/Tablet */
@media (min-width: 992px) {
    .card-inner {
        min-height: 520px;
        display: flex;
        flex-direction: column;
    }
    .card-content-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.tech-bubbles {
    background: linear-gradient(rgba(11, 46, 31, 0.9), rgba(11, 46, 31, 0.9)), url('https://images.unsplash.com/photo-1615811361523-6bd03d7748e7?q=80&w=2000&auto=format&fit=crop') center/cover;
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;

    padding: 100px 20px;
}

/* Bubble */
.tech-bubble {
    position: relative;

    width: 250px;
    height: 250px;

    border-radius: 50%;

    overflow: hidden;

    background: rgba(255,255,255,0.05);

    border: 1px solid rgba(255,255,255,0.1);

    backdrop-filter: blur(10px);

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    cursor: pointer;

    transition: transform 0.5s ease;
}

/* Liquid Fill Layer */
.tech-bubble::before {
    content: "";

    position: absolute;
    left: 0;
    bottom: -100%;

    width: 100%;
    height: 100%;

    background: linear-gradient(
        180deg,
        #22c55e,
        #0f5132
    );

    transition: bottom 0.7s ease;

    z-index: 1;
}

/* Hover Fill */
.tech-bubble:hover::before {
    bottom: 0;
}

/* Hover Float */
.tech-bubble:hover {
    transform: translateY(-10px);
}

/* Content */
.bubble-content {
    position: relative;
    z-index: 2;

    padding: 24px;

    transition: color 0.5s ease;
}

.bubble-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #fff;
}

.bubble-content p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
}

/* Hover Text */
.tech-bubble:hover .bubble-content h3,
.tech-bubble:hover .bubble-content p {
    color: #fff;
}

/* Responsive adjustments for mobile and tablet */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--primary-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
    text-align: center;
  }
  .navbar-nav .nav-link::after {
    display: none; /* Hide under-line on mobile dropdown */
  }
  .navbar-brand img {
    max-width: 90px;
  }
  
  .stack-section {
    padding: 60px 0;
  }
  .stack-card {
    top: 90px;
    margin-bottom: 60px;
  }
  .card-inner {
    padding: 40px;
    border-radius: 20px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  .tech-bubbles {
    padding: 60px 10px;
    gap: 20px;
  }
  .tech-bubble {
    width: 220px;
    height: 220px;
  }
  .bubble-content {
    padding: 18px;
  }
  .bubble-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .bubble-content p {
    font-size: 0.78rem;
    line-height: 1.4;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 140px 0 60px;
  }
  .stack-card {
    top: 80px;
    margin-bottom: 40px;
  }
  .card-inner {
    padding: 24px 16px;
    border-radius: 16px;
  }
  .tech-bubble {
    width: 200px;
    height: 200px;
  }
  .bubble-content {
    padding: 12px;
  }
}


/* Section */
.map-section {
    position: relative;
    overflow: hidden;
}

/* Google Map */
.map-container {
    position: absolute;
    inset: 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;

    border: 0;

    filter:
        grayscale(1)
        contrast(1.1)
        brightness(0.8);
}

/* Overlay */
.contact-form-container {
    position: relative;

    z-index: 2;

    height: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    padding: 60px;
}

/* Contact Card */
.contact-card {
    width: 100%;
    max-width: 1000px;
    padding: 50px;
    border-radius: 30px;
    background: rgba(236, 253, 245, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(6, 156, 106, 0.15);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    margin: 40px;
}

/* Inputs */
.contact-card .form-control {
    height: 55px;
    border-radius: 14px;
    border: 1px solid rgba(11, 46, 31, 0.15);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

.contact-card textarea.form-control {
    height: auto;
}

.contact-card .form-control::placeholder {
    color: var(--text-light);
}

.contact-card .form-control:focus {
    background: var(--white);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(6, 156, 106, 0.15);
    color: var(--primary-color);
}

@media (max-width: 991.98px) {
    .map-section {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .map-container {
        position: relative;
        height: 350px;
        width: 100%;
    }

    .contact-form-container {
        width: 100%;
        padding: 40px 20px;
        justify-content: center;
    }

    .contact-card {
        width: 100%;
        max-width: 720px;
        margin: 0 auto;
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .map-container {
        height: 250px;
    }

    .contact-form-container {
        padding: 30px 15px;
    }

    .contact-card {
        padding: 30px 20px;
        border-radius: 20px;
    }
}