/* ============================================================
   VIŠAVČ — Hero Section
   ============================================================ */

   .hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--hero-bg);
    transition: background 0.4s ease;
  }
  
  .hero__sky {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 50% at 30% 0%, var(--hero-sky) 0%, transparent 70%);
    pointer-events: none;
    transition: background 0.4s ease;
  }
  
  .hero__mist {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 30%;
    background: linear-gradient(to top, var(--hero-mist), transparent);
    pointer-events: none;
    z-index: 3;
    transition: background 0.4s ease;
  }
  
  /* ═══════════════════════════════════════════════════════════
     SVG Forest
  ═══════════════════════════════════════════════════════════ */
  
.hero__forest {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 2;
  pointer-events: none;
}
.hero__forest svg {
  width: 100%;
  display: block;
  height: 700px;
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    align-items: flex-start;
  }
  .hero__forest svg {
    height: 220px;
    min-height: 220px;
  }
}
  
  /* Tree fill colors light/dark */
  html.light-mode .hero__forest .fg-tree { fill: #1e4018; }
  :root:not(.light-mode) .hero__forest .fg-tree { fill: #0f2009; }
  :root:not(.light-mode) .hero__forest line { stroke: #2d5a18; }
  
  /* JS (forest.js) handles all sway and fall animations */
  
  /* Birds — CSS only, simple translateX */
  @keyframes bd {
    0%   { transform: translateX(0); }
    100% { transform: translateX(1900px); }
  }
  
  .hero__forest .birds1 { animation: bd 16s linear 0s infinite; }
  .hero__forest .birds2 { animation: bd 22s linear 0s infinite; }
  .hero__forest .birds3 { animation: bd 13s linear 0s infinite; }
  .hero__forest .birds4 { animation: bd 19s linear 0s infinite; }
  
  /* ═══════════════════════════════════════════════════════════
     Hero Glass Card
  ═══════════════════════════════════════════════════════════ */
  
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes titleGlow {
    0%   { filter: drop-shadow(0 0 18px rgba(126,200,80,.5)); }
    100% { filter: drop-shadow(0 0 48px rgba(126,200,80,.95)); }
  }
  @keyframes btnRing {
    0%, 100% { opacity: 0; transform: scale(1); }
    30%       { opacity: .5; }
    60%       { opacity: 0; transform: scale(1.15); }
  }
  
  .hero__glass-card {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(10, 26, 10, 0.52);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(126, 200, 80, 0.18);
    border-radius: var(--radius-lg);
    overflow: hidden;
    /* Push card below the fixed navbar safely */
    margin-top: calc(var(--navbar-height) + 2rem);
    margin-bottom: 6rem; /* space above stats bar */
  }
  
  html.light-mode .hero__glass-card {
    background: rgba(220, 235, 210, 0.52);
    border-color: rgba(61, 138, 40, 0.22);
  }
  
  .hero__left {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .hero__card-divider {
    width: 1px;
    background: rgba(126, 200, 80, 0.15);
    align-self: stretch;
  }
  html.light-mode .hero__card-divider {
    background: rgba(61, 138, 40, 0.18);
  }
  
  .hero__right {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* change center to flex-start */  }
  
  /* Eyebrow */
  .hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 600;
    font-family: var(--font-mono);
    margin-bottom: 1.2rem;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.7s 0.1s ease forwards;
  }

.hero__eyebrow-line,
.hero__steps-label-line {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  flex-shrink: 0;
}
  
  /* Title */
  .hero__title-wrap {
    line-height: 0.88;
    margin-bottom: 1.4rem;
    opacity: 0;
    transform: translateY(28px);
    animation: fadeUp 0.9s 0.25s ease forwards;
  }
  .hero__title-main {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 9vw, 7.5rem);
    color: var(--text-primary);
    letter-spacing: 0.02em;
  }
  .hero__title-glow {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 9vw, 7.5rem);
    color: transparent;
    -webkit-text-stroke: 2.5px var(--color-accent);
    letter-spacing: 0.02em;
    animation: titleGlow 3s ease infinite alternate 1.2s;
    filter: drop-shadow(0 0 28px var(--color-accent-glow));
  }
  
  /* Subtitle */
  .hero__subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
    max-width: 380px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.7s 0.5s ease forwards;
  }
  
  /* Buttons */
  .hero__cta-group {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.7s 0.7s ease forwards;
  }
  
  .btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-accent);
    color: var(--text-on-accent);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    padding: 0.9rem 1.8rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    overflow: hidden;
    text-decoration: none;
  }
  .btn-primary::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-accent);
    opacity: 0;
    animation: btnRing 2.5s ease-in-out infinite;
  }
  .btn-primary:hover {
    background: var(--color-canopy);
    box-shadow: 0 8px 30px var(--color-accent-glow);
    transform: translateY(-2px);
  }
  
  .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(4px);
    transition: all var(--transition-normal);
    text-decoration: none;
  }
  html.light-mode .btn-secondary {
    background: rgba(255,255,255,0.35);
  }
  .btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
  }

