/* ===== DEMO BANNER (floating bottom) ===== */
@keyframes bannerSlideIn {
  from { transform: translate(-50%, 120%); opacity: 0; }
  to   { transform: translate(-50%, 0);    opacity: 1; }
}
.site-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 1100;
  background: #047857;
  color: #fff;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  line-height: 1.45;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  max-width: calc(100vw - 2rem);
  animation: bannerSlideIn 0.4s cubic-bezier(.4,0,.2,1) both;
}
.site-banner a { color: #fff; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.site-banner a:hover { opacity: .85; }
.site-banner__close {
  background: none; border: none; color: rgba(255,255,255,.7); cursor: pointer;
  font-size: 1.1rem; line-height: 1; padding: 0 .25rem; margin-left: .25rem;
}
.site-banner__close:hover { color: #fff; }
.site-banner.is-hidden { display: none; }
@media (max-width: 640px) {
  .site-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    transform: none;
    max-width: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem 0.5rem;
  }
  @keyframes bannerSlideIn {
    from { transform: translateY(120%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: var(--banner-h, 0px); left: 0; width: 100%; z-index: 1000;
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: center;
  transition: padding .35s;
}
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  clip-path: inset(var(--island-top, 6px) var(--island-right, 30%) var(--island-bottom, 6px) var(--island-left, 30%) round 50px);
  filter: drop-shadow(0 2px 10px var(--nav-scrolled-shadow));
  z-index: -1;
}
.navbar.island-ready::before {
  transition: clip-path .25s cubic-bezier(.4, 0, .2, 1);
}
.navbar.scrolled::before {
  clip-path: inset(0 var(--bar-right, 2rem) 0 var(--bar-left, 2rem) round 0 0 18px 18px);
}
.navbar::after {
  content: '';
  position: absolute;
  top: var(--island-top, 6px);
  right: var(--island-right, 30%);
  bottom: var(--island-bottom, 6px);
  left: var(--island-left, 30%);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 50px;
  z-index: -1;
  pointer-events: none;
}
[data-theme="dark"] .navbar::after {
  border-color: rgba(255,255,255,.15);
}
.navbar.island-ready::after {
  transition: top .25s cubic-bezier(.4, 0, .2, 1), right .25s cubic-bezier(.4, 0, .2, 1), bottom .25s cubic-bezier(.4, 0, .2, 1), left .25s cubic-bezier(.4, 0, .2, 1), border-radius .25s cubic-bezier(.4, 0, .2, 1);
}
.navbar.scrolled::after {
  top: 0;
  right: var(--bar-right, 2rem);
  bottom: 0;
  left: var(--bar-left, 2rem);
  border-radius: 0 0 18px 18px;
  border-top: none;
}
.navbar.scrolled {
  padding: .75rem 2rem;
}
.navbar__logo {
  font-size: 1.5rem; font-weight: 900;
  color: var(--white);
  transition: color .35s;
  display: flex; align-items: center; gap: .5rem;
  position: absolute; left: 3rem;
}
[data-theme="dark"] .navbar__logo { color: #ffffff; }
.navbar__logo .logo-icon {
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 27px; height: 27px; }
.navbar__logo .logo-icon svg polygon { fill: #ffffff; transition: fill .35s; }
.navbar.scrolled .navbar__logo .logo-icon svg polygon { fill: #047857; }
[data-theme="dark"] .navbar.scrolled .navbar__logo .logo-icon svg polygon { fill: var(--green-400); }
.navbar.scrolled .navbar__logo { color: var(--green-800); }
[data-theme="dark"] .navbar.scrolled .navbar__logo { color: #ffffff; }
.navbar__links { display: flex; gap: 1.25rem; align-items: center; }
.mobile-theme-toggle { display: none; }
.navbar__links a {
  font-weight: 500; font-size: .95rem;
  color: rgba(255,255,255,.85);
  transition: color .3s;
  position: relative;
}
.navbar__links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2.5px; background: var(--green-400); border-radius: 2px;
  transition: width .3s;
}
.navbar__links a:hover::after { width: 100%; }
.navbar__links a.active::after { width: 100%; background: var(--green-500); }
.navbar__links a:not(.navbar__cta) { color: var(--text); }
.navbar__links a:not(.navbar__cta).active { color: var(--green-700); font-weight: 600; }
.navbar__links a:not(.navbar__cta):hover { color: var(--green-700); }
.navbar__links a.navbar__cta::after { display: none; }
.navbar.scrolled .navbar__links a { color: var(--text); }
.navbar.scrolled .navbar__links a.active { color: var(--green-700); }
.navbar.scrolled .navbar__links a:hover { color: var(--green-700); }
.navbar.scrolled .navbar__links a.navbar__cta { color: var(--green-600); }
.navbar.scrolled .navbar__links a.navbar__cta:hover { color: #ffffff; }
.navbar__cta {
  background: rgba(5,150,105,.08); color: var(--green-600);
  padding: .5rem 1.25rem; border-radius: 50px;
  font-weight: 700; font-size: .82rem;
  transition: all .3s;
  border: 1px solid rgba(5,150,105,.2);
  margin-left: -0.5rem;
  text-transform: uppercase; letter-spacing: .8px;
}
.navbar__cta:hover { background: var(--green-600); color: #ffffff; transform: translateY(-1px); border-color: var(--green-600); box-shadow: 0 4px 15px rgba(5,150,105,.3); }
.navbar.scrolled .navbar__cta { background: rgba(5,150,105,.08); color: var(--green-600); border-color: rgba(5,150,105,.2); }
.navbar.scrolled .navbar__cta:hover { background: var(--green-600); color: #ffffff; border-color: var(--green-600); box-shadow: 0 4px 15px rgba(5,150,105,.3); }
[data-theme="dark"] .navbar__links a.active { color: var(--green-400); }
[data-theme="dark"] .navbar__links a.active::after { background: var(--green-400); }
[data-theme="dark"] .navbar__cta { background: rgba(52,211,153,.1); color: var(--green-400); border-color: rgba(52,211,153,.2); }
[data-theme="dark"] .navbar__cta:hover { background: var(--green-500); color: #0f1419; border-color: var(--green-500); }
[data-theme="dark"] .navbar.scrolled .navbar__cta { background: rgba(52,211,153,.1); color: var(--green-400); border-color: rgba(52,211,153,.2); }
[data-theme="dark"] .navbar.scrolled .navbar__cta:hover { background: var(--green-500); color: #0f1419; border-color: var(--green-500); }

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 0;
  padding: 0;
  transition: transform .25s;
  position: absolute; right: 3rem;
}
.menu-toggle:hover { transform: scale(1.05); }
.menu-toggle:active { transform: scale(.92); }
.menu-toggle span {
  height: 2px; background: #ffffff;
  border-radius: 2px; display: block;
  transition: transform .4s cubic-bezier(.23,1,.32,1), opacity .3s, width .3s;
  transform-origin: center center;
}
.menu-toggle span:nth-child(1) { width: 20px; margin-bottom: 5px; }
.menu-toggle span:nth-child(2) { width: 14px; margin-bottom: 5px; }
.menu-toggle span:nth-child(3) { width: 20px; }
.menu-toggle:hover span:nth-child(2) { width: 20px; }
.navbar.scrolled .menu-toggle span { background: var(--text); }
.menu-toggle.active span:nth-child(1) { width: 20px; transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; width: 0; }
.menu-toggle.active span:nth-child(3) { width: 20px; transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(6,78,59,.88) 0%, rgba(4,120,87,.80) 50%, rgba(16,185,129,.70) 100%),
    url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920&q=80') center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 6rem 2rem 4rem;
}
[data-theme="dark"] .hero {
  background:
    linear-gradient(135deg, rgba(3,15,10,.92) 0%, rgba(4,47,30,.88) 50%, rgba(6,78,59,.82) 100%),
    url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920&q=80') center/cover no-repeat;
}
.hero__bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__bg-shapes .shape { position: absolute; border-radius: 50%; background: rgba(255,255,255,.04); }
.shape-1 { width: 600px; height: 600px; top: -200px; right: -150px; }
.shape-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; }
.shape-3 { width: 250px; height: 250px; top: 40%; left: 60%; }
.shape-4 { width: 150px; height: 150px; top: 20%; left: 15%; background: rgba(255,255,255,.03); }
.shape-5 { width: 100px; height: 100px; bottom: 20%; right: 20%; background: rgba(255,255,255,.05); }
.hero__particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.particle { position: absolute; width: 4px; height: 4px; background: rgba(255,255,255,.3); border-radius: 50%; }
.floating-logo { position: absolute; }
.hero__content { text-align: center; max-width: 800px; position: relative; z-index: 2; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  padding: .5rem 1.2rem; border-radius: 50px;
  font-size: .85rem; font-weight: 500; color: var(--green-200);
  margin-bottom: 1.5rem;
}
.hero__badge .pulse { width: 8px; height: 8px; background: var(--green-400); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.5); }
}
.hero__title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; color: #ffffff; line-height: 1.1; margin-bottom: 1.5rem; }
.hero__title .highlight {
  background: linear-gradient(135deg, var(--green-300), var(--green-100));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
[data-theme="dark"] .hero__title .highlight {
  background: linear-gradient(135deg, var(--green-400), var(--green-300));
  -webkit-background-clip: text; background-clip: text;
}
.hero__subtitle { font-size: 1.2rem; color: rgba(255,255,255,.8); max-width: 550px; margin: 0 auto 2rem; line-height: 1.7; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Hero search — single input + submit button, pill-shaped.
   The wrap is a positioning context for the absolute suggestions dropdown. */
.hero__search-wrap {
  position: relative;
  width: 100%; max-width: 580px;
  margin: 0 auto 2.25rem;
}
.hero__search {
  display: flex; align-items: center; gap: .5rem;
  width: 100%;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  padding: .4rem .4rem .4rem 1.25rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
}
.hero__search-icon {
  display: inline-flex; color: var(--green-700); flex-shrink: 0;
}
.hero__search-icon svg { width: 20px; height: 20px; }
.hero__search-input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 1rem; color: #0b1f17;
  padding: .6rem .25rem;
}
/* Override the global input:focus-visible green outline from base.css */
.hero__search-input:focus,
.hero__search-input:focus-visible { outline: none; box-shadow: none; }
.hero__search-input::placeholder { color: rgba(11,31,23,.5); }
.hero__search-btn {
  flex-shrink: 0; border: none; font-family: inherit; font-weight: 600;
  font-size: .95rem; color: #ffffff;
  background: var(--green-600);
  padding: .7rem 1.6rem; border-radius: 999px; cursor: pointer;
  transition: background .2s, transform .2s;
}
.hero__search-btn:hover { background: var(--green-700); transform: translateY(-1px); }
.hero__search-btn:active { transform: translateY(0); }

/* Suggestions dropdown — position:fixed so it escapes the hero's
   overflow:hidden (which is needed to clip the background shape blobs).
   Position is driven by transform (composite-only — no layout/paint
   cost on scroll); width is set by JS on open/resize. */
.hero__suggestions {
  position: fixed;
  top: 0; left: 0;
  transform: translate3d(0, 0, 0);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,.25);
  overflow: hidden;
  /* Below the navbar (z-index: 1000) so the navbar always paints on top
     if the dropdown happens to overlap mid-scroll. The JS scroll handler
     also closes the dropdown when the search bar scrolls behind the navbar. */
  z-index: 999;
  text-align: left;
  max-height: min(70vh, calc(100vh - 24px));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.hero__suggestions[hidden] { display: none; }
.hero__suggestion {
  display: flex; align-items: center; gap: .85rem;
  padding: .8rem 1.1rem;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  border: none; background: transparent;
  width: 100%; font-family: inherit; font-size: .95rem;
  text-align: left;
  transition: background .15s;
}
.hero__suggestion:hover,
.hero__suggestion.is-active {
  background: var(--green-100);
}
.hero__suggestion__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--green-100);
  color: var(--green-700);
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero__suggestion__icon svg { width: 18px; height: 18px; }
.hero__suggestion__icon img { width: 100%; height: 100%; object-fit: cover; }
.hero__suggestion__body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: .15rem;
}
.hero__suggestion__title {
  font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero__suggestion__title mark {
  background: transparent;
  color: var(--green-500);
  font-weight: 700;
}
.hero__suggestion__meta {
  font-size: .8rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero__suggestions__divider {
  height: 1px; background: var(--border); margin: .25rem 0;
}
.hero__suggestions__group-label {
  padding: .35rem 1.1rem .1rem;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--text-muted); user-select: none;
}
.hero__suggestions__empty {
  padding: 1rem 1.1rem; color: var(--text-muted); font-size: .9rem;
}

.hero__stats { display: flex; gap: 2.5rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.hero__stat { text-align: center; }
.hero__stat-number { font-size: 2.2rem; font-weight: 800; color: #ffffff; }
.hero__stat-label { font-size: .85rem; color: rgba(255,255,255,.6); margin-top: .25rem; text-transform: lowercase; letter-spacing: .5px; }
#mapa .hero__stat-number { color: var(--text); }
#mapa .hero__stat-label { color: var(--text-muted); }

@media (max-width: 560px) {
  .hero__search-wrap { max-width: 320px; }
  .hero__search {
    padding: .35rem .35rem .35rem 1rem;
    gap: .35rem;
  }
  .hero__search-input { font-size: .95rem; padding: .55rem .2rem; }
  .hero__search-btn { padding: .6rem 1.1rem; font-size: .9rem; }
  .hero__stats { gap: 1.75rem; margin-top: 1.75rem; }
  .hero__stat-number { font-size: 1.75rem; }
}

/* ===== SECTION COMMONS ===== */
.section { padding: 6rem 2rem; overflow: hidden; position: relative; }
.section--gray { background: none; }
.section--green { background: var(--bg-green); }
.section__header { text-align: center; max-width: 600px; margin: 0 auto 3.5rem; }
.section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
  color: var(--text); line-height: 1.2; margin-bottom: .75rem;
}
.section__title .text-gradient {
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section__desc { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; }
.section__cta { text-align: center; margin-top: 2.5rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section .container { position: relative; z-index: 1; }

/* ===== WAVE DIVIDERS ===== */
.wave-divider {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  margin: -1px 0;
  position: relative;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 40px;
}
.wave-divider svg path { fill: currentColor; }
.wave-divider--1 { background: var(--marquee-bg); color: var(--section-treneri-top); }
.wave-divider--2 { background: var(--section-treneri-bottom); color: var(--section-teretane-top); }
.wave-divider--3 { background: var(--section-teretane-bottom); color: var(--section-sportovi-top); }
.wave-divider--4 { background: var(--section-sportovi-bottom); color: var(--section-testimonials-top); }
.wave-divider--5 { background: var(--partners-marquee-bg); color: var(--section-kontakt-top); }

/* ===== SECTION BACKGROUNDS (top-to-bottom gradients) ===== */
#treneri {
  background: linear-gradient(to bottom, var(--section-treneri-top), var(--section-treneri-bottom));
}
#teretane {
  background: linear-gradient(to bottom, var(--section-teretane-top), var(--section-teretane-bottom));
}
#sportovi {
  background: linear-gradient(to bottom, var(--section-sportovi-top), var(--section-sportovi-bottom));
}
#kako {
  background: linear-gradient(to bottom, var(--section-sportovi-bottom), var(--section-testimonials-top));
}
#mapa {
  background: linear-gradient(to bottom, var(--section-testimonials-top), var(--section-testimonials-bottom));
}
#kontakt {
  background: linear-gradient(to bottom, var(--section-kontakt-top), var(--section-kontakt-bottom));
}

/* Decorative rings */
.section-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--deco-ring-border);
  pointer-events: none;
  transition: border-color .4s;
}
.section-ring--dashed {
  border-style: dashed;
  border-color: var(--deco-ring-dash);
}
.section-cross {
  position: absolute;
  width: 20px; height: 20px;
  pointer-events: none;
  opacity: var(--deco-cross-opacity);
  transition: opacity .4s;
}
.section-cross::before, .section-cross::after {
  content: '';
  position: absolute;
  background: var(--green-500);
  border-radius: 1px;
}
.section-cross::before { width: 100%; height: 2px; top: 50%; transform: translateY(-50%); }
.section-cross::after { width: 2px; height: 100%; left: 50%; transform: translateX(-50%); }

/* Floating section dots (desktop) */
.section-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transition: opacity .4s, border-color .4s, background .4s;
}
.section-dot--filled {
  background: var(--green-400);
  opacity: var(--deco-dot-opacity);
}
.section-dot--ring {
  background: transparent;
  border: 2px solid var(--green-400);
  opacity: var(--deco-dot-opacity);
}

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 60vh;
  overflow: hidden;
}

