/* =========================================================
   STAN Zábřeh — statický export (jen HTML/CSS, žádný build)
   ========================================================= */
:root {
  /* Oficiální paleta STAN */
  --color-background: #fcf7e0;       /* krémová – nahrazuje bílou */
  --color-foreground: #2a2118;       /* tmavý text na krémové */
  --color-primary: #ce0f68;          /* tmavě růžová magenta – vždy v kontrastu s krémovou */
  --color-primary-foreground: #fcf7e0;
  --color-secondary: #ffed00;        /* žlutá – akcent pro bubliny, čísla, logo */
  --color-secondary-foreground: #ce0f68;
  --color-muted: #f6efd2;
  --color-muted-foreground: #6b5f4d;
  --color-border: #ffc0c7;           /* světle růžová – grafické prvky na krémové pod magenta textem */
  --color-surface: #fcf7e0;
  --color-person: #ffc0c7;           /* světle růžová – pozadí za portréty na krémové */
  --color-hero: #ce0f68;             /* primární magenta v kontrastu s krémovou */
  --color-hero-foreground: #fcf7e0;
  --color-footer: #2a2118;
  --color-footer-foreground: #fcf7e0;

  /* Fonty STAN */
  --font-display: "Grotesk Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-bubble: "Feature Display", Georgia, "Times New Roman", serif;
  --font-text: "Feature Text", Georgia, "Times New Roman", serif;
  --font-sans: var(--font-text);
}

* { box-sizing: border-box; }
html { 
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}
body { 
  margin: 0; 
  background: var(--color-background); 
  color: var(--color-foreground); 
  font-family: var(--font-text); 
  line-height: 1.2;
  max-width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, .logo-word, .footer-logo, .section-title, .hero__title, .eyebrow, .project-block h3, .plan-card h3, .candidate h3, .slogan-bar strong {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
.hero__kicker, .hero__cta, .hero__number, .hero__ring span, .candidate-num, .footer-right strong, .footer-links .btn-fill, .main-nav a.btn-outline-nav {
  font-family: var(--font-bubble);
  letter-spacing: 0;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: opacity .18s ease, transform .18s ease, background-color .18s ease; }
a:hover { opacity: .82; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--color-secondary); color: var(--color-secondary-foreground); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: .01ms !important; } }

.wrap { margin-inline: auto; max-width: 80rem; padding-inline: 1.25rem; }
@media (min-width: 768px) { .wrap { padding-inline: 2.5rem; } }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: none;
  color: var(--color-hero-foreground);
}
.site-header .wrap {
  position: relative;
  z-index: 1001;
  display: flex;
  height: 5rem;
  align-items: center;
  justify-content: space-between;
}
.logo-word { 
  font-family: var(--font-display); 
  font-size: clamp(1.25rem, 5vw, 1.875rem); 
  font-weight: 900; 
  text-transform: uppercase; 
  font-style: italic; 
  color: var(--color-hero-foreground);
}

.main-nav {
  position: relative;
  z-index: 1002;
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  pointer-events: auto;
}
.main-nav a {
  position: relative;
  z-index: 1003;
  display: inline-block;
  pointer-events: auto;
  cursor: pointer;
}
@media (min-width: 768px) { .main-nav { display: flex; } }
.main-nav a.btn-outline-nav { border: 1px solid var(--color-hero-foreground); padding: 0.5rem 1rem; }

/* Odstránené žlté koliesko */
.nav-badge-mobile {
  display: none !important;
}

/* ---------- Hero ---------- */
.hero { 
  position: relative; 
  overflow: hidden; 
  background: var(--color-hero); 
  color: var(--color-hero-foreground); 
  min-height: 700px; 
  display: flex; 
  align-items: flex-end; 
}
.hero__photo {
  position: absolute;
  inset-inline: 0;
  top: 10px; /* Odsazení o 10px shora */
  height: auto;
  max-height: 85%;
  width: 100%;
  object-fit: contain;
  object-position: top;
  opacity: 0.95;
}

.hero__skew { position: absolute; left: -2.25rem; top: 0; z-index: 10; height: 100%; width: 4rem; transform: skewX(-6deg); background: var(--color-secondary); pointer-events: none; }
@media (min-width: 768px) { .hero__skew { left: -3rem; width: 6rem; } }

.hero__ring {
  position: absolute; right: 2.5rem; top: 6rem; z-index: 10; display: none; place-items: center;
  width: 8rem; height: 8rem; border-radius: 999px; border: 4px solid rgba(244,228,9,0.6); pointer-events: none;
}
@media (min-width: 768px) { .hero__ring { display: grid; } }
.hero__ring span { font-size: 3.75rem; font-weight: 900; color: var(--color-secondary); }

