/* ==========================================================================
   Frankie's Lawn Care LLC — styles.css
   Brand: Green ramp (Frankie Green → Lime) · Nunito · "Green. Clean. On time."
   Colors per brand book: white text ONLY on #1E6020/#134E15; Ink on Lime.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL 1.1) ---------- */
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito-900.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

/* ---------- Design tokens ---------- */
:root {
  /* Brand greens (from logo) */
  --frankie: #1E6020;
  --forest:  #134E15;
  --meadow:  #398B2B;
  --fresh:   #4A9A2E;
  --leaf:    #5FA23C;
  --lime:    #6AA52A;
  --ink:     #14261A;
  --mist:    #EAF3EA;
  --paper:   #F5F9F3;
  --white:   #FFFFFF;
  /* Derived surfaces */
  --ink-soft: #3C5244;
  --line:     #D8E6D6;
  --card:     #FFFFFF;
  /* Type scale (fluid) */
  --f-hero:  clamp(2.2rem, 5.4vw + .5rem, 4.15rem);
  --f-h2:    clamp(1.7rem, 3vw + .4rem, 2.6rem);
  --f-h3:    clamp(1.18rem, 1.2vw + .6rem, 1.45rem);
  --f-lead:  clamp(1.05rem, .7vw + .8rem, 1.3rem);
  --f-body:  clamp(1rem, .3vw + .9rem, 1.0625rem);
  --f-small: .875rem;
  --f-eyebrow: .8rem;
  /* Space scale */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem;  --s-7: 3rem;  --s-8: 4.5rem; --s-9: 6.5rem;
  /* Shape & elevation */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(20,38,26,.08), 0 1px 2px rgba(20,38,26,.05);
  --shadow-md: 0 6px 18px rgba(20,38,26,.10), 0 2px 6px rgba(20,38,26,.06);
  --shadow-lg: 0 18px 44px rgba(19,78,21,.16), 0 6px 14px rgba(20,38,26,.08);
  --shadow-cta: 0 10px 26px rgba(30,96,32,.32);
  /* Motion */
  --ease: cubic-bezier(.22,.8,.28,1);
  --t-fast: .18s; --t-med: .38s; --t-slow: .7s;
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Nunito', 'Segoe UI', system-ui, Arial, sans-serif;
  font-size: var(--f-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  /* clip, not hidden: hidden creates a second scroll container that breaks sticky/anchor scroll */
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 var(--s-4); color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--f-hero); font-weight: 900; }
h2 { font-size: var(--f-h2); font-weight: 800; }
h3 { font-size: var(--f-h3); font-weight: 700; }
p  { margin: 0 0 var(--s-4); max-width: 68ch; }
a  { color: var(--frankie); text-underline-offset: 3px; }
a:hover { color: var(--forest); }
ul { padding-left: 1.2rem; }
strong { font-weight: 800; }
:focus-visible { outline: 3px solid var(--frankie); outline-offset: 3px; border-radius: 4px; }
/* On dark surfaces the dark ring vanishes — switch to Lime (3.3:1+ on Forest/Ink) */
.stats :focus-visible, .cta-final :focus-visible, .footer :focus-visible,
.marquee :focus-visible, .chat__head :focus-visible, .hero-card :focus-visible { outline-color: var(--lime); }
::selection { background: var(--lime); color: var(--ink); }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: var(--s-8); position: relative; }
.section--tint { background: var(--mist); }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--forest); color: #fff; padding: .8rem 1.4rem;
  border-radius: 0 0 var(--r-sm) 0; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

/* Eyebrow + section heads */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--f-eyebrow); font-weight: 600; letter-spacing: .16em;
  /* Frankie Green, not Meadow: small text needs 4.5:1 (brand book AA rule) */
  text-transform: uppercase; color: var(--frankie); margin-bottom: var(--s-3);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--lime); }
