/* ============================================================
   Emilia's Garden — stylesheet
   Themed around garden greens + pool blues on a warm ivory.
   ============================================================ */

:root {
  /* Brand greens — warmer, richer, more nature-forward */
  --green-950: #072d1c;
  --green-900: #0e4a2f;
  --green-800: #14603d;
  --green-700: #1a7a48;
  --green-600: #229552;
  --green-500: #2fad5c;
  --green-400: #5ac67a;
  --green-300: #8fd890;
  --green-100: #e3f5e0;
  --green-50:  #f1faed;

  /* Pool blues */
  --blue-900: #0d2d5a;
  --blue-800: #153e6f;
  --blue-700: #1d4f87;
  --blue-500: #2b78c2;
  --cyan-500: #3aa9b5;
  --cyan-400: #5fc0ca;
  --cyan-200: #c6ecef;

  /* Neutrals */
  --ivory:   #fbfaf3;
  --sand:    #f3efe1;
  --line:    #e5e3d3;
  --ink:     #0c1a14;
  --ink-2:   #29392f;
  --muted:   #5e6e64;
  --white:   #ffffff;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(14, 74, 47, .08);
  --shadow:    0 10px 28px rgba(14, 74, 47, .12);
  --shadow-lg: 0 22px 60px rgba(14, 74, 47, .18);
  --shadow-green: 0 10px 24px rgba(34, 149, 82, .28);

  --container: 1200px;
  --gap: clamp(16px, 2.5vw, 28px);

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", sans-serif;
  --font-display: var(--font-sans);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: var(--green-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-500); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; color: var(--ink-2); }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}
/* More breathing room against the edges on mobile so headlines and
   paragraphs never sit flush against the viewport. Desktop keeps the
   tighter 16 px gutter; mobile gets a generous 32 px each side. */
@media (max-width: 900px) {
  .container { width: min(100% - 2.5rem, var(--container)); }  /* 20 px each side */
}
@media (max-width: 640px) {
  .container { width: min(100% - 6rem, var(--container)); }    /* 48 px each side */
  /* TEMP verification marker — remove after confirming the new CSS is live.
     If you see a thin green line along the top of the viewport on mobile,
     this CSS file is loading. If you don't, the browser is caching. */
  body::before {
    content: "";
    position: fixed; top: 0; left: 0; right: 0;
    height: 3px;
    background: #2fad5c;
    z-index: 9999;
    pointer-events: none;
  }
}
@media (max-width: 380px) {
  .container { width: min(100% - 3rem, var(--container)); }    /* 24 px on tiny phones so content isn't cramped */
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: .9em;
}
.eyebrow svg { width: 16px; height: 16px; color: currentColor; }
.eyebrow.water { color: var(--blue-700); }
.eyebrow.leaf  { color: var(--green-700); }
.eyebrow.light { color: var(--cyan-200); }

/* Visually hidden until focused — standard accessible skip-link pattern.
   Avoids any chance of a paint artefact from off-screen positioning. */
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 8px; left: 8px;
  width: auto; height: auto;
  padding: 10px 16px;
  background: var(--green-900);
  color: #fff;
  border-radius: 10px;
  clip: auto;
  clip-path: none;
  white-space: normal;
  z-index: 1000;
}

/* -------- Buttons -------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .95em 1.55em;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .005em;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  transition:
    transform .18s var(--ease-out),
    box-shadow .25s ease,
    background .25s ease,
    color .2s;
}
.btn svg { transition: transform .25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Primary CTA — flat color + inset 1px highlight/shadow lines for depth.
   No diagonal gradients: they band on non-retina displays. Same visual
   weight on every monitor. A horizontal shine sweep runs once on hover. */
.btn-primary {
  background: var(--green-600);
  color: #fff;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(0, 0, 0, .18),
    0 1px 2px rgba(0, 0, 0, .12),
    0 8px 18px -4px rgba(0, 0, 0, .25);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%);
  transform: translateX(-110%);
  transition: transform .7s var(--ease-out);
  pointer-events: none;
  z-index: -1;
}
.btn-primary:hover {
  color: #fff;
  background: var(--green-700);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .24),
    inset 0 -1px 0 rgba(0, 0, 0, .22),
    0 2px 4px rgba(0, 0, 0, .15),
    0 14px 26px -4px rgba(0, 0, 0, .35);
}
.btn-primary:hover::after { transform: translateX(110%); }
.btn-primary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(47, 173, 92, .35),
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(0, 0, 0, .18),
    0 8px 18px rgba(0, 0, 0, .2);
}
.btn-primary:active {
  background: var(--green-800);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, .25),
    0 1px 2px rgba(0, 0, 0, .15);
}