.hero__dots { position: absolute; right: 1.25rem; bottom: 6rem; z-index: 10; display: grid; grid-template-columns: repeat(3,1fr); gap: 0.5rem; opacity: 0.6; pointer-events: none; }
@media (min-width: 768px) { .hero__dots { right: 2.5rem; bottom: 4rem; } }
.hero__dots span { width: 0.375rem; height: 0.375rem; background: var(--color-secondary); }
@media (min-width: 768px) { .hero__dots span { width: 0.5rem; height: 0.5rem; } }

.hero__content { position: relative; z-index: 20; width: 100%; padding: 12rem 1.25rem 2.5rem; }
@media (min-width: 768px) { .hero__content { padding: 36.5vw 5rem 3rem; } }
.hero__inner { max-width: 48rem; }
.hero__kicker { margin-bottom: 1rem; display: inline-block; background: var(--color-secondary); color: var(--color-secondary-foreground); padding: 0.25rem 0.6rem; font-size: 0.75rem; font-weight: 900; text-transform: uppercase; }

.hero__title { 
  font-family: var(--font-display); 
  font-size: clamp(1.85rem, 8vw, 3.75rem); 
  font-weight: 900; 
  text-transform: uppercase; 
  line-height: 1.1; 
  margin: 0 0 1.5rem 0; 
}
.hero__title em { font-style: italic; color: var(--color-secondary); }

.hero__ctas { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.hero__cta { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; background: var(--color-secondary); color: var(--color-secondary-foreground); padding: 0.75rem 1.25rem; font-size: 0.875rem; font-weight: 700; }
.hero__number { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }

.hero__stripe { position: absolute; inset-inline: 0; bottom: 0; z-index: 20; display: grid; height: 0.5rem; grid-template-columns: 2fr 1fr 1fr; }
.hero__stripe span:nth-child(1) { background: var(--color-secondary); }
.hero__stripe span:nth-child(2) { background: var(--color-primary); }
.hero__stripe span:nth-child(3) { background: var(--color-person); }

/* ---------- Slogan bar ---------- */
.slogan-bar { background: var(--color-secondary); color: var(--color-secondary-foreground); padding-block: 1.25rem; }
.slogan-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.slogan-bar strong { font-family: var(--font-display); font-size: clamp(1.2rem, 4vw, 1.875rem); text-transform: uppercase; }
.slogan-bar span { font-weight: 800; }

/* ---------- Section headings ---------- */
.section { padding: clamp(3rem, 8vw, 7rem) 1.25rem; }
.section--surface { background: #f5f0da; }
.section--primary { background: var(--color-primary); color: var(--color-primary-foreground); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.eyebrow { margin-bottom: 0.75rem; font-family: var(--font-display); font-size: 0.875rem; font-weight: 900; text-transform: uppercase; color: var(--color-primary); }
.section--primary .eyebrow { color: var(--color-secondary); }

.section-title { 
  max-width: 48rem; 
  font-family: var(--font-display); 
  font-size: clamp(2rem, 7vw, 3.75rem); 
  font-weight: 900; 
  text-transform: uppercase; 
  line-height: 1.1; 
  margin: 0; 
}

/* ---------- Project blocks (Výsledky / Projekty) ---------- */
.project-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .project-grid { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; } }
.project-block { border-top: 1px solid var(--color-border); padding-top: 1.5rem; }
@media (min-width: 768px) { .project-block { padding-top: 2rem; } }
.project-block__head { margin-bottom: 1.25rem; display: flex; align-items: flex-start; gap: 1rem; }
.project-block__icon { display: grid; place-items: center; flex-shrink: 0; width: 2.75rem; height: 2.75rem; background: var(--color-secondary); color: var(--color-secondary-foreground); }
.project-block__icon .icon { width: 1.375rem; height: 1.375rem; }
.project-block h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; line-height: 1.2; margin: 0; }
.project-block ul { display: flex; flex-direction: column; gap: 0.75rem; }
.project-block li { display: flex; gap: 0.75rem; font-size: 0.9375rem; line-height: 1.5; color: var(--color-muted-foreground); }
.project-block li .bullet { margin-top: 0.2rem; display: grid; place-items: center; flex-shrink: 0; width: 1.25rem; height: 1.25rem; border-radius: 999px; background: var(--color-primary); color: var(--color-primary-foreground); }
.project-block li .bullet .icon { width: 0.7rem; height: 0.7rem; }

/* ---------- Plans (4 icon cards) ---------- */
.plans-grid { margin-top: 2.5rem; display: grid; gap: 1px; background: rgba(253,249,240,0.25); }
@media (min-width: 640px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .plans-grid { grid-template-columns: repeat(4, 1fr); } }
.plan-card { background: var(--color-primary); padding: 1.5rem; }
@media (min-width: 768px) { .plan-card { padding: 2rem; } }
.plan-card .icon { width: 2.125rem; height: 2.125rem; margin-bottom: 1.5rem; color: var(--color-secondary); }
.plan-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; margin: 0; }
.plan-card p { margin-top: 0.75rem; line-height: 1.5; color: rgba(253,249,240,0.75); }

