/* Reserve space for main content to prevent text shift */
main {
  display: block;
  min-height: 80vh;
  contain: content;
}

/* Reserve space for all text sections before fonts load */
section {
  contain: content;
}

/* Prevent text from reflowing */
body {
  font-display: optional;
  text-rendering: optimizeSpeed;
}

/* Single CSS fix for remaining CLS */
.logo img, h1, h2, .myh2, p {
  contain: layout style;
}

/* Reserve space without causing CLS */
main {
  display: block;
  width: 100%;
}

section {
  display: block;
  width: 100%;
}
/* -------------------------------------------
   RESET & BASE
   ------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: auto;
  line-height: 1.5;
  background-color: #ffffff;
  color: #002D03;
  scroll-behavior: smooth;
}

/* container utility */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* section spacing */
section {
  padding: 1rem 0;
  border-bottom: 1px solid lightgreen;
}
section:last-of-type {
  border-bottom: none;
}

/* typography */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: #002D03; font-size: 17px; }
.text-center { text-align: center; }
.myh2 { text-align: left; }

/* Fix for sticky navbar covering anchor targets */
html {
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 120px;
  }
}

/* -------------------------------------------
   FIX FOR LAYOUT SHIFTS (CLS)
   ------------------------------------------- */
/* Reserve space for all images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  background-color: #f5f5f5;
}

/* Fixed aspect ratios for specific images */
.image-row img {
  aspect-ratio: 249 / 333;
  object-fit: cover;
  border-radius: 1rem;
  background: #f3f4f6;
}

.logo img {
  width: auto;
  height: 60px;
  display: block;
}

#home img {
  aspect-ratio: 1149 / 395;
  width: 100%;
  height: auto;
  display: block;
}

/* Prevent text shifting */
.myh2, h2, p {
  max-width: 100%;
  word-break: break-word;
}

/* -------------------------------------------
   NAVBAR
   ------------------------------------------- */
.navbar {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #f0f0f0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #2563eb;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }
  .logo {
    justify-content: center;
    width: 100%;
  }
  .logo img {
    height: 50px;
  }
  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
  }
  .nav-links a {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 45px;
  }
  .nav-links a {
    font-size: 0.85rem;
  }
}

/* -------------------------------------------
   BANNER
   ------------------------------------------- */
.banner {
  background-image: url('https://placehold.co/1149x395/eef2ff/3b82f6?text=Banner+Image+1149x395');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
  aspect-ratio: 1149 / 395;
  width: 100%;
  display: block;
  border-bottom: none;
}

.banner::before,
.banner .container,
.banner h1,
.banner p,
.banner .btn {
  display: none;
}

/* -------------------------------------------
   SERVICES CARDS
   ------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.card {
  background: #f9fafb;
  padding: 1.8rem;
  border-radius: 1.5rem;
  text-align: center;
  transition: transform 0.1s ease;
}

.card h3 { font-size: 1.4rem; }

/* -------------------------------------------
   50/50 SPLIT SECTION
   ------------------------------------------- */
.split-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.split-text, .split-image {
  flex: 1 1 45%;
}

.split-image img {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* -------------------------------------------
   IMAGE ROWS
   ------------------------------------------- */
.image-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin: 2rem 0;
}

.image-row img {
  width: 100%;
  aspect-ratio: 249 / 333;
  object-fit: cover;
  border-radius: 1rem;
  background: #f3f4f6;
  display: block;
}

/* -------------------------------------------
   TESTIMONIALS
   ------------------------------------------- */
.testimonials-section {
  background: #F9FDF7;
  padding: 2rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 45, 3, 0.08);
  border: 1px solid #d0e8c5;
  transition: transform 0.2s ease;
  text-align: center;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem auto;
  display: block;
  border: 3px solid #2E7D32;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.testimonial-text {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #1a3a1a;
}

.testimonial-author {
  font-weight: 700;
  color: #2E7D32;
  margin-bottom: 0.25rem;
}

