/* ═══════════════════════════════════════════════════════
   MUDr. Šárka Mostýnová — design system
   Primary: #35a79f
   ═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --teal:        #35a79f;
    --teal-600:    #2c8d86;
    --teal-700:    #24726c;
    --teal-800:    #1c5854;
    --teal-050:    #eef8f7;
    --teal-100:    #d8efed;

    --ink:         #14302e;   /* deep teal-charcoal for headings */
    --text:        #2b3b39;
    --muted:       #64766f;
    --line:        #e4ece9;
    --bg:          #ffffff;
    --bg-soft:     #f5faf9;

    --amber:       #f2994a;   /* warm accent, used sparingly */

    --radius:      18px;
    --radius-sm:   12px;
    --radius-pill: 999px;
    --shadow-sm:   0 1px 3px rgba(20,48,46,.06), 0 4px 12px rgba(20,48,46,.05);
    --shadow-md:   0 8px 30px rgba(20,48,46,.10);
    --shadow-lg:   0 20px 50px rgba(20,48,46,.16);

    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --max-w: 1160px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-700); text-decoration: none; transition: color .18s; }
a:hover { color: var(--teal); }
svg.ico { width: 24px; height: 24px; display: block; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5.5rem 0; }
.section--alt { background: var(--bg-soft); }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--teal-700); font-weight: 700; font-size: .82rem;
    letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--teal); border-radius: 2px; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .8rem 1.5rem; border-radius: var(--radius-pill);
    font-weight: 700; font-size: .95rem; cursor: pointer;
    border: 2px solid transparent; transition: all .2s; white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(53,167,159,.35); }
.btn--primary:hover { background: var(--teal-600); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(53,167,159,.42); }
.btn--ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn--outline { background: #fff; color: var(--teal-700); border-color: var(--line); }
.btn--outline:hover { border-color: var(--teal); color: var(--teal); }

/* ── Top info bar ───────────────────────────────────── */
.topbar {
    background: var(--teal-800); color: rgba(255,255,255,.85);
    font-size: .85rem;
}
.topbar__inner {
    max-width: var(--max-w); margin: 0 auto; padding: .5rem 1.5rem;
    display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap;
}
.topbar a { color: rgba(255,255,255,.9); display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; }
.topbar__spacer { margin-left: auto; }

/* ── Nav ────────────────────────────────────────────── */
.nav {
    background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 100;
}
.nav__inner {
    max-width: var(--max-w); margin: 0 auto; padding: .9rem 1.5rem;
    display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-700) 100%);
    color: #fff; display: grid; place-items: center;
    box-shadow: 0 4px 12px rgba(53,167,159,.35);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__text { line-height: 1.1; }
.brand__text strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.brand__text span { font-size: .78rem; color: var(--muted); }
.nav__links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav__links a { color: var(--text); font-size: .92rem; font-weight: 600; }
.nav__links a:hover { color: var(--teal); }
.nav__cta { margin-left: 1rem; }
.nav__back { color: var(--muted); font-size: .9rem; font-weight: 600; display: inline-flex; align-items: center; gap: .45rem; }
.nav__back svg { width: 17px; height: 17px; transform: rotate(180deg); }
.nav__back:hover { color: var(--teal); }

