/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* SCROLL PROGRESS BAR (injected by animations.js — see that file)        */
/* ---------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 200; /* above .site-header (100) */
  pointer-events: none;
}

/* ---------------------------------------------------------------------- */
/* HEADER                                                                  */
/* ---------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 13, 16, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: height var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}

.site-header.is-scrolled {
  height: var(--header-h-compact);
  background: rgba(11, 13, 16, 0.92);
  border-bottom-color: var(--color-border);
}

.site-header__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.brand__logo {
  height: 45px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.site-footer .brand__logo {
  height: 60px;
}

.main-nav { display: flex; }
.main-nav__list {
  display: flex;
  align-items: center;
  /* Tighter than --space-4 on purpose: with 7 top-level items (including the
     longer "Namenska rešenja" label) the section-spacing scale would crowd
     or wrap the nav right around the 1024px desktop-nav breakpoint. */
  gap: clamp(1rem, 0.5rem + 1.4vw, 2rem);
}

.main-nav__link {
  position: relative;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  padding-block: 0.4em;
  transition: color var(--dur-fast) var(--ease-out);
}
.main-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--color-accent);
  transition: right var(--dur-base) var(--ease-out);
}
.main-nav__link:hover,
.main-nav__link[aria-current="page"] { color: var(--color-text); }
.main-nav__link:hover::after,
.main-nav__link[aria-current="page"]::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin-inline: auto;
  background: var(--color-text);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile fullscreen menu */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--color-bg);
  padding: calc(var(--header-h) + var(--space-3)) var(--container-pad) var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform var(--dur-slow) var(--ease-in-out);
}
.mobile-nav.is-open { transform: translateY(0); }

.mobile-nav__list { display: flex; flex-direction: column; gap: var(--space-2); }
.mobile-nav__link {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--color-text);
  padding-block: 0.2em;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

/* ---------------------------------------------------------------------- */
/* BREADCRUMB                                                              */
/* ---------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  padding-block: var(--space-3);
}
.breadcrumb a { color: var(--color-text-faint); transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--color-accent-on-dark); }
.breadcrumb span[aria-current] { color: var(--color-text-muted); }

/* ---------------------------------------------------------------------- */
/* HERO                                                                    */
/* ---------------------------------------------------------------------- */
.hero {
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  padding-bottom: var(--space-6);
  position: relative;
  z-index: 0; /* contains hero__bg's negative z-index within this section,
                 so it can't escape and stack behind a modifier class's own
                 background (e.g. .agri-hero) further up the tree */
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__bg .media-placeholder { height: 100%; border-radius: 0; border: none; aspect-ratio: auto; }

/* Homepage hero background video — poster <img> stays in the DOM underneath
   as the immediate paint + the fallback for mobile / reduced-motion / any
   browser that can't play the <video>. */
.hero__video {
  position: absolute; inset: 0;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .hero__video { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}

/* Ambient "aurora" — slow-drifting glow in the single accent hue, sits above
   the placeholder image but is subdued by the vignette (::after) on top of
   it. Cheap to animate: only transform + opacity, no layout/paint thrash. */
.hero__bg::before {
  content: "";
  position: absolute; inset: -12%;
  z-index: 1;
  background:
    radial-gradient(38% 30% at 22% 28%, var(--color-accent-soft) 0%, transparent 72%),
    radial-gradient(34% 26% at 78% 66%, rgba(47, 111, 239, 0.16) 0%, transparent 72%);
  filter: blur(70px);
  mix-blend-mode: screen;
  animation: heroAurora 24s ease-in-out infinite alternate;
  will-change: transform;
}

/* Injected by animations.js — canvas draws faint circuit traces with
   travelling signal pulses. Sits above the aurora wash, below the vignette. */
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(6,7,9,0.55) 0%, rgba(6,7,9,0.68) 32%, rgba(6,7,9,0.88) 62%, var(--color-bg) 100%),
    linear-gradient(90deg, rgba(6,7,9,0.5) 0%, rgba(6,7,9,0.1) 42%, transparent 65%);
}

@keyframes heroAurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(3%, -4%, 0) scale(1.1); }
  100% { transform: translate3d(-4%, 3%, 0) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg::before { animation: none; }
}

.hero__tags .badge {
  background: rgba(6,7,9,0.5);
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, black, transparent 85%);
  z-index: -1;
}

.hero__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  width: 100%;
}

.hero__coords {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}
.hero__coords span { color: var(--color-accent-on-dark); }

.hero__title {
  font-size: var(--fs-4xl);
  font-weight: 500;
  color: var(--color-text);
  max-width: 20ch;
  text-shadow: 0 2px 20px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.5);
}
.hero__title em {
  font-style: normal;
  color: var(--color-text-faint);
}