.section-head { max-width: 720px; margin-bottom: var(--s-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head .lead { font-size: var(--f-lead); color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  border: 0; border-radius: var(--r-pill); padding: .95rem 1.9rem;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast);
}
.nowrap { white-space: nowrap; }
.btn:active { transform: translateY(2px) scale(.985); }
.btn--primary { background: var(--frankie); color: #fff; box-shadow: var(--shadow-cta); }
.btn--primary:hover { background: var(--forest); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(30,96,32,.4); }
.btn--lime { background: var(--lime); color: var(--ink); box-shadow: 0 10px 26px rgba(106,165,42,.35); }
.btn--lime:hover { background: #7BB63A; color: var(--ink); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--frankie); box-shadow: inset 0 0 0 2px var(--frankie); }
.btn--ghost:hover { background: var(--frankie); color: #fff; }
.btn--ghost-light { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.75); }
.btn--ghost-light:hover { background: #fff; color: var(--forest); }
.btn--lg { padding: 1.1rem 2.3rem; font-size: 1.08rem; }
.btn .btn-ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(245,249,243,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-med), border-color var(--t-med), background var(--t-med);
}
.header.is-scrolled { background: rgba(245,249,243,.96); border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: var(--s-5); }
.header__logo { display: inline-flex; align-items: center; flex: none; }
.header__logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--s-5); margin-left: auto; }
.nav__link {
  font-weight: 700; text-decoration: none; color: var(--ink); font-size: .98rem;
  padding: .35rem 0; position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 3px;
  border-radius: 2px; background: var(--lime); transition: right var(--t-med) var(--ease);
}
.nav__link:hover { color: var(--frankie); }
.nav__link:hover::after { right: 0; }
.header__cta { flex: none; }
.header__phone { display: inline-flex; }

/* Language toggle */
.lang-toggle {
  display: inline-flex; border: 2px solid var(--frankie); border-radius: var(--r-pill);
  overflow: hidden; flex: none; background: #fff;
}
.lang-toggle button {
  font: inherit; font-weight: 800; font-size: .82rem; letter-spacing: .04em;
  border: 0; background: transparent; color: var(--frankie); cursor: pointer;
  padding: .5rem .85rem; transition: background var(--t-fast), color var(--t-fast);
}
.lang-toggle button[aria-pressed="true"] { background: var(--frankie); color: #fff; }

/* Mobile nav */
.nav-burger {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem; margin-left: auto;
}
.nav-burger span {
  display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--frankie);
  margin: 5px 0; transition: transform var(--t-med) var(--ease), opacity var(--t-med);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--s-4) var(--s-5) var(--s-6);
    transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: transform var(--t-med) var(--ease), opacity var(--t-med), visibility 0s linear var(--t-med);
    box-shadow: var(--shadow-md); margin-left: 0;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav__link { padding: .85rem .25rem; border-bottom: 1px solid var(--line); }
  .nav__link:last-of-type { border-bottom: 0; }
  .nav .lang-toggle { align-self: flex-start; margin-top: var(--s-4); }
  .nav-burger { display: block; }
  .header__cta { display: none; }
  .header__logo img { height: 38px; }
}