/* ── HERO (shared photo hero) ───────────────────────── */
.hero {
    position: relative; isolation: isolate;
    color: #fff; overflow: hidden;
    background: var(--teal-800);
}
.hero__bg {
    position: absolute; inset: 0; z-index: -2;
    background-image: url('/assets/img/sarka-mostynova-hero.jpg');
    background-image: image-set(url('/assets/img/sarka-mostynova-hero.avif') type('image/avif'),
                                url('/assets/img/sarka-mostynova-hero.jpg') type('image/jpeg'));
    background-size: cover; background-position: center 40%;
    transform: scale(1.04);
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(105deg, rgba(20,48,46,.90) 0%, rgba(28,88,84,.82) 45%, rgba(36,114,108,.55) 100%);
}
.hero__inner { max-width: var(--max-w); margin: 0 auto; padding: 6rem 1.5rem; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
    color: #fff; padding: .4rem 1rem; border-radius: var(--radius-pill);
    font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: 1.4rem;
}
.hero__eyebrow svg { width: 16px; height: 16px; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: 1.1rem; }
.hero__lead { font-size: 1.2rem; color: rgba(255,255,255,.92); max-width: 46ch; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero--tall .hero__inner { padding: 3rem 1.5rem; }
/* Hub title stays on two explicit lines */
.hero--tall h1 { max-width: none; margin-bottom: 0; }
/* Hero overlapped by the feature strip: shift text up so it reads optically centred
   within the *visible* area (cards cover the bottom 3.5rem). Total height unchanged. */
.hero--overlap .hero__inner { padding-top: 4.25rem; padding-bottom: 7.75rem; }

/* ── Feature strip (trust points under hero) ────────── */
.features {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem; margin-top: -3.5rem; position: relative; z-index: 5;
}
.feature {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem; box-shadow: var(--shadow-md);
    display: flex; gap: 1rem; align-items: flex-start;
}
.feature__icon {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    background: var(--teal-050); color: var(--teal-700);
    display: grid; place-items: center;
}
.feature h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.feature p { font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* ── HUB cards ──────────────────────────────────────── */
.hub-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.6rem;
}
.hub-card {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 2.2rem;
    box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .22s, border-color .22s;
    display: flex; flex-direction: column; gap: 1rem; overflow: hidden;
}
.hub-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--teal-600)); transform: scaleX(0);
    transform-origin: left; transition: transform .28s;
}
.hub-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--teal-100); color: var(--text); }
.hub-card:hover::before { transform: scaleX(1); }
.hub-card__icon {
    width: 60px; height: 60px; border-radius: 16px;
    background: var(--teal-050); color: var(--teal-700);
    display: grid; place-items: center;
}
.hub-card__icon svg { width: 30px; height: 30px; }
.hub-card h3 { font-size: 1.35rem; }
.hub-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.hub-card__cta {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--teal-700); font-weight: 700; font-size: .95rem;
}
.hub-card__cta svg { width: 18px; height: 18px; transition: transform .2s; }
.hub-card:hover .hub-card__cta svg { transform: translateX(4px); }

/* ── Section heading ────────────────────────────────── */
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { margin-bottom: .6rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head--center { margin-inline: auto; text-align: center; max-width: 860px; }
.section-head--center .eyebrow { justify-content: center; }

/* ── Aktuality ──────────────────────────────────────── */
.aktuality-list { display: grid; gap: 1.2rem; }
.aktuality-item {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.7rem 1.9rem; box-shadow: var(--shadow-sm);
    display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start;
    transition: box-shadow .2s, border-color .2s;
}
.aktuality-item:hover { box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.aktuality-date {
    text-align: center; background: var(--teal-050); color: var(--teal-700);
    border-radius: var(--radius-sm); padding: .7rem .9rem; min-width: 64px; line-height: 1.1;
}
.aktuality-date b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--teal-800); }
.aktuality-date span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.aktuality-item h3 { margin-bottom: .4rem; }
.aktuality-body { color: var(--muted); font-size: .97rem; }
.aktuality-body p { margin-bottom: .5rem; }
.aktuality-body p:last-child { margin-bottom: 0; }
.aktuality-body a { text-decoration: underline; }

/* ── Prose (O mně) ──────────────────────────────────── */
.prose { max-width: none; color: var(--text); }
.prose p { margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose__lead { font-size: 1.2rem; color: var(--ink); font-weight: 500; line-height: 1.5; margin-bottom: 1.4rem; }
.prose strong { color: var(--ink); }

/* ── Documents ──────────────────────────────────────── */
.doc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; }
.doc-item {
    display: flex; align-items: center; gap: 1rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm);
    transition: transform .18s, box-shadow .18s, border-color .18s; color: var(--text);
}
.doc-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--teal-100); text-decoration: none; }
.doc-item__icon {
    width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
    background: var(--teal-050); color: var(--teal-700); display: grid; place-items: center;
}
.doc-item__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.doc-item__body strong { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.doc-item__meta { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.doc-item__dl {
    display: inline-flex; align-items: center; gap: .4rem; flex-shrink: 0;
    color: var(--teal-700); font-weight: 700; font-size: .88rem;
}
.doc-item__dl svg { width: 18px; height: 18px; }
@media (max-width: 520px) {
    .doc-item__dl span, .doc-item__dl { font-size: 0; gap: 0; }
    .doc-item__dl svg { width: 22px; height: 22px; }
}

/* ── Opening hours (card) ───────────────────────────── */
.hours-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); overflow: hidden; max-width: 560px;
}
.hours-row {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 1.6rem; border-bottom: 1px solid var(--line);
}
.hours-row:last-child { border-bottom: none; }
.hours-row.is-today { background: var(--teal-050); }
.hours-day { font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: .7rem; }
.hours-badge-today {
    font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
    background: var(--teal); color: #fff; padding: .12rem .5rem; border-radius: var(--radius-pill);
}
.hours-time { font-weight: 700; color: var(--teal-700); font-variant-numeric: tabular-nums; }
.hours-note { color: var(--muted); font-size: .85rem; }
.hours-closed { color: var(--muted); font-style: italic; font-weight: 500; }