.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-color: rgba(255,255,255,.45);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }

.btn-sm { padding: .6em 1.1em; font-size: .88rem; }
.btn-lg { padding: 1.05em 1.8em; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* -------- Header -------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 243, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  background: rgba(251, 250, 243, .95);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(14, 74, 47, .06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 0;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.02rem; color: var(--blue-900); font-weight: 800; letter-spacing: -.01em; }
.brand-text em { font-size: 1.02rem; color: var(--green-600); font-style: normal; font-weight: 800; letter-spacing: -.01em; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.5rem; }
.primary-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  position: relative;
}
.primary-nav a:not(.btn)::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--green-500);
  border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.primary-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open  { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

/* -------- Hero -------- */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 920px);
  display: flex; align-items: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease-in-out);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img, .hero-slide picture { width: 100%; height: 100%; }
.hero-slide img {
  object-fit: cover;
  transform: scale(1);
  transition: transform 0s;
  will-change: transform;
}
.hero-slide.is-active img {
  transform: scale(1.06);
  transition: transform 16s linear;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 70% at 10% 10%, rgba(7, 45, 28, .45), transparent 60%),
    linear-gradient(180deg, rgba(7, 45, 28, .25) 0%, rgba(7, 45, 28, .55) 60%, rgba(7, 45, 28, .78) 100%);
}

