/* ==========================================================================
   Greenex Landscape & Pools — Global Stylesheet
   Plain CSS, mobile-first. Tokens per .claude/rules/design-system.md
   ========================================================================== */

/* Premium typography — self-hosted Poppins (headings) + Inter (body).
   Inlined from fonts.css to avoid an @import request chain (faster first paint). */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('../assets/fonts/inter-400.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/inter-500.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('../assets/fonts/inter-600.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('../assets/fonts/inter-700.woff2') format('woff2');}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/poppins-500.woff2') format('woff2');}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url('../assets/fonts/poppins-600.woff2') format('woff2');}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url('../assets/fonts/poppins-700.woff2') format('woff2');}
@font-face{font-family:'Poppins';font-style:normal;font-weight:800;font-display:swap;src:url('../assets/fonts/poppins-800.woff2') format('woff2');}

/* ----- 1. Design tokens ------------------------------------------------- */
:root {
  /* Brand */
  --color-green-900: #1f3d2b;
  --color-green-700: #2e7d4f;
  --color-green-500: #43a047;
  --color-pool-700:  #0277bd;
  --color-pool-500:  #29b6d8;

  /* Neutrals */
  --color-ink:      #1a1f1c;
  --color-muted:    #5c6660;
  --color-line:     #e3e8e4;
  --color-bg:       #ffffff;
  --color-bg-soft:  #f5f8f5;
  --color-bg-dark:  #16271d;

  /* Roles */
  --color-cta:       var(--color-green-700);
  --color-cta-hover: var(--color-green-900);
  --color-whatsapp:  #25d366;

  /* Typography (system stack now; self-host Poppins/Inter later — TODO) */
  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Spacing scale */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

  /* Radius & shadow */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.12);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 5vw, 48px);
  --header-h: 72px;

  --transition: 200ms ease;
}

/* ----- 2. Reset & base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--color-green-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-green-900); }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--color-green-900); font-weight: 700; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { color: var(--color-ink); }

:focus-visible { outline: 3px solid var(--color-pool-500); outline-offset: 2px; border-radius: 4px; }

/* ----- 3. Layout helpers ------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--soft { background: var(--color-bg-soft); }
.section--dark { background: var(--color-bg-dark); color: #e8efe9; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #c4d2c8; }

.text-center { text-align: center; }
.muted { color: var(--color-muted); }
.grid { display: grid; gap: var(--space-5); }
.flow > * + * { margin-top: var(--space-4); }

/* Section heading block */
.section-head { max-width: 720px; margin-bottom: var(--space-7); }
.section-head.text-center { margin-inline: auto; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-green-700); margin-bottom: var(--space-2);
}
.section-head p { color: var(--color-muted); margin-top: var(--space-3); font-size: 1.05rem; }

/* ----- 4. Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6);
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  color: #fff; background: var(--color-cta);
  border-radius: var(--radius-md); transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover { background: var(--color-cta-hover); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--color-green-700); box-shadow: inset 0 0 0 2px var(--color-green-700); }
.btn--outline:hover { background: var(--color-green-700); color: #fff; box-shadow: inset 0 0 0 2px var(--color-green-700); }
.btn--pool { background: var(--color-pool-700); }
.btn--pool:hover { background: #015d92; }
.btn--whatsapp { background: var(--color-whatsapp); }
.btn--whatsapp:hover { background: #1da851; }
.btn--lg { min-height: 56px; padding: 0 var(--space-7); font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ----- 5. Header / Nav -------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-head); font-weight: 700; color: var(--color-green-900); font-size: 1.15rem; }
.brand:hover { color: var(--color-green-900); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { line-height: 1.05; }
.brand__name small { display: block; font-size: .62rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--color-pool-700); }

.nav__links { display: flex; align-items: center; gap: var(--space-2); }
.nav__links a { display: inline-flex; align-items: center; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); color: var(--color-ink); font-weight: 500; font-size: .95rem; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--color-green-700); background: var(--color-bg-soft); }

/* Dropdown (Services) */
.has-dropdown { position: relative; }
.dropdown__toggle { display: inline-flex; align-items: center; gap: 4px; }
.dropdown__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: var(--space-2);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--transition);
}
.has-dropdown:hover .dropdown__menu,
.has-dropdown:focus-within .dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__menu a { display: block; width: 100%; }

.nav__cta { display: flex; align-items: center; gap: var(--space-3); }
.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--color-green-900); border-radius: 2px; transition: var(--transition);
}
.nav__toggle span::before { transform: translateY(-7px); }
.nav__toggle span::after { transform: translateY(5px); }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: rotate(-45deg) translateY(-1px); }

/* Mobile nav */
@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: var(--header-h) 0 0 auto; width: min(86vw, 360px);
    background: #fff; border-left: 1px solid var(--color-line); box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-4);
    transform: translateX(100%); transition: transform var(--transition); overflow-y: auto;
  }
  .nav.is-open .nav__menu { transform: translateX(0); }
  .nav__links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__links a { padding: var(--space-3); font-size: 1.05rem; }
  .dropdown__menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--color-line); border-radius: 0; margin-left: var(--space-3); padding-block: 0;
  }
  .nav__cta { flex-direction: column; align-items: stretch; margin-top: var(--space-4); }
  .nav__menu { display: flex; }
}
@media (min-width: 961px) { .nav__menu { display: flex; align-items: center; gap: var(--space-5); } }

/* Backdrop for open mobile nav */
.nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: var(--transition); z-index: 90; }
.nav-backdrop.is-visible { opacity: 1; visibility: visible; }