/* Left column — text content */
.page-hero__text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 3rem 3rem 4rem;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 100%);
}
[data-theme="dark"] .page-hero__text {
  background: linear-gradient(135deg, #030f0a 0%, #042f1e 100%);
}

/* Right column — photo */
.page-hero__photo {
  position: relative;
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
}
.page-hero__photo:hover {
  transform: scale(1.03);
}

/* Green tint overlay on photo */
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 150, 105, .35);
  pointer-events: none;
}
[data-theme="dark"] .page-hero__overlay {
  background: rgba(5, 150, 105, .5);
}

/* Badge */
.page-hero__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px;
  padding: .5rem 1.25rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--green-200);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: scale(.8);
}
.page-hero__badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--green-400);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Title */
.page-hero__title {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-align: left;
}
.page-hero__title .highlight {
  background: linear-gradient(135deg, var(--green-300), var(--green-100));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .page-hero__title .highlight {
  background: linear-gradient(135deg, var(--green-400), var(--green-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateX(-30px);
}

/* Accent line under title */
.page-hero__accent {
  width: 80px;
  height: 3px;
  margin: 0 0 1.25rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green-400), var(--green-200));
  transform: scaleX(0);
  transform-origin: left center;
}

/* Description */
.page-hero__desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  max-width: 550px;
  text-align: left;
  opacity: 0;
  transform: translateY(15px);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .page-hero {
    display: block;
    position: relative;
    min-height: 65vh;
  }
  .page-hero__photo {
    position: absolute;
    inset: 0;
    height: 100%;
    clip-path: none;
  }
  .page-hero__photo:hover { transform: none; }
  .page-hero__overlay {
    background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(6,78,59,.7) 100%);
  }
  [data-theme="dark"] .page-hero__overlay {
    background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, rgba(3,15,10,.85) 100%);
  }
  .page-hero__text {
    position: relative;
    z-index: 2;
    background: none;
    min-height: 65vh;
    padding: 7rem 1.5rem 3rem;
    align-items: center;
    text-align: center;
    justify-content: center;
  }
  [data-theme="dark"] .page-hero__text { background: none; }
  .page-hero__badge { align-self: center; }
  .page-hero__title { text-align: center; }
  .page-hero__accent { margin: 0 auto 1.25rem; }
  .page-hero__desc { text-align: center; margin: 0 auto; }
}
@media (max-width: 480px) {
  .page-hero__title { font-size: 1.85rem; }
  .page-hero__badge { font-size: .75rem; padding: .4rem 1rem; }
  .page-hero__text { padding: 6rem 1.25rem 2.5rem; }
}