.hero__steps-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  font-family: var(--font-mono);
  margin-bottom: 0.35rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.7s 0.3s ease forwards;
}

  .hero__steps-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.8rem;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.7s 0.45s ease forwards;
  }
  .hero__steps {
    display: flex;
    flex-direction: column;
  }
  .hero__step {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(126, 200, 80, 0.1);
    opacity: 0;
    transform: translateY(14px);
  }
  html.light-mode .hero__step {
    border-bottom-color: rgba(61, 138, 40, 0.12);
  }
  .hero__step:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .hero__step:nth-child(1) { animation: fadeUp 0.6s 0.55s ease forwards; }
  .hero__step:nth-child(2) { animation: fadeUp 0.6s 0.70s ease forwards; }
  .hero__step:nth-child(3) { animation: fadeUp 0.6s 0.85s ease forwards; }
  
  .hero__step-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: rgba(126, 200, 80, 0.3);
    line-height: 1;
    flex-shrink: 0;
    width: 44px;
  }
  html.light-mode .hero__step-num {
    color: rgba(61, 138, 40, 0.35);
  }
  .hero__step-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
  }
  .hero__step-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
    font-weight: 300;
  }
  
  /* ═══════════════════════════════════════════════════════════
     Stats bar
  ═══════════════════════════════════════════════════════════ */
  
  .hero__stats {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 6;
    background: var(--stats-bg);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-subtle);
    transition: background 0.4s ease;
  }
  .hero__stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
  }
  .hero__stat {
    flex: 1;
    text-align: center;
    padding: 1.4rem var(--space-md);
    border-right: 1px solid var(--border-subtle);
  }
  .hero__stat:last-child { border-right: none; }
  .hero__stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
  }
  .hero__stat-label {
    display: block;
    font-size: 0.73rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.25rem;
  }
  
  /* Scroll hint */
  .hero__scroll-hint {
    position: absolute;
    bottom: 120px; left: 50%;
    transform: translateX(-50%);
    z-index: 7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fade-bob 2s ease-in-out infinite;
  }
  .hero__scroll-hint-line {
    width: 1px; height: 38px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
  }
  @keyframes fade-bob {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
    50%       { opacity: 0.85; transform: translateX(-50%) translateY(5px); }
  }
  
  /* ═══════════════════════════════════════════════════════════
     Mobile
  ═══════════════════════════════════════════════════════════ */
  
  @media (max-width: 768px) {
    .hero__glass-card {
      grid-template-columns: 1fr;
      border-radius: var(--radius-md);
      margin-top: calc(var(--navbar-height) + 1rem);
      margin-left: 1rem;
      margin-right: 1rem;
      margin-bottom: 5rem;
      width: calc(100% - 2rem);
    }
    .hero__card-divider {
      width: 100%;
      height: 1px;
      align-self: auto;
    }
    .hero__left {
      padding: 1.5rem 1.25rem;
    }
    .hero__right {
      padding: 1.5rem 1.25rem;
    }
    .hero__title-main,
    .hero__title-glow {
      font-size: clamp(3.2rem, 16vw, 5rem);
    }
    .hero__subtitle {
      max-width: 100%;
      font-size: 0.95rem;
    }
    .hero__cta-group {
      flex-direction: column;
      align-items: flex-start;
    }
    .hero__steps-title {
      margin-bottom: 1rem;
    }
    .hero__step-num {
      font-size: 1.8rem;
      width: 36px;
    }
    .hero__stats-inner { flex-wrap: wrap; }
    .hero__stat {
      flex: 1 1 45%;
      border-right: none;
      border-bottom: 1px solid var(--border-subtle);
    }
    .hero__stat:last-child { border-bottom: none; }
    .hero__scroll-hint { display: none; }
    .hero__forest { bottom: 0; }
    .hero__forest svg {
      height: 450px;
      min-height: 10px;
    }
  }

  @media (max-width: 390px) {
    .hero__glass-card {
      margin-left: 0.75rem;
      margin-right: 0.75rem;
      width: calc(100% - 1.5rem);
    }
    .hero__left,
    .hero__right {
      padding: 1.25rem 1rem;
    }
    .hero__title-main,
    .hero__title-glow {
      font-size: clamp(2.8rem, 15vw, 4rem);
    }
  }

/* JS handles all forest animations via SVG transform attribute */
.hero__forest .fg-tree,
.hero__forest .sw1, .hero__forest .sw1b,
.hero__forest .sw2, .hero__forest .sw2b,
.hero__forest .sw3, .hero__forest .sw3b,
.hero__forest .sw4, .hero__forest .sw4b,
.hero__forest .gw1, .hero__forest .gw2, .hero__forest .gw3,
.hero__forest .fw1, .hero__forest .fw2, .hero__forest .fw3 {
  animation: none !important;
}