/* ==========================================================================
   Pracovná zdravotná služba – pzskardos.sk
   Static reproduction of the original WordPress "Layers" theme design.
   Design tokens were recovered from the archived inline CSS (Wayback Machine
   snapshot 20251112050512). See CLAUDE.md for the full mapping.
   ========================================================================== */

:root {
    --font-body: "EB Garamond", Georgia, "Times New Roman", serif;
    --font-head: "Merriweather", Georgia, serif;

    --color-text: #222;
    --color-heading: #333;
    --color-header-bg: #f3f3f3;
    --color-nav-link: #5d5d5d;
    --color-link: #c1c1c1;
    --color-link-hover: #d4d4d4;
    --color-accent: #79ba9c;        /* green buttons */
    --color-accent-hover: #549978;
    --color-footer-bg: #2b2b2b;
    --color-section-alt: #f7f7f7;   /* light grey section */
    --color-white: #ffffff;

    --container-max: 1100px;
    --section-pad: 7em;             /* content-vertical-massive */
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.heading {
    font-family: var(--font-head);
    color: var(--color-heading);
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

a {
    color: var(--color-link);
    text-decoration: none;
    border-bottom: 1px solid var(--color-link);
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
a:hover { color: var(--color-link-hover); border-bottom-color: var(--color-link-hover); }

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

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5em;
}

/* ---------- Header ---------- */
.header-site {
    background: var(--color-header-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e4e4e4;
}
.header-block {
    padding: 1.4em 1.5em 0.4em;
}
.site-description { margin-bottom: .3em; }
.sitename {
    font-family: var(--font-head);
    font-size: 1.9em;
    line-height: 1.3;
    margin: 0;
    font-weight: 700;
}
.sitename a { color: #3a3a3a; border-bottom: none; }
.sitename a:hover { color: #000; }
.tagline {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95em;
    color: #4a4a4a;
    margin: .2em 0 0;
}

/* ---------- Navigation ---------- */
.nav-horizontal {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.nav-horizontal ul.menu {
    list-style: none;
    margin: 0;
    padding: .5em 0 .3em;
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.25em;
}
.nav-horizontal ul.menu li { margin: 0; }
.nav ul li a {
    color: var(--color-nav-link);
    font-family: var(--font-head);
    font-size: 0.95em;
    border-bottom: none;
    padding: .4em 0;
    display: inline-block;
}
.nav ul li a:hover,
.nav ul li.current-menu-item > a { color: #000; }

/* Hamburger toggle — CSS-only checkbox hack, shown only on small screens */
.nav-toggle {                 /* visually hidden but keyboard-focusable */
    position: absolute;
    top: 0; left: 0;
    width: 1px; height: 1px;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}
.nav-toggle-btn {
    display: none;            /* hidden on desktop, shown via media query */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px; height: 42px;
    margin-left: auto;
    padding: 0 11px;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 5px;
    cursor: pointer;
}
.nav-toggle-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-nav-link);
    transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle:focus-visible ~ .nav-toggle-btn {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ---------- Sections / widgets ---------- */
.widget {
    padding-top: var(--section-pad);
    padding-bottom: var(--section-pad);
}
.widget.bg-white { background: var(--color-white); }
.widget.bg-alt   { background: var(--color-section-alt); }

.section-title { margin-bottom: 2em; }
.section-title.text-center { text-align: center; }
.section-title .heading { margin-bottom: .3em; }
.section-title.large .heading  { font-size: 2.2em; }
.section-title.medium .heading { font-size: 1.7em; }
.section-title .excerpt { font-size: 1.1em; color: #555; }

/* ---------- Grid ---------- */
.grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1em;
}
.column {
    padding: 0 1em;
    margin-bottom: 1.5em;
}
.span-12 { width: 100%; }
.span-6  { width: 50%; }
.span-4  { width: 33.3333%; }

.media-body .heading { font-size: 1.35em; }
.excerpt p,
.excerpt ul,
.excerpt ol { font-size: 1.05em; }
.excerpt ul li,
.excerpt ol li { margin-bottom: .5em; }

/* Skúsenosti page uses widely spaced lines */
.higher-lines ul li { line-height: 2.4em; }

/* ---------- Hero (home) ---------- */
.hero {
    position: relative;
    background: #4a4a4a url("../images/titulna-fotka-zdravotne-veci-faded.jpg") center / cover no-repeat;
    color: var(--color-white);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(70, 72, 70, 0.45);
}
.hero .container { position: relative; z-index: 1; }
.hero .heading,
.hero .excerpt,
.hero p,
.hero li { color: var(--color-white); }
.hero .media-body .heading { font-size: 1.6em; }
.hero .excerpt p,
.hero .excerpt ul { font-size: 1.15em; }
.hero .intro-full { padding-top: 2em; }
.hero .intro-full .excerpt p { font-size: 1.2em; }

/* ---------- Buttons ---------- */
.button,
a.button {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white) !important;
    font-family: var(--font-head);
    font-size: 1em;
    padding: 1em 1.5em;
    border-radius: 0.25em;
    border: none;
    border-bottom: none;
    cursor: pointer;
    margin-top: .5em;
    line-height: 1.2;
}
.button:hover,
a.button:hover {
    background: var(--color-accent-hover);
    color: var(--color-white) !important;
}

/* ---------- Content images ---------- */
.media-image img {
    width: 100%;
    border-radius: 2px;
}

/* Placeholder for images that were lost (not archived) */
.img-missing {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 260px;
    padding: 2em;
    background: repeating-linear-gradient(45deg, #ececec, #ececec 12px, #f4f4f4 12px, #f4f4f4 24px);
    border: 1px dashed #c4c4c4;
    border-radius: 2px;
    color: #8a8a8a;
    font-family: var(--font-head);
    font-size: .95em;
}

/* ---------- Footer ---------- */
.footer-site {
    background: var(--color-footer-bg);
    color: #cfcfcf;
    padding: 2.5em 0;
}
.footer-site a { color: #cfcfcf; }
.copyright { display: flex; justify-content: space-between; flex-wrap: wrap; }
.site-text { margin: 0; }

/* ---------- Back to top ---------- */
#back-to-top { text-align: center; padding: 1.5em 0; }
#back-to-top a {
    color: var(--color-nav-link);
    border-bottom: none;
    font-family: var(--font-head);
    font-size: .9em;
}

/* ---------- Responsive ---------- */

/* Collapse the horizontal menu into a hamburger before it would wrap */
@media (max-width: 1000px) {
    .nav-toggle-btn { display: flex; }
    .nav-horizontal ul.menu {
        flex-basis: 100%;
        flex-direction: column;
        gap: 0;
        display: none;
        padding: .4em 0 .2em;
    }
    .nav-toggle:checked ~ ul.menu { display: flex; }
    .nav ul li { border-top: 1px solid #e4e4e4; }
    .nav ul li a {
        display: block;
        font-size: 1.05em;
        padding: .7em .1em;
    }
    /* animate the three bars into an X when open */
    .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 860px) {
    body { font-size: 17px; }
    .span-6, .span-4 { width: 100%; }
    :root { --section-pad: 4.5em; }
    .section-title.large .heading { font-size: 1.9em; }
}

@media (max-width: 620px) {
    .sitename { font-size: 1.5em; }
}
