/* ===================================================================
   KESTEN — Unified Hero System CSS
   Centralized animations, decorations, and responsive rules for all
   page hero sections. Eliminates per-page duplication and ensures
   consistent A+++ tier presentation.
   =================================================================== */

/* === SHARED KEYFRAMES === */
@keyframes kst-hero-fadein {
  0%   { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes kst-hero-glow {
  0%, 100% { text-shadow: 0 0 20px rgba(212,185,106,0); }
  50%      { text-shadow: 0 0 32px rgba(212,185,106,0.25); }
}
@keyframes kst-dark-glow {
  0%, 100% { text-shadow: 0 0 18px rgba(212,185,106,0); }
  50%      { text-shadow: 0 0 36px rgba(212,185,106,0.3); }
}
@keyframes kst-fadein-up {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes kst-hero-breathe {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes kst-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes kst-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* === BASE HERO CLASS === */
.kst-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0f0d0b 0%, #1a1714 30%, #221e18 60%, #1a1714 100%);
  color: #fff;
  padding: 140px 24px 80px;
  margin-top: -60px;
  text-align: center;
}
.kst-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(184,148,62,0.07), transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.kst-hero::after {
  content: '';
  position: absolute;
  top: 15%; right: -8%;
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(212,185,106,0.05), transparent 70%);
  pointer-events: none;
}
.kst-hero > * {
  position: relative;
  z-index: 2;
}

/* Hero animation bindings */
.kst-hero h1 {
  animation: kst-hero-fadein 1s ease-out both, kst-hero-glow 4s ease-in-out 1s infinite;
}
.kst-hero p {
  animation: kst-hero-fadein 1s ease-out 0.3s both;
}
.kst-hero a,
.kst-hero .kst-btn {
  animation: kst-hero-fadein 0.8s ease-out 0.6s both;
}

/* === HERO LABEL (small uppercase tagline) === */
.kst-hero-label {
  color: #b8943e;
  font-size: 0.78em;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 600;
}

/* === HERO HEADING === */
.kst-hero h1 {
  font-size: 2.6em;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
}
.kst-hero h1 em {
  font-style: normal;
  color: #d4b96a;
}

/* === HERO SUBTEXT === */
.kst-hero-sub {
  font-size: 1.08em;
  color: #a89e8e;
  margin: 0 auto 28px;
  line-height: 1.7;
  max-width: 620px;
}

/* === HERO CTA BUTTONS === */
.kst-btn-primary {
  display: inline-block;
  padding: 16px 40px;
  background: #d4b96a;
  color: #1a1714;
  font-weight: 700;
  border-radius: 4px;
  font-size: 1em;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.kst-btn-primary:hover {
  background: #e0c87a;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,185,106,0.3);
}
.kst-btn-outline {
  display: inline-block;
  padding: 16px 40px;
  background: transparent;
  color: #b8943e;
  font-weight: 700;
  border: 2px solid #b8943e;
  border-radius: 4px;
  font-size: 1em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.kst-btn-outline:hover {
  background: rgba(184,148,62,0.1);
  color: #d4b96a;
  transform: translateY(-1px);
}
.kst-btn-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === HERO STATS ROW === */
.kst-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.kst-stat {
  text-align: center;
  min-width: 80px;
}
.kst-stat-val {
  font-size: 2em;
  font-weight: 700;
  color: #d4b96a;
  line-height: 1;
}
.kst-stat-label {
  font-size: 0.72em;
  color: #8a7e6a;
  margin-top: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* === HERO SUBNOTE (small text under CTA) === */
.kst-hero-note {
  margin-top: 24px;
  color: #8a7e6a;
  font-size: 0.82em;
}

/* === DARK CTA SECTIONS (below hero on some pages) === */
.kst-dark-cta {
  background: linear-gradient(160deg, #13110e 0%, #1c1814 50%, #221e18 100%);
  color: #fff;
  padding: 72px 24px 80px;
  text-align: center;
  border-top: 1px solid rgba(212,185,106,0.12);
}
.kst-dark-cta h2 {
  color: #d4b96a;
  animation: kst-dark-glow 4s ease-in-out infinite;
}
.kst-dark-cta p {
  animation: kst-fadein-up 1.2s ease-out 0.3s both;
}

/* === LIGHT SECTION (white/cream bg) === */
.kst-light-section {
  background: #f9f7f4;
  padding: 64px 24px;
}

/* === HERO IMAGE (framed product shot below hero) === */
.kst-hero-image {
  max-width: 1000px;
  margin: -24px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 3;
}
.kst-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

/* === PAGE-SPECIFIC HERO VARIANTS === */

/* Compact hero (Natpisi, Laser, Kontakt — no margin-top offset needed) */
.kst-hero--compact {
  margin-top: 0;
  padding: 100px 24px 60px;
}

/* Breathe animation for gradient bg */
.kst-hero--breathe {
  background: linear-gradient(135deg, #1a1714 0%, #2a2318 40%, #1a1714 100%);
  background-size: 200% 200%;
  animation: kst-hero-breathe 8s ease-in-out infinite;
}

/* Two-column hero layout (home page) */
.kst-hero--split .kst-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .kst-hero { padding: 120px 24px 70px; }
  .kst-hero h1 { font-size: 2.2em; }
  .kst-hero--split .kst-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .kst-hero--split .kst-hero-inner > :last-child { order: -1; }
}

@media (max-width: 768px) {
  .kst-hero { padding: 100px 20px 60px; margin-top: 0; }
  .kst-hero--compact { padding: 80px 20px 50px; }
  .kst-hero h1 { font-size: 1.9em; }
  .kst-hero-sub { font-size: 1em; }
  .kst-stats { gap: 24px; }
  .kst-stat-val { font-size: 1.7em; }
  .kst-btn-primary, .kst-btn-outline { padding: 14px 32px; font-size: 0.95em; }
}

@media (max-width: 480px) {
  .kst-hero { padding: 80px 16px 48px; }
  .kst-hero--compact { padding: 64px 16px 40px; }
  .kst-hero h1 { font-size: 1.65em; }
  .kst-hero-sub { font-size: 0.95em; }
  .kst-stats { gap: 16px; }
  .kst-stat-val { font-size: 1.5em; }
  .kst-btn-group { flex-direction: column; align-items: center; }
  .kst-btn-primary, .kst-btn-outline { width: 100%; max-width: 280px; text-align: center; }
  .kst-hero-image { margin: -16px 16px 0; padding: 0; }
}

/* === FULL-WIDTH PAGE SUPPORT === */
/* Scoped to hero pages only — broad .page selector removed to prevent
   dark background bleed on non-hero pages (bug fix 2026-04-11) */
.home .nm-page-default-col,
.page-id-3078 .nm-page-default-col,
.page-id-3143 .nm-page-default-col,
.page-id-3144 .nm-page-default-col,
.page-id-3121 .nm-page-default-col,
.page-id-3167 .nm-page-default-col,
.page-id-545 .nm-page-default-col {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.home .entry-content,
.page-id-3078 .entry-content,
.page-id-3143 .entry-content,
.page-id-3144 .entry-content,
.page-id-3121 .entry-content,
.page-id-3167 .entry-content,
.page-id-545 .entry-content {
  max-width: none !important;
}

/* === PAGE-LOAD OVERLAY HIDE === */
/* Prevents FOUC from Savoy theme preload overlay on custom pages */
.kst-hero ~ .nm-page-load-overlay,
.kst-hero + .nm-page-load-overlay {
  display: none !important;
}

/* === CITY SEO LINKS === */
.kst-cities {
    padding: 40px 0 0;
    border-top: 1px solid #f0ece4;
    margin-top: 48px;
}
.kst-cities h3 {
    color: #1a1714;
    font-size: 1.1rem;
    margin: 0 0 16px;
    font-weight: 600;
}
.kst-cities-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.kst-cities-links a {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f5f0;
    color: #1a1714;
    border-radius: 8px;
    font-size: 0.88rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.kst-cities-links a:hover {
.kst-cities-links br { display: none; }
    background: #d4b96a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(212,185,106,0.25);
}
@media (max-width: 480px) {
    .kst-cities-links a {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
}