/* --- ZÁKLADNÍ NASTAVENÍ A PROMĚNNÉ --- */
:root {
    --primary-color: #5c4b51;
    --secondary-color: #f5f2f0;
    --text-color: #5c4b51;
    --link-color: #8D5047;
    --background-color: #e8e0d5;
    --subtle-text-color: #888;
    --heading-font: 'Cormorant Garamond', serif;
    --body-font: 'Cormorant Garamond', serif;
    --ui-font: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem; /* Space for sticky nav */
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    background-color: var(--background-color);
    color: var(--text-color);
}

main {
    margin-top: 3rem;
}

/* --- ZÁKLADNÍ PRVKY --- */
h1, h2, h3 {
    font-family: var(--heading-font);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

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

img::before {
    content: "Obrázek se nenačítá:\A" attr(alt);
    white-space: pre-wrap;
    display: block;
    padding: 1rem;
    background-color: #f5f5f5;
    border: 1px solid #eee;
    font-family: var(--ui-font);
    color: var(--subtle-text-color);
    text-align: center;
}

hr {
    border: none;
    border-top: 1px solid var(--primary-color);
    width: 120px;
    margin: 3rem auto;
}

/* --- ROZLOŽENÍ A NAVIGACE --- */
.container {
    max-width: 750px;
    margin: 0 auto 6rem auto;
    padding: 0 1.5rem;
}

/* --- ROZLOŽENÍ A NAVIGACE --- */
/* ... other rules ... */

header {
    display: flex; /* Creates the side-by-side layout */
    align-items: center; /* Vertically aligns the banner and text */
    gap: 2rem; /* Creates space between the banner and text */
    padding-bottom: 1rem;
}

/* --- Dekorativní Banner --- */
.decorative-banner {
    width: 80px;  /* Width of the vertical banner */
    height: 140px; /* Height of the vertical banner */
    flex-shrink: 0; /* Prevents the banner from shrinking */

    /* Vzhled */
    background-color: #A13C32;
    color: rgba(255, 255, 255, 0.4);
    /*border-radius: 5px;*/

    /* Zarovnání textu */
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 25px;
}

/* This makes the text vertical */
.decorative-banner span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.5rem; /* Controls vertical spacing */
}

/* New container for the logo and subtitle */
.header-content {
    flex-grow: 1; /* Allows the text content to take up remaining space */
    text-align: left;
}

.logo, .subtitle {
    text-align: left; /* Aligns the text to the left, next to the banner */
}

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1rem 0 1rem 0;
}

nav a {
    font-family: var(--ui-font);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
    font-size: 1rem;
    border-bottom: none; /* Override global link style */
}

nav a:hover {
    border-bottom: none; /* Override global link style */
    color: var(--link-color);
    opacity: 0.8;
}

footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: var(--subtle-text-color);
}

/* --- SPOLEČNÉ KOMPONENTY --- */
.logo {
    text-align: center;
}

.subtitle {
    font-family: var(--ui-font);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 1.1em;
    text-align: center;
    margin-top: 5px;
}

.section-title {
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-family: var(--ui-font);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 1.1em;
    margin-bottom: 2rem;
}

/* --- SPECIFICKÉ SEKCE --- */

/* O TCM */
#o-tcm ul {
    list-style-position: inside;
    padding-left: 1rem;
}

/* O Mně */
.about-me-layout {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-top: 2rem;
}

.about-me-text,
.about-me-image {
    flex: 1;
}

.about-me-image img {
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Ceník */
.pricelist-container {
    margin-top: 2rem;
}

.service-category {
    margin-bottom: 2.5rem;
}

.service-category h3 {
    font-family: var(--ui-font);
    font-weight: 400;
    font-size: 1.2em;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    font-size: 1.2em;
}

.service-item .duration {
    margin-left: 1em;
    color: var(--subtle-text-color);
    font-size: 0.9em;
}

.service-item .price {
    font-family: var(--ui-font);
    font-weight: 400;
}

.experience-category {
    margin-bottom: 1.5rem;
}

.experience-category h3 {
    font-family: var(--ui-font);
    font-weight: 400;
    font-size: 1.2em;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 0.5rem;
}

.experience-list {
    list-style: none;
    padding: 0px 8px;
}

.experience-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0px 20px;
    margin-bottom: 3px;
    font-size: 1.2em;
    border-left: 3px solid var(--subtle-text-color);
}

.experience-item .duration {
    margin-left: 0.5em;
    color: var(--subtle-text-color);
    font-size: 0.9em;
}

/* Kontakt & Provozovna */
.provozovna-layout {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-top: 2rem;
}

.provozovna-text {
    flex: 1;
}

.provozovna-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#provozovna address,
#provozovna .provozni-doba {
    font-style: normal;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    background-color: var(--secondary-color);
    line-height: 1.8;
}

.map-wrapper {
    position: relative;
    width: 100%;
}

.map-iframe {
    width: 100%;
    aspect-ratio: 400 / 280;
    border: none;
    display: block;
    margin-top: 2rem;
}

.map-overlay {
    display: none; /* Hidden on desktop */
}

/* --- RESPONZIVITA --- */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    header {
        text-align: center;
        font-size: 15px;
        align-items: center;
        gap: 2rem; /* Creates space between the banner and text */
        padding-bottom: 0;
    }

    .container {
        margin: 0 auto 6rem auto;
    }

    .provozovna-layout,
    .about-me-layout {
        flex-direction: column;
        margin-bottom: 3rem
    }
    .header-content {
        text-align: center;
    }
    .logo, .subtitle {
        text-align: center; /* Aligns the text to the left, next to the banner */
    }

    .map-overlay {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin-top: 2rem; /* Match iframe's margin */
        background-color: rgba(92, 75, 81, 0.6);
        color: white;
        font-family: var(--ui-font);
        text-align: center;
        transition: background-color 0.2s ease-in-out;
    }

    .map-overlay:hover {
        background-color: rgba(92, 75, 81, 0.7);
        text-decoration: none;
    }

    .map-overlay span {
        padding: 0.5rem 1rem;
        border: 2px solid white;
        border-radius: 5px;
    }

    .decorative-banner {
        display: none;
    }

    nav {
        padding: 0.5rem 0;
    }

}

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