/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background: #f7f9f8;
  color: #1f2933;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ================= VARIABLES ================= */
:root {
  --green-dark: #1f7a4d;
  --green-main: #2fa36b;
  --green-light: #e6f4ec;
  --accent: #f4c430;
  --text-dark: #1f2933;
  --text-muted: #5f6c72;
  --white: #ffffff;
  --glass-white: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ================= UTILITIES ================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s ease;
  padding: 10px 0;
}

.navbar.scrolled {
  box-shadow: var(--shadow-light);
  padding: 8px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px; /* Increased to accommodate larger logo */
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Add mobile-logo-container styles (hidden by default on desktop) */
.mobile-logo-container {
  display: none;
}

.logo-img {
  height: 90px !important;
  width: auto !important;
  transition: height 0.3s ease;
}

.navbar.scrolled .logo-img {
  height: 70px !important;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.05;
  color: var(--green-dark);
  transition: font-size 0.3s ease;
}

.navbar.scrolled .logo-title {
  font-size: 1.5rem;
}

.logo-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  line-height: 1.1;
  color: #4b5563;
  transition: font-size 0.3s ease;
}

.navbar.scrolled .logo-subtitle {
  font-size: 0.85rem;
}

/* HIDE LOGO IMAGE ON MOBILE (since we'll show mobile-logo-container instead) */
@media (max-width: 768px) {
  .logo-container {
    display: none; /* Hide desktop logo container on mobile */
  }
  
  .mobile-logo-container {
    display: flex !important;
    align-items: center;
    gap: 10px;
    flex: 1;
    margin-left: 10px;
  }
  
  .mobile-logo-text {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
  }
  
  .mobile-logo-text .logo-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--green-dark);
  }
  
  .mobile-logo-text .logo-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: #4b5563;
    text-transform: uppercase;
  }
  
  .mobile-menu-btn {
    margin-left: auto;
  }
  
  /* Adjust navbar height for mobile */
  .nav-container {
    height: 80px;
  }
  
  /* Mobile logo image should be smaller */
  .logo-img {
    height: 70px !important;
  }
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 8px 4px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-main);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--green-main);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-btn {
  background: var(--green-main);
  color: white !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(47, 163, 107, 0.2);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(47, 163, 107, 0.3);
  background: var(--green-dark);
}

.nav-btn:hover::after {
  width: 0;
}

.nav-btn.secondary {
  background: var(--accent);
  color: #000 !important;
  box-shadow: 0 4px 12px rgba(244, 196, 48, 0.2);
}

.nav-btn.secondary:hover {
  background: #e0b428;
  box-shadow: 0 6px 16px rgba(244, 196, 48, 0.3);
}