/* ==========================================================================
   HERO — layered 3D lawn scene
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vh, 5rem));
  padding-bottom: 0;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(134,193,59,.16), transparent 60%),
    linear-gradient(180deg, #FDFEFC 0%, var(--paper) 45%, var(--mist) 100%);
  perspective: 1000px;
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: var(--s-6); align-items: center; position: relative; z-index: 3;
  padding-bottom: clamp(7rem, 15vw, 11rem);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: .42rem 1rem .42rem .55rem; font-size: var(--f-small); font-weight: 700;
  color: var(--ink-soft); box-shadow: var(--shadow-sm); margin-bottom: var(--s-5);
}
.hero__badge .dot {
  width: 26px; height: 26px; border-radius: 50%; background: var(--mist);
  display: inline-grid; place-items: center; flex: none;
}
.hero__badge .dot img { width: 17px; height: auto; }
.hero h1 { margin-bottom: var(--s-4); letter-spacing: -.015em; }
.hero h1 .accent { color: var(--frankie); position: relative; white-space: nowrap; }
.hero h1 .accent svg {
  position: absolute; left: 0; right: 0; bottom: -.18em; width: 100%; height: .3em;
  overflow: visible;
}
.hero h1 .accent svg path {
  fill: none; stroke: var(--lime); stroke-width: 7; stroke-linecap: round; opacity: .85;
}
.hero__lead { font-size: var(--f-lead); color: var(--ink-soft); max-width: 34rem; margin-bottom: var(--s-6); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; margin-bottom: var(--s-5); }
.hero__proof { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); padding: 0; margin: 0; list-style: none; }
.hero__proof li { display: flex; align-items: center; gap: .5rem; font-size: var(--f-small); font-weight: 700; color: var(--ink-soft); }
.hero__proof svg { width: 18px; height: 18px; flex: none; color: var(--meadow); }

/* Hero portrait card (3D float) */
.hero__visual { position: relative; z-index: 3; }
.hero-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--forest);
  transform: perspective(1100px) rotateY(-4deg) rotateX(2deg);
  transition: transform var(--t-slow) var(--ease);
  will-change: transform;
}
.hero-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hero-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(255,255,255,.14) 0%, transparent 34%);
  pointer-events: none;
}
.hero-card__ribbon {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(19,78,21,0) 0%, rgba(19,78,21,.88) 42%, rgba(19,78,21,.96) 100%);
  color: #fff; padding: 2.6rem 1.4rem 1.15rem; text-align: center;
}
.hero-card__ribbon strong { display: block; font-size: 1.12rem; font-weight: 800; color: #fff; }
.hero-card__ribbon span { font-size: var(--f-small); color: #DCEFD2; font-weight: 600; }
.hero-chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: .6rem;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: .65rem .95rem; font-size: .82rem; font-weight: 800; color: var(--ink);
  will-change: transform;
}
.hero-chip small { display: block; font-weight: 600; color: var(--ink-soft); font-size: .72rem; line-height: 1.2; }
.hero-chip .ico {
  width: 34px; height: 34px; border-radius: 10px; background: var(--mist);
  display: grid; place-items: center; flex: none; color: var(--frankie);
}
.hero-chip .ico svg { width: 19px; height: 19px; }
.hero-chip--tl { top: 6%; left: -1.6rem; animation: float-a 7s ease-in-out infinite; }
.hero-chip--br { bottom: 16%; right: -1.4rem; animation: float-b 8s ease-in-out infinite; }
@keyframes float-a { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes float-b { 0%,100% { transform: translateY(0) } 50% { transform: translateY(9px) } }

/* Parallax lawn scene at hero base */
.hero__scene { position: absolute; inset: auto 0 0 0; height: clamp(7rem, 16vw, 12rem); z-index: 1; pointer-events: none; }
.hero__scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-layer { will-change: transform; }
.hero__trees {
  position: absolute; z-index: 2; bottom: clamp(2.2rem, 6vw, 4.2rem); left: 4%;
  width: clamp(120px, 15vw, 210px); opacity: .95; pointer-events: none; will-change: transform;
}
.hero__trees .tree { transform-origin: 50% 100%; animation: sway 6.5s ease-in-out infinite; }
.hero__trees .tree:nth-child(2) { animation-delay: -1.3s; animation-duration: 7.4s; }
.hero__trees .tree:nth-child(3) { animation-delay: -2.6s; animation-duration: 6.1s; }
.hero__trees .tree:nth-child(4) { animation-delay: -3.4s; animation-duration: 8s; }
.hero__trees .tree:nth-child(5) { animation-delay: -4.7s; animation-duration: 6.9s; }
@keyframes sway { 0%,100% { transform: rotate(-1.4deg) } 50% { transform: rotate(1.6deg) } }

@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; padding-bottom: clamp(8rem, 22vw, 11rem); }
  .hero__visual { max-width: 430px; margin-inline: auto; width: 100%; }
  .hero-chip--tl { left: -.4rem; }
  .hero-chip--br { right: -.4rem; bottom: 32%; }
}