/* ── Contact ────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start; }
.contact-items { display: grid; gap: 1.1rem; }
.contact-items--cols { grid-template-columns: 1fr 1fr; gap: 1.4rem 2.5rem; max-width: 760px; }
@media (max-width: 560px) { .contact-items--cols { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.contact-item__icon {
    width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px;
    background: var(--teal-050); color: var(--teal-700); display: grid; place-items: center;
}
.contact-item strong {
    display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em;
    color: var(--muted); margin-bottom: .15rem; font-weight: 700;
}
.contact-item .contact-val { font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.contact-item .contact-note { display: block; font-size: .82rem; color: var(--muted); font-weight: 400; margin-top: .1rem; }
.contact-item a.contact-val:hover { color: var(--teal); }
.contact-map iframe {
    width: 100%; height: 340px; border: none; border-radius: var(--radius);
    box-shadow: var(--shadow-md); filter: saturate(1.05);
}
.contact-cta { margin-top: 1.6rem; }

/* ── Empty state ────────────────────────────────────── */
.empty {
    color: var(--muted); background: var(--bg-soft); border: 1px dashed var(--line);
    border-radius: var(--radius); padding: 2rem; text-align: center; font-style: italic;
}

/* ── Footer ─────────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 3.5rem 0 2rem; }
.footer__grid {
    display: grid; grid-template-columns: 1.7fr 1fr; gap: 3rem;
    padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer .brand__text strong { color: #fff; }
.footer .brand__text span { color: rgba(255,255,255,.6); }
.footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer a { color: rgba(255,255,255,.75); display: block; margin-bottom: .5rem; font-size: .95rem; }
.footer a:hover { color: #fff; }
.footer__intro p { font-size: .95rem; margin: 1rem 0 0; max-width: 34ch; }
/* Two columns of three icon links */
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.footer__col a { display: flex; align-items: center; gap: .6rem; overflow-wrap: anywhere; }
.footer__col a svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--teal); }
.footer__bottom { padding-top: 1.5rem; font-size: .85rem; color: rgba(255,255,255,.55); text-align: center; }

/* ── Mobile nav toggle ──────────────────────────────── */
.nav__toggle { display: none; margin-left: auto; background: none; border: none; color: var(--ink); cursor: pointer; }
.nav__toggle svg { width: 28px; height: 28px; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 420px) {
    .footer__cols { grid-template-columns: 1fr; gap: 1.8rem; }
}
@media (max-width: 760px) {
    .section { padding: 3.5rem 0; }
    .hero__inner { padding: 4.5rem 1.5rem; }
    .hero--tall .hero__inner { padding: 2.5rem 1.5rem; }
    /* no card overlap on mobile — restore symmetric padding */
    .hero--overlap .hero__inner { padding: 4.5rem 1.5rem; }
    .topbar__inner { font-size: .8rem; gap: 1rem; }
    .nav__links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
        padding: .5rem 1.5rem 1rem; box-shadow: var(--shadow-md);
    }
    .nav__links.is-open { display: flex; }
    .nav__links a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
    .nav__cta { display: none; }
    .nav__toggle { display: block; }
    .aktuality-item { grid-template-columns: 1fr; gap: .8rem; }
    .aktuality-date { display: inline-flex; gap: .4rem; align-items: baseline; min-width: 0; width: fit-content; padding: .4rem .8rem; }
    .aktuality-date b { font-size: 1.1rem; }
    .features { margin-top: 2rem; }
}