.hero__sub {
  margin-top: var(--space-3);
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  max-width: 42rem;
  line-height: var(--lh-relaxed);
  text-shadow: 0 1px 14px rgba(0,0,0,0.6);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  margin-top: var(--space-3);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.hero__foot {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-text-faint);
}
.hero__foot strong { color: var(--color-text-muted); font-weight: 500; }

/* ---------------------------------------------------------------------- */
/* FEATURE BANNER (full-width photo + gradient overlay + caption)          */
/* ---------------------------------------------------------------------- */
.feature-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-border);
}
.feature-banner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.feature-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,7,9,0) 38%, rgba(6,7,9,0.58) 74%, rgba(6,7,9,0.88) 100%);
}
.feature-banner__content {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: var(--space-5);
}
.feature-banner__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--color-text);
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.feature-banner__text {
  color: var(--color-text-muted);
  margin-top: 0.4em;
  max-width: 42rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}
/* ---------------------------------------------------------------------- */
/* CARDS                                                                   */
/* ---------------------------------------------------------------------- */
.card-grid { display: grid; gap: var(--space-3); }

.service-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.service-card:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-alt);
  transform: translateY(-4px);
}

/* Cursor-reactive spotlight — --spot-x/--spot-y are set by JS (interactions
   layer in animations.js) on pointer move; falls back to centered/invisible
   if JS never sets them. Fine-pointer devices only (see media query). */
@media (hover: hover) and (pointer: fine) {
  .service-card::before,
  .category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(280px circle at var(--spot-x, 50%) var(--spot-y, 50%), var(--color-accent-soft), transparent 70%);
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease-out);
    pointer-events: none;
  }
  .service-card:hover::before,
  .category-card:hover::before { opacity: 1; }
  .service-card > *, .category-card > * { position: relative; z-index: 1; }
}

.service-card__index {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--color-accent-on-dark);
}

/* Icon variant of .service-card__index, used on contact-method cards where
   an icon reads better than a two-digit counter. */
.service-card__icon {
  width: 30px;
  height: 30px;
  color: var(--color-accent-on-dark);
  flex-shrink: 0;
}

/* ---- Contact methods (kontakt.html) ---- */
.contact-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.service-card__title {
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--color-text);
}

.service-card__text {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  flex-grow: 1;
}

.category-card {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  display: block;
}
.category-card:hover { border-color: var(--color-accent); transform: translateY(-4px); }
.category-card .media-placeholder { border-radius: 0; aspect-ratio: 5/4; }
.category-card__body { padding: var(--space-3); }
.category-card__title { font-family: var(--font-heading); font-size: var(--fs-md); color: var(--color-text); }
.category-card__meta { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--color-text-faint); margin-top: 0.4em; text-transform: uppercase; letter-spacing: 0.06em; }

.article-card { display: flex; flex-direction: column; gap: var(--space-2); }
.article-card .media-placeholder { aspect-ratio: 16/10; }
.article-card__tag { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--color-accent-on-dark); text-transform: uppercase; letter-spacing: 0.08em; }
.article-card__title { font-family: var(--font-heading); font-size: var(--fs-md); color: var(--color-text); line-height: var(--lh-snug); }
.article-card__excerpt { font-size: var(--fs-sm); color: var(--color-text-muted); }

/* ---------------------------------------------------------------------- */
/* PROCESS STEPS (FPV custom build)                                        */
/* ---------------------------------------------------------------------- */
.steps { display: grid; gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.step {
  background: var(--color-surface);
  padding: var(--space-3) var(--space-4);
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: var(--space-3);
  align-items: baseline;
}
.step__num { font-family: var(--font-mono); font-size: var(--fs-md); color: var(--color-accent-on-dark); }
.step__title { font-family: var(--font-heading); font-size: var(--fs-md); color: var(--color-text); margin-bottom: 0.3em; }
.step__text { font-size: var(--fs-sm); color: var(--color-text-muted); }

/* ---------------------------------------------------------------------- */
/* FAQ (accordion)                                                         */
/* ---------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-3);
  text-align: left;
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  color: var(--color-text);
}
.faq-item__icon { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq-item__icon::before, .faq-item__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: var(--color-text-muted); transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.faq-item__icon::before { width: 12px; height: 1px; transform: translate(-50%, -50%); }
.faq-item__icon::after { width: 1px; height: 12px; transform: translate(-50%, -50%); }
.faq-item[data-open="true"] .faq-item__icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--ease-out);
}
.faq-item__a p { padding-bottom: var(--space-3); max-width: 52rem; font-size: var(--fs-sm); }

/* ---------------------------------------------------------------------- */
/* CTA SECTION                                                             */
/* ---------------------------------------------------------------------- */
.cta-section {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
.cta-section__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}
.cta-section__title {
  font-size: var(--fs-2xl);
  font-weight: 500;
  max-width: 26ch;
}
.cta-section__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------------------------------------------------------------------- */
/* LOCATION SECTION                                                        */
/* ---------------------------------------------------------------------- */
.location {
  display: grid;
  gap: var(--space-4);
}
.location__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.location__details { display: flex; flex-direction: column; gap: var(--space-3); }
.location__row { display: flex; gap: var(--space-3); padding-block: var(--space-2); border-top: 1px solid var(--color-border); }
.location__row:last-child { border-bottom: 1px solid var(--color-border); }
.location__row dt { font-family: var(--font-mono); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-faint); width: 8rem; flex-shrink: 0; }
.location__row dd { color: var(--color-text); }