.hero-content {
  padding: clamp(4rem, 12vh, 8rem) 0 clamp(4rem, 10vh, 6rem);
  max-width: 820px;
  width: 100%;
  position: relative;
}
.hero h1 {
  color: #fff;
  font-weight: 900;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .3);
  margin-bottom: .65em;
}
.hero h1 .accent {
  background: linear-gradient(135deg, #b9ffd4 0%, #74e6a3 60%, #2fad5c 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
/* Stacked headlines. CSS Grid overlays all three in the same cell so the tallest
   reserves height and there is zero layout shift between slides. Transitions
   are pure opacity — no transform cross-motion that could feel jumpy. */
.hero-rotator {
  display: grid;
  position: relative;
}
.hero-headline {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  transition: opacity .65s var(--ease-out);
  pointer-events: none;
  will-change: opacity;
}
.hero-rotator[data-active="0"] .hero-headline[data-slide="0"],
.hero-rotator[data-active="1"] .hero-headline[data-slide="1"],
.hero-rotator[data-active="2"] .hero-headline[data-slide="2"] {
  opacity: 1;
  pointer-events: auto;
}

.hero .eyebrow { color: var(--cyan-200); }
.hero .lead {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  color: rgba(255,255,255,.92);
  max-width: 620px;
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 1rem 1.8rem;
  list-style: none; padding: 0; margin: 0 0 1.5rem;
  color: rgba(255,255,255,.92);
  font-size: .92rem;
  font-weight: 500;
}
.hero-badges li { display: flex; align-items: center; gap: .5rem; }
.hero-badges svg { width: 18px; height: 18px; color: var(--green-300); }

.hero-dots { display: flex; gap: .5rem; }
.hero-dots button {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: content-box;
  width: 36px;
  height: 4px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, .3);
  cursor: pointer;
  line-height: 0;
  transition: background .25s, width .3s var(--ease-out);
}
.hero-dots button.is-active { background: var(--green-400); width: 54px; }
.hero-dots button:hover { background: rgba(255,255,255,.55); }

.hero-scroll {
  position: absolute; bottom: 1.4rem; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  display: grid; place-items: center;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -8px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { animation: none; }
  .hero-slide img, .hero-slide.is-active img { transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* -------- Benefits strip -------- */
.section-benefits {
  padding: clamp(2.2rem, 4vw, 3rem) 0;
  background:
    linear-gradient(180deg, var(--green-50), var(--ivory));
  border-bottom: 1px solid var(--line);
}
.benefit-grid {
  display: grid; gap: 1rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.benefit {
  display: flex; align-items: center; gap: .85rem;
}
.benefit strong { display: block; color: var(--ink); font-weight: 700; font-size: .98rem; margin-bottom: 1px; }
.benefit span { color: var(--muted); font-size: .88rem; line-height: 1.35; }
.b-ico {
  flex: 0 0 48px;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-700);
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(34, 149, 82, .12);
}

/* -------- Sections -------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt {
  background: var(--sand);
  background-image:
    radial-gradient(900px 400px at 90% -5%, rgba(34, 149, 82, .08), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(43, 120, 194, .08), transparent 60%);
}
.section-header { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3.5rem); text-align: center; }
.section-header .eyebrow { margin-left: auto; margin-right: auto; }

/* -------- Service cards -------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
  display: flex; flex-direction: column;
  border: 1px solid transparent;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--green-100);
}
.card-media {
  position: relative;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.card:hover .card-media img { transform: scale(1.06); }
.card-ico {
  position: absolute; left: 16px; top: 16px;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--white);
  color: var(--green-700);
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.card-ico--blue { color: var(--blue-700); }
.card-body { padding: 1.3rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .35em; color: var(--blue-900); }
.card p { margin: 0 0 1rem; color: var(--muted); font-size: .95rem; }
.card-link {
  display: inline-flex; align-items: center; gap: .25rem;
  color: var(--green-700);
  font-weight: 700;
  font-size: .9rem;
  margin-top: auto;
}
.card-link:hover { color: var(--green-600); }
.card-link svg { transition: transform .2s var(--ease-out); }
.card-link:hover svg { transform: translateX(3px); }

/* -------- Two-column grids -------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2.reverse > :first-child { order: 2; }
}
.framed {
  position: relative; margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.framed::before {
  content: "";
  position: absolute; inset: auto 0 -24px 0;
  height: 56px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(14, 74, 47, .35), transparent 70%);
  z-index: -1;
}
.framed img {
  width: 100%; height: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.framed:hover img { transform: scale(1.04); }
.pool-framed, .pool-framed img { aspect-ratio: 1/1; }
.framed figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(13, 45, 90, .88);
  color: #fff;
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* -------- Check list -------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.check-list li {
  position: relative;
  padding: .55rem 0 .55rem 2.2rem;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: .7em;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-500);
}
.check-list li::after {
  content: "";
  position: absolute; left: 7px; top: 1.15em;
  width: 10px; height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
}
.check-list.water-list li::before { background: var(--blue-500); }

/* Inline highlight pill for featured items in a check-list (e.g. "Wi-Fi", "Solar") */
.check-list .li-main { display: inline; }
.check-list .li-tag {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  margin-left: .55rem;
  padding: .15rem .55rem;
  background: var(--green-100);
  color: var(--green-800);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  vertical-align: middle;
  white-space: nowrap;
}
.check-list .li-tag svg { color: var(--green-700); }
.check-list .li-tag--sun {
  background: #fff4d4;
  color: #8a5a00;
}
.check-list .li-tag--sun svg { color: #d28f00; }
@media (max-width: 520px) {
  .check-list .li-tag { display: inline-flex; margin: .25rem 0 0; margin-left: 0; }
  .check-list .li-main { display: block; }
}

/* -------- Gallery carousel -------- */
.gallery-wrap { position: relative; }
.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 1rem;
  padding: .5rem .25rem 1rem;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
@media (min-width: 600px) { .gallery-track { grid-auto-columns: 46%; gap: 18px; } }
@media (min-width: 900px) { .gallery-track { grid-auto-columns: 32%; } }
@media (min-width: 1200px){ .gallery-track { grid-auto-columns: 24%; } }
.g-item {
  scroll-snap-align: start;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
  cursor: zoom-in;
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.g-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.g-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(7, 45, 28, .78);
  color: #fff;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s, transform .25s;
}
.g-item:hover figcaption { opacity: 1; transform: none; }

.g-nav {
  position: absolute;
  top: calc(50% - 24px);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-800);
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  z-index: 3;
  transition: transform .2s, background .2s, color .2s;
}
.g-nav:hover { background: var(--green-600); color: #fff; transform: scale(1.05); }
.g-nav:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.g-prev { left: -12px; }
.g-next { right: -12px; }
@media (min-width: 900px) { .g-prev { left: -20px; } .g-next { right: -20px; } }

.g-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 1.4rem;
}
.g-dots button {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: content-box;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(34, 149, 82, .28);
  cursor: pointer;
  transition: width .25s var(--ease-out), background .25s, transform .2s;
  line-height: 0;
}
.g-dots button:hover { background: rgba(34, 149, 82, .55); }
.g-dots button.is-active {
  width: 28px;
  background: var(--green-600);
  border-radius: 999px;
}

/* -------- Clients -------- */
.section-clients {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(34, 149, 82, .06), transparent 70%),
    var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.clients-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.client-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  width: min(240px, 42vw);
  padding: 1rem 1.4rem;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(14, 74, 47, .04);
  transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .35s, filter .4s;
  filter: grayscale(100%) opacity(.72);
}
.client-logo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green-100);
  filter: none;
}
.client-logo img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sectors {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem .7rem;
}
.sectors li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--green-800);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  transition: transform .2s var(--ease-out), background .2s, border-color .2s;
}
.sectors li:hover {
  transform: translateY(-2px);
  background: var(--green-100);
  border-color: var(--green-300);
}
.sectors li svg { color: var(--green-600); width: 16px; height: 16px; }

