/* Jedeme do lazni — kampanova microsite.
   Barvy JEN pres tokeny (princip 1): modra #116397 ze zadani prebiji #0077A3 ze styleguide.
   Zdroj: podklady/ (navrh desktop 1440, mobil 402, styleguide Market Rebels), docs/DESIGN.md. */

:root {
    --c-bg: #F8F2EB;
    --c-block: #FFFFFF;
    --c-accent: #116397;
    --c-accent-hover: #0D4F79;
    --c-text: #2F2F30;
    --c-text-muted: #585858;
    --c-line: #1D1D1B;
    --shadow-card: 0 2px 14px rgba(47, 47, 48, .08);
    --radius-card: 8px;
    --container: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
    --font: 'Signika', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-footer: 'Poppins', var(--font);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-accent); }
a:hover { color: var(--c-accent-hover); }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 16px; top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--c-accent);
    color: #fff;
    border-radius: 999px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Tlacitka (pill) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 26px;
    border: 1.5px solid var(--c-accent);
    border-radius: 999px;
    font: 400 1rem/1.2 var(--font);
    text-decoration: none;
    text-align: center;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover,
.btn--primary:focus-visible { background: var(--c-accent-hover); border-color: var(--c-accent-hover); color: #fff; }
.btn--primary:active { transform: translateY(1px); }
.btn--large { min-height: 58px; padding: 14px 36px; font-size: 1.125rem; }

/* ---------- Hlavicka ---------- */
.site-header {
    background: var(--c-bg);
    border-bottom: 4px solid var(--c-line);
    position: relative;
    z-index: 20;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 116px;
}
.site-header__logo { display: inline-flex; align-items: center; min-height: 44px; }
.site-header__logo img { width: 200px; }

.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.site-nav__list {
    display: flex;
    gap: clamp(20px, 3.2vw, 46px);
    margin: 0; padding: 0;
    list-style: none;
}
.site-nav__link {
    color: var(--c-text);
    text-decoration: none;
    font-size: .9375rem;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.site-nav__link:hover,
.site-nav__link:focus-visible { color: var(--c-accent); border-bottom-color: var(--c-accent); }
.site-nav__cta { padding-inline: 28px; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero__text { text-align: center; padding-top: clamp(40px, 5vw, 64px); }
.hero__title {
    max-width: 16ch;
    margin: 0 auto;
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.hero__lead {
    max-width: 34rem;
    margin: 22px auto 0;
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    font-weight: 300;
    color: var(--c-text);
}
.hero__cta--top { margin-top: 32px; }
.hero__photos {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: clamp(-8px, 1vw, 12px);
    background: var(--c-line);
}
.hero__photo img {
    width: 100%;
    height: clamp(260px, 43vw, 640px);
    object-fit: cover;
}
.hero__photo:first-of-type img { object-position: 30% 50%; }
.hero__photo:last-of-type img { object-position: 60% 50%; }
.hero__arc {
    position: absolute;
    top: -1px; left: 0;
    width: 100%;
    height: clamp(26px, 5.4vw, 80px);
    fill: var(--c-bg);
    z-index: 1;
}
.hero__cta-bottom { display: none; }

/* ---------- Sekce ---------- */
.section-title {
    margin: 0 0 clamp(36px, 5vw, 70px);
    text-align: center;
    font-size: clamp(1.375rem, 2vw, 1.625rem);
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--c-text);
}
.card {
    background: var(--c-block);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.health { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 90px); }
.health__cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(16px, 2vw, 26px);
    margin: 0; padding: 0;
    list-style: none;
}
.health__card { display: flex; }
.health__inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 36px 14px 30px;
    text-align: center;
}
.health__link { color: var(--c-text); text-decoration: none; border-radius: var(--radius-card); transition: box-shadow .2s ease; }
.health__link:hover { color: var(--c-accent); box-shadow: 0 6px 22px rgba(17, 99, 151, .18); }
.health__icon { width: clamp(72px, 7.5vw, 104px); }
.health__label { font-size: clamp(1rem, 1.3vw, 1.1875rem); }

.reasons { padding: clamp(24px, 4vw, 40px) 0 clamp(64px, 8vw, 110px); }
.reasons__grid {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}
.reasons__list {
    margin: 0;
    padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 40px);
    list-style: none;
    display: grid;
    gap: clamp(28px, 4vw, 56px);
}
.reasons__item { display: flex; gap: 20px; align-items: flex-start; }
.reasons__pin { width: 43px; flex: none; margin-top: 2px; }
.reasons__title { margin: 0; color: var(--c-accent); font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.reasons__subtitle { margin: 4px 0 0; font-size: 1.1875rem; font-weight: 300; line-height: 1.35; }
.reasons__side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.map { position: relative; width: 100%; }
.map__img { width: 100%; }
.map__pin { position: absolute; width: clamp(18px, 1.9vw, 25px); transform: translate(-50%, -50%); }

/* ---------- Paticka (jako na jedemedolazni.cz) ---------- */
.site-footer {
    background: var(--c-accent);
    color: #fff;
    font-family: var(--font-footer);
    font-weight: 300;
    font-size: .875rem;
    padding: 50px 0 30px;
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.site-footer__brand img { width: 170px; }
.site-footer__title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 22px;
    font: 700 1.125rem/1.2 var(--font);
}
.site-footer__icon { width: 34px; height: 38px; }
.site-footer__list { margin: 0; padding: 0 0 0 50px; list-style: none; line-height: 1.72; }
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer__col--mobile .site-footer__list li:last-child { margin-top: 1em; }
.site-footer__copy { margin: 36px 0 0; text-align: center; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
    .health__cards { grid-template-columns: repeat(6, 1fr); }
    .health__card { grid-column: span 2; }
    .health__card:nth-child(4) { grid-column: 2 / span 2; }
    .reasons__grid { grid-template-columns: 1fr; }
    .reasons__list { max-width: 640px; margin: 0 auto; width: 100%; }
    .reasons__side { align-items: center; max-width: 640px; margin: 0 auto; width: 100%; }
    .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

/* ---------- Mobil: hamburger, CTA pod fotkami, karty 2+2+1 ---------- */
@media (max-width: 900px) {
    .site-header__inner { min-height: 84px; }
    .site-header__logo img { width: 150px; }

    .js .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        width: 48px; height: 48px;
        padding: 10px 8px;
        background: none;
        border: 0;
        cursor: pointer;
    }
    .nav-toggle__bar { display: block; height: 1.5px; background: var(--c-accent); transition: transform .2s ease, opacity .2s ease; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(9.5px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(4) { transform: translateY(-9.5px) rotate(-45deg); }

    .site-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        padding: 8px 0 20px;
    }
    .site-header__inner { flex-wrap: wrap; }
    .js .site-nav { display: none; }
    .js .site-nav.is-open { display: flex; }
    .site-nav__list { flex-direction: column; gap: 0; }
    .site-nav__link { display: block; padding: 12px 0; font-size: 1.0625rem; border-bottom: 1px solid rgba(47, 47, 48, .12); }
    .site-nav__cta { align-self: flex-start; }

    .hero__cta--top { display: none; }
    .hero__cta-bottom { display: flex; justify-content: center; padding-top: 28px; }
    .hero__photo img { height: clamp(150px, 43vw, 400px); }
}

@media (max-width: 600px) {
    .site-header { border-bottom-width: 0; }
    .hero__lead { color: var(--c-text-muted); font-weight: 400; }
    .health__cards { grid-template-columns: 1fr 1fr; gap: 20px 26px; padding: 0 6px; }
    .health__card, .health__card:nth-child(4) { grid-column: auto; }
    .health__card:nth-child(5):last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 13px); }
    .health__inner { padding: 28px 10px 22px; gap: 14px; }
    .health__label { font-size: .875rem; }
    .reasons__title { font-size: 1.25rem; }
    .reasons__subtitle { font-size: 1.1875rem; }
    .reasons__side { gap: 40px; margin-top: 20px; }
    .site-footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .site-footer__title { justify-content: center; }
    .site-footer__icon { display: none; }
    .site-footer__list { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
