/* ============================================================
   Psychoterapeutická ambulancia – Martina Budajová
   Ľahký, responzívny štýl v duchu pôvodnej stránky.
   Farby a písma sa dajú upraviť v premenných nižšie.
   ============================================================ */

:root {
    /* Ak treba presne doladiť odtiene podľa pôvodného webu,
       stačí zmeniť tieto hodnoty: */
    --ink:        #2c2925;   /* tmavý text */
    --muted:      #6f6a62;   /* tlmený text */
    --paper:      #ffffff;   /* pozadie */
    --cream:      #f7f3ec;   /* svetlé sekcie */
    --accent:     #a8875d;   /* zlatavý akcent */
    --accent-dark:#8a6d49;
    --line:       #e6dfd3;

    --font-serif: "Old Standard TT", Georgia, "Times New Roman", serif;
    --font-sans:  "Montserrat", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --header-h: 84px;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }

p { margin: 0 0 1em; }
a { color: var(--accent-dark); }
a:hover { color: var(--ink); }

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

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0); clip-path: inset(50%);
    overflow: hidden; white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -100px; left: 12px;
    z-index: 200;
    background: var(--ink); color: #fff;
    padding: 10px 18px;
    text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Rozloženie ---------- */
.container {
    width: min(1160px, 100% - 3rem);
    margin-inline: auto;
}
.container-narrow { max-width: 820px; }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--cream); }

.eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin: 0 0 0.9em;
}
.eyebrow-light { color: #f0e6d7; }

.lead { max-width: 62ch; color: var(--muted); margin-bottom: 2.2em; }

/* ---------- Hlavička ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-solid {
    background: var(--paper);
    box-shadow: 0 1px 0 var(--line);
}

.header-inner {
    width: min(1240px, 100% - 3rem);
    margin-inline: auto;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand img { width: 133px; height: 62px; object-fit: contain; }
/* Nad fotografiou zosvetlíme logo, po zroluvaní sa vráti do pôvodných farieb */
.site-header:not(.is-solid) .brand img { filter: brightness(0) invert(1); }

.nav-list {
    display: flex;
    gap: clamp(1rem, 2.5vw, 2.2rem);
    list-style: none;
    margin: 0; padding: 0;
}
.nav-list a {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    padding: 0.5em 0;
}
.site-header.is-solid .nav-list a { color: var(--ink); }
.nav-list a:hover { color: var(--accent); }

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: 1px solid currentColor;
    border-radius: 3px;
    color: #fff;
    padding: 0.55rem 0.9rem;
    font: 600 0.72rem/1 var(--font-sans);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
}
.site-header.is-solid .nav-toggle { color: var(--ink); }
.nav-toggle-bar {
    width: 18px; height: 2px;
    background: currentColor;
    position: relative;
}
.nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ""; position: absolute; left: 0;
    width: 18px; height: 2px; background: currentColor;
}
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

