/* === Variables === */
:root {
    --primary: #9C8B6E;
    --primary-dark: #7A6B52;
    --secondary: #D4C5B0;
    --bg: #FDF6EC;
    --bg-alt: #F5EDE0;
    --text: #3D3D3D;
    --text-light: #6B6560;
    --accent: #C9B99A;
    --white: #FFFFFF;
    --shadow: 0 2px 20px rgba(61, 61, 61, 0.08);
    --shadow-hover: 0 4px 30px rgba(61, 61, 61, 0.15);
    --radius: 12px;
    --transition: 0.3s ease;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, sans-serif;
    --font-scale: 1;
    /* Navbar height roste s --logo-size-nav (injektuje theme_inline_css). */
    --navbar-height: max(72px, calc(var(--logo-size-nav, 40px) + 16px));
}

/* === Reset === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    font-size: calc(16px * var(--font-scale, 1));
    font-weight: 300;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--text);
}

/* === Container === */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 246, 236, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(61, 61, 61, 0.06);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--navbar-height);
    padding: 8px 0;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    display: inline-flex;
    align-items: center;
}

.nav-logo img {
    height: var(--logo-size-nav, 40px);
    width: auto;
    max-width: 60vw;
    object-fit: contain;
}

.nav-logo:hover {
    color: var(--primary-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

.nav-menu a:hover {
    color: var(--text);
}

.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 50px;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* === Hero === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--navbar-height) + 48px) 24px 80px;
    background: linear-gradient(135deg, var(--bg) 0%, #F0E8D8 50%, var(--secondary) 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-content {
    max-width: 700px;
}

.hero-logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.hero-logo img {
    height: min(var(--logo-size-hero, 100px), 22vw);
    width: auto;
    max-width: 80vw;
    object-fit: contain;
}

.hero-psi {
    font-family: var(--font-heading);
    font-size: calc(2.5rem * var(--font-scale, 1));
    color: var(--primary);
    letter-spacing: 0.08em;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: calc(clamp(2.2rem, 5vw, 3.5rem) * var(--font-scale, 1));
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: calc(clamp(1.05rem, 2.5vw, 1.3rem) * var(--font-scale, 1));
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-description {
    font-size: calc(1.05rem * var(--font-scale, 1));
    color: var(--text-light);
    margin-bottom: 36px;
    line-height: 1.8;
    font-weight: 300;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* === Sections === */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-family: var(--font-heading);
    font-size: calc(clamp(1.8rem, 3.5vw, 2.4rem) * var(--font-scale, 1));
    text-align: center;
    margin-bottom: 16px;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: calc(1.05rem * var(--font-scale, 1));
    font-weight: 300;
}

/* === About === */
.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 48px;
}

.about-photo img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.photo-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--bg-alt);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border: 2px dashed rgba(61, 61, 61, 0.12);
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-light);
    font-weight: 300;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 32px 0 16px;
    color: var(--text);
}

.about-qualifications-group + .about-qualifications-group {
    margin-top: 12px;
}

.about-qualifications-group:first-of-type h3 {
    margin-top: 32px;
}

.education-list {
    list-style: none;
    margin-bottom: 24px;
}

.education-list li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 300;
}

.education-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.legal-notice {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.7;
    border-top: 1px solid rgba(61, 61, 61, 0.08);
    padding-top: 16px;
    margin-top: 24px;
    font-style: italic;
    font-weight: 300;
}

/* === Services === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.service-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 50%;
    color: var(--primary-dark);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 300;
}

/* === Pricing === */
.pricing-table-wrap {
    max-width: 600px;
    margin: 48px auto 0;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pricing-table th {
    background: var(--primary);
    color: var(--white);
    padding: 16px 24px;
    text-align: left;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.pricing-table td {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(61, 61, 61, 0.06);
    font-size: 0.95rem;
    font-weight: 300;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table .price {
    font-weight: 600;
    color: var(--text);
    text-align: right;
    white-space: nowrap;
}

.pricing-table th:last-child {
    text-align: right;
}

.pricing-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 300;
    margin-top: 20px;
}

/* === Blog === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.blog-card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.blog-date {
    font-size: 0.8rem;
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: 12px;
}

.blog-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.4;
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.7;
    font-weight: 300;
}

.blog-read-more {
    background: none;
    border: none;
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    font-family: var(--font-body);
    transition: color var(--transition);
}

.blog-read-more:hover {
    color: var(--text);
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(61, 61, 61, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 48px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text);
}

.modal-date {
    font-size: 0.8rem;
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: 8px;
}

.modal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 24px;
    color: var(--text);
}

.modal-body p {
    margin-bottom: 16px;
    color: var(--text-light);
    line-height: 1.8;
    font-weight: 300;
}

.modal-body strong {
    color: var(--text);
    font-weight: 500;
}

.modal-body ul {
    margin: 12px 0 16px 20px;
    color: var(--text-light);
}

.modal-body li {
    margin-bottom: 6px;
    font-weight: 300;
}

/* === Contact === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 48px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(61, 61, 61, 0.12);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(156, 139, 110, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.form-status {
    margin-top: 16px;
    font-size: 0.9rem;
    padding: 12px 16px;
    border-radius: 8px;
    display: none;
    font-weight: 300;
}

.form-status.success {
    display: block;
    background: rgba(156, 139, 110, 0.12);
    color: var(--primary-dark);
    border: 1px solid rgba(156, 139, 110, 0.25);
}

.form-status.error {
    display: block;
    background: rgba(180, 100, 100, 0.08);
    color: #8B4545;
    border: 1px solid rgba(180, 100, 100, 0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.contact-photo {
    margin-bottom: 8px;
}

.contact-photo img {
    width: 100%;
    max-width: 360px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 300;
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--primary-dark);
}

.contact-item a {
    color: var(--text-light);
}

.contact-item a:hover {
    color: var(--text);
}

/* === GDPR checkbox + post-form notes === */
.form-gdpr {
    margin-top: 4px;
    margin-bottom: 24px;
}

.form-gdpr-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-light);
}

