:root {
    --primary-color: #3d2b1f;
    --accent-color: #f9f7f2;
    --text-color: #333;
    --white: #ffffff;

    /* Tints & shades derived from the two colors above — same palette, more range */
    --tint: #a49b93;      /* warm mocha, used for hairlines & small accents */
    --tint-soft: #ddd8d2; /* pale warm grey, used for quiet backgrounds */
    --deep: #2b1e16;      /* deeper shade of primary, used for rich dark panels */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--primary-color); margin: 0; }
h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); font-weight: 500; letter-spacing: 1px; }
h2 { font-size: clamp(1.8rem, 5vw, 2.7rem); }

a { color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.kicker, .eyebrow {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tint);
    margin: 0 0 14px;
}
.center { text-align: center; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Divider ornament */
.divider { display: flex; align-items: center; margin: 40px 0; }
.divider span { display: block; width: 60px; height: 1px; background: var(--tint); }
.divider.narrow { justify-content: center; margin: 50px auto; }

/* Header */
#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(249, 247, 242, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(61, 43, 31, 0.08);
    transition: box-shadow 0.4s ease;
}
#site-header.is-scrolled { box-shadow: 0 10px 30px rgba(61, 43, 31, 0.08); }
nav { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.logo-link img { height: 110px; width: auto; transition: transform 0.4s ease; }
.logo-link:hover img { transform: scale(1.05); }
nav ul { display: flex; list-style: none; gap: 6px; margin: 0; padding: 0; }
.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 600;
    padding: 12px 18px;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 18px; right: 18px; bottom: 8px;
    height: 1px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--primary-color); }

/* Hero */
.hero {
    position: relative;
    height: 92vh;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: url('pictures/vlasy-bg.jpg') center/cover;
    transform: scale(1.06);
}
.hero-veil {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(43,30,22,0.55) 0%, rgba(43,30,22,0.35) 45%, rgba(43,30,22,0.75) 100%);
}
.hero-content { position: relative; z-index: 2; color: var(--white); }
.hero .eyebrow { color: var(--tint-soft); }
.hero h1 { color: var(--white); text-shadow: 0 4px 30px rgba(0,0,0,0.45); }
.hero h1 .amp { color: var(--tint-soft); font-style: italic; }
.hero .lede {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.1rem, 2.6vw, 1.4rem);
    color: var(--tint-soft);
    margin: 18px 0 34px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.scroll-cue {
    position: absolute;
    left: 50%; bottom: 34px;
    transform: translateX(-50%);
    width: 24px; height: 40px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    z-index: 2;
}
.scroll-cue span {
    position: absolute; top: 8px; left: 50%;
    width: 4px; height: 4px;
    margin-left: -2px;
    background: var(--white);
    border-radius: 50%;
    animation: cue-drop 1.8s ease infinite;
}
@keyframes cue-drop {
    0% { opacity: 1; top: 8px; }
    70% { opacity: 0; top: 22px; }
    100% { opacity: 0; top: 22px; }
}

/* Buttons */
.btn-main {
    position: relative;
    display: inline-block;
    padding: 17px 42px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.4s ease, box-shadow 0.4s ease;
}
.btn-main::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--deep);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
    z-index: -1;
}
.btn-main:hover::before { transform: scaleX(1); }
.btn-main:hover { box-shadow: 0 12px 30px rgba(43, 30, 22, 0.3); }

/* Sections */
section { padding: 130px 0; scroll-margin-top: 110px; }
.section-sub { color: var(--tint); font-family: 'Playfair Display', serif; font-style: italic; margin-top: -10px; }

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: center;
}
.about-portrait { position: relative; }
.portrait-frame {
    aspect-ratio: 3 / 4;
    background: url('pictures/vlasy-bg.jpg') center 20%/cover;
    box-shadow: 22px 22px 0 var(--tint-soft);
}
.portrait-frame.trichologie-photo {
    background-image: url('pictures/trichologie.JPG');
}
.portrait-frame.onas-photo {
    background-image: url('pictures/vlasy2.jpg');
}
.portrait-frame.home-photo {
    background-image: url('pictures/vlasy3.jpg');
}
.portrait-frame.zoomable { cursor: zoom-in; }