/* ---------- Úvod (hero) ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    text-align: center;
    isolation: isolate;
    /* záložná farba, kým sa nenačíta fotografia */
    background: linear-gradient(160deg, #4a443c, #2c2925);
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.hero::after {
    /* jemné stmavenie fotografie kvôli čitateľnosti */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(rgba(24, 21, 18, 0.35), rgba(24, 21, 18, 0.55));
}

.hero-content {
    padding: calc(var(--header-h) + 2rem) 1.5rem 3rem;
    color: #fff;
    max-width: 900px;
}
.hero-content h1 {
    color: #fff;
    margin-bottom: 0.5em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* ---------- Tlačidlá ---------- */
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    padding: 1.3em 2.2em;
    font: 600 0.78rem/1 var(--font-sans);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-hero {
    background-color: #f1345d;
    color: #fff;
}
.btn-hero:hover { background-color: #f6587a; }

.btn-outline {
    background: transparent;
    color: var(--accent-dark);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ---------- O mne ---------- */
.cols-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 5vw, 4.5rem);
}

.list-heading {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.7em;
    margin: 2.2em 0 1em;
}
.cols-2 .list-heading:first-child, .contact-info .list-heading:first-child { margin-top: 0; }

.timeline, .plain-list {
    list-style: none;
    margin: 0; padding: 0;
}
.timeline li, .plain-list li {
    padding: 0.45em 0;
    color: var(--muted);
}
.timeline .time {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: var(--accent-dark);
}
.plain-list li::before {
    content: "–";
    color: var(--accent);
    margin-right: 0.6em;
}

.courses summary {
    cursor: pointer;
    color: var(--accent-dark);
    font-weight: 500;
}
.courses summary:hover { color: var(--ink); }
.courses[open] summary { margin-bottom: 0.5em; }

/* ---------- Služby ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 2.2rem 1.8rem;
    text-align: center;
}
.service h3 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 1.1em 0 0.7em;
}
.service p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.service-icon {
    display: inline-flex;
    width: 76px; height: 76px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--accent-dark);
}
.service-icon svg { width: 40px; height: 40px; }

/* ---------- Cenník ---------- */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.2rem;
}
.price-table td {
    padding: 1em 0.4em;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.price-table td:last-child {
    text-align: right;
    white-space: nowrap;
    font-family: var(--font-serif);
    font-size: 1.15rem;
}
.price-table tr td.subhead {
    background-color: #f7f3ec !important;
    text-align: left;
}
.price-table small { color: var(--muted); }
.note { color: var(--muted); font-size: 0.88rem; }

/* ---------- Ambulančné hodiny ---------- */
.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 0;
}
.hours-day {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 1.4rem 1rem;
    text-align: center;
}
.hours-day dt {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 0.6em;
}
.hours-day dd {
    margin: 0.2em 0 0;
    font-family: var(--font-serif);
    font-size: 1.05rem;
}

/* ---------- Kontakt ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.field { margin-bottom: 1.2rem; }
.field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.45em;
}
.field .optional { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
    width: 100%;
    padding: 0.85em 1em;
    font: 1rem var(--font-sans);
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0;
    transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.field textarea { resize: vertical; }

.field-consent {
    display: flex;
    gap: 0.7em;
    align-items: flex-start;
}
.field-consent input { margin-top: 0.35em; accent-color: var(--accent-dark); }
.field-consent label {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    font-size: 0.88rem;
    color: var(--muted);
    margin: 0;
}

/* pasca na roboty – skrytá mimo obrazovky */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.form-status { min-height: 1.5em; font-weight: 500; }
.form-status.is-ok { color: #2e6b3f; }
.form-status.is-error { color: #a13030; }

.cf-turnstile { margin-bottom: 1.2rem; }

.contact-info address {
    font-style: normal;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1em;
}
.contact-info p { color: var(--muted); }
.phone a {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--ink);
    text-decoration: none;
}
.phone a:hover { color: var(--accent-dark); }

/* ---------- Pätička ---------- */
.site-footer {
    background: var(--ink);
    color: #cfc8bd;
    padding: 2.2rem 0;
    font-size: 0.85rem;
    text-align: center;
}
.site-footer p { margin: 0; }
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
}
.footer-copy { margin: 0; }
.footer-top {
    color: #cfc8bd;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: .45em;
    transition: color .2s ease;
}
.footer-top:hover { color: #fff; }
.footer-top svg {
    width: 14px;
    height: 14px;
}

/* ---------- Cookies lišta ---------- */
.cc-banner {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 300;
    width: min(400px, calc(100vw - 2.5rem));
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    box-shadow: 0 12px 40px rgba(44, 41, 37, 0.18);
    padding: 1.5rem 1.5rem 1.25rem;
    animation: cc-in 0.4s ease both;
}
@keyframes cc-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

.cc-title {
    font-size: 1.35rem;
    margin-bottom: 0.4em;
}
.cc-text {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 1.1em;
}

.cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.cc-actions .btn {
    padding: 0.85em 1.4em;
    flex: 1 1 auto;
    text-align: center;
}

.cc-link {
    display: block;
    margin: 0.9rem auto 0;
    background: none;
    border: none;
    padding: 0.2em;
    font: 500 0.8rem var(--font-sans);
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.cc-link:hover { color: var(--ink); }

/* ---------- Nastavenia cookies (modálne okno) ---------- */
.cc-overlay {
    position: fixed;
    inset: 0;
    z-index: 310;
    background: rgba(24, 21, 18, 0.55);
    display: grid;
    place-items: center;
    padding: 1.25rem;
}
.cc-overlay[hidden], .cc-banner[hidden] { display: none; }
.cc-no-scroll { overflow: hidden; }

.cc-modal {
    position: relative;
    width: min(560px, 100%);
    max-height: min(85vh, 700px);
    overflow-y: auto;
    background: var(--paper);
    border-top: 3px solid var(--accent);
    padding: 2rem 1.75rem 1.75rem;
}
.cc-modal h2 { font-size: 1.6rem; }

.cc-close {
    position: absolute;
    top: 0.6rem; right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 0.2em 0.4em;
}
.cc-close:hover { color: var(--ink); }

.cc-cat {
    border-top: 1px solid var(--line);
    padding: 1rem 0;
}
.cc-cat p {
    margin: 0.5em 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}
.cc-cat code {
    background: var(--cream);
    padding: 0.1em 0.35em;
    font-size: 0.9em;
}
.cc-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.cc-cat-name {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.cc-always {
    font-size: 0.75rem;
    color: var(--accent-dark);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* prepínač */
.cc-switch {
    position: relative;
    display: inline-block;
    width: 46px; height: 26px;
    flex: none;
}
.cc-switch input {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}
.cc-slider {
    position: absolute;
    inset: 0;
    background: var(--line);
    border-radius: 26px;
    transition: background-color 0.2s ease;
    pointer-events: none;
}
.cc-slider::before {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}
.cc-switch input:checked + .cc-slider { background: var(--accent); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(20px); }
.cc-switch input:focus-visible + .cc-slider {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.cc-modal-actions { margin-top: 1.25rem; }

/* odkaz v pätičke */
.link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.link-btn:hover { color: #fff; }

@media (max-width: 480px) {
    .cc-banner {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        width: auto;
    }
}

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }

    nav[aria-label="Hlavná navigácia"] {
        position: absolute;
        top: 100%; left: 0; right: 0;
    }
    .nav-list {
        display: none;
        flex-direction: column;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem 0;
    }
    .nav-list.is-open { display: flex; }
    .nav-list a {
        display: block;
        color: var(--ink);
        padding: 0.9em 1.5rem;
    }

    .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Obmedzený pohyb ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

/* ---------- Tlač ---------- */
@media print {
    .site-header, .hero, form, .btn { display: none; }
}
