:root {
  --primary: #0d7a4f;
  --primary-dark: #07553a;
  --secondary: #19362b;
  --accent: #f7efe0;
  --gold: #c99a2c;
  --text: #14221b;
  --muted: #5f6d66;
  --surface: #ffffff;
  --surface-alt: #f7fbf8;
  --border: rgba(13, 122, 79, 0.14);
  --shadow: 0 20px 45px rgba(12, 43, 31, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Cairo', 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fff7 0%, #f3fbf7 100%);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* ===== PAGE LOADER ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 9999;
  transition: opacity 0.4s ease;
}
body.loaded .page-loader { opacity: 0; pointer-events: none; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 5vw;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.45);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled { padding: 12px 5vw; box-shadow: 0 8px 22px rgba(10, 32, 23, 0.12); }

/* ===== BRAND ===== */
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand strong { display: block; font-size: 1rem; }
.brand small { color: var(--muted); display: block; font-size: 0.78rem; }
.brand-mark {
  width: 52px; height: 52px; object-fit: contain; border-radius: 14px;
}

/* ===== NAV ===== */
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: var(--secondary); font-weight: 600; transition: color 0.2s ease; }
.site-nav a:hover { color: var(--primary); }

/* ===== HEADER ACTIONS ===== */
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.lang-switch button {
  border: 0; background: transparent; padding: 8px 12px; border-radius: 999px; color: var(--muted);
}
.lang-switch button.active { background: var(--primary); color: white; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 800; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 16px 30px rgba(15, 139, 87, 0.22); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #25b06e); color: white; box-shadow: 0 16px 30px rgba(15, 139, 87, 0.24); }
.btn-secondary { background: linear-gradient(135deg, #ffffff, #f3f8f4); color: var(--secondary); border: 1px solid var(--border); }
.btn-xl { padding: 16px 28px; font-size: 1.05rem; }
.icon-badge { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.16); }
.icon-badge svg, .fab svg { width: 20px; height: 20px; fill: currentColor; }
.icon-wa { background: rgba(255,255,255,0.2); }

/* ===== SECTIONS ===== */
.section { padding: 96px 5vw; }
.eyebrow {
  display: inline-block; padding: 8px 12px; border-radius: 999px; background: var(--accent); color: var(--primary-dark); font-weight: 700; font-size: 0.85rem; margin-bottom: 10px;
}
.section-title { max-width: 720px; margin-bottom: 34px; }
.section-title h2 { font-size: clamp(1.7rem, 2.4vw, 2.4rem); margin: 6px 0; }
.section-title p { color: var(--muted); }

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 140px 5vw 100px;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 25, 18, 0.84) 0%, rgba(13, 122, 79, 0.55) 50%, rgba(10, 25, 18, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  text-align: center;
  color: white;
}

.hero-content .eyebrow {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.2;
  margin: 16px 0 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.hero-content .hero-description {
  font-size: 1.12rem;
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  margin: 30px auto 26px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-action {
  min-width: 190px;
  padding: 16px 24px;
  animation: floatCta 2.8s ease-in-out infinite;
}

.hero-content .btn-secondary {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: white;
  backdrop-filter: blur(8px);
}
.hero-content .btn-secondary:hover {
  background: rgba(255,255,255,0.22);
}

.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.trust-badges > div {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px 14px;
  border-radius: 999px;
  color: white;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

@keyframes floatCta {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ===== GRIDS ===== */
.about-grid, .services-grid, .features-grid, .areas-grid, .reviews-grid { display: grid; gap: 22px; }
.about-grid { grid-template-columns: repeat(4, 1fr); }
.about-card, .review-card, .area-card, .service-card, .contact-card { background: rgba(255,255,255,0.9); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.about-card, .review-card, .area-card { padding: 24px; }

/* ===== ABOUT SECTION ===== */
.about {
  position: relative;
  background:
    linear-gradient(180deg, rgba(249, 255, 247, 0.92) 0%, rgba(243, 251, 247, 0.95) 100%),
    url('ac_service_near_me_hero_section_images/image_4.png') center/cover no-repeat;
}

/* ===== SERVICES ===== */
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service-card { overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; height: 100%; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px rgba(12, 43, 31, 0.16); }
.service-card img { height: 220px; object-fit: cover; width: 100%; }
.service-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.service-content h3 { margin-top: 0; margin-bottom: 8px; font-size: 1.25rem; font-weight: 700; color: var(--secondary); }
.service-content p { color: var(--muted); margin-bottom: 16px; font-size: 0.95rem; line-height: 1.6; }
.service-actions { display: flex; gap: 12px; margin-top: auto; }
.service-actions .btn {
  flex: 1;
  height: 48px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all 0.2s ease;
}
.service-actions .btn-primary {
  background: linear-gradient(135deg, var(--primary), #25b06e);
  color: white;
  box-shadow: 0 8px 20px rgba(13, 122, 79, 0.15);
}
.service-actions .btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #1ebd5b);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(13, 122, 79, 0.24);
}
.service-actions .btn-secondary {
  background: linear-gradient(135deg, #25d366, #1ebd5b);
  color: white;
  border: 0;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.15);
}
.service-actions .btn-secondary:hover {
  background: linear-gradient(135deg, #20ba5a, #19a44e);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.24);
}
.btn-svg-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}

/* ===== WHY US SECTION ===== */
.why-us {
  position: relative;
  background:
    linear-gradient(180deg, rgba(249, 255, 247, 0.9) 0%, rgba(237, 248, 242, 0.93) 100%),
    url('ac_service_near_me_hero_section_images/image_5.png') center/cover no-repeat;
}

.features-grid { grid-template-columns: repeat(4, 1fr); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.timeline-step { padding: 24px; background: white; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.timeline-number { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #25b06e); color: white; display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }
.areas-grid { grid-template-columns: repeat(3, 1fr); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item { border-radius: 18px; height: 220px; object-fit: cover; cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.gallery-item:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow); }

/* ===== STATS ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card { padding: 28px; text-align: center; background: linear-gradient(135deg, var(--secondary), #1d4d37); color: white; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-card strong { display: block; font-size: 2rem; }

/* ===== REVIEWS (MARQUEE CAROUSEL) ===== */
.stars { color: #ffb703; font-size: 1.2rem; margin-bottom: 8px; }
.review-marquee-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 24px 0;
  margin-top: 24px;
  direction: ltr !important; /* Force LTR for layout stability and seamless leftwards translation in both Arabic and English */
}

/* ===== PHONE NUMBER FORMATTING FOR RTL ===== */
.phone-number {
  direction: ltr !important;
  display: inline-block;
}
.review-marquee-container::before,
.review-marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.review-marquee-container::before {
  left: 0;
  background: linear-gradient(90deg, #f7fbf8 0%, rgba(247, 251, 248, 0) 100%);
}
.review-marquee-container::after {
  right: 0;
  background: linear-gradient(-90deg, #f7fbf8 0%, rgba(247, 251, 248, 0) 100%);
}
.review-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  direction: ltr; /* Force LTR for layout stability and scrolling consistency across both languages */
  animation: marquee-scroll 45s linear infinite;
  will-change: transform;
}
.review-marquee-track:hover {
  animation-play-state: paused;
}
.review-marquee-track .review-card {
  width: 320px;
  flex-shrink: 0;
  padding: 24px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(12, 43, 31, 0.04);
  border: 1px solid var(--border);
  margin: 0;
  text-align: right; /* Ensure text remains right-aligned/correct direction for Arabic inside track */
}
/* Force correct alignment based on active language or text direction */
[dir="rtl"] .review-marquee-track .review-card {
  text-align: right;
}
[dir="ltr"] .review-marquee-track .review-card {
  text-align: left;
}
.review-marquee-track .review-card h3 {
  font-size: 1.05rem;
  margin: 8px 0 4px;
  color: var(--secondary);
  font-weight: 700;
}
.review-marquee-track .review-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
@keyframes marquee-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ===== FAQ ===== */
.faq-list { max-width: 860px; display: grid; gap: 14px; }
.faq-item { padding: 18px 22px; border-radius: 18px; background: white; border: 1px solid var(--border); box-shadow: 0 10px 24px rgba(0,0,0,0.05); }
.faq-item summary { font-weight: 700; cursor: pointer; }
.faq-item p { color: var(--muted); margin-bottom: 0; }

/* ===== CONTACT SECTION ===== */
.contact {
  position: relative;
  background:
    linear-gradient(180deg, rgba(249, 255, 247, 0.91) 0%, rgba(240, 250, 245, 0.94) 100%),
    url('ac_service_near_me_hero_section_images/image_6.png') center/cover no-repeat;
}

.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 30px; }
.contact-details { display: grid; gap: 12px; margin-top: 18px; }
.contact-details a, .contact-details p { display: flex; align-items: center; gap: 10px; color: var(--secondary); font-weight: 600; margin: 4px 0; }
.contact-details a svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: var(--primary);
}
.map-frame iframe { width: 100%; min-height: 320px; border: 0; border-radius: 18px; }

/* ===== FOOTER ===== */
.site-footer { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding: 24px 5vw 40px; background: #0f1e18; color: rgba(255,255,255,0.88); }
.site-footer .brand small { color: rgba(255,255,255,0.55); }
.footer-links, .footer-contact { display: grid; gap: 8px; }

/* ===== FLOATING BUTTONS ===== */
.floating-buttons {
  position: fixed;
  right: 18px;
  bottom: 90px;
  display: grid;
  gap: 12px;
  z-index: 900;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.floating-buttons.hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
.fab {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem;
  background: linear-gradient(135deg, var(--primary), #34d27b); color: white;
  box-shadow: 0 18px 32px rgba(15, 139, 87, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fabPulse 2.5s ease-in-out infinite;
}
.fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 22px 38px rgba(15, 139, 87, 0.32); animation-play-state: paused; }
.fab-wa { background: linear-gradient(135deg, #25d366, #128c7e); }

@keyframes fabPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 18px 32px rgba(15, 139, 87, 0.24); }
  50% { transform: scale(1.08); box-shadow: 0 22px 40px rgba(15, 139, 87, 0.38); }
}

/* ===== MOBILE MENU FAB (Fixed floating hamburger below header) ===== */
.mobile-menu-fab {
  display: none; /* shown only on mobile via media query */
  position: fixed;
  top: 76px; /* just below header */
  inset-inline-start: 16px; /* left side in RTL or LTR layouts */
  z-index: 1050;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(10, 32, 23, 0.12);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  outline: none;
  transition: box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.mobile-menu-fab .mob-fab-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
  position: relative;
  z-index: 1;
}
.mobile-menu-fab .hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--secondary);
  border-radius: 99px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: 1px 1px;
  display: block;
}
.mobile-menu-fab.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(2px, 1px);
  background: var(--primary);
}
.mobile-menu-fab.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-fab.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(0px, -2px);
  background: var(--primary);
}
/* Ripple attention animation */
.mob-fab-ripple {
  display: none;
}
@keyframes mobFabRipple {
  0% { box-shadow: 0 0 0 0 rgba(13, 122, 79, 0.35); }
  60% { box-shadow: 0 0 0 10px rgba(13, 122, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 122, 79, 0); }
}

/* ===== MOBILE NAV OVERLAY ===== */
.mobile-nav-overlay {
  display: none; /* toggled to flex via .active */
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 100%;
  z-index: 1040;
  background: rgba(10, 25, 18, 0.55);
  backdrop-filter: blur(6px);
  align-items: flex-start;
  justify-content: flex-start;
  padding: 120px 20px 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav-overlay.active {
  display: flex;
  opacity: 1;
}
.mobile-nav-card {
  background: white;
  border-radius: 20px;
  padding: 12px 8px;
  box-shadow: 0 24px 60px rgba(10, 32, 23, 0.18);
  display: flex;
  flex-direction: column;
  min-width: 200px;
  gap: 2px;
  animation: navSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes navSlideDown {
  from { transform: translateY(-12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.mobile-nav-link {
  display: block;
  padding: 12px 20px;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--secondary);
  border-radius: 12px;
  transition: background 0.18s ease, color 0.18s ease;
}
.mobile-nav-link:hover, .mobile-nav-link:active {
  background: rgba(13, 122, 79, 0.07);
  color: var(--primary);
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(10, 32, 23, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
}
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  box-shadow: 0 12px 30px rgba(13, 122, 79, 0.2);
  background: white;
}
.scroll-top-btn svg {
  width: 22px;
  height: 22px;
  fill: var(--primary);
}



/* ===== WA POPUP (CLEAN SIMULATED CHAT WIDGET) ===== */
.wa-popup {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 18, 0.72);
  display: none;
  place-items: center;
  z-index: 1100;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.wa-popup.active {
  display: grid;
}
.wa-popup-card {
  position: relative;
  width: min(390px, 100%);
  background: #f4f7f5;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(8, 29, 20, 0.25);
  display: flex;
  flex-direction: column;
}
.wa-popup-header {
  background: #0d7a4f; /* Matches brand primary green */
  color: white;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wa-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wa-header-info .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  padding: 4px;
  object-fit: contain;
}
.wa-user-status h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.wa-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
}
.wa-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25d366;
  animation: waDotPulse 1.8s infinite;
}
@keyframes waDotPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}
.popup-close {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.8rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
  top: -2px;
}
.popup-close:hover {
  color: white;
}
.wa-popup-body {
  padding: 20px 16px;
  background-color: #e5ddd5; /* Iconic WhatsApp beige wallpaper color */
  background-image: radial-gradient(rgba(0,0,0,0.06) 1px, transparent 0);
  background-size: 16px 16px;
  min-height: 140px;
  display: flex;
  align-items: flex-start;
}
.wa-chat-bubble {
  position: relative;
  background: white;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  max-width: 90%;
}
/* Triangle bubble tail */
.wa-chat-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border: 8px solid transparent;
}
[dir="rtl"] .wa-chat-bubble {
  margin-right: 8px;
  border-top-right-radius: 0;
}
[dir="rtl"] .wa-chat-bubble::before {
  right: -8px;
  border-top-color: white;
  border-left-color: white;
}
[dir="ltr"] .wa-chat-bubble {
  margin-left: 8px;
  border-top-left-radius: 0;
}
[dir="ltr"] .wa-chat-bubble::before {
  left: -8px;
  border-top-color: white;
  border-right-color: white;
}
.wa-bubble-sender {
  font-size: 0.78rem;
  font-weight: 700;
  color: #128c7e;
  margin-bottom: 4px;
  display: block;
}
.wa-chat-bubble .popup-message {
  font-size: 0.92rem;
  color: var(--secondary);
  margin: 0;
  line-height: 1.5;
}
.wa-bubble-time {
  display: block;
  text-align: end;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 4px;
}
.wa-popup-footer {
  padding: 16px;
  background: white;
  display: flex;
  justify-content: center;
}
.popup-wa-btn {
  width: 100%;
  height: 50px;
  background: #25d366;
  color: white;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.25);
  transition: all 0.2s ease;
  text-decoration: none;
}
.popup-wa-btn:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
  color: white;
}
.popup-wa-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ===== LIGHTBOX ===== */
.lightbox { position: fixed; inset: 0; background: rgba(2,8,6,0.86); display: none; place-items: center; z-index: 1200; padding: 24px; }
.lightbox.active { display: grid; }
.lightbox img { max-width: min(920px, 100%); max-height: 84vh; border-radius: 18px; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: white; font-size: 1.3rem; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Respect user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.visible {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ===== FEATURE CARDS REDESIGN ===== */
.features-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 28px 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(12, 43, 31, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #25b06e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(13, 122, 79, 0.08);
  border-color: rgba(13, 122, 79, 0.25);
}
.feature-card:hover::before {
  transform: scaleX(1);
}
.feature-icon-container {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(13, 122, 79, 0.06);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover .feature-icon-container {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}
.feature-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 0;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ===== HAMBURGER MENU TOGGLE ===== */
.menu-toggle {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 1001;
  outline: none;
  align-self: center;
}
.hamburger-line {
  width: 100%;
  height: 2.2px;
  background-color: var(--secondary);
  border-radius: 99px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: 1px 1px;
}
.menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(2px, 1px);
  background-color: var(--primary);
}
.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(0px, -2px);
  background-color: var(--primary);
}

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .fab,
  .mobile-bottom-bar a,
  .hero-action {
    animation: none !important;
  }
  .hero-slide {
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
}

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 1100px) {
  .about-grid, .services-grid, .features-grid, .timeline, .gallery-grid, .stats, .review-marquee-container { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
}

/* ===== RESPONSIVE: MOBILE (MOBILE-FIRST OPTIMIZED) ===== */
@media (max-width: 760px) {
  .section {
    padding: 48px 16px;
  }
  .site-header {
    padding: 10px 16px;
    flex-wrap: nowrap; /* Keep brand, switcher, and hamburger on a single row */
    gap: 10px;
    justify-content: space-between;
  }
  
  /* Show mobile menu button on mobile */
  .mobile-menu-fab {
    display: flex;
  }


  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(10, 32, 23, 0.08);
    padding: 16px;
    flex-direction: column;
    gap: 14px;
    z-index: 999;
    text-align: center;
  }
  .site-nav.active {
    display: flex;
  }
  .site-nav a {
    font-size: 1.02rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(13, 122, 79, 0.04);
    width: 100%;
  }
  .site-nav a:last-child {
    border-bottom: 0;
  }
  
  .header-call { display: none; }
  
  .brand {
    flex-shrink: 1;
    min-width: 0;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .brand strong {
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 125px; /* Ensures name fits next to switcher and hamburger */
  }
  .brand small {
    display: none !important; /* Hide tagline on mobile to fit elements next to logo */
  }
  
  .header-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .lang-switch {
    padding: 2px;
  }
  .lang-switch button {
    padding: 4px 8px;
    font-size: 0.76rem;
  }

  /* Compact trust badges for mobile screens */
  .trust-badges {
    gap: 6px !important;
    margin-top: 18px;
  }
  .trust-badges > div {
    padding: 6px 10px !important;
    font-size: 0.76rem !important;
    font-weight: 500 !important;
  }

  .hero {
    min-height: calc(100vh - 62px);
    padding: 80px 16px 60px;
    display: flex;
    align-items: center;
  }
  .hero-content h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin: 12px 0;
  }
  .hero-content .hero-description {
    font-size: 0.98rem;
    line-height: 1.6;
  }
  .hero-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-top: 24px;
  }
  .hero-action {
    width: 100%;
    min-height: 52px;
    font-size: 1.05rem;
    margin: 0;
  }

  .about-grid, .services-grid, .features-grid, .timeline, .gallery-grid, .stats, .areas-grid, .reviews-grid, .review-strip {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .about-card, .review-card, .area-card {
    padding: 18px;
    border-radius: 20px;
  }
  .feature-card {
    padding: 22px 18px;
    border-radius: 20px;
  }
  .service-card img {
    height: 200px;
  }
  .service-content {
    padding: 16px;
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-card {
    padding: 18px 12px;
    border-radius: 16px;
  }
  .stat-card strong {
    font-size: 1.6rem;
  }
  .stat-card span {
    font-size: 0.82rem;
  }

  .review-marquee-container {
    padding: 12px 0;
  }
  .review-marquee-container::before, .review-marquee-container::after {
    width: 40px;
  }
  .review-marquee-track {
    gap: 12px;
    animation-duration: 35s; /* Slightly faster on small screens for dynamic feel */
  }
  .review-marquee-track .review-card {
    width: 280px;
    padding: 16px;
    border-radius: 16px;
  }
  .review-marquee-track .review-card p {
    font-size: 0.88rem;
  }

  .contact-card {
    padding: 16px;
    border-radius: 20px;
  }
  .map-frame iframe {
    min-height: 240px;
  }

  .mobile-bottom-bar {
    display: none !important;
  }
  .floating-buttons {
    display: grid !important;
    bottom: 20px !important;
    right: 16px !important;
  }
  
  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 16px 40px; /* Reduced bottom padding since bottom bar is removed */
    gap: 24px;
  }
  .footer-links, .footer-contact {
    text-align: center;
    align-items: center;
    justify-content: center;
  }
}