/* ---------- Team grid ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 0.75rem; }
@media (min-width: 500px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(4, 1fr); column-gap: 1.25rem; row-gap: 2.5rem; } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(7, 1fr); } }

.candidate-photo { position: relative; margin-bottom: 0.75rem; aspect-ratio: 4 / 5; overflow: hidden; background: var(--color-person); }
.candidate-photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; transition: transform 0.5s ease; }
.candidate-photo:hover img { transform: scale(1.04); }

.candidate-photo--yellow  { background: #FCD13A; }
.candidate-photo--green   { background: #51B88B; }
.candidate-photo--purple  { background: #9588BD; }
.candidate-photo--magenta { background: #EC63A4; }

.candidate-num {
  position: absolute; left: 0.5rem; top: 0.5rem; z-index: 10; display: grid; place-items: center;
  width: 1.875rem; height: 1.875rem; border-radius: 999px; background: var(--color-secondary);
  box-shadow: 0 0 0 2px var(--color-background);
  font-size: 0.8125rem; font-weight: 900; color: var(--color-secondary-foreground);
}
.candidate h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 800; line-height: 1.2; color: var(--color-primary); margin: 0; }
.candidate p { margin-top: 0.25rem; font-size: 0.75rem; line-height: 1.4; color: var(--color-muted-foreground); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-footer); color: var(--color-footer-foreground); padding: clamp(2.5rem, 6vw, 3.5rem) 1.25rem; }
.footer-top { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 768px) { .footer-top { grid-template-columns: 1fr auto; } }

.footer-logo { font-family: var(--font-display); font-size: clamp(2.25rem, 8vw, 3.75rem); font-weight: 900; text-transform: uppercase; font-style: italic; }
.footer-top > div:first-child > p { margin-top: 0.75rem; color: rgba(251,247,239,0.7); }

.footer-links { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.footer-links .btn-fill { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; background: var(--color-secondary); color: var(--color-secondary-foreground); padding: 0.75rem 1.25rem; font-weight: 700; }
.footer-links .btn-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid rgba(251,247,239,0.3); }

.footer-right { text-align: left; }
@media (min-width: 768px) { .footer-right { text-align: right; } }
.footer-right strong { font-size: clamp(2.25rem, 6vw, 3rem); font-weight: 900; color: var(--color-secondary); }
.footer-right p { margin-top: 0.5rem; font-size: 0.875rem; color: rgba(251,247,239,0.6); }

.footer-legal { margin-top: 2.5rem; border-top: 1px solid rgba(251,247,239,0.2); padding-top: 1.25rem; font-size: 0.75rem; color: rgba(251,247,239,0.5); }

/* ---------- Navigation / anchor fixes ---------- */
.hero__skew,
.hero__ring,
.hero__dots,
.hero__stripe {
  pointer-events: none;
}

section[id],
footer[id] {
  scroll-margin-top: 1rem;
}

/* =========================================================
   MOBILNÍ OPTIMALIZACE (Media Queries)
   ========================================================= */

@media (max-width: 767px) {
  .site-header .wrap {
    height: 4.25rem;
  }

  .hero {
    min-height: auto;
    padding-top: 0;
  }

  .hero__photo {
    position: absolute;
    top: 4.25rem;
    left: 50%;
    right: auto;
    width: 100%;
    height: auto;
    max-height: 55vh;
    transform: translateX(-50%);
    object-fit: contain;
    object-position: top center;
  }

  .hero__content {
    padding-top: clamp(16rem, 70vw, 26rem);
    padding-bottom: 2rem;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta {
    width: 100%;
  }

  .hero__number {
    text-align: center;
  }

  .hero__skew {
    width: 2.5rem;
    left: -1.5rem;
  }

  .hero__dots {
    right: 0.75rem;
    bottom: 3.5rem;
  }

  .footer-links .btn-fill {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .hero__content {
    padding-top: 15rem;
    padding-inline: 0.75rem;
  }

  .wrap {
    padding-inline: 0.75rem;
  }
}