/* Lightbox — zvětšení fotky po kliknutí */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(20, 14, 10, 0.88);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.92);
    transition: transform 0.3s ease;
}
.lightbox.is-open img { transform: scale(1); }
.about-copy .drop-cap::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 3.6rem;
    float: left;
    line-height: 0.8;
    padding: 8px 10px 0 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Services / menu */
.menu { max-width: 760px; margin: 50px auto 0; }
.menu-category { border-bottom: 1px solid rgba(61,43,31,0.15); }
.menu-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 26px 4px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--primary-color);
    text-align: left;
}
.menu-toggle-icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; margin-left: 20px; }
.menu-toggle-icon::before, .menu-toggle-icon::after {
    content: '';
    position: absolute; top: 50%; left: 50%;
    background: var(--primary-color);
    transition: transform 0.35s ease;
}
.menu-toggle-icon::before { width: 16px; height: 1px; transform: translate(-50%, -50%); }
.menu-toggle-icon::after { width: 1px; height: 16px; transform: translate(-50%, -50%); }
.menu-category.is-open .menu-toggle-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.menu-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.5s ease;
}
.menu-category.is-open .menu-panel { opacity: 1; margin-bottom: 30px; }

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    padding: 12px 4px;
    font-size: 0.92rem;
}
.menu-item-name { color: var(--text-color); font-weight: 400; }
.menu-item-time {
    display: block;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.8em;
    color: var(--tint);
    margin-top: 3px;
}
.menu-item-price { color: var(--primary-color); font-weight: 600; white-space: nowrap; padding-bottom: 2px; }
.menu-note { font-size: 0.85rem; font-style: italic; color: #777; margin: 10px 4px 4px; }

.services-cta { text-align: center; margin-top: 60px; }
.services-cta p { color: #777; margin-bottom: 22px; }

/* Specializace — karty */
.specialty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}
.specialty-card {
    padding: 34px 30px;
    border: 1px solid rgba(61,43,31,0.12);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.specialty-card:hover { border-color: var(--tint); transform: translateY(-4px); }
.specialty-card h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0 0 12px;
    color: var(--primary-color);
}
.specialty-card p { margin: 0; font-size: 0.92rem; color: #777; }
.specialty-card .link-more { margin-top: 16px; font-size: 0.92rem; }

/* Contact / footer */
footer {
    background: var(--deep);
    color: var(--tint-soft);
    text-align: center;
    padding: 130px 0 60px;
}
footer h2 { color: var(--white); }
footer .kicker { color: var(--tint); }

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin: 50px 0;
}
.contact-item { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 240px; }
.contact-icon {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px;
    border: 1px solid var(--tint);
    border-radius: 50%;
    color: var(--tint-soft);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-item p { margin: 0; }
.contact-item a { text-decoration: none; }
.contact-item a:hover { color: var(--white); }

.contact-item--map { cursor: pointer; transition: opacity 0.3s ease; }
.contact-item--map:hover, .contact-item--map:focus-visible { opacity: 0.75; }

/* Mapa — náhled polohy po kliknutí na adresu */
.map-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(20, 14, 10, 0.88);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.map-lightbox.is-open { opacity: 1; visibility: visible; }
.map-lightbox-inner {
    width: min(900px, 92vw);
    height: min(560px, 80vh);
    background: var(--white);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.94);
    transition: transform 0.3s ease;
}
.map-lightbox.is-open .map-lightbox-inner { transform: scale(1); }
.map-lightbox-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    background: var(--deep);
    flex-shrink: 0;
}
.map-lightbox-link { color: var(--tint-soft); font-size: 0.78rem; letter-spacing: 0.5px; text-decoration: none; }
.map-lightbox-link:hover { color: var(--white); }
.map-lightbox-close {
    width: 28px; height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--tint);
    color: var(--tint-soft);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.map-lightbox-close:hover { color: var(--white); border-color: var(--white); }