/* ===== FOOTER ===== */
.footer { background: var(--footer-bg); color: rgba(255,255,255,.7); padding: 3rem 2rem 1.5rem; transition: background .4s; }
.footer__inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer__logo { font-size: 1.3rem; font-weight: 800; color: #ffffff; display: flex; align-items: center; gap: .5rem; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { font-size: .9rem; transition: color .3s; }
.footer__links a:hover { color: var(--green-400); }
.footer__copy { font-size: .8rem; }
.footer__bottom { max-width: 1200px; margin: 1.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: .8rem; }
.footer__bottom a { color: var(--green-400); text-decoration: none; font-weight: 600; transition: color .2s; }
.footer__bottom a:hover { color: var(--green-300); }
.footer__brand { display: inline-flex; align-items: center; vertical-align: middle; margin-left: .4rem; }
.footer__brand img { height: 18px; width: auto; display: block; transform: translateY(-2px); transition: opacity .2s; }
.footer__brand:hover img { opacity: .8; }

/* ===== ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-right { opacity: 0; transform: translateX(40px); }
.reveal-scale { opacity: 0; transform: scale(0.9); }
.reveal-rotate { opacity: 0; transform: translateY(30px) rotate(3deg); }

/* Revealed states (IntersectionObserver adds .revealed) */
.reveal.revealed { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(0.33,1,0.68,1), transform .8s cubic-bezier(0.33,1,0.68,1); }
.reveal-left.revealed { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(0.33,1,0.68,1), transform .8s cubic-bezier(0.33,1,0.68,1); }
.reveal-right.revealed { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(0.33,1,0.68,1), transform .8s cubic-bezier(0.33,1,0.68,1); }
.reveal-scale.revealed { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(0.34,1.56,0.64,1), transform .7s cubic-bezier(0.34,1.56,0.64,1); }
.reveal-rotate.revealed { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(0.33,1,0.68,1), transform .8s cubic-bezier(0.33,1,0.68,1); }

/* Feature items reveal */
.feature-item:not(.revealed) { opacity: 0; transform: scale(0.9); }
.feature-item.revealed { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(0.34,1.56,0.64,1), transform .6s cubic-bezier(0.34,1.56,0.64,1), background .3s; }

/* Contact info items reveal */
.contact-info__item { opacity: 0; transform: translateX(-30px); }
.contact-info__item.revealed { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(0.33,1,0.68,1), transform .6s cubic-bezier(0.33,1,0.68,1); }

/* Modal content reveals */
.modal-v2-stats { opacity: 0; transform: translateY(20px); transition: opacity .5s cubic-bezier(0.33,1,0.68,1), transform .5s cubic-bezier(0.33,1,0.68,1); }
.modal-v2-stats.revealed { opacity: 1; transform: none; }
.modal-v2-section { opacity: 0; transform: translateY(15px); transition: opacity .45s cubic-bezier(0.33,1,0.68,1), transform .45s cubic-bezier(0.33,1,0.68,1); }
.modal-v2-section.revealed { opacity: 1; transform: none; }

/* On page refresh, show all content without entrance animations */
html.is-reload .reveal,
html.is-reload .reveal-left,
html.is-reload .reveal-right,
html.is-reload .reveal-scale,
html.is-reload .reveal-rotate,
html.is-reload .feature-item,
html.is-reload .contact-info__item { opacity: 1; transform: none; }

/* Page-hero reload overrides */
html.is-reload .page-hero__badge { opacity: 1; transform: scale(1); }
html.is-reload .page-hero__title .word { opacity: 1; transform: translateX(0); }
html.is-reload .page-hero__accent { transform: scaleX(1); }
html.is-reload .page-hero__desc { opacity: 1; transform: translateY(0); }
html.is-reload .page-hero__photo { filter: blur(0px); opacity: 1; }

/* Form label focus animation (contact form only) */
.contact-form .form-group label { transition: color .3s, transform .3s; }
.contact-form .form-group:focus-within label { color: #059669; transform: translateX(4px); }

/* ===== CSS KEYFRAMES (infinite loops replacing GSAP repeat:-1) ===== */
@keyframes particleFloat {
  to { transform: translate(var(--p-dx), var(--p-dy)); opacity: 0; }
}
@keyframes floatYoyo {
  to { transform: translate(var(--f-dx), var(--f-dy)) rotate(var(--f-rot)); }
}
@keyframes shapeFloat {
  to { transform: translate(var(--s-dx), var(--s-dy)) rotate(var(--s-rot)); }
}
@keyframes iconFloat {
  to { transform: translateY(-8px); }
}
@keyframes dotFloat {
  to { transform: translate(var(--d-dx), var(--d-dy)); }
}
@keyframes spinFull {
  to { transform: rotate(360deg); }
}
@keyframes spinHalf {
  to { transform: rotate(180deg); }
}

/* Pause hero CSS animations when hero is off-screen */
.hero--offscreen .particle,
.hero--offscreen .floating-logo,
.hero--offscreen .shape { animation-play-state: paused; }

.word { display: inline-block; overflow: hidden; }
.word .word-inner { display: inline-block; }

/* ===== SCROLL-TO-TOP ===== */
.scroll-top {
  position: fixed;
  bottom: calc(2rem + env(safe-area-inset-bottom));
  right: calc(2rem + env(safe-area-inset-right));
  width: 48px; height: 48px; background: var(--green-600); color: #ffffff;
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(5,150,105,.4);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s, transform .3s;
  z-index: 999;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); }

/* ===== GENERAL COMPONENTS ===== */
.container--narrow { max-width: 720px; margin: 0 auto; }
.page-hero--small {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 180px;
  padding: 6.5rem 2rem 2rem;
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-700) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
[data-theme="dark"] .page-hero--small {
  background: linear-gradient(160deg, #030f0a 0%, #064e3b 100%);
}
.page-hero--small::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(52,211,153,.15) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(5,150,105,.1) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero--small::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52,211,153,.2), transparent);
}
.page-hero--small .page-hero__text {
  max-width: 600px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  padding: 0;
  gap: 0;
}
.page-hero--small .page-hero__badge { font-size: .7rem; margin-bottom: .5rem; }
.page-hero--small .page-hero__title { text-align: center; font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: .25rem; }
.page-hero--small .page-hero__accent { display: none; }
.page-hero--small .page-hero__desc { text-align: center; margin: 0 auto; font-size: .9rem; opacity: .8; }