.form-gdpr-label input[type="checkbox"] {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-gdpr-label strong {
    color: var(--text);
    font-weight: 500;
}

.form-notes {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(61, 61, 61, 0.08);
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

.form-notes p {
    margin: 0 0 8px;
}

.form-notes p:last-child {
    margin-bottom: 0;
}

.form-notes a {
    color: var(--primary-dark);
    border-bottom: 1px solid currentColor;
}

.form-notes a:hover {
    color: var(--text);
}

/* === Content pages (Podmínky, GDPR) === */
.page-header {
    padding: calc(var(--navbar-height) + 68px) 0 40px;
    background: var(--bg-alt);
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: calc(2.2rem * var(--font-scale, 1));
    font-weight: 400;
    color: var(--text);
    line-height: 1.2;
}

.content-page .container-narrow {
    max-width: 760px;
}

.container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.content-page p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
    font-weight: 300;
}

.content-page h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text);
    margin: 36px 0 16px;
}

.content-page .content-intro {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 32px;
}

.content-page .content-back {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(61, 61, 61, 0.08);
    font-size: 0.9rem;
}

.content-page .content-back a {
    color: var(--primary-dark);
}

/* === Cookie banner === */
body.has-cookie-banner {
    padding-bottom: calc(var(--cookie-banner-height, 120px) + 16px);
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1500;
    background: var(--text);
    color: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    padding: 18px 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 240px;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.6;
}

.cookie-banner-text a {
    color: var(--secondary);
    text-decoration: underline;
    margin-left: 4px;
    white-space: nowrap;
}

.cookie-banner-text a:hover {
    color: var(--white);
}

.cookie-banner-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition);
    flex-shrink: 0;
}

.cookie-banner-btn:hover {
    background: var(--primary-dark);
}

@media (max-width: 600px) {
    .cookie-banner {
        padding: 16px 18px;
    }
    .cookie-banner-inner {
        gap: 14px;
    }
    .cookie-banner-btn {
        width: 100%;
    }
}

/* === Footer === */
.footer {
    text-align: center;
    padding: 40px 24px;
    background: var(--text);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 300;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 12px;
    margin-top: 12px;
    font-size: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-links span {
    color: rgba(255, 255, 255, 0.35);
}

/* === Responsive === */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        border-bottom: 1px solid rgba(61, 61, 61, 0.06);
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        display: block;
        padding: 12px 24px;
    }

    .nav-cta {
        margin: 8px 24px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-photo {
        max-width: 250px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .modal-content {
        padding: 32px 24px;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        min-height: 80vh;
        padding: calc(var(--navbar-height) + 32px) 24px 60px;
    }

    .page-header {
        padding: calc(var(--navbar-height) + 40px) 0 32px;
    }

    .page-header h1 {
        font-size: calc(1.7rem * var(--font-scale, 1));
    }

    .content-page h2 {
        font-size: 1.2rem;
        margin: 28px 0 12px;
    }
}

@media (max-width: 480px) {
    .pricing-table td,
    .pricing-table th {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}

/* === FAQ === */
.faq-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(74, 63, 53, 0.08);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq-item[open] {
    box-shadow: var(--shadow-hover);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 56px 20px 24px;
    font-family: var(--font-heading);
    font-size: calc(1.05rem * var(--font-scale, 1));
    font-weight: 600;
    color: var(--text);
    position: relative;
    line-height: 1.4;
    transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: translateY(-75%) rotate(45deg);
    transition: transform var(--transition);
}

.faq-item[open] summary::after {
    transform: translateY(-25%) rotate(-135deg);
}

.faq-item summary:hover {
    color: var(--primary-dark);
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.faq-answer {
    padding: 0 24px 22px;
    color: var(--text-light);
    font-size: calc(0.95rem * var(--font-scale, 1));
    line-height: 1.75;
}

.faq-answer p + p {
    margin-top: 12px;
}

@media (max-width: 600px) {
    .faq-item summary {
        padding: 16px 48px 16px 20px;
        font-size: calc(1rem * var(--font-scale, 1));
    }
    .faq-item summary::after {
        right: 20px;
    }
    .faq-answer {
        padding: 0 20px 18px;
    }
}

/* time element styled like the old div.blog-date — visual parity */
time.blog-date {
    display: block;
}

/* === Skip link for accessibility === */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 8px;
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 16px;
    z-index: 10000;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: top var(--transition);
}

.skip-to-content:focus {
    top: 8px;
    color: var(--white);
}