/* ================= MOBILE MENU ================= */
.mobile-menu-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--green-dark);
  padding: 8px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.mobile-menu-btn:hover {
  background: var(--green-light);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--glass-white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
  animation: slideDown 0.3s ease forwards;
  box-shadow: var(--shadow-light);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu-header {
  padding: 20px 20px 10px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 10px;
  text-align: center;
}

.mobile-menu-header .logo-title {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.mobile-menu-header .logo-subtitle {
  font-size: 0.8rem;
  letter-spacing: 1.2px;
}

.mobile-menu a {
  padding: 16px 20px;
  text-decoration: none;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.mobile-menu a:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu.open {
  display: flex;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  background: linear-gradient(
      rgba(31, 122, 77, 0.85),
      rgba(31, 122, 77, 0.75)
    ),
    url('/assets/background/hero1bk.png') center/cover no-repeat;
  color: white;
  padding: 55px 0 25px; /* Reduced from 150px 0 90px */
  margin-top: 100px; /* This matches your navbar height */
  min-height: 70vh; /* Reduced from 80vh */
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding-top: 20px; /* Small top padding for breathing room */
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem; /* Reduced from 1.5rem */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.hero h1 span {
  color: var(--accent);
  display: inline-block;
  margin-top: 0.3rem; /* Reduced from 0.5rem */
}

.hero-subtext {
  margin: 1rem 0 1.5rem; /* Reduced from 1.5rem 0 2rem */
  font-size: 1.25rem;
  max-width: 650px;
  line-height: 1.6;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.4s;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-top: 1.5rem; /* Reduced from 2rem */
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

/* HERO STATS */
.hero-stats {
  display: flex;
  gap: 50px;
  margin-top: 40px; /* Reduced from 60px */
  padding-top: 25px; /* Reduced from 30px */
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.8s;
}

.stat {
  text-align: center;
}

.stat strong {
  font-size: 2.2rem;
  display: block;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  margin-bottom: 5px;
}

.stat span {
  font-size: 0.95rem;
  color: #e2e8f0;
  font-weight: 500;
  letter-spacing: 0.5px;
}
/* ================= BUTTONS ================= */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 4px 12px rgba(244, 196, 48, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(244, 196, 48, 0.3);
  background: #e0b428;
}

.btn-secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-secondary:hover {
  background: white;
  color: var(--green-dark);
}

/* ================= ANIMATIONS ================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.slide-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= SECTIONS ================= */
.section {
  padding: 80px 0;
  background: var(--white);
}

.section.alt {
  background: var(--green-light);
}

.section h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--green-dark);
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.section-intro {
  color: var(--text-muted);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

/* ================= SERVICES ================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 30px;
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  transition: all 0.4s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.service-card i {
  font-size: 2rem;
  color: var(--green-main);
  margin-bottom: 14px;
}

.service-card h3 {
  margin-bottom: 10px;
  color: var(--green-dark);
}

/* ================= STEPS ================= */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 30px;
}

.step {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: all 0.4s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.step span {
  display: inline-block;
  background: var(--green-main);
  color: white;
  font-weight: 700;
  width: 42px;
  height: 42px;
  line-height: 42px;
  border-radius: 50%;
  margin-bottom: 14px;
}

/* ================= LOCATIONS ================= */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 20px;
}

.locations-grid div {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.locations-grid div:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  background: var(--green-light);
  color: var(--green-dark);
}

/* ================= CONTACT ================= */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(0,0,0,0.05);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 16px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(47, 163, 107, 0.1);
}

.contact-form button {
  width: 100%;
  margin-top: 10px;
}

/* ================= FOOTER ================= */
.footer {
  background: #0f172a;
  color: white;
  padding: 30px 0;
  text-align: center;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .hero {
    background: linear-gradient(
        rgba(31, 122, 77, 0.8),
        rgba(31, 122, 77, 0.7)
      ),
      url('/assets/background/mobilehero1.png') center/cover no-repeat;
    padding: 80px 0 50px;
    margin-top: 80px;
    min-height: 60vh;
  }

  .hero h1 {
    font-size: 2.3rem;
    margin-bottom: 0.8rem;
  }

  .hero-subtext {
    font-size: 1.1rem;
    margin: 0.8rem 0 1.2rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 15px;
    margin-top: 1.2rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
  }
  
  /* DON'T hide the entire logo-container - just hide the desktop text */
  .logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
  }
  
  /* Hide only the desktop text next to logo */
  .logo-container .logo-text {
    display: none;
  }
  
  /* Show mobile logo container with text */
  .mobile-logo-container {
    display: flex !important;
    align-items: center;
    gap: 10px;
    flex: 1;
    margin-left: 10px;
  }
  
  /* Mobile logo text styling */
  .mobile-logo-text {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
  }
  
  .mobile-logo-text .logo-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--green-dark);
  }
  
  .mobile-logo-text .logo-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: #4b5563;
    text-transform: uppercase;
  }
  
  /* Mobile burger button */
  .mobile-menu-btn {
    margin-left: auto;
  }
  
  /* Logo image adjustments for mobile */
  .logo-img {
    height: 70px !important;
    width: auto !important;
  }
  
  .navbar.scrolled .logo-img {
    height: 60px !important;
  }
}

@media (max-width: 480px) {
  .services-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  
  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
  }
  
  /* Adjust mobile logo text for very small screens */
  .mobile-logo-text .logo-title {
    font-size: 1.1rem;
  }
  
  .mobile-logo-text .logo-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.6px;
  }
  
  /* Smaller logo on very small screens */
  .logo-img {
    height: 60px !important;
  }
}

/* Add this at the VERY END of style.css */
.navbar .logo-container .logo-img {
  height: 90px !important;
  width: auto !important;
}

.navbar.scrolled .logo-container .logo-img {
  height: 70px !important;
}