/* ---------------------------------------------------------------------- */
/* FORM                                                                    */
/* ---------------------------------------------------------------------- */
.form-grid { display: grid; gap: var(--space-3); }
.field { display: flex; flex-direction: column; gap: 0.5em; }
.field label { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-faint); }
.field input, .field select, .field textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 0.9em 1em;
  color: var(--color-text);
  font-size: var(--fs-base);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-accent); }
.field textarea { min-height: 140px; resize: vertical; }
.field__error { font-size: var(--fs-xs); color: var(--color-error); min-height: 1.2em; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--color-error); }

.field-check { display: flex; align-items: flex-start; gap: 0.7em; }
.field-check input { margin-top: 0.3em; accent-color: var(--color-accent); }
.field-check label { font-family: var(--font-body); font-size: var(--fs-xs); color: var(--color-text-muted); text-transform: none; letter-spacing: normal; }

.form-status {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: 1em 1.2em;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { border-color: var(--color-success); color: var(--color-success); }
.form-status.is-error { border-color: var(--color-error); color: var(--color-error); }

/* ---------------------------------------------------------------------- */
/* FOOTER                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-6) var(--space-4);
}
.footer-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1.4fr repeat(4, 1fr);
}
.footer-col__title { font-family: var(--font-mono); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-faint); margin-bottom: var(--space-2); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65em; }
.footer-col a { font-size: var(--fs-sm); color: var(--color-text-muted); transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--color-accent-on-dark); }
.footer-brand__desc { font-size: var(--fs-sm); color: var(--color-text-muted); max-width: 32ch; margin-top: var(--space-2); }
.footer-social { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.footer-social a { width: 36px; height: 36px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--color-text-faint);
}
.footer-legal { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ---------------------------------------------------------------------- */
/* SPEC TABLE (technical rows, used in FPV / process pages)                */
/* ---------------------------------------------------------------------- */
.spec-list { border-top: 1px solid var(--color-border); }
.spec-row { display: flex; justify-content: space-between; gap: var(--space-3); padding-block: 0.9em; border-bottom: 1px solid var(--color-border); font-size: var(--fs-sm); }
.spec-row dt { color: var(--color-text-faint); font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; }
.spec-row dd { color: var(--color-text); text-align: right; }

/* ---------------------------------------------------------------------- */
/* AUDIENCE TABS ("Find your drone" segmentation)                          */
/* ---------------------------------------------------------------------- */
.audience-tabs { display: flex; flex-wrap: wrap; gap: 0.6em; margin-bottom: var(--space-4); }
.audience-tabs button {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  padding: 0.7em 1.3em;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  transition: all var(--dur-fast) var(--ease-out);
}
.audience-tabs button[aria-selected="true"] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.audience-panel { display: none; }
.audience-panel.is-active { display: block; }

/* ---------------------------------------------------------------------- */
/* 404                                                                     */
/* ---------------------------------------------------------------------- */
.error-page {
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.error-page__code { font-family: var(--font-mono); color: var(--color-accent-on-dark); font-size: var(--fs-xs); letter-spacing: 0.1em; }
.error-page__title { font-size: var(--fs-3xl); margin-top: var(--space-2); }

/* ---------------------------------------------------------------------- */
/* WHATSAPP FLOATING BUTTON (sitewide)                                     */
/* ---------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 150; /* above .site-header (100), below mobile-nav overlay (200) */
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.08);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 34px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.14);
}
@media (max-width: 639px) {
  .whatsapp-float {
    right: var(--space-2);
    bottom: calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
    width: 50px;
    height: 50px;
  }
  .whatsapp-float svg { width: 26px; height: 26px; }
}