/* Inner page content section — bridges the hero gradient into the page */
.section--inner {
  background: linear-gradient(to bottom, var(--section-treneri-top) 0%, var(--bg) 320px);
  min-height: 60vh;
  padding-top: 3rem;
  position: relative;
}
[data-theme="dark"] .section--inner {
  background: linear-gradient(to bottom, var(--section-treneri-top) 0%, var(--bg) 320px);
}
.section--inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: radial-gradient(ellipse at 50% 0%, rgba(16,185,129,.06) 0%, transparent 70%);
  pointer-events: none;
}
/* ===== BUTTON SYSTEM =====
   Base: pill, uppercase, bold — derived from the card ghost button.
   Types: ghost (tinted→fills), solid (always filled), danger (red ghost→fills), neutral (muted).
   Modifiers: --sm (smaller), --full (100% width). */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .6rem 1.4rem; border-radius: 50px; font-size: .85rem; font-weight: 700; font-family: inherit; text-transform: uppercase; letter-spacing: .5px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: all .2s; }
.btn--ghost { background: rgba(5,150,105,.08); color: var(--green-600); border-color: rgba(5,150,105,.2); }
.btn--ghost:hover { background: var(--green-600); color: #fff; border-color: var(--green-600); transform: translateY(-1px); }
[data-theme="dark"] .btn--ghost { background: rgba(52,211,153,.1); color: var(--green-400); border-color: rgba(52,211,153,.2); }
[data-theme="dark"] .btn--ghost:hover { background: var(--green-500); color: #0f1419; border-color: var(--green-500); }
.btn--solid { background: var(--green-600); color: #fff; border-color: var(--green-600); box-shadow: 0 2px 8px rgba(5,150,105,.2); }
.btn--solid:hover { background: var(--green-700); border-color: var(--green-700); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(5,150,105,.3); }
.btn--danger { background: rgba(220,38,38,.08); color: #dc2626; border-color: rgba(220,38,38,.2); }
.btn--danger:hover { background: #dc2626; color: #fff; border-color: #dc2626; transform: translateY(-1px); }
[data-theme="dark"] .btn--danger { background: rgba(248,113,113,.1); color: #f87171; border-color: rgba(248,113,113,.2); }
[data-theme="dark"] .btn--danger:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn--neutral { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.btn--neutral:hover { background: var(--card-bg); color: var(--text); border-color: var(--text-secondary); }
.btn--sm { padding: .35rem .85rem; font-size: .75rem; }
.btn--full { width: 100%; }
.text-muted { color: var(--text-secondary); }
.empty-state { text-align: center; padding: 3rem 1.5rem; background: var(--card-bg); border-radius: 1rem; border: 1px solid var(--border); }
.empty-state__icon { margin-bottom: 1rem; color: var(--green-500); opacity: .65; }
.empty-state h2, .empty-state h3 { margin: 0 0 .5rem; }
.empty-state p { color: var(--text-secondary); margin-bottom: 1.5rem; }

