/* Import fontů */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Lora:wght@400;500&display=swap');

/* Globální proměnné */
:root {
    --primary-color: #697362; /* Jemná šedomodrá pro tlačítka */
    --secondary-color: #1f2937; /* Tmavší šedá pro text */
    --accent-color: #f9f7f5; /* Krémová pro pozadí */
    --accent-color-2: #EAE7E2;
    --border-color: #d8d4ce; /* Světle šedá pro bordery */
    --text-color: #374151; /* Středně šedá pro text */
    --text-color-light: #878787;
    --white: #ffffff;
    --background-color-dark: #9AAC8F;
}

/* Reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--accent-color);
    font-size: 16px;
}

/* Typografie */
h1, h2, h3 {
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'Lora', serif;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

/* Kontejner */
.container {
    max-width: 1460px;
    margin: 0 auto;
}

/* Navigace */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 0;
    z-index: 1000;
    background: linear-gradient(180deg,rgba(249, 247, 245, 1) 0%, rgba(249, 247, 245, 0) 80%);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.1rem;
    color: var(--secondary-color);
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-color-light);
    text-decoration: none;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

/* Hero sekce */
.hero-section {
    padding: 120px 0 80px;
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
}

.hero-image-box {
    position: relative;
    overflow: hidden;
    padding: 0px 5px;
    height: 543px;
}

.hero-image {
    width: 100%;
}

.hero-content {
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.hero-image-box .overlay {
    position: absolute;
    bottom: 0px;
    left: 5px;
    right: 5px;
    top: 5px;
    border-radius: 12px;
    background: #000000;
    background: linear-gradient(0deg,rgba(0, 0, 0, 0.259) 0%, rgba(0, 0, 0, 0) 100%);
}

.hero-image-box.secondary {
    height: 266px;
    margin-bottom: 10px;
}

.hero-image-box.secondary .hero-text p {
    margin-bottom: 0;
}

.hero-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--white);
}

.hero-text h1, .hero-text h3 {
    margin-bottom: 5px;
}

.hero-text h1 {
    font-size: 2.0rem;
}

.hero-text p {
    color: var(--white);
}

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

/* Sekce Proč navštívit psychologa */
.why-psychologist-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.why-psychologist-section:after {
    content: "";
    position: absolute;
    left: -95px;
    transform: rotate(20deg);
    top: 0;
    background-image: url(../assets/list1.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 200px;
    height: 400px;
}
.why-psychologist-section::before {
    content: "";
    position: absolute;
    right: -150px;
    bottom: -150px;
    transform: rotate(-25deg);
    background-image: url(../assets/list2.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 300px;
    height: 500px;
}

.why-psychologist-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.why-psychologist-section h2 {
    font-family: 'Lora', serif;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Sekce O mně */
.about-section {
    padding: 60px 0;
    text-align: center;
}

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

/* Ostatní sekce */
.services-section, .pricing-section, .contact-section, .faq-section, .cta-section {
    padding: 80px 0;
}

/* Feature boxy */
.features-section {
    display: none;
    padding: 45px 0 80px;
}
.features-section .container {
    max-width: 1200px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 45px;
}

.feature-box {
    padding: 10px;
    text-align: center;
}

/* Služby */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-box {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.service-icon {
    width: 40px;
    margin-bottom: 16px;
}

.services-list ul {
    list-style: none;
    margin-top: 24px;
}

.services-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.list-icon {
    width: 24px;
    margin-right: 12px;
}
.services-section .container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 25px;
}
.service-item {
    padding: 45px;
    text-align: center;
    transition: all ease 400ms;
}
.service-item:hover {
    background-color: #e9dccc65;
}
.service-item p {
    margin: 0;
}
.service-item:nth-child(1) {
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}
.service-item:nth-child(2) {
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}
.service-item:nth-child(3) {
    border-bottom: 1px solid #ddd;
}
.service-item:nth-child(4) {
    border-right: 1px solid #ddd;
}
.service-item:nth-child(5) {
    border-right: 1px solid #ddd;
}
.services-section:after {
    content: "";
    position: absolute;
    left: -95px;
    transform: rotate(20deg);
    top: 50px;
    background-image: url(../assets/list1.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 200px;
    height: 400px;
}

.pricing-info {
        margin-top: 15px;
    }
    .price {
        display: block;
        font-size: 1.1rem;
        color: #2c3e50;
        font-weight: bold;
    }
    .duration {
        display: block;
        font-size: 0.7em;
        color: #7f8c8d;
    }
/* Ceník */
.pricing-table {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.pricing-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-note {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--text-color);
}

/* Kontakt */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.contact-info ul li a {
    color: inherit;
}
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
}
.form-group label small {
    font-size: 0.7rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}
.form-group input::placeholder, .form-group textarea::placeholder {
    font-size: 0.7rem;
}
.form-group textarea {
    resize: vertical;
}
#contactForm {
    display: flex;
    flex-wrap: wrap;
}
/* Anti-spam: honeypot pole - skryté pro uživatele */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}
#contactForm .form-group:nth-child(2) {
    padding-right: 10px;
}
/* Formulář zprávy */
.success {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 12px;
}