/* -------- Stats -------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gap);
}
.stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--green-500);
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat:nth-child(2n) { border-top-color: var(--blue-500); }
.stat strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--blue-900);
  line-height: 1.1; margin-bottom: .2em;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat span { color: var(--muted); font-size: .9rem; }

/* -------- Contact -------- */
.section-contact {
  background: #0a3828;                /* solid deep green — no banding on any monitor */
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-contact::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(34, 149, 82, .32), transparent 60%),
    radial-gradient(800px 380px at 90% 110%, rgba(95, 192, 202, .18), transparent 60%);
  pointer-events: none;
}
.section-contact h2 { color: #fff; }
.section-contact .lead { color: rgba(255,255,255,.88); }
.section-contact p { color: rgba(255,255,255,.78); }
.section-contact .eyebrow.light {
  background: rgba(255, 255, 255, .08);
  padding: .5em 1em;
  border-radius: 999px;
}
.section-contact .eyebrow.light svg { color: var(--cyan-200); }

/* Centered contact layout */
.contact-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
}
.contact-header { text-align: center; max-width: 720px; }
.contact-header .eyebrow.light { margin-left: auto; margin-right: auto; }
.contact-header .lead { margin-bottom: 0; }

/* Two-CTA primary action band */
.contact-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
}
.btn-wa {
  background: #20ba5a;
  color: #fff;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .26),
    inset 0 -1px 0 rgba(0, 0, 0, .20),
    0 1px 2px rgba(0, 0, 0, .15),
    0 10px 22px -4px rgba(0, 0, 0, .35);
}
.btn-wa:hover {
  color: #fff;
  background: #25D366;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -1px 0 rgba(0, 0, 0, .22),
    0 2px 4px rgba(0, 0, 0, .15),
    0 16px 28px -4px rgba(0, 0, 0, .45);
}

/* "or contact us directly" divider */
.contact-divider {
  display: flex;
  align-items: center;
  width: min(100%, 560px);
  color: rgba(255, 255, 255, .55);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.contact-divider::before,
.contact-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .15);
}
.contact-divider span { padding: 0 1rem; }

/* 2×2 (desktop) / 1-col (mobile) contact card grid */
.contact-grid {
  list-style: none;
  padding: 0; margin: 0;
  width: 100%;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 900px;
}
.contact-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  transition: transform .25s var(--ease-out), background .25s, border-color .25s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.contact-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .22);
}
.contact-card .ci { margin-bottom: .5rem; }
.contact-card .c-role {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan-200);
  margin: 0;
}
.contact-card strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}
.contact-card a {
  color: rgba(255, 255, 255, .9);
  font-weight: 600;
  font-size: .95rem;
  word-break: break-word;
  transition: color .2s;
}
.contact-card a:hover { color: var(--green-300); }