/* ----- 6. Hero ---------------------------------------------------------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--color-green-900) 0%, var(--color-green-700) 55%, var(--color-pool-700) 100%);
}
.hero::after { /* subtle texture */
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: radial-gradient(circle at 20% 30%, #fff 0, transparent 40%), radial-gradient(circle at 80% 70%, #fff 0, transparent 35%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; padding-block: clamp(64px, 12vw, 128px); max-width: 760px; }
.hero h1 { color: #fff; }
.hero p { color: #e3efe7; font-size: 1.15rem; margin-top: var(--space-4); max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* Inner-page banner */
.page-hero { background: linear-gradient(135deg, var(--color-green-900), var(--color-green-700)); color: #fff; }
.page-hero__inner { padding-block: clamp(40px, 7vw, 72px); }
.page-hero h1 { color: #fff; }
.page-hero p { color: #d8e7dd; margin-top: var(--space-2); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: .85rem; color: #bcd2c4; margin-bottom: var(--space-3); }
.breadcrumbs a { color: #d8e7dd; }
.breadcrumbs a:hover { color: #fff; }

/* ----- 7. Cards & grids ------------------------------------------------- */
.cards { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
/* "How we work" steps — force all 4 on one row (desktop), collapse responsively */
.cards--steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 920px) { .cards--steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .cards--steps { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-lg);
  padding: var(--space-6); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--color-bg-soft); color: var(--color-green-700); margin-bottom: var(--space-4); }
.card__icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--color-muted); }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-4); font-weight: 600; font-family: var(--font-head); }
.card__link::after { content: "→"; transition: transform var(--transition); }
.card__link:hover::after { transform: translateX(4px); }

/* Feature (why-choose-us) */
.feature { display: flex; gap: var(--space-4); }
.feature__icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--color-green-700); color: #fff; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--color-muted); font-size: .95rem; }

/* Stats */
.stats { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); color: var(--color-pool-500); line-height: 1; }
.stat__label { color: var(--color-muted); margin-top: var(--space-2); font-size: .95rem; }

/* Split / media + text */
.split { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse > :first-child { order: 2; } }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ----- 8. Testimonials -------------------------------------------------- */
.testimonials { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.quote__stars { color: #f5a623; margin-bottom: var(--space-3); letter-spacing: 2px; }
.quote p { font-style: italic; color: var(--color-ink); }
.quote__author { margin-top: var(--space-4); font-weight: 600; font-family: var(--font-head); color: var(--color-green-900); }

/* ----- 9. CTA band ------------------------------------------------------ */
.cta-band { background: linear-gradient(135deg, var(--color-pool-700), var(--color-green-700)); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e7f1ec; margin-top: var(--space-3); }
.cta-band .hero__actions { justify-content: center; }

/* ----- 10. Forms -------------------------------------------------------- */
.form { display: grid; gap: var(--space-4); }
.form__row { display: grid; gap: var(--space-4); }
@media (min-width: 620px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--space-2); }
.field label { font-weight: 600; font-size: .9rem; font-family: var(--font-head); }
.field input, .field textarea, .field select {
  width: 100%; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-line);
  border-radius: var(--radius-md); background: #fff; transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--color-green-500); box-shadow: 0 0 0 3px rgba(67,160,71,.15); }
.field textarea { min-height: 140px; resize: vertical; }

/* ----- 11. Gallery + lightbox ------------------------------------------ */
.gallery { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gallery__item { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.gallery__item--video { cursor: default; }

.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: rgba(0,0,0,.9); padding: var(--space-5); }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius-sm); }
.lightbox__close, .lightbox__nav { position: absolute; color: #fff; font-size: 2rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); }
.lightbox__close { top: var(--space-4); right: var(--space-4); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: var(--space-4); }
.lightbox__nav--next { right: var(--space-4); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.25); }

/* Filter chips */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-bottom: var(--space-6); }
.filters button { padding: var(--space-2) var(--space-4); border-radius: 999px; border: 1px solid var(--color-line); font-weight: 500; color: var(--color-muted); transition: var(--transition); }
.filters button.is-active, .filters button:hover { background: var(--color-green-700); color: #fff; border-color: var(--color-green-700); }

/* ----- 12. Footer ------------------------------------------------------- */
.site-footer { background: var(--color-bg-dark); color: #b9c7bd; padding-block: var(--space-8) var(--space-5); }
.footer__grid { display: grid; gap: var(--space-7); grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h4 { color: #fff; margin-bottom: var(--space-4); font-size: 1rem; }
.site-footer a { color: #b9c7bd; }
.site-footer a:hover { color: #fff; }
.footer__links li + li { margin-top: var(--space-2); }
.footer__contact li { display: flex; gap: var(--space-3); margin-bottom: var(--space-3); }
.footer__contact svg { width: 20px; height: 20px; flex: none; color: var(--color-pool-500); }
.footer__brand p { color: #98a89c; margin-top: var(--space-3); font-size: .95rem; }
.footer__social { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.footer__social a:hover { background: var(--color-green-700); }
.footer__social svg { width: 20px; height: 20px; }
.footer__bottom { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; font-size: .85rem; color: #b9c7bd; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: var(--space-4); }
/* copyright/credit text sits in a <p>; override the global dark p color so it's legible on the dark footer */
.footer__bottom p { color: #b9c7bd; margin: 0; }

/* ----- 13. Floating WhatsApp ------------------------------------------- */
.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 120;
  width: 58px; height: 58px; border-radius: 50%; background: var(--color-whatsapp);
  display: grid; place-items: center; box-shadow: var(--shadow-lg); color: #fff;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.whatsapp-float svg { width: 32px; height: 32px; }

/* ----- 14. Utilities ---------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Hidden off the TOP (not off the side) so it never creates horizontal
   scroll — left:-999px counts as overflow under RTL. Logical inset keeps it
   on the start edge (left in LTR, right in RTL). */
.skip-link { position: absolute; inset-inline-start: 0; top: 0; transform: translateY(-120%); background: var(--color-green-900); color: #fff; padding: var(--space-3) var(--space-4); z-index: 999; border-radius: 0 0 var(--radius-sm) 0; transition: transform .15s ease; }
.skip-link:focus { transform: translateY(0); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--color-bg-soft); color: var(--color-green-900); font-size: .9rem; font-weight: 500; }
.check-list li { display: flex; gap: var(--space-3); margin-bottom: var(--space-3); align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--color-green-500); margin-top: 2px; }

/* ==========================================================================
   15. PREMIUM HOMEPAGE REDESIGN (per design spec)
   ========================================================================== */
:root { --color-darkgreen: #0d3d2b; }

/* ----- Top utility bar ----- */
.topbar { background: var(--color-darkgreen); color: #fff; font-size: .875rem; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--color-pool-500); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 40px; flex-wrap: wrap; }
.topbar__group { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__item svg { width: 15px; height: 15px; }
.topbar__social { display: inline-flex; align-items: center; gap: var(--space-3); }
.topbar__social a { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.12); }
.topbar__social a:hover { background: var(--color-green-500); color: #fff; }
.topbar__social svg { width: 14px; height: 14px; }
@media (max-width: 720px) { .topbar__group--left { display: none; } .topbar__inner { justify-content: center; } }

/* ----- Photo hero ----- */
.hero-home { position: relative; min-height: clamp(560px, 90vh, 840px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-home__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); }
.hero-home::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,61,43,.92) 0%, rgba(13,61,43,.7) 45%, rgba(13,61,43,.25) 100%); z-index: 1; }
.hero-home__inner { position: relative; z-index: 2; max-width: 680px; padding-block: clamp(80px, 14vh, 160px); }
.hero-home .eyebrow { color: var(--color-green-500); }
.hero-home h1 { color: #fff; font-size: clamp(2.2rem, 1.5rem + 4vw, 4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; }
.hero-home h1 .accent { color: var(--color-green-500); }
.hero-home p { color: #e3efe7; font-size: 1.15rem; margin-top: var(--space-4); max-width: 56ch; }
.hero-home__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: var(--color-green-900); box-shadow: inset 0 0 0 2px #fff; }
.btn:hover { transform: translateY(-2px) scale(1.02); }

/* ----- Overlapping glass stats bar ----- */
.stats-bar { position: relative; z-index: 6; margin-top: clamp(-90px, -8vw, -56px); }
.stats-card { background: rgba(13,61,43,.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: #fff; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); padding: clamp(20px, 3vw, 36px); }
.stats-card .stat { text-align: center; padding: var(--space-2); }
.stats-card .stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }
.stats-card .stat__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--color-green-500); margin-bottom: var(--space-2); }
.stats-card .stat__icon svg { width: 24px; height: 24px; }
.stats-card .stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); color: #fff; line-height: 1; }
.stats-card .stat__label { color: #c4d2c8; font-size: .9rem; margin-top: 6px; }
@media (max-width: 760px) { .stats-card { grid-template-columns: repeat(2, 1fr); } .stats-card .stat:nth-child(odd) { border-left: 0; } .stats-card .stat:nth-child(3), .stats-card .stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,.12); padding-top: var(--space-4); } }

/* ----- Service cards (image + icon) ----- */
.svc-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.svc-card { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition); }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc-card:hover .svc-card__media img { transform: scale(1.08); }
.svc-card__icon { position: absolute; left: var(--space-4); bottom: -24px; width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--color-green-700); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); }
.svc-card__icon svg { width: 26px; height: 26px; }
.svc-card__body { padding: var(--space-6) var(--space-5) var(--space-5); display: flex; flex-direction: column; flex: 1; }
.svc-card__body h3 { margin-bottom: var(--space-2); font-size: 1.15rem; }
.svc-card__body p { color: var(--color-muted); font-size: .95rem; flex: 1; }
.svc-card .card__link { margin-top: var(--space-4); }

/* ----- Featured projects slider ----- */
.featured { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .featured { grid-template-columns: 0.85fr 1.15fr; } }
.pslider { position: relative; }
.pslider__viewport { overflow: hidden; border-radius: var(--radius-lg); }
.pslider__track { display: flex; transition: transform .5s ease; }
.pslider__slide { min-width: 100%; }
@media (min-width: 620px) { .pslider__slide { min-width: 50%; } }
.pslider__slide img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pslider__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-md); display: grid; place-items: center; color: var(--color-green-900); z-index: 3; }
.pslider__btn:hover { background: var(--color-green-700); color: #fff; }
.pslider__btn--prev { left: -12px; }
.pslider__btn--next { right: -12px; }
.pslider__btn svg { width: 22px; height: 22px; }

/* ----- Why choose (light gray + side image) ----- */
.why { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 920px) { .why { grid-template-columns: 1.1fr 0.9fr; } }
.why__grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(2, 1fr); }
@media (max-width: 520px) { .why__grid { grid-template-columns: 1fr; } }
.why__card { background: #fff; border-radius: var(--radius-md); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.why__icon { width: 54px; height: 54px; border-radius: 50%; background: var(--color-bg-soft); color: var(--color-green-700); display: grid; place-items: center; margin-bottom: var(--space-3); }
.why__icon svg { width: 28px; height: 28px; }
.why__card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.why__card p { color: var(--color-muted); font-size: .92rem; }
.why__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 3/4; max-height: 520px; }
.why__media img { width: 100%; height: 100%; object-fit: cover; }

/* ----- Reviews band ----- */
.reviews { background: var(--color-darkgreen); color: #fff; position: relative; overflow: hidden; }
.reviews::after { content: ""; position: absolute; inset: 0; opacity: .08; background-image: radial-gradient(circle at 15% 20%, #fff 0, transparent 35%), radial-gradient(circle at 85% 80%, #fff 0, transparent 30%); }
.reviews__inner { position: relative; z-index: 1; max-width: 760px; margin-inline: auto; text-align: center; }
.reviews h2 { color: #fff; }
.grating { display: inline-flex; align-items: center; gap: var(--space-3); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 10px 20px; margin-bottom: var(--space-6); }
.grating__g { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: .5px; }
.grating__g b:nth-child(1){color:#4285F4}.grating__g b:nth-child(2){color:#EA4335}.grating__g b:nth-child(3){color:#FBBC05}.grating__g b:nth-child(4){color:#4285F4}.grating__g b:nth-child(5){color:#34A853}.grating__g b:nth-child(6){color:#EA4335}
.grating__stars { color: #FBBC05; letter-spacing: 2px; }
.grating__score { font-weight: 700; }
.review-slide { display: none; }
.review-slide.is-active { display: block; animation: fadeUp .5s ease; }
.review-slide p { font-size: 1.25rem; font-style: italic; color: #eaf3ee; }
.review-slide .quote__author { color: #fff; margin-top: var(--space-4); }
.review-slide small { display: block; color: #9fb6a7; font-weight: 400; }
.reviews__nav { display: flex; gap: var(--space-3); justify-content: center; margin-top: var(--space-6); }
.reviews__nav button { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; }
.reviews__nav button:hover { background: var(--color-green-500); }
.reviews__nav svg { width: 22px; height: 22px; }

/* ----- Lead form section ----- */
.lead { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 900px) { .lead { grid-template-columns: 1fr 1fr; } }
.lead__features { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.lead__feature { display: flex; align-items: center; gap: var(--space-3); font-weight: 600; font-family: var(--font-head); }
.lead__feature span { width: 34px; height: 34px; border-radius: 50%; background: var(--color-green-700); color: #fff; display: grid; place-items: center; flex: none; }
.lead__feature svg { width: 18px; height: 18px; }
.lead__media { margin-top: var(--space-5); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16/7; }
.lead__media img { width: 100%; height: 100%; object-fit: cover; }
.lead__form { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(20px, 3vw, 36px); }

/* ----- Footer map ----- */
.footer__map { margin-top: var(--space-4); border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.footer__map iframe { display: block; width: 100%; height: 150px; border: 0; filter: grayscale(.3); }

/* ----- Scroll reveal animation ----- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"]{transition-delay:.08s}.reveal[data-delay="2"]{transition-delay:.16s}.reveal[data-delay="3"]{transition-delay:.24s}
@keyframes fadeUp { from { opacity:0; transform: translateY(16px);} to {opacity:1; transform:none;} }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .review-slide.is-active{animation:none} .hero-home__bg{transform:none} }

/* ==========================================================================
   16. PREMIUM POLISH (agency-grade overrides) — applies site-wide
   ========================================================================== */
:root {
  /* Refined neutrals for stronger contrast (WCAG AA) */
  --color-ink: #15201a;
  --color-muted: #51605a;       /* ~5.7:1 on white */
  --color-line: #e9eeea;
  /* Layered, softer premium shadows */
  --shadow-sm: 0 1px 2px rgba(16,40,28,.05), 0 3px 8px rgba(16,40,28,.05);
  --shadow-md: 0 10px 30px rgba(16,40,28,.09), 0 3px 10px rgba(16,40,28,.05);
  --shadow-lg: 0 28px 70px rgba(16,40,28,.16), 0 10px 28px rgba(16,40,28,.08);
  /* Slightly larger, more refined radii */
  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 22px;
  /* Luxury accent */
  --color-gold: #c8a24c;
}

body { letter-spacing: .005em; font-feature-settings: "kern","liga"; line-height: 1.7; }
h1, h2, h3, h4 { letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.5rem); }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { font-size: 1.08rem; line-height: 1.7; }

/* Eyebrow with luxury dash */
.eyebrow { letter-spacing: .2em; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--color-gold); display: inline-block; }
.section-head.text-center .eyebrow { justify-content: center; }

/* Premium buttons */
.btn { border-radius: 10px; font-weight: 600; letter-spacing: .02em; min-height: 50px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.btn:not(.btn--outline):not(.btn--ghost):not(.btn--whatsapp):not(.btn--pool) { background: linear-gradient(135deg, var(--color-green-700), var(--color-green-900)); }
.btn:hover { box-shadow: var(--shadow-md); }
.btn--lg { min-height: 58px; }

/* Cards & surfaces */
.card, .svc-card, .quote, .why__card, .lead__form, .stats-card { border-color: var(--color-line); }
.card { border-radius: var(--radius-lg); }
.quote p { line-height: 1.7; }

/* Premium inner-page hero */
.page-hero { background: linear-gradient(120deg, #0b3424 0%, var(--color-green-900) 42%, var(--color-green-700) 100%); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; opacity: .12; background: radial-gradient(circle at 85% 15%, #fff 0, transparent 42%), radial-gradient(circle at 10% 90%, #fff 0, transparent 40%); pointer-events: none; }
.page-hero__inner { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 100px); }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.1rem); }

/* Sticky header gains depth on scroll */
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(16,40,28,.10); background: #fff; }

/* Stronger, more visible focus (WCAG 2.4.7) */
:focus-visible { outline: 3px solid var(--color-pool-500); outline-offset: 3px; border-radius: 5px; }

/* Image presentation */
.media-frame, .why__media, .pslider__viewport, .footer__map { box-shadow: var(--shadow-md); }
.gallery__item, .svc-card__media { box-shadow: var(--shadow-sm); }

/* Footer trust strip */
.footer__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4) var(--space-7); padding-bottom: var(--space-7); margin-bottom: var(--space-6); border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__trust span { display: inline-flex; align-items: center; gap: 8px; color: #d7e3da; font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.footer__trust svg { width: 20px; height: 20px; color: var(--color-green-500); }

/* Mobile sticky CTA bar (injected by JS) */
.mcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 118; display: none; gap: 1px; background: var(--color-line); box-shadow: 0 -6px 24px rgba(0,0,0,.14); }
.mcta a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 6px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; background: #fff; color: var(--color-green-900); }
.mcta a.mcta--wa { background: var(--color-whatsapp); color: #fff; }
.mcta a.mcta--quote { background: var(--color-green-700); color: #fff; }
.mcta svg { width: 19px; height: 19px; }
@media (max-width: 768px) {
  .mcta { display: flex; }
  body { padding-bottom: 54px; }
  /* Hide floating WhatsApp circle on mobile — the bottom bar already has WhatsApp */
  .whatsapp-float { display: none; }
  /* Shift hero background so the pool is visible on narrow screens */
  .hero-home__bg { background-position: 72% 62%; }
}

/* ==========================================================================
   17. PREMIUM v2 — agency-grade visual system (consultancy / SaaS feel)
   ========================================================================== */
:root {
  --color-green-900: #12311e;
  --color-green-700: #1f6b41;
  --color-green-500: #2f9e5f;
  --color-canvas: #f2f6f1;     /* warm off-white page canvas */
  --color-ink: #13211a;
  --color-muted: #59665e;
  --color-line: #e6ece6;
  --radius-sm: 10px; --radius-md: 16px; --radius-lg: 26px;
  --shadow-sm: 0 2px 6px rgba(19,50,31,.05), 0 10px 24px -14px rgba(19,50,31,.16);
  --shadow-md: 0 8px 20px -8px rgba(19,50,31,.10), 0 30px 56px -28px rgba(19,50,31,.26);
  --shadow-lg: 0 14px 34px -10px rgba(19,50,31,.16), 0 48px 90px -36px rgba(19,50,31,.34);
  --container: 1180px;
}

/* Canvas & rhythm — white cards float on a soft off-white page */
body { background: var(--color-canvas); font-size: 1.0625rem; line-height: 1.75; }
.section { padding-block: clamp(72px, 11vw, 138px); position: relative; }
.section--soft { background: #ffffff; }
.container { max-width: var(--container); }

/* Typography — confident hierarchy */
h1 { font-weight: 800; letter-spacing: -.03em; line-height: 1.04; }
h2 { font-weight: 700; letter-spacing: -.025em; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); line-height: 1.12; }
h3 { font-weight: 700; letter-spacing: -.015em; }
.section-head { max-width: 760px; }
.section-head.text-center { margin-inline: auto; }
.section-head p { font-size: 1.15rem; color: var(--color-muted); }
.eyebrow { font-size: .78rem; color: var(--color-green-700); }
.section-head.text-center .eyebrow { justify-content: center; }

/* Glass navigation */
.topbar { background: var(--color-green-900); }
.site-header { background: rgba(255,255,255,.72); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(19,50,31,.06); }
.site-header.is-scrolled { background: rgba(255,255,255,.93); box-shadow: 0 12px 34px -16px rgba(19,50,31,.3); }
.nav__links a { border-radius: 999px; }
.nav__links a:hover, .nav__links a[aria-current="page"] { background: rgba(47,158,95,.12); color: var(--color-green-700); }

/* Buttons — refined gradient + glow */
.btn { border-radius: 12px; padding: 0 26px; }
.btn:not(.btn--outline):not(.btn--ghost):not(.btn--whatsapp):not(.btn--pool) { background: linear-gradient(135deg, var(--color-green-500), var(--color-green-700)); box-shadow: 0 10px 22px -10px rgba(31,107,65,.65); }
.btn:not(.btn--outline):not(.btn--ghost):not(.btn--whatsapp):not(.btn--pool):hover { background: linear-gradient(135deg, var(--color-green-700), var(--color-green-900)); box-shadow: 0 16px 32px -10px rgba(31,107,65,.75); }

/* Hero — cinematic */
.hero-home { min-height: clamp(620px, 92vh, 900px); }
.hero-home::before { background: linear-gradient(90deg, rgba(7,26,16,.95) 0%, rgba(7,26,16,.74) 46%, rgba(7,26,16,.32) 76%, rgba(7,26,16,.12) 100%); }
.hero-home::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(7,26,16,.6), transparent 38%); pointer-events: none; }
.hero-home__inner { max-width: 720px; }
.hero-home h1 { font-size: clamp(2.5rem, 1.7rem + 4.2vw, 4.5rem); }
.hero-home p { font-size: 1.2rem; color: #dde8e0; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600; margin-bottom: 22px; }
.hero-badge .stars { color: #f5c451; letter-spacing: 1px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 30px; color: #cfe0d5; font-size: .92rem; font-weight: 500; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--color-green-500); }

/* Stats — premium dark glass */
.stats-bar { margin-top: clamp(-100px, -7vw, -64px); }
.stats-card { background: linear-gradient(135deg, rgba(16,52,33,.96), rgba(9,33,21,.96)); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 36px 70px -34px rgba(7,26,16,.7); }
.stats-card .stat__icon { background: rgba(255,255,255,.13); color: #bfe9cf; }

/* Service cards — premium */
.svc-card { border-radius: var(--radius-lg); border: 1px solid var(--color-line); box-shadow: var(--shadow-sm); }
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.svc-card__media { aspect-ratio: 16/11; }
.svc-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,26,16,.34)); }
.svc-card__icon { left: 16px; bottom: 16px; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--color-green-500), var(--color-green-700)); box-shadow: 0 10px 20px -8px rgba(31,107,65,.7); z-index: 1; }
.svc-card__body { padding: 26px; }
.svc-card__body h3 { font-size: 1.2rem; }

/* Cards & surfaces */
.card, .quote, .why__card, .lead__form { border-radius: var(--radius-lg); border: 1px solid var(--color-line); }
.card { box-shadow: var(--shadow-sm); }
.card:hover { box-shadow: var(--shadow-md); }
.why__card { box-shadow: var(--shadow-sm); }
.why__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.media-frame, .why__media, .pslider__viewport { border-radius: var(--radius-lg); }
.gallery__item { border-radius: var(--radius-md); }
.field input, .field textarea, .field select { border-radius: 12px; background: #fbfdfb; }
.lead__form { box-shadow: var(--shadow-md); padding: clamp(24px, 3vw, 40px); }

/* CTA band — depth + glass orbs */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 6vw, 76px); background: linear-gradient(135deg, var(--color-green-700), var(--color-green-900)); box-shadow: var(--shadow-lg); }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; filter: blur(8px); opacity: .55; pointer-events: none; }
.cta-band::before { width: 360px; height: 360px; background: radial-gradient(circle, rgba(47,158,95,.75), transparent 62%); top: -130px; right: -90px; }
.cta-band::after { width: 320px; height: 320px; background: radial-gradient(circle, rgba(41,182,216,.5), transparent 62%); bottom: -130px; left: -70px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }

/* Reviews band */
.reviews { background: linear-gradient(135deg, #0b2a1a, #12311e); }
.grating { background: rgba(255,255,255,.08); }
.review-slide p { font-size: 1.35rem; line-height: 1.6; }

/* Footer */
.site-footer { background: linear-gradient(180deg, #0e2a1c, #0a1f14); }

/* ==========================================================================
   18. SPLIT HERO — sharp contained imagery (fixes soft full-bleed bg)
   ========================================================================== */
.hero-home { min-height: 0; display: flex; align-items: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 80% -10%, #1f6b41 0%, #12311e 45%, #0b2a1a 100%); }
.hero-home__bg { display: none; }                 /* old full-bleed image disabled */
.hero-home::before, .hero-home::after { content: ""; position: absolute; border-radius: 50%; filter: blur(22px); opacity: .5; pointer-events: none; z-index: 0; }
.hero-home::before { width: 440px; height: 440px; background: radial-gradient(circle, rgba(47,158,95,.55), transparent 62%); top: -140px; right: 22%; }
.hero-home::after { width: 360px; height: 360px; background: radial-gradient(circle, rgba(2,119,189,.4), transparent 62%); bottom: -150px; left: -70px; }
.hero-home .eyebrow { color: #82d4a4; }

.hero-grid { position: relative; z-index: 2; display: grid; gap: clamp(36px, 5vw, 68px); align-items: center; width: 100%; padding-block: clamp(56px, 8vw, 104px); }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero-home__content { max-width: 600px; }
.hero-home__content h1 { margin-top: 4px; }

.hero-figure { position: relative; }
.hero-figure__main { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 50px 90px -34px rgba(0,0,0,.7), 0 0 0 8px rgba(255,255,255,.04); }
.hero-figure__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-figure__badge { position: absolute; left: -16px; bottom: 26px; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.28); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow-lg); }
.hero-figure__badge .n { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; line-height: 1; color: #fff; }
.hero-figure__badge .l { font-size: .8rem; line-height: 1.25; color: #d4e6da; }
@media (max-width: 939px) { .hero-figure { margin-top: 6px; } .hero-figure__badge { left: 12px; } }

/* ==========================================================================
   19. FULL-BLEED PREMIUM HERO (cinematic background + glass 3D float)
   ========================================================================== */
.hero-home { position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: clamp(620px, 90vh, 880px); background: #0a2417; color: #fff; }
.hero-home__bg { display: block; position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center; }
.hero-home::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.84) 0%, rgba(0,0,0,.58) 44%, rgba(0,0,0,.28) 70%, rgba(0,0,0,0) 100%); }
.hero-home::after { display: none; }
.hero-home__inner { position: relative; z-index: 2; width: 100%; max-width: none; margin-inline: 0;
  flex: 1 1 auto; display: flex; align-items: center;
  padding-left: clamp(22px, 8vw, 120px); padding-right: clamp(22px, 4vw, 64px); padding-block: clamp(56px, 8vw, 96px); }
.hero-home__content { max-width: 660px; }
.hero-home h1 { color: #fff; font-size: clamp(2.25rem, 1.5rem + 2.9vw, 3.35rem); text-transform: uppercase; letter-spacing: -.005em; text-shadow: 0 2px 16px rgba(0,0,0,.55); }
.hero-home p { color: #e7f0ea; max-width: 54ch; }
.hero-home .eyebrow { color: #88d8a9; }
.hero-home h1 .accent { color: #5fd497; }

/* Floating glass Google-rating card → 3D depth */
.hero-rating { position: absolute; right: 0; bottom: 116px; top: auto; transform: rotate(-2.5deg);
  width: 244px; background: rgba(255,255,255,.13); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.32); border-radius: 22px; padding: 20px 22px;
  box-shadow: 0 44px 80px -26px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.25); color: #fff; z-index: 3; }
.hero-rating__top { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: #eaf3ee; }
.hero-rating__g { font-family: var(--font-head); font-weight: 700; letter-spacing: .3px; }
.hero-rating__g b:nth-child(1){color:#4285F4}.hero-rating__g b:nth-child(2){color:#EA4335}.hero-rating__g b:nth-child(3){color:#FBBC05}.hero-rating__g b:nth-child(4){color:#4285F4}.hero-rating__g b:nth-child(5){color:#34A853}.hero-rating__g b:nth-child(6){color:#EA4335}
.hero-rating__score { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.hero-rating__score .stars { color: #f5c451; font-size: 1.05rem; letter-spacing: 1px; }
.hero-rating__sub { margin-top: 8px; font-size: .82rem; color: #cfe0d5; line-height: 1.4; }
@media (max-width: 1180px) { .hero-rating { display: none; } }

/* Full-width dark-green stats bar pinned to bottom of hero (reference style) */
.hero-stats { position: relative; z-index: 3; width: 100%; background: rgba(11,42,26,.9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid rgba(255,255,255,.12); }
.hero-stats .container { padding-block: 0; }
.hero-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-stats .stat { display: flex; align-items: center; gap: 14px; padding: 22px clamp(8px, 1.6vw, 24px); color: #fff; }
.hero-stats .stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }
.hero-stats .stat__icon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #7ed8a4; }
.hero-stats .stat__icon svg { width: 23px; height: 23px; }
.hero-stats .stat__num { font-family: var(--font-head); font-weight: 800; font-size: 1.65rem; line-height: 1; color: #fff; }
.hero-stats .stat__label { font-size: .82rem; color: #cdddd2; margin-top: 3px; }
@media (max-width: 760px) {
  .hero-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .stat:nth-child(odd) { border-left: 0; }
  .hero-stats .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .hero-stats .stat { padding: 16px 14px; }
}

/* ==========================================================================
   20. 3D PREMIUM DEPTH + ANIMATIONS + CONTINUOUS MARQUEE
   ========================================================================== */
/* Scroll-reveal direction variants (base .reveal/.in defined in §15) */
.reveal--left  { transform: translateX(-46px); }
.reveal--right { transform: translateX(46px); }
.reveal--zoom  { transform: scale(.9); }
.reveal.in { transform: none !important; }

/* 3D hover depth on cards (JS adds a subtle mouse-tilt on .svc-card) */
.svc-card { transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease; transform-style: preserve-3d; will-change: transform; }
.svc-card:hover { box-shadow: 0 36px 70px -28px rgba(19,50,31,.5); }
.svc-card__media img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.svc-card:hover .svc-card__media img { transform: scale(1.12); }
.svc-card__icon { transition: transform .4s ease; }
.svc-card:hover .svc-card__icon { transform: translateY(-4px) scale(1.08); }
.card { transition: transform .35s ease, box-shadow .35s ease; }
.card:hover { transform: translateY(-8px); }
.why__card { transition: transform .35s ease, box-shadow .35s ease; }
.why__card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-md); }
.btn { transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }

/* ----- Continuous Featured Projects marquee (auto left→right) ----- */
.marquee { overflow: hidden; padding-block: var(--space-4);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: var(--space-5); width: max-content; will-change: transform; align-items: stretch; }
.marquee .svc-card { flex: 0 0 auto; width: clamp(280px, 26vw, 340px); }
.mq-card { position: relative; flex: 0 0 auto; width: clamp(260px, 27vw, 360px); aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin: 0; }
.mq-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mq-card:hover img { transform: scale(1.08); }
.mq-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 16px; color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  background: linear-gradient(0deg, rgba(7,26,16,.88), rgba(7,26,16,.2) 60%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .svc-card:hover, .card:hover, .why__card:hover { transform: none; }
}

/* ----- 3D tilted "Why Choose" working image ----- */
.why__media { position: relative; perspective: 1200px; overflow: visible; box-shadow: none; background: none; aspect-ratio: auto; max-height: none; }
.why__media img { position: relative; z-index: 1; width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: -26px 34px 64px -26px rgba(7,26,16,.5), 0 8px 22px rgba(0,0,0,.18);
  transform: rotateY(-13deg) rotateX(4deg); transform-origin: center; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.why__media:hover img { transform: rotateY(0deg) rotateX(0deg); }
.why__media::after { content: ""; position: absolute; inset: 6% 8%; z-index: 0; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-green-500), var(--color-pool-700)); transform: rotateY(-13deg) translate(26px, 26px); opacity: .28; filter: blur(3px); }
@media (max-width: 760px) {
  .why__media img { transform: none; box-shadow: var(--shadow-md); }
  .why__media::after { display: none; }
}

/* ==========================================================================
   21. MOBILE OPTIMISATION (≤600px) — premium, no overflow
   ========================================================================== */
@media (max-width: 600px) {
  html, body { overflow-x: hidden; }
  /* Top bar: tidy, centered, compact */
  .topbar { font-size: .76rem; }
  .topbar__inner { justify-content: center; gap: 6px 16px; padding-block: 7px; }
  .topbar__group { gap: 8px 16px; justify-content: center; }
  .topbar__item svg { width: 13px; height: 13px; }

  /* Hero: full-width stacked buttons, balanced type */
  .hero-home { min-height: auto; }
  .hero-home__inner { padding-block: clamp(48px, 12vw, 72px); padding-left: clamp(18px, 5vw, 26px); padding-right: clamp(18px, 5vw, 26px); }
  .hero-home__content { max-width: 100%; }
  .hero-home .eyebrow { font-size: .7rem; letter-spacing: .12em; }
  .hero-home h1 { font-size: clamp(1.5rem, 1.1rem + 3vw, 1.95rem); line-height: 1.16; overflow-wrap: break-word; hyphens: none; }
  .hero-home p { font-size: 1rem; }
  .hero-home__actions { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
  .hero-home__actions .btn { width: 100%; }

  /* Stats bar text sizing */
  .hero-stats .stat { gap: 10px; }
  .hero-stats .stat__num { font-size: 1.35rem; }
  .hero-stats .stat__icon { width: 38px; height: 38px; }

  /* Section rhythm + headings */
  .section { padding-block: clamp(48px, 12vw, 72px); }
  .section-head { margin-bottom: 28px; }
  .section-head p { font-size: 1rem; }
  h2 { font-size: clamp(1.6rem, 1.2rem + 3vw, 2.1rem); }

  /* Marquee cards a touch narrower so they read well */
  .marquee .svc-card, .mq-card { width: clamp(238px, 82vw, 300px); }

  /* CTA bands + generic action rows stack full-width */
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .cta-band { padding: 32px 22px; }

  /* Lead form full-width comfortable */
  .lead__form { padding: 22px 18px; }

  /* Footer: center-friendly, trust strip wraps */
  .footer__trust { gap: 12px 22px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 430px) {
  /* hide long email in the top bar on very small screens (phone + socials remain) */
  .topbar__item[href^="mailto"] { display: none; }
}

/* ==========================================================================
   22. BRAND LOGO IMAGES (header + footer) — responsive desktop/tablet/mobile
   ========================================================================== */
.brand--img { gap: 0; padding: 0; }
.brand__logo { height: 48px; width: auto; display: block; }
.brand__logo--footer { height: 56px; }
@media (max-width: 960px) { .brand__logo { height: 44px; } }          /* tablet */
@media (max-width: 600px) { .brand__logo { height: 38px; } .brand__logo--footer { height: 48px; } }  /* mobile */
@media (max-width: 380px) { .brand__logo { height: 34px; } }

/* ==========================================================================
   23. SERVICE LOCATION GRID (bordered pin cards)
   ========================================================================== */
.loc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
.loc-card { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  background: #fff; border: 1.5px solid rgba(31,107,65,.5); border-radius: 10px; padding: 13px 12px; min-height: 54px;
  color: var(--color-green-900); font-family: var(--font-head); font-weight: 600; font-size: .9rem; line-height: 1.25;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.loc-card:hover { background: var(--color-green-700); border-color: var(--color-green-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.loc-card svg { width: 15px; height: 15px; flex: none; color: #e23744; }
.loc-card:hover svg { color: #fff; }
@media (max-width: 600px) {
  .loc-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .loc-card { font-size: .82rem; padding: 11px 8px; min-height: 48px; }
}

/* ==========================================================================
   24. LANGUAGE TOGGLE + RTL (Arabic) — English default, opt-in Arabic
   ========================================================================== */
.lang-toggle {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; padding: 3px 12px; margin-inline-end: 4px;
  font-family: var(--font-head); font-size: .78rem; font-weight: 600; line-height: 1.7;
  transition: background .2s ease, border-color .2s ease;
}
.lang-toggle:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); }
.lang-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Right-to-left layout when Arabic is active */
/* The animated service marquee lays out a very wide track; under RTL its
   overflow leaks past the viewport and creates ~1000px of horizontal scroll.
   Clip it at the root. overflow:clip (not hidden) keeps position:sticky working. */
html[dir="rtl"] { overflow-x: clip; }
html[dir="rtl"] body { direction: rtl; text-align: right; }

/* The marquee auto-scroll is JS-driven via transforms measured in LTR pixel
   coordinates (offsetLeft → one-set "loop" width). Under RTL the flex track
   reverses, breaking that math — the services row freezes and the featured-
   projects row shifts off-screen (looks hidden). Keep the track itself LTR;
   restore RTL only for the text inside each card. */
html[dir="rtl"] .marquee { direction: ltr; }
html[dir="rtl"] .marquee__track > * { direction: rtl; text-align: right; }
html[dir="rtl"] body,
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4,
html[dir="rtl"] .btn, html[dir="rtl"] .eyebrow,
html[dir="rtl"] input, html[dir="rtl"] textarea, html[dir="rtl"] select, html[dir="rtl"] label {
  font-family: "Tahoma", "Segoe UI", "Noto Kufi Arabic", "Cairo", sans-serif;
}
html[dir="rtl"] .text-center { text-align: center; }
html[dir="rtl"] .hero-home__content,
html[dir="rtl"] .lead__form,
html[dir="rtl"] .field { text-align: right; }
html[dir="rtl"] .field label { display: block; text-align: right; }
html[dir="rtl"] .breadcrumbs { direction: rtl; }
/* numbers/inputs read better LTR even in RTL pages */
html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="email"] { direction: ltr; text-align: right; }

/* ==========================================================================
   25. CUSTOMER REVIEWS (reviews.html form + live grid)
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Honeypot: present in the DOM for bots, hidden from people without causing layout/overflow */
.form-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.split--reviews { align-items: start; }
.field__label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: var(--space-2); color: var(--color-ink); }

/* Average-rating summary */
.rating-summary { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-5); padding: var(--space-4); background: var(--color-bg-soft); border: 1px solid var(--color-line); border-radius: var(--radius-md); }
.rating-summary__score { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--color-green-700); }
.rating-summary__stars { color: #f5a623; font-size: 1.15rem; letter-spacing: 2px; }

/* Star rating input — radios styled as stars (row-reverse so hover/check fills left) */
.rating-input { border: 0; padding: 0; margin: 0 0 var(--space-2); display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { font-size: 2rem; line-height: 1; color: var(--color-line); cursor: pointer; transition: color .12s ease; padding: 0 1px; }
.rating-input label:hover, .rating-input label:hover ~ label,
.rating-input input:checked ~ label { color: #f5a623; }
.rating-input input:focus-visible + label { outline: 2px solid var(--color-pool-700); outline-offset: 2px; border-radius: 4px; }

/* Submit status message */
.form-status { margin: var(--space-3) 0 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); font-size: .95rem; }
.form-status--ok { background: #e6f4ea; color: #1b5e20; border: 1px solid #b7dfc1; }
.form-status--err { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c0; }

/* Live reviews grid */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); margin-top: var(--space-6); }
@media (min-width: 640px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.reviews-grid__loading, .reviews-grid__empty { grid-column: 1 / -1; text-align: center; padding: var(--space-6) 0; }

.review-card { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: var(--space-3); }
.review-card__stars { color: #f5a623; letter-spacing: 2px; font-size: 1.05rem; }
.review-card__stars .off { color: var(--color-line); }
.review-card__text { color: var(--color-ink); margin: 0; }
.review-card__meta { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.review-card__author { font-weight: 700; color: var(--color-green-900); }
.review-card__author small { display: block; font-weight: 400; color: var(--color-muted); }
.review-card__date { font-size: .8rem; color: var(--color-muted); white-space: nowrap; }
.review-card--new { animation: reviewIn .5s ease; }
@keyframes reviewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .review-card--new { animation: none; } }

.reviews__cta { margin-top: var(--space-5); }

html[dir="rtl"] .rating-input { flex-direction: row; }
html[dir="rtl"] .rating-summary { text-align: right; }