/* ---------- Marquee (seamless, duplicated track) ---------- */
.marquee {
  background: var(--forest); color: #fff; overflow: hidden; white-space: nowrap;
  padding-block: .9rem; position: relative; z-index: 4;
}
.marquee__track { display: inline-flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track,
.marquee.paused .marquee__track { animation-play-state: paused; }
.marquee__toggle {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center;
  transition: background var(--t-fast);
}
.marquee__toggle:hover { background: rgba(255,255,255,.32); }
.marquee__toggle svg { width: 14px; height: 14px; }
.marquee.paused .ico-pause { display: none; }
.marquee:not(.paused) .ico-play { display: none; }
.marquee__group { display: inline-flex; align-items: center; }
.marquee__item {
  display: inline-flex; align-items: center; gap: .9rem; padding-inline: 1.4rem;
  font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
}
.marquee__item svg { width: 15px; height: 15px; color: var(--lime); flex: none; }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ==========================================================================
   SERVICES — 3D tilt cards
   ========================================================================== */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: var(--s-5); perspective: 1200px;
}
.svc-card {
  position: relative; background: var(--card); border-radius: var(--r-md);
  border: 1px solid var(--line); padding: var(--s-6) var(--s-5) var(--s-5);
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d;
  transition: transform var(--t-fast) linear, box-shadow var(--t-med) var(--ease), border-color var(--t-med);
  --mx: 50%; --my: 50%;
  overflow: hidden;
}
.svc-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(134,193,59,.13), transparent 42%);
  opacity: 0; transition: opacity var(--t-med);
}
.svc-card:hover { box-shadow: var(--shadow-lg); border-color: var(--leaf); z-index: 2; }
.svc-card:hover::before { opacity: 1; }
.svc-card__ico {
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: var(--s-4);
  background: linear-gradient(145deg, var(--mist), #fff);
  border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--frankie);
  transform: translateZ(30px);
}
.svc-card__ico svg { width: 30px; height: 30px; }
.svc-card h3 { margin-bottom: var(--s-2); transform: translateZ(24px); }
.svc-card p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 0; transform: translateZ(16px); }
.svc-card .svc-card__tag {
  position: absolute; top: 1rem; right: 1rem; font-size: .68rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  background: var(--lime); border-radius: var(--r-pill); padding: .22rem .66rem;
  transform: translateZ(34px);
}
.services-cta { text-align: center; margin-top: var(--s-7); }
.services-cta p { margin-inline: auto; color: var(--ink-soft); font-weight: 600; }

/* ==========================================================================
   ABOUT FRANKIE
   ========================================================================== */
.about { overflow: clip; }
.about__grid {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: var(--s-8); align-items: center;
}
.about__photo { position: relative; }
.about__photo .frame {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  position: relative; background: var(--forest);
}
.about__photo img { width: 100%; object-fit: cover; }
.about__photo::before {
  content: ""; position: absolute; inset: 12% -7% -7% 10%; z-index: -1;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--mist), rgba(106,165,42,.28));
}
.about__seal {
  position: absolute; right: -1rem; bottom: -1.3rem; width: 108px; height: 108px;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow-md);
  display: grid; place-items: center; padding: 14px;
  animation: spin-slow 26s linear infinite;
}
.about__seal svg { width: 100%; height: 100%; }
@keyframes spin-slow { to { transform: rotate(360deg) } }
.about__body .quote {
  border-left: 4px solid var(--lime); padding: .35rem 0 .35rem 1.15rem;
  font-size: 1.06rem; font-style: italic; color: var(--ink-soft); margin-block: var(--s-5);
}
.about__points { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: var(--s-3); }
.about__points li { display: flex; gap: .75rem; align-items: flex-start; font-weight: 600; }
.about__points svg { width: 21px; height: 21px; flex: none; margin-top: .2rem; color: var(--meadow); }
@media (max-width: 940px) {
  .about__grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .about__photo { max-width: 420px; margin-inline: auto; }
}