.contact-note {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .6rem 1.1rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: rgba(255, 255, 255, .75);
  font-size: .88rem;
  font-weight: 500;
}
.contact-note svg { color: var(--green-300); }
/* Icon tiles — pure flat color + 1px inset highlight/shadow lines.
   No gradient backgrounds anywhere: insets render identically on retina and
   low-DPI displays, so there's no banding or "pixelated" look. */
.ci {
  flex: 0 0 52px;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-600);
  color: #fff;
  display: grid; place-items: center;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .24),
    inset 0 -1px 0 rgba(0, 0, 0, .22),
    0 4px 10px rgba(0, 0, 0, .22),
    0 1px 2px rgba(0, 0, 0, .14);
}
.ci svg { width: 24px; height: 24px; color: #fff; }
.ci.whatsapp {
  background: #20ba5a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -1px 0 rgba(0, 0, 0, .20),
    0 4px 10px rgba(0, 0, 0, .28),
    0 1px 2px rgba(0, 0, 0, .15);
}

/* -------- Footer -------- */
.site-footer {
  background: linear-gradient(180deg, #06241a 0%, #031310 100%);
  color: rgba(255,255,255,.78);
  padding: 3.5rem 0 1.5rem;
  border-top: 4px solid var(--green-600);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 720px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }

.footer-logo { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: .75rem; }
.footer-logo-mark {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--green-600);
  display: grid; place-items: center;
  position: relative;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .24),
    inset 0 -1px 0 rgba(0, 0, 0, .22),
    0 6px 16px rgba(0, 0, 0, .35),
    0 1px 2px rgba(0, 0, 0, .2);
}
.footer-logo-mark .mark-drop {
  position: absolute; right: -6px; bottom: -6px;
  width: 22px; height: 22px;
  background: var(--blue-700);
  color: #fff;
  border-radius: 8px;
  padding: 2px;
  border: 2px solid #06241a;
}
.footer-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.footer-logo-text strong { color: #fff; font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.footer-logo-text em { color: var(--green-400); font-style: normal; font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }

.footer-brand p { color: rgba(255,255,255,.65); margin: 0; max-width: 28ch; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: rgba(255,255,255,.75); display: inline-flex; align-items: center; gap: .5rem; }
.site-footer a:hover { color: var(--green-400); }
.site-footer a svg { color: var(--green-400); }
.footer-bottom {
  margin-top: 2.3rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  color: rgba(255,255,255,.5);
}

/* -------- Floating WhatsApp -------- */
.fab-wa {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 211, 102, .45), 0 0 0 6px rgba(37, 211, 102, .18);
  transition: transform .2s var(--ease-out), box-shadow .25s;
  animation: pulse 2.4s ease-in-out infinite;
}
.fab-wa:hover { transform: translateY(-3px) scale(1.05); }
.fab-wa svg { color: #fff; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(37, 211, 102, .35), 0 0 0 0 rgba(37, 211, 102, .25); }
  50%      { box-shadow: 0 12px 28px rgba(37, 211, 102, .45), 0 0 0 12px rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) { .fab-wa { animation: none; } }

/* -------- Scroll reveal -------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.reveal-left  { transform: translateX(-30px); }
.reveal.reveal-right { transform: translateX(30px); }
.reveal.reveal-scale { transform: scale(.96); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
.reveal.delay-5 { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* -------- Mobile nav --------
   Hidden state uses opacity + visibility so the height of the menu cannot
   affect whether it peeks above the header. A small translateY adds a subtle
   slide-down when opening. */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 49;
    background: rgba(251, 250, 243, .98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition:
      opacity .25s var(--ease-out),
      transform .25s var(--ease-out),
      visibility 0s linear .25s;
  }
  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
      opacity .25s var(--ease-out),
      transform .25s var(--ease-out),
      visibility 0s linear 0s;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: .1rem;
  }
  .primary-nav a:not(.btn) {
    padding: .95rem 0;
    border-bottom: 1px solid var(--line);
    display: block;
  }
  .primary-nav a:not(.btn)::after { display: none; }
  .primary-nav .btn { margin-top: .9rem; text-align: center; }
}

/* -------- Selection -------- */
::selection { background: rgba(34, 149, 82, .25); color: var(--ink); }
