/* ---------------------------------------------------------------
   Sdružení nezávislých kandidátů pro obec Ráby — komunální volby 2026
   --------------------------------------------------------------- */

:root {
  --barva-text: #111;
  --barva-pozadi: #fff;
  --barva-krem: #f7f5ee;
  --barva-zluta: #f2c300;
  --barva-zluta-tmava: #8a6a00;
  --barva-linka: #e2ded2;
  --pismo-text: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  --pismo-nadpis: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--barva-text);
  background: var(--barva-pozadi);
  font-family: var(--pismo-text);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--barva-text);
  outline-offset: 3px;
}

.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

/* Přeskočení na obsah -------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--barva-text);
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Hlavička -------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e8e5dc;
}
.nav { height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1.05; }
/* Logo je vodorovná sestava (značka + název), poměr stran zhruba 5,1 : 1. */
.brand-mark {
  flex: none;
  width: auto;
  height: 44px;
}
.brand small { font-size: 9px; letter-spacing: .12em; font-weight: 500; }
.site-header nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.nav-cta { padding: 10px 16px; border: 1px solid var(--barva-text); }
.menu { display: none; border: 0; background: none; font-size: 25px; line-height: 1; cursor: pointer; color: inherit; padding: 6px 10px; }

/* Hero ------------------------------------------------------------ */

.hero { position: relative; overflow: hidden; background: var(--barva-krem); min-height: 620px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: auto -10% -180px; height: 330px; background: var(--barva-zluta); transform: rotate(-4deg); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 80px; align-items: center; padding: 90px 0; }
.eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.hero h1, h2 { font-family: var(--pismo-nadpis); line-height: 1.12; }
.hero h1 { font-size: clamp(48px, 7vw, 82px); margin: 0 0 24px; letter-spacing: -.04em; }
.hero h1 span { background: linear-gradient(transparent 60%, var(--barva-zluta) 60%); }
.lead { font-size: 21px; max-width: 600px; }
.hero-actions { display: flex; gap: 24px; align-items: center; margin-top: 34px; flex-wrap: wrap; }
.button { display: inline-block; background: var(--barva-text); color: #fff; padding: 14px 22px; font-weight: 700; }
.text-link { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.hero-card {
  background: var(--barva-text);
  color: #fff;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transform: rotate(2deg);
  box-shadow: 18px 18px 0 var(--barva-zluta);
  padding: 20px;
}
.castle { font-family: Georgia, 'Times New Roman', serif; font-size: 130px; font-weight: 700; line-height: 1; margin: 0; }
.hero-card p:last-child { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; margin: 12px 0 0; }

/* Sekce ----------------------------------------------------------- */

.section { padding: 105px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.intro h2, .section-head h2 { font-size: 44px; margin: 0; }
.intro p { font-size: 18px; }
.section-head { display: flex; justify-content: space-between; gap: 60px; align-items: end; margin-bottom: 55px; }
.section-note { max-width: 470px; margin: 0; }

/* Co nabízíme ----------------------------------------------------- */

.offer { background: var(--barva-text); color: #fff; }
.offer .section-note { color: #cfcfcf; }
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; margin: 0; padding: 0; }
.offer-item { border-top: 2px solid var(--barva-zluta); padding-top: 18px; }
.offer-item > span { color: var(--barva-zluta); font-weight: 700; }
.offer-item h3 { font-family: var(--pismo-nadpis); font-size: 22px; }
.offer-item p { color: #ddd; margin-bottom: 0; }

/* Kandidáti ------------------------------------------------------- */

.candidates { background: var(--barva-krem); }
.candidate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.candidate-grid > li { display: flex; }
.candidate { background: #fff; border: 1px solid var(--barva-linka); padding: 25px; width: 100%; }
.candidate-top { display: flex; justify-content: space-between; color: #6a6a6a; font-size: 12px; margin: 0; }
.number { color: var(--barva-text); font-weight: 700; }
.candidate h3 { font-family: var(--pismo-nadpis); font-size: 22px; margin: 18px 0 6px; }
.candidate p { font-size: 14px; }
.candidate .role { font-weight: 600; margin: 0; }
.candidate .local { color: var(--barva-zluta-tmava); font-weight: 700; margin: 4px 0 15px; }
.candidate p:last-child { margin-bottom: 0; }

/* Volby ----------------------------------------------------------- */

.election { background: var(--barva-zluta); padding: 70px 0; }
.election-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.election h2 { font-size: 38px; margin: 0 0 10px; max-width: 760px; }
.election p { margin: 0; }
.vote-mark { text-align: center; font-weight: 700; font-size: 38px; line-height: .9; margin: 0; }
.vote-mark span { font-size: 22px; }

/* Časté otázky ---------------------------------------------------- */

.faq .faq-list { border-top: 1px solid var(--barva-linka); }
.faq details { border-bottom: 1px solid var(--barva-linka); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  margin-left: auto;
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
}
.faq details[open] summary::after { content: '–'; }
.faq summary h3 { font-family: var(--pismo-nadpis); font-size: 20px; margin: 0; font-weight: 700; }
.faq details > p { margin: 0 0 24px; max-width: 820px; font-size: 17px; }

/* Závěr a patička -------------------------------------------------- */

.closing { padding: 100px 0; }
.closing-box { border: 2px solid var(--barva-text); padding: 55px; text-align: center; }
.closing h2 { font-size: 42px; margin: 0 0 15px; }
.closing p:last-child { max-width: 620px; margin: 0 auto; }

footer { background: var(--barva-text); color: #fff; padding: 25px 0; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-inner span:last-child { color: var(--barva-zluta); }

footer :focus-visible, .offer :focus-visible { outline-color: var(--barva-zluta); }

/* Responzivní chování ---------------------------------------------- */

@media (max-width: 800px) {
  .site-header nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 70px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 12px; }
  .menu { display: block; }
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 45px; }
  .hero { min-height: auto; }
  .hero-grid { padding: 70px 0 120px; }
  .hero-card { max-width: 330px; }
  .section { padding: 75px 0; }
  .section-head { display: block; }
  .section-note { margin-top: 20px; }
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .candidate-grid { grid-template-columns: 1fr 1fr; }
  .election-inner { display: block; }
  .vote-mark { text-align: left; margin-top: 30px; }
  .closing-box { padding: 35px 20px; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1120px); }
  .brand-mark { height: 34px; }
  .hero h1 { font-size: 48px; }
  .lead { font-size: 18px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .offer-grid, .candidate-grid { grid-template-columns: 1fr; }
  .intro h2, .section-head h2, .closing h2, .election h2 { font-size: 32px; }
  .faq summary h3 { font-size: 18px; }
  .footer-inner { display: block; }
  .footer-inner span { display: block; margin: 5px 0; }
}

/* Omezený pohyb ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Tisk -------------------------------------------------------------- */

@media print {
  .site-header, .menu, .skip-link, .hero-bg { display: none !important; }
  body { color: #000; background: #fff; }
  .hero, .candidates, .offer, .election { background: #fff !important; color: #000 !important; }
  .offer .section-note, .offer-item p { color: #000 !important; }
  .hero-card { box-shadow: none; transform: none; border: 2px solid #000; color: #000; background: #fff; }
  .faq details { display: block; }
  .faq details > p { display: block !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; }
}