/* ---------- Stats band ---------- */
.stats {
  background: linear-gradient(135deg, var(--forest) 0%, var(--frankie) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.stats::before {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: radial-gradient(circle at 20% 110%, #86C13B 0, transparent 40%),
                    radial-gradient(circle at 85% -20%, #86C13B 0, transparent 45%);
}
.stats__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-6); text-align: center; position: relative;
}
.stat__num {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 900; line-height: 1;
  color: #fff; display: block; margin-bottom: .35rem; font-variant-numeric: tabular-nums;
}
.stat__num .plus { color: var(--lime); }
.stat__label { font-size: .95rem; font-weight: 600; color: #DCEFD2; }

/* ==========================================================================
   PROCESS — 3 steps
   ========================================================================== */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-6) var(--s-5);
  box-shadow: var(--shadow-sm); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step__num {
  counter-increment: step; width: 52px; height: 52px; border-radius: 50%;
  background: var(--frankie); color: #fff; font-weight: 900; font-size: 1.35rem;
  display: grid; place-items: center; margin-bottom: var(--s-4);
  box-shadow: 0 6px 16px rgba(30,96,32,.3);
}
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: var(--s-2); }
.step p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.step__arrow {
  position: absolute; top: 50%; right: -1.35rem; transform: translateY(-50%);
  color: var(--leaf); z-index: 2; width: 26px; height: 26px; display: block;
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .step__arrow { top: auto; bottom: -1.45rem; right: 50%; transform: translateX(50%) rotate(90deg); }
}

/* ==========================================================================
   SERVICE AREA
   ========================================================================== */
.area__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; }
.area__map {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--mist) 0%, #DFF0DA 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow-md); padding: var(--s-5);
}
.area__map svg { width: 100%; height: auto; }
.area-towns { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
.area-towns li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: var(--f-small); font-weight: 700; color: var(--ink-soft);
  padding: .4rem 1rem; display: inline-flex; align-items: center; gap: .45rem;
}
.area-towns li.is-home { background: var(--frankie); border-color: var(--frankie); color: #fff; }
.area-towns svg { width: 13px; height: 13px; flex: none; }
/* Map pin pulse — CSS (not SMIL) so the reduced-motion kill-switch applies */
.map-pulse {
  transform-box: fill-box; transform-origin: center;
  animation: map-pulse 3.2s ease-in-out infinite;
}
@keyframes map-pulse { 0%, 100% { transform: scale(.88); } 50% { transform: scale(1.24); } }
@media (max-width: 940px) { .area__grid { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ==========================================================================
   FAQ (native details/summary)
   ========================================================================== */
.faq-list { max-width: 800px; margin-inline: auto; display: grid; gap: var(--s-3); }
.faq {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color var(--t-med);
}
.faq[open] { border-color: var(--leaf); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--s-4);
  padding: 1.1rem 1.3rem; font-weight: 800; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq__ico {
  margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--mist); color: var(--frankie); display: grid; place-items: center;
  transition: transform var(--t-med) var(--ease), background var(--t-med);
}
.faq summary .faq__ico svg { width: 15px; height: 15px; }
.faq[open] summary .faq__ico { transform: rotate(45deg); background: var(--lime); color: var(--ink); }
.faq__body { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }
.faq__body p:last-child { margin-bottom: 0; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.cta-final {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: linear-gradient(160deg, var(--frankie) 0%, var(--forest) 78%);
}
.cta-final::before {
  content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: radial-gradient(circle at 15% 20%, #86C13B 0, transparent 35%),
                    radial-gradient(circle at 90% 85%, #86C13B 0, transparent 40%);
}
.cta-final h2 { color: #fff; }
.cta-final .lead { color: #DCEFD2; font-size: var(--f-lead); max-width: 42rem; margin-inline: auto; }
.cta-final__btns { display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: center; margin-top: var(--s-6); }
.cta-final__note { margin-top: var(--s-5); font-size: var(--f-small); color: #BBDCA9; font-weight: 600; }
.cta-final .container { position: relative; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink); color: #C9D8CC; font-size: .95rem; }
.footer a { color: #E4F0E2; text-decoration: none; }
.footer a:hover { color: var(--lime); text-decoration: underline; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-6);
  padding-block: var(--s-7);
}
.footer__brand img { width: 170px; margin-bottom: var(--s-4); }
.footer__tagline { font-weight: 700; color: #fff; letter-spacing: .04em; }
.footer h3 { color: #fff; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; margin-bottom: var(--s-4); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer__contact svg { width: 17px; height: 17px; flex: none; margin-top: .25rem; color: var(--leaf); }
.footer__legal {
  border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--s-5);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; justify-content: space-between;
  font-size: .85rem; color: #9DB3A2;
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: var(--s-4); list-style: none; margin: 0; padding: 0; }
@media (max-width: 940px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal-hero {
  background: linear-gradient(160deg, var(--frankie), var(--forest));
  color: #fff; padding: calc(var(--header-h) + var(--s-7)) 0 var(--s-7); text-align: center;
}
.legal-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: var(--s-2); }
.legal-hero p { color: #DCEFD2; margin: 0 auto; font-weight: 600; }
.legal-body { padding-block: var(--s-7) var(--s-8); }
.legal-body .container { max-width: 820px; }
.legal-body h2 { font-size: 1.45rem; margin-top: var(--s-6); }
.legal-body h3 { font-size: 1.12rem; margin-top: var(--s-5); }
.legal-body .updated { color: var(--ink-soft); font-size: var(--f-small); font-weight: 700; }
.legal-note {
  background: var(--mist); border-left: 4px solid var(--meadow); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--s-4) var(--s-5); font-size: .95rem; margin-block: var(--s-5);
}
html[data-lang="es"] .lang-en { display: none !important; }
html:not([data-lang="es"]) .lang-es { display: none !important; }

/* 404 */
.page-404 { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + var(--s-7)) 1rem var(--s-8); }
.page-404 .big { font-size: clamp(4.5rem, 14vw, 8rem); font-weight: 900; color: var(--frankie); line-height: 1; }
.page-404 img { width: 130px; margin: 0 auto var(--s-4); }

/* ==========================================================================
   MOBILE ACTION BAR (call / text / WhatsApp)
   ========================================================================== */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; grid-template-columns: 1fr 1fr 1fr; gap: 1px;
  background: var(--line); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; gap: .18rem;
  background: #fff; padding: .55rem .3rem .6rem; text-decoration: none;
  font-size: .72rem; font-weight: 800; color: var(--frankie);
}
.action-bar a:active { background: var(--mist); }
.action-bar svg { width: 21px; height: 21px; }
.action-bar .ab-wa { color: #1B8747; }
@media (max-width: 767px) {
  .action-bar { display: grid; }
  body { padding-bottom: 64px; }
  .chat__fab { bottom: 84px !important; }
  .chat__panel { bottom: 84px !important; }
}

/* ==========================================================================
   CHATBOT — concierge widget
   ========================================================================== */
.chat__fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 110;
  width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--frankie); color: #fff; box-shadow: 0 12px 30px rgba(19,78,21,.4);
  display: grid; place-items: center;
  transition: transform var(--t-med) var(--ease), opacity var(--t-med), background var(--t-fast);
}
.chat__fab:hover { background: var(--forest); transform: translateY(-3px); }
.chat__fab svg { width: 30px; height: 30px; }
.chat__fab .chat__badge {
  position: absolute; top: 2px; right: 2px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--lime); border: 2.5px solid #fff;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(106,165,42,.55); }
  55% { box-shadow: 0 0 0 9px rgba(106,165,42,0); }
}
.chat--open .chat__fab {
  transform: scale(0); opacity: 0; pointer-events: none;
  visibility: hidden; transition: transform var(--t-med) var(--ease), opacity var(--t-med), visibility 0s linear var(--t-med);
}

.chat__panel {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 120;
  width: min(392px, calc(100vw - 1.6rem));
  height: min(600px, calc(100vh - 6.5rem));
  height: min(600px, calc(100dvh - 6.5rem));
  display: flex; flex-direction: column;
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(19,38,26,.35);
  transform: translateY(22px) scale(.96); opacity: 0; pointer-events: none; visibility: hidden;
  transition: transform var(--t-med) var(--ease), opacity var(--t-med), visibility 0s linear var(--t-med);
}
.chat--open .chat__panel { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }

.chat__head {
  background: linear-gradient(135deg, var(--frankie), var(--forest)); color: #fff;
  display: flex; align-items: center; gap: .8rem; padding: .95rem 1.1rem; flex: none;
}
.chat__avatar {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; flex: none;
  display: grid; place-items: center; padding: 7px; overflow: hidden;
}
.chat__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chat__title { line-height: 1.25; }
.chat__title strong { display: block; font-size: 1rem; }
.chat__status { font-size: .76rem; color: #C9E8B5; font-weight: 700; display: flex; align-items: center; gap: .4rem; }
.chat__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.chat__close {
  margin-left: auto; background: rgba(255,255,255,.14); color: #fff; border: 0; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  transition: background var(--t-fast);
}
.chat__close:hover { background: rgba(255,255,255,.28); }
.chat__close svg { width: 16px; height: 16px; }

.chat__body { flex: 1; overflow-y: auto; padding: 1.1rem; background: var(--paper); scroll-behavior: smooth; }
.msg { max-width: 86%; margin-bottom: .65rem; padding: .72rem 1rem; border-radius: 16px; font-size: .93rem; line-height: 1.5; animation: msgin .3s var(--ease); overflow-wrap: break-word; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: var(--shadow-sm); }
.msg.user { background: var(--frankie); color: #fff; margin-left: auto; border-bottom-right-radius: 6px; }
.msg a { font-weight: 700; }
@keyframes msgin { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
.typing { display: inline-flex; gap: 5px; padding: .85rem 1rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); animation: blink 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; } .typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 70%, 100% { opacity: .25; transform: translateY(0) } 35% { opacity: 1; transform: translateY(-3px) } }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .3rem 0 .8rem; }
.chip {
  font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer;
  background: #fff; color: var(--frankie); border: 1.5px solid var(--leaf);
  border-radius: var(--r-pill); padding: .5rem 1rem;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.chip:hover { background: var(--frankie); border-color: var(--frankie); color: #fff; transform: translateY(-1px); }
.chat-cta { display: flex; flex-direction: column; gap: .5rem; margin: .3rem 0 .9rem; }
.chat-cta a {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  border-radius: var(--r-pill); padding: .8rem 1rem; font-weight: 800; font-size: .95rem;
  text-decoration: none; transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.chat-cta a:hover { transform: translateY(-2px); }
.chat-cta svg { width: 19px; height: 19px; flex: none; }
.chat-cta .cta-call { background: var(--frankie); color: #fff; box-shadow: var(--shadow-cta); }
.chat-cta .cta-wa { background: #25D366; color: #0B3D1F; }
.chat-cta .cta-sms { background: #fff; color: var(--frankie); box-shadow: inset 0 0 0 2px var(--frankie); }

.chat__foot { flex: none; display: flex; gap: .6rem; padding: .8rem; background: #fff; border-top: 1px solid var(--line); }
.chat__input {
  flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 14px;
  font: inherit; font-size: .93rem; padding: .6rem .85rem; max-height: 90px;
  background: var(--paper); color: var(--ink);
}
.chat__input:focus { outline: none; border-color: var(--meadow); }
.chat__send {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--frankie); color: #fff; display: grid; place-items: center; align-self: flex-end;
  transition: background var(--t-fast), transform var(--t-fast);
}
.chat__send:hover { background: var(--forest); transform: scale(1.06); }
.chat__send svg { width: 20px; height: 20px; }

/* ---------- Scroll reveals ----------
   Hidden ONLY when JS confirmed itself (html.has-js, set synchronously in lang-init.js).
   Without JS everything stays visible. */
html.has-js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.has-js .reveal.in { opacity: 1; transform: none; }
/* Controls that do nothing without JS */
html:not(.has-js) .chat__fab,
html:not(.has-js) .lang-toggle,
html:not(.has-js) .marquee__toggle { display: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }

/* ---------- Reduced motion: kill it all ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  html.has-js .reveal, .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; transform: none; }
  .hero-card { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .header, .chat__fab, .chat__panel, .action-bar, .marquee, .cta-final, .nav-burger { display: none !important; }
  body { background: #fff; padding-bottom: 0; }
  .legal-hero { background: none; padding-top: var(--s-6); }
  .legal-hero h1, .legal-hero p { color: #000; }
}