.map-lightbox-inner iframe { flex: 1; width: 100%; border: 0; display: block; }

.social-links { display: flex; justify-content: center; gap: 18px; margin: 46px 0 0; }
.social-links .contact-icon { text-decoration: none; transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease; }
.social-links .contact-icon:hover { color: var(--white); border-color: var(--white); transform: translateY(-3px); }

footer .divider span { background: var(--tint); }
footer .divider.narrow { margin-top: 60px; margin-bottom: 40px; }

.copyright { margin-top: 60px; font-size: 0.75rem; letter-spacing: 1px; opacity: 0.55; }
.credit { margin-top: 8px; font-size: 0.7rem; letter-spacing: 1px; opacity: 0.4; }

/* Pracovní (draft) banner */
.draft-banner {
    background: var(--deep);
    color: var(--tint-soft);
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    padding: 12px 20px;
}

/* Podstránkový úvodní pruh */
.page-header { padding: 90px 0 50px; text-align: center; }
.page-header h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); }
.breadcrumb { text-transform: uppercase; letter-spacing: 3px; font-size: 0.7rem; color: var(--tint); margin-bottom: 16px; }
.breadcrumb a { color: var(--tint); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary-color); }

.link-more {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 26px;
    text-decoration: none;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--tint);
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
}
.link-more:hover { opacity: 0.6; }

/* Fotogalerie — placeholder */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; margin-top: 50px; }
.gallery-item {
    aspect-ratio: 4 / 5;
    border: 1px dashed var(--tint);
    display: flex; align-items: center; justify-content: center;
    color: var(--tint); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px;
}

/* Kroky (např. průběh vyšetření) */
.steps-list { list-style: none; margin: 45px 0 0; padding: 0; counter-reset: step; }
.steps-list li { display: flex; gap: 26px; margin-bottom: 34px; }
.steps-list li::before {
    counter-increment: step;
    content: counter(step);
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--tint);
    color: var(--primary-color);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.05rem;
}
.steps-list h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin: 6px 0 6px; color: var(--primary-color); font-weight: 700; }
.steps-list p { margin: 0; color: #777; font-size: 0.92rem; }

/* Kontrolní seznam (příznaky apod.) */
.checklist { list-style: none; margin: 45px 0 0; padding: 0; }
.checklist li {
    padding: 16px 0 16px 36px;
    position: relative;
    border-bottom: 1px solid rgba(61,43,31,0.1);
}
.checklist li::before {
    content: '';
    position: absolute; left: 0; top: 22px;
    width: 16px; height: 1px;
    background: var(--tint);
}
.checklist strong { display: block; margin-bottom: 4px; font-family: 'Playfair Display', serif; font-size: 1.02rem; color: var(--primary-color); }
.checklist span { font-size: 0.88rem; color: #888; }

/* Zvýrazněný box (tip, poznámka) */
.callout-box {
    border-left: 1px solid var(--tint);
    padding: 10px 0 10px 30px;
    margin: 45px 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #777;
}

/* Upozornění / disclaimer */
.disclaimer-box {
    font-size: 0.78rem;
    color: #999;
    border-top: 1px solid rgba(61,43,31,0.1);
    margin-top: 55px;
    padding-top: 22px;
}

@media (max-width: 860px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-portrait { max-width: 320px; margin: 0 auto; }
}

@media (max-width: 640px) {
    nav { flex-wrap: wrap; justify-content: center; row-gap: 4px; }
    .logo-link { order: -1; }
    .logo-link img { height: 72px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 0; }
    .nav-link { padding: 8px 8px; font-size: 11px; letter-spacing: 1.5px; }
    section { padding: 80px 0; }
    .portrait-frame { box-shadow: 12px 12px 0 var(--tint-soft); }
    .contact-grid { gap: 36px; }
}
