/* ==========================================================================
   SkyFumig — Precision Agtech, Night Ops
   ========================================================================== */

:root {
  --bg: #0B0D0C;
  --bg-2: #0E110F;
  --surface: #131714;
  --surface-2: #1B201C;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --gold: #F5C518;
  --gold-2: #FFD84D;
  --gold-soft: rgba(245, 197, 24, .12);
  --gold-line: rgba(245, 197, 24, .35);
  --leaf: #7BC67E;
  --leaf-soft: rgba(123, 198, 126, .12);
  --text: #EDEFEA;
  --muted: #A3ABA3;
  --ink: #0B0D0C;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Orbitron", "Space Grotesk", sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --gutter: 24px;
  --header-h: 72px;
  --section-y: clamp(64px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 64px; }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }
img, video, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul[role="list"], .nav__list, .chips, .features, .contact-list, .footer ul { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { text-wrap: pretty; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.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;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--ink); font-weight: 600;
  padding: 10px 16px; border-radius: 999px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.accent { color: var(--gold); }

/* ---------- Shared pieces ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--live::before { display: none; }
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--leaf);
  box-shadow: 0 0 0 4px var(--leaf-soft);
}
.lead { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.125rem); max-width: 60ch; }

.section { padding-block: var(--section-y); position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head h2 { margin-bottom: 16px; }
.section-head .lead { margin-inline: auto; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.icon-tile {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(245, 197, 24, .2);
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile--sm { width: 44px; height: 44px; border-radius: 12px; }
.icon-tile--sm svg { width: 20px; height: 20px; }
.icon-tile--wa { color: #25D366; background: rgba(37, 211, 102, .1); border-color: rgba(37, 211, 102, .25); }

/* Buttons */
.btn {
  --_bg: transparent; --_fg: var(--text); --_bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--_bg); color: var(--_fg); border: 1px solid var(--_bd);
  font-weight: 600; font-size: .98rem; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { --_bg: var(--gold); --_fg: var(--ink); --_bd: var(--gold); box-shadow: 0 10px 30px -10px rgba(245, 197, 24, .55); }
.btn--primary:hover { --_bg: var(--gold-2); --_bd: var(--gold-2); transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(245, 197, 24, .65); }
.btn--ghost { --_bg: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { --_bd: var(--gold-line); --_fg: var(--gold); transform: translateY(-2px); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .92rem; }
.btn--block { width: 100%; white-space: normal; text-align: center; }
.label-short { display: none; }
@media (max-width: 440px) { .label-long { display: none; } .label-short { display: inline; } }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03);
  transition: border-color .2s, color .2s, background-color .2s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { border-color: var(--gold-line); color: var(--gold); }
.icon-btn--wa:hover { color: #25D366; border-color: rgba(37, 211, 102, .5); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.header::before {
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 13, 12, .8) 0%, rgba(11, 13, 12, .45) 55%, rgba(11, 13, 12, 0) 100%);
  transition: opacity .3s;
}
.header.is-scrolled::before, body.nav-open .header::before { opacity: 0; }
.header:not(.is-scrolled) .nav__list a:not(.is-active) { color: #DCE1DB; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.header.is-scrolled, body.nav-open .header {
  background: rgba(11, 13, 12, .78);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand__mark { width: 30px; height: 30px; color: var(--gold); stroke-width: 0; }
.brand__word { font-family: var(--font-brand); font-weight: 700; font-size: 1.28rem; letter-spacing: .02em; }
.brand__word span { color: var(--gold); }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; font-size: .94rem; font-weight: 500; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav__list a:hover { color: var(--text); }
.nav__list a.is-active { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav__foot { display: none; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 1080px) {
  .header__inner { justify-content: space-between; }
  .nav-toggle { display: inline-grid; }
  .header__actions { margin-left: auto; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); margin: 0; overflow-y: auto;
    background: var(--bg);
    padding: 24px var(--gutter) 32px;
    display: flex; flex-direction: column; justify-content: space-between;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s;
  }
  body.nav-open .header { background: var(--bg); }
  body.nav-open .nav { opacity: 1; visibility: visible; transition: opacity .25s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a {
    width: 100%; min-height: 64px; padding: 0; border-radius: 0; border-bottom: 1px solid var(--line);
    font-family: var(--font-display); font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 600; color: var(--text);
  }
  .nav__list a.is-active { background: none; color: var(--gold); }
  .nav__foot { display: block; color: var(--muted); font-size: .9rem; }
}
@media (max-width: 420px) {
  .header .btn--sm { padding: 0 16px; }
  .header__actions { gap: 8px; }
  .brand__word { font-size: 1.1rem; }
  .brand__mark { width: 26px; height: 26px; }
}
@media (max-width: 389px) { .icon-btn--wa { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 40px); isolation: isolate; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: #111 url("../videos/posters/hero.webp") center / cover no-repeat; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 13, 12, .94) 0%, rgba(11, 13, 12, .72) 38%, rgba(11, 13, 12, .2) 72%, rgba(11, 13, 12, .35) 100%),
    linear-gradient(180deg, rgba(11, 13, 12, .55) 0%, rgba(11, 13, 12, 0) 22%, rgba(11, 13, 12, 0) 60%, var(--bg) 100%);
}
.hero__reticle { position: absolute; inset: 22% 7% 24% 58%; pointer-events: none; }
.hero__reticle span { position: absolute; width: 28px; height: 28px; border: 2px solid rgba(245, 197, 24, .7); }
.hero__reticle span:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; }
.hero__reticle span:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; }
.hero__reticle span:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.hero__reticle span:nth-child(4) { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.hero__content { padding-bottom: clamp(32px, 6vh, 64px); }
.hero__title { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; max-width: 13ch; margin-bottom: 20px; letter-spacing: -.035em; }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #CDD3CC; max-width: 44ch; margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: .88rem; color: #DDE2DB; background: rgba(19, 23, 20, .6); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.chips svg { width: 16px; height: 16px; color: var(--leaf); }

.hero__bottom { display: flex; align-items: center; gap: 20px; padding-bottom: 28px; }
.hero__bottom .media-toggle { order: -1; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.scroll-cue__line { position: relative; width: 1px; height: 36px; background: var(--line-2); overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 12px; background: var(--gold); }

.media-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(11, 13, 12, .55); border: 1px solid var(--line-2); color: var(--text);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .2s, color .2s;
}
.media-toggle:hover { color: var(--gold); border-color: var(--gold-line); }
.media-toggle svg { width: 18px; height: 18px; }
.media-toggle__play { display: none; }
.media-toggle[aria-pressed="true"] .media-toggle__pause { display: none; }
.media-toggle[aria-pressed="true"] .media-toggle__play { display: block; }

@media (max-width: 820px) and (orientation: portrait) {
  .hero__media { background-image: url("../videos/posters/hero-portrait.webp"); }
  .hero__shade {
    background: linear-gradient(180deg, rgba(11, 13, 12, .55) 0%, rgba(11, 13, 12, .35) 18%, rgba(11, 13, 12, .72) 42%, rgba(11, 13, 12, .9) 70%, var(--bg) 100%);
  }
  .hero__reticle { inset: 16% 18% 52% 18%; }
}
@media (max-width: 720px) {
  .hero__reticle { display: none; }
  .hero__ctas .btn { flex: 1 1 200px; }
  .hero__bottom { padding-bottom: 20px; }
  .scroll-cue { font-size: .7rem; }
}

/* ---------- Services ---------- */
.services { background: var(--bg); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  position: relative; padding: 32px 28px; display: flex; flex-direction: column; gap: 24px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 80% at 0% 0%, rgba(245, 197, 24, .12), transparent 60%);
  transition: opacity .35s;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--gold-line); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }
.service-card__num { position: absolute; top: 24px; right: 24px; font-family: var(--font-display); font-weight: 500; font-size: .9rem; color: rgba(237, 239, 234, .3); letter-spacing: .05em; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .96rem; }

@media (max-width: 1024px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .services__grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { flex-direction: row; align-items: flex-start; gap: 16px; padding: 20px 20px 20px 18px; border-radius: var(--radius); }
  .service-card .icon-tile { width: 46px; height: 46px; flex-shrink: 0; }
  .service-card h3 { font-size: 1.1rem; margin-bottom: 4px; padding-right: 28px; }
  .service-card__num { top: 18px; right: 18px; font-size: .8rem; }
}

/* ---------- Technology ---------- */
.tech { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.tech::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(115deg, transparent 0 34px, rgba(123, 198, 126, .06) 34px 35px);
  -webkit-mask-image: radial-gradient(70% 90% at 80% 50%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 90% at 80% 50%, #000 0%, transparent 75%);
}
.tech__grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.tech__copy h2 { margin-bottom: 20px; }
.tech__copy .lead { margin-bottom: 32px; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 36px; }
.features li {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 500; font-size: .95rem; line-height: 1.35;
}
.features__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--leaf-soft); color: var(--leaf); flex-shrink: 0; }
.features__icon svg { width: 19px; height: 19px; }

