/* Homepage hero - Pocetna.dc.html v4/v5. Crossfading photo panel with Ken
   Burns zoom + clickable progress bars, and a rotating word under the H1. */

@keyframes gsKen { from { transform: scale(1.02); } to { transform: scale(1.12); } }
@keyframes gsWordIn { from { opacity: 0; transform: translateY(0.45em); } to { opacity: 1; transform: none; } }
@keyframes gsBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes gsCapIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.gs-hero { position: relative; min-height: 480px; overflow: hidden; background: var(--color-surface); }
.gs-hero-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; overflow: hidden; }
.gs-hero-layer.is-active { opacity: 1; }
.gs-hero-layer-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.gs-hero-layer.is-active .gs-hero-layer-bg { animation: gsKen 7s ease-out forwards; }

.gs-hero-cap {
  position: absolute; left: 0; bottom: 0; z-index: 2; background: var(--color-bg); color: var(--color-text);
  text-decoration: none; padding: 16px 22px 18px; display: none; flex-direction: column; gap: 4px;
  border-top: 4px solid var(--color-accent);
}
.gs-hero-cap.is-active { display: flex; animation: gsCapIn .6s ease both; }
.gs-hero-cap-kicker { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-700); }
.gs-hero-cap-label { font-weight: 800; font-size: 22px; letter-spacing: -0.015em; display: flex; gap: 12px; align-items: baseline; }
.gs-hero-cap-label span { color: var(--color-accent); }

.gs-hero-bars { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: flex; gap: 6px; }
.gs-hero-bar { all: unset; cursor: pointer; width: 36px; height: 4px; background: color-mix(in srgb, var(--color-bg) 45%, transparent); position: relative; overflow: hidden; }
.gs-hero-bar-fill { position: absolute; inset: 0; background: var(--color-bg); transform-origin: left; transform: scaleX(0); }
.gs-hero-bar.is-active .gs-hero-bar-fill { animation: gsBar 5.2s linear forwards; }

.gs-rotator-word { display: inline-block; animation: gsWordIn .45s cubic-bezier(.2,.7,.2,1) both; }

@media (max-width: 680px) { .gs-hero { min-height: 320px; } }

/* Homepage sections are hand-laid-out with inline grid/padding styles (no
   classes) at desktop widths. These rules target the classes added alongside
   those inline styles to collapse the hard 3/4-column grids to a single
   column on phones - !important is required because inline style="" always
   wins over a plain class selector regardless of media query specificity. */
@media (max-width: 680px) {
  .gs-home-section { padding-left: 20px !important; padding-right: 20px !important; }
  .gs-home-cta { padding: 40px 20px !important; }
  .gs-hero-grid { grid-template-columns: 1fr !important; }
  .gs-search-form { grid-template-columns: 1fr !important; gap: 12px !important; }
  .gs-grid-3 { grid-template-columns: 1fr !important; }
  .gs-faq-layout { grid-template-columns: 1fr !important; gap: 16px !important; }
  .gs-faq-layout > h2 { margin-bottom: 4px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .gs-hero-layer { transition: opacity .3s ease; }
  .gs-hero-layer.is-active .gs-hero-layer-bg { animation: none; transform: scale(1.02); }
  .gs-hero-cap.is-active { animation: none; }
  .gs-hero-bar-fill { animation: none; }
  .gs-rotator-word { animation: none; }
}