.error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 12px;
}

/* FAQ */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
    color: var(--white);
    background-color: var(--background-color-dark);
    border-radius: 12px;
}

.accordion-item {
    background-color: transparent;
    border-bottom: 1px solid #ffffff1f;
    border-radius: 0px;
    margin-bottom: 16px;
}

.accordion-button {
    background-color: transparent;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 300;
    border: none;
    border-radius: 8px;
    padding: 16px 24px;
    text-align: left;
    width: 100%;
    cursor: pointer;
}

.accordion-button:not(.collapsed) {
    background-color: transparent;
    color: var(--white);
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: none;
    outline: none;
}

.accordion-collapse {
    transition: height 0.3s ease;
}

.accordion-body {
    padding: 16px 24px;
    font-size: 0.9rem;
    color: var(--white);
}
h3.accordion-header {
    font-size: 1.25rem;
}
.accordion-item {
    border: none !important;
}
.accordion-button::after {
    filter: invert(1);
}
/* CTA */
.cta-section {
    position: relative;
    text-align: center;
    background-color: var(--background-color-dark);
    color: var(--white);
    overflow: hidden;
}

.cta-section:after {
    content: "";
    position: absolute;
    left: -95px;
    transform: rotate(20deg);
    top: 0;
    background-image: url(../assets/list1.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 200px;
    height: 400px;
    opacity: 0.3;
}
.cta-section:before {
    content: "";
    position: absolute;
    right: -150px;
    bottom: -230px;
    transform: rotate(-25deg);
    background-image: url(../assets/list2.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 300px;
    height: 500px;
    opacity: 0.3;
}
/* Tlačítka */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-size: 1rem;
}
.btn:hover {
    background-color: var(--primary-color);
}
/* Footer */
.footer {
    padding: 48px 0;
    color: var(--text-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.footer-grid div:nth-child(2) {
    text-align: right;
}
.footer h3 {
}

.footer a {
    color: var(--text-color);
    text-decoration: none;
}

.footer-note {
    margin-top: 24px;
    text-align: center;
    font-size: 0.875rem;
}

/* Responzivní design */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        height: 300px;
    }

    .hero-image-box.secondary .hero-image {
        height: 200px;
    }

    .features-grid, .services-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-section, .features-section, .services-section, .about-section, .pricing-section, .contact-section, .faq-section {
        padding: 60px 0;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.125rem; }

    .navbar .container {
        align-items: flex-start;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 12px;
        margin-top: 16px;
    }

    .pricing-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .hero-image {
        height: 250px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text h3 {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    .hero-text {
        right: 20px;
    }
    .hero-image-box {
        margin-bottom: 10px;
        height: 250px;
    }
    .hero-image-box.secondary {
        height: 200px;
    }
    .navbar-toggler {
        border: none !important;
    }
    .navbar-toggler:focus {
        outline: none;
        border: none;
        box-shadow: none;
    }
    .faq-section {
        margin: 0 10px;
    }
    .accordion-body {
        padding: 10px 10px;
    }
    button.accordion-button {
    padding: 5px 10px;
    }
    .footer-grid div:nth-child(2) {
        text-align: center;
    }
    .service-item {
        border: none !important;
    }
    .navbar-collapse {
        background: #f9f7f5;
        padding: 10px;
        border-radius: 14px;
    }
    .navbar-nav {
        margin: 0;
    }
}

.page-header {
    padding-top: 100px;
    text-align: center;
}

/* fixnuté tlačítko */
.chat-button-around {
    position: fixed;
    bottom: 20px;
    right: 20px;
}
.chat-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    width: 50px;
    height: 50px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    transition: width 0.3s ease;
    z-index: 1001;
}

.chat-button:hover {
    width: 150px;
    border-radius: 12px;
}

.button-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.button-text {
    margin-right: 10px;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    color: white;
}

.chat-button:hover .button-text {
    opacity: 1;
}

.tooltip {
    display: flex;
    position: absolute;
    bottom: 80px;
    right: 0;
    background-color: white;
    color: black;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.8rem;
    z-index: 1000;
    width: 275px;
    transition: all 400ms ease;
    transform: translateY(15px);
}

.tooltip.toggled {
    opacity: 1;
    transform: translateY(0px);
}
.tooltip p {
    margin: 0;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.close-tooltip {
    position: absolute;
    top: -9px;
    right: -9px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    border-radius: 50%;
    background-color: #fff;
    color: #7f8c8d;
    display: flex;
    justify-content: center;
    align-items: center;
}
.close-tooltip img {
    width: 14px;
    height: 14px;
}
.close-tooltip:hover {
    color: #2c3e50;
}