.device { position: relative; justify-self: center; width: min(100%, 380px); }
.device::before {
  content: ""; position: absolute; inset: 10% -20%; z-index: 0;
  background: radial-gradient(closest-side, rgba(245, 197, 24, .22), transparent);
  filter: blur(20px);
}
.device__frame {
  position: relative; z-index: 1; aspect-ratio: 9 / 16; border-radius: 36px; padding: 10px;
  background: linear-gradient(160deg, #2a302b, #111412); border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.device__video { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; background: #1a1f1b; }
.device__tag {
  position: absolute; top: 26px; left: 26px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  background: rgba(11, 13, 12, .6); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.device__tag .dot { width: 7px; height: 7px; }
.media-toggle--sm { position: absolute; right: 22px; bottom: 22px; width: 44px; height: 44px; }

@media (max-width: 900px) {
  .tech__grid { grid-template-columns: 1fr; }
  .device { order: -1; width: auto; max-width: 340px; }
  .device__frame { max-height: 70vh; aspect-ratio: auto; height: min(70vh, 604px); }
}
@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; gap: 8px; }
  .features li { padding: 10px 14px; }
  .tech__copy .btn { width: 100%; }
}

/* ---------- Gallery ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.clip__btn {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface);
  text-align: left; isolation: isolate;
}
.clip__video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.clip__btn::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11, 13, 12, 0) 45%, rgba(11, 13, 12, .88) 100%);
  transition: opacity .3s;
}
.clip__play {
  position: absolute; z-index: 2; top: 50%; left: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(11, 13, 12, .5); border: 1px solid rgba(255, 255, 255, .3); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .3s var(--ease), background-color .3s, color .3s, opacity .3s;
}
.clip__play svg { width: 22px; height: 22px; margin-left: 3px; stroke-width: 0; }
.clip__caption {
  position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px;
  display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
}
.clip__idx { font-size: .8rem; color: var(--gold); font-weight: 500; }
.clip__btn:hover .clip__video, .clip__btn:focus-visible .clip__video { transform: scale(1.04); }
.clip__btn:hover .clip__play, .clip__btn:focus-visible .clip__play { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: scale(1.08); }
.clip__btn:hover, .clip__btn:focus-visible { border-color: var(--gold-line); }
.clip.is-playing .clip__play { opacity: 0; }
.clip.is-playing .clip__btn:hover .clip__play { opacity: 1; }

@media (max-width: 900px) {
  .gallery .container { padding-inline: 0; }
  .gallery .section-head { padding-inline: var(--gutter); }
  .gallery__grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px var(--gutter) 16px; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .gallery__grid::-webkit-scrollbar { display: none; }
  .clip { flex: 0 0 min(68vw, 300px); scroll-snap-align: start; }
  .clip__btn { aspect-ratio: 9 / 16; }
}

/* ---------- Quote calculator ---------- */
.quote { overflow: hidden; }
.quote::before {
  content: ""; position: absolute; left: 50%; top: 30%; width: 900px; height: 700px; translate: -50% 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(245, 197, 24, .09), transparent);
}
.quote__grid { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: 20px; align-items: start; }
.quote__form { padding: clamp(24px, 4vw, 40px); display: grid; gap: 28px; }
.field { border: 0; padding: 0; min-width: 0; }
.field__label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 12px; padding: 0; }
.field__hint { color: var(--muted); font-weight: 400; }
.field__error { color: #FF9C8A; font-size: .85rem; margin-top: 8px; min-height: 0; }
.field__error:empty { display: none; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: #D5DBD3;
  font-size: .93rem; font-weight: 500; transition: all .2s; cursor: pointer; user-select: none;
}
.pill small { font-size: .78rem; color: var(--leaf); font-weight: 600; }
.pill:hover span { border-color: var(--gold-line); }
.pill input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.pill input:checked + span small { color: var(--ink); opacity: .7; }
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

.stepper { display: flex; align-items: stretch; max-width: 320px; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .03); }
.stepper:focus-within { border-color: var(--gold-line); }
.stepper__btn { width: 56px; min-height: 56px; display: grid; place-items: center; color: var(--text); transition: background-color .2s, color .2s; }
.stepper__btn:hover { background: var(--gold-soft); color: var(--gold); }
.stepper__btn svg { width: 18px; height: 18px; }
.stepper input {
  flex: 1; min-width: 0; text-align: center; background: transparent; border: 0; border-inline: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; -moz-appearance: textfield; appearance: textfield;
}
.stepper input:focus { outline: none; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.is-invalid { border-color: #FF9C8A; }

.quote__result {
  padding: clamp(24px, 4vw, 36px); position: sticky; top: calc(var(--header-h) + 20px);
  background: linear-gradient(180deg, #171c18 0%, var(--surface) 100%); border-color: var(--gold-line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(245, 197, 24, .15);
}
.quote__label { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.quote__amount { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; color: var(--gold); letter-spacing: -.03em; line-height: 1.1; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.quote__tax { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.breakdown { border-top: 1px solid var(--line); margin-bottom: 24px; }
.breakdown div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.breakdown dt { color: var(--muted); }
.breakdown dd { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
#b-disc.is-on { color: var(--leaf); }
.quote__actions { display: grid; gap: 10px; }
.btn.is-disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.quote__note { color: var(--muted); font-size: .82rem; margin-top: 16px; text-align: center; }

@media (max-width: 900px) {
  .quote__grid { grid-template-columns: 1fr; }
  .quote__result { position: static; }
}
@media (max-width: 480px) {
  .pill span { padding: 0 14px; font-size: .9rem; }
  .stepper { max-width: none; }
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-2); border-block: 1px solid var(--line); }
.testimonials__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 980px; margin-inline: auto; }
.testimonial { padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 28px; position: relative; }
.testimonial__mark { width: 34px; height: 34px; color: var(--gold); opacity: .9; stroke-width: 1.5; }
.testimonial blockquote { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 500; line-height: 1.4; letter-spacing: -.01em; flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.testimonial figcaption strong { display: block; font-weight: 600; }
.testimonial figcaption span span { color: var(--muted); font-size: .9rem; }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); font-weight: 600; font-size: .9rem; border: 1px solid rgba(245, 197, 24, .25); flex-shrink: 0; }
.avatar--leaf { background: var(--leaf-soft); color: var(--leaf); border-color: rgba(123, 198, 126, .3); }
@media (max-width: 720px) { .testimonials__grid { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__info h2 { margin-bottom: 16px; }
.contact__info .lead { margin-bottom: 32px; }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.contact-list li {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.contact-list li > span:last-child { min-width: 0; }
.contact-list__k { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.contact-list__v { display: block; font-weight: 500; font-size: .95rem; overflow-wrap: anywhere; line-height: 1.4; }
a.contact-list__v:hover { color: var(--gold); }
.map { overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius); }
.map { position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) invert(.9) hue-rotate(180deg) contrast(.9); }
.map__facade {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(245, 197, 24, .16), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, .05) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, .05) 39px 40px),
    var(--surface);
}
.map__pin { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); box-shadow: 0 0 0 10px rgba(245, 197, 24, .15); }
.map__pin svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.map__addr { font-weight: 600; font-size: .98rem; }
.map__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.contact__form { padding: clamp(24px, 4vw, 40px); }
.contact__form h3 { font-size: 1.5rem; margin-bottom: 8px; }
.contact__form-sub { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
#contact-form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.float { position: relative; }
.float input, .float select, .float textarea {
  width: 100%; min-height: 58px; padding: 24px 16px 8px; border-radius: 12px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2);
  transition: border-color .2s, background-color .2s; appearance: none; -webkit-appearance: none;
}
.float textarea { resize: vertical; min-height: 130px; padding-top: 28px; }
.float select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23A3ABA3' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
.float select option { background: var(--surface); color: var(--text); }
.float label {
  position: absolute; left: 17px; top: 18px; color: var(--muted); pointer-events: none;
  transform-origin: left top; transition: transform .2s var(--ease), color .2s;
}
.float .opt { font-size: .85em; }
.float input:focus, .float select:focus, .float textarea:focus { outline: none; border-color: var(--gold); background: rgba(245, 197, 24, .04); }
.float input:focus-visible, .float select:focus-visible, .float textarea:focus-visible { box-shadow: 0 0 0 3px rgba(245, 197, 24, .25); }
.float input:focus + label, .float input:not(:placeholder-shown) + label,
.float textarea:focus + label, .float textarea:not(:placeholder-shown) + label,
.float select:focus + label, .float select:valid + label {
  transform: translateY(-10px) scale(.78); color: var(--gold);
}
.float.is-invalid input, .float.is-invalid select, .float.is-invalid textarea { border-color: #FF9C8A; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.form-actions .btn { flex: 1 1 200px; }
.form-status { font-size: .92rem; min-height: 1.4em; }
.form-status.is-ok { color: var(--leaf); }
.form-status.is-err { color: #FF9C8A; }

@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .contact-list { grid-template-columns: 1fr; gap: 8px; }
  .form-row { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4 / 3; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #080A09; padding-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer__brand p { color: var(--muted); margin-top: 12px; font-size: .94rem; max-width: 30ch; }
.footer__title { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.footer__nav ul { display: grid; gap: 2px; }
.footer__nav a, .footer__contact a { display: inline-flex; align-items: center; min-height: 36px; color: #D5DBD3; font-size: .94rem; transition: color .2s; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--gold); }
.footer__contact li { display: flex; align-items: center; gap: 10px; min-height: 36px; color: #D5DBD3; font-size: .94rem; }
.footer__contact svg { width: 16px; height: 16px; color: var(--gold); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer__bottom a { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
.footer__bottom a:hover { color: var(--gold); }
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .footer__grid { grid-template-columns: 1fr; } .footer { padding-bottom: 72px; } }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .55);
  transition: transform .25s var(--ease), opacity .3s, visibility .3s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.07); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; opacity: 0; }
body.nav-open .wa-float { opacity: 0; visibility: hidden; }
@media (max-width: 720px) { .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; } }

/* ---------- Lightbox ---------- */
.lightbox {
  padding: 0; border: 0; background: transparent; color: var(--text);
  max-width: min(94vw, 460px); width: 100%; max-height: 94vh; margin: auto; overflow: visible;
}
.lightbox::backdrop { background: rgba(5, 6, 5, .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox__inner { display: flex; flex-direction: column; gap: 12px; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lightbox__title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.lightbox__video { width: 100%; max-height: calc(94vh - 64px); aspect-ratio: 9 / 16; object-fit: contain; background: #000; border-radius: var(--radius); border: 1px solid var(--line-2); }

/* ---------- Motion (only when the user allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .services__grid .reveal:nth-child(2), .gallery__grid .reveal:nth-child(2), .testimonials__grid .reveal:nth-child(2) { transition-delay: .08s; }
  .services__grid .reveal:nth-child(3), .gallery__grid .reveal:nth-child(3) { transition-delay: .16s; }
  .services__grid .reveal:nth-child(4) { transition-delay: .24s; }
  .gallery__grid .reveal:nth-child(5) { transition-delay: .08s; }
  .gallery__grid .reveal:nth-child(6) { transition-delay: .16s; }

  .hero__content > * { animation: rise .9s var(--ease) both; }
  .hero__content > :nth-child(2) { animation-delay: .08s; }
  .hero__content > :nth-child(3) { animation-delay: .16s; }
  .hero__content > :nth-child(4) { animation-delay: .24s; }
  .hero__content > :nth-child(5) { animation-delay: .32s; }
  .scroll-cue__line::after { animation: cue 2s var(--ease) infinite; }
  .dot { animation: blink 2.4s ease-in-out infinite; }
  .wa-float::before { animation: ring 2.6s ease-out infinite; }
  .hero__reticle { animation: breathe 4s ease-in-out infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cue { 0% { transform: translateY(-12px); } 100% { transform: translateY(36px); } }
@keyframes blink { 0%, 100% { box-shadow: 0 0 0 4px var(--leaf-soft); } 50% { box-shadow: 0 0 0 7px rgba(123, 198, 126, .04); } }
@keyframes ring { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