.testimonial-location {
  font-size: 0.8rem;
  color: #6b7280;
}

.testimonial-stars {
  color: #f5b042;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

/* -------------------------------------------
   GREEN CTA SECTION
   ------------------------------------------- */
.cta-green-section {
  background: linear-gradient(135deg, #0B3D0B 0%, #1B5E20 100%);
  padding: 4rem 2rem;
  border-radius: 2rem;
  margin: 2rem 0;
  text-align: center;
  color: white;
}

.cta-green-section h2 {
  color: white;
  border-left: none;
  text-align: center;
  margin-bottom: 1rem;
}

.cta-green-section p {
  color: #D0E8C0;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
}

.cta-green-btn {
  display: inline-block;
  background: white;
  color: #1B5E20;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta-green-btn:hover {
  background: #FFD966;
  color: #0B3D0B;
  transform: scale(1.02);
}

/* -------------------------------------------
   CONTACT SECTION
   ------------------------------------------- */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-map {
  flex: 1;
  min-width: 250px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border-radius: 1rem;
  border: 0;
  display: block;
}

.contact-details {
  flex: 1;
  min-width: 250px;
  background: #f9fafb;
  padding: 2rem;
  border-radius: 1rem;
}

.contact-details h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #111827;
}

.contact-info-list {
  list-style: none;
  padding: 0;
}

.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.contact-info-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: #eef2ff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 0.75rem;
  color: #6b7280;
  display: block;
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }
  .contact-details {
    padding: 1.5rem;
  }
}

/* -------------------------------------------
   FLOATING BUTTONS
   ------------------------------------------- */
.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.floating-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  position: relative;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.btn-tooltip {
  position: absolute;
  right: 65px;
  background: #1a1a1a;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s;
}

.floating-btn:hover .btn-tooltip {
  opacity: 1;
  visibility: visible;
}

.whatsapp-btn { background: #25D366; }
.call-btn { background: #1B5E20; }

@media (max-width: 768px) {
  .floating-buttons { right: 15px; bottom: 80px; gap: 12px; }
  .floating-btn { width: 48px; height: 48px; }
}

/* -------------------------------------------
   AREAS SECTION
   ------------------------------------------- */
.areas-section {
  background: linear-gradient(135deg, #f0f5ea 0%, #e8f0e0 100%);
  padding: 3rem 0;
  margin: 2rem 0;
  border-radius: 1.5rem;
}

.areas-buttons-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.area-btn {
  background: white;
  border: 2px solid #1B5E20;
  color: #1B5E20;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.area-btn:hover {
  background: #1B5E20;
  color: white;
  transform: translateY(-3px);
}

/* -------------------------------------------
   IMPORTANT SECTION
   ------------------------------------------- */
.important-section {
  background: #0B3D0B;
  padding: 3rem 0;
  margin: 1rem 0;
}

.important-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
}

.important-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
  margin-top: 1rem;
}

.important-card {
  background: rgba(255,255,255,0.95);
  border-radius: 1.2rem;
  padding: 1.8rem;
  border-left: 5px solid #228B22;
}

.card-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.important-card h3 { font-size: 1.25rem; color: #1a5c1a; margin-bottom: 0.8rem; }

/* -------------------------------------------
   FOOTER & DISCLAIMER
   ------------------------------------------- */
.disclaimer {
  background: #fefce8;
  font-size: 0.85rem;
  color: #713f12;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  text-align: center;
}

.footer-blocks {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-block {
  flex: 1 1 200px;
}

.footer-block h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.footer-block p, .footer-block a {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.4rem;
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.8rem;
  color: #6b7280;
}

/* -------------------------------------------
   RESPONSIVE
   ------------------------------------------- */
@media (max-width: 800px) {
  .image-row { grid-template-columns: repeat(2, 1fr); }
  .split-section { flex-direction: column; }
  section { padding: 3rem 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

@media (max-width: 500px) {
  .image-row { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; flex-wrap: wrap; justify-content: center; }
}