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

/* Fonts - DM Serif Display for headings, Work Sans for body */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Work+Sans:wght@400;600;700&display=swap');

body {
    font-family: 'Work Sans', sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f9f9f9; /* Light grey background for the body */
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Serif Display', serif;
    color: #1d1922; /* Dark purple/black */
    margin-bottom: 0.75em;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; } /* Section titles */
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 1.25em;
    color: #2d2d38; /* Dark grey */
}

ul, ol {
    margin-bottom: 1.25em;
    padding-left: 20px; /* Indent lists */
}

ul li, ol li {
    margin-bottom: 0.5em;
}

strong {
    font-weight: 700;
}

/* Header & Navigation */
.main-header {
    background: #ffffff;
    padding: 1em 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo img {
    max-height: 55px; /* Adjusted logo size */
    width: auto;
    display: block; /* Keep this: ensures image behaves as a block */
}

.main-nav {
    display: flex;
    align-items: center;
    /* height: 100%; */ /* REMOVED this line */
    padding-top: 4px;  /* ADDED this line - Adjust '4px' up or down (e.g., 2px, 3px, 5px, 6px) until it looks visually centered */
}

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0; /* ADDED this to remove any default UL margins */
    padding: 0; /* ADDED this to remove any default UL padding */
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #1d1922;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 5px 0;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.main-nav ul li a:hover,
.main-nav ul li a.current-page {
    color: #ffca63; /* Accent yellow */
    border-bottom-color: #ffca63;
}

.menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    font-size: 2rem;
    color: #1d1922;
    cursor: pointer;
}

/* Hero Section (Homepage) */
.hero {
    background: #f0f4f8; /* A very light, calming blue/grey */
    padding: 80px 0;
    text-align: center;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}
.hero-text {
    flex-basis: 55%;
    padding-right: 20px;
    text-align: left;
}
.hero-text h1 {
    font-size: 3rem;
    color: #1d1922;
    margin-bottom: 0.5em;
}
.hero-text p {
    font-size: 1.1rem;
    color: #2d2d38;
    margin-bottom: 1.5em;
}
.hero-image {
    flex-basis: 40%;
    max-width: 450px;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Page Header (for subpages) */
.page-header {
    background: #e9ecef; /* Light grey for subpage headers */
    padding: 60px 0;
    text-align: center;
}
.page-header h1 {
    font-size: 2.8rem;
    color: #1d1922;
}
.page-header-image {
    max-width: 400px;
    margin: 20px auto 0;
}
.page-header-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}


/* General Section Styling */
section {
    padding: 60px 0;
}
section:nth-child(even):not(.hero):not(.page-header) { /* Avoid re-styling hero/page-header */
    background-color: #ffffff; /* White background for alternate sections */
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #ffca63; /* Accent yellow */
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Info Section (Biofeedback/Neurofeedback on Homepage) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch; /* Makes cards same height if content varies */
}
.info-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.info-item h3 {
    color: #1d1922;
    margin-top: 0;
    margin-bottom: 15px;
}
.info-item p {
    flex-grow: 1; /* Pushes button to bottom if used in flex container */
}

/* Buttons */
.btn {
    display: inline-block;
    background: #ffca63; /* Accent yellow */
    color: #1d1922;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 25px; /* Pill shape */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid #ffca63;
    margin-top: auto; /* Pushes button to bottom of flex item */
    align-self: flex-start; /* Aligns button to the start if not stretched */
}
.btn:hover {
    background: #ffd583; /* Lighter yellow */
    border-color: #ffd583;
    transform: translateY(-2px);
}

/* Conditions Section (Homepage) */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.condition-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.condition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.condition-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.condition-card h4 {
    padding: 18px 15px;
    margin: 0;
    font-size: 1.3rem;
    color: #1d1922;
}

/* Why Choose Me Section (Homepage) */
.why-choose-me-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.why-choose-me-text {
    flex: 1;
    min-width: 300px;
}
.why-choose-me-text ul {
    list-style: none;
    padding: 0;
}
.why-choose-me-text ul li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    padding-left: 30px;
    position: relative;
}
.why-choose-me-text ul li::before {
    content: '✔';
    color: #ffca63; /* Accent yellow */
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    font-weight: bold;
}
.why-choose-me-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}
.why-choose-me-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Content Section (for Biofeedback, Neurofeedback, Cennik, Kontakt pages) */
.content-section .container {
    max-width: 900px; /* Narrower container for text-heavy pages */
}
.content-section h2, .content-section h3, .content-section h4 {
    margin-top: 1.5em;
}
.content-section h2:first-child,
.content-section h3:first-child,
.content-section h4:first-child {
    margin-top: 0;
}
.content-section ul, .content-section ol {
    margin-left: 20px; /* Consistent list indentation */
}
.content-section img.featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto 30px;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- Cenník Page Redesign --- */
.pricing-category {
    margin-bottom: 50px;
}
.pricing-category-title {
    font-size: 2rem;
    color: #1d1922;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffca63;
    display: inline-block;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}
.pricing-card h4 { /* Service Name */
    font-size: 1.5rem;
    color: #1d1922;
    margin-bottom: 10px;
}
.pricing-card .description {
    font-size: 0.95rem;
    color: #2d2d38;
    margin-bottom: 20px;
    flex-grow: 1;
}
.pricing-card .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffca63; /* Accent yellow for price */
    margin-bottom: 20px;
    align-self: flex-start;
}
.pricing-card .price-note {
    font-size: 0.85rem;
    color: #555;
    margin-top: -15px;
    margin-bottom: 20px;
}


/* Contact Page Specifics */
.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 0.8em;
}
.contact-info strong {
    color: #1d1922;
}
.contact-info a {
    color: #ffca63;
    text-decoration: none;
    font-weight: 600;
}
.contact-info a:hover {
    text-decoration: underline;
}
.contact-image-container {
    text-align: center;
    margin-bottom: 30px;
}
.contact-image-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* --- Google Maps Embed Styles --- */
.map-embed-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.map-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* --- Footer Styles (Revised for consistency) --- */
.main-footer {
    background: #2d2d38;
    color: #e0e0e0;
    padding: 50px 0 20px; /* Top padding, LR handled by .container, bottom padding */
    margin-top: auto;
}
.footer-columns-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Distributes space; items align to start of their flex track */
    gap: 20px;
    margin-bottom: 30px; /* Space before the .footer-bottom */
}
.footer-column {
    flex: 1 1 280px; /* Flex-grow, flex-shrink, flex-basis. Basis is a suggestion. */
    min-width: 250px; /* Columns won't get smaller than this before wrapping */
    /* text-align: left; /* Default alignment for content within columns */
}
.footer-column h4 {
    color: #ffca63;
    margin-bottom: 18px;
    font-size: 1.2rem;
}
.footer-column p, .footer-column ul li {
    color: #c5c5c5;
    margin-bottom: 0.8em;
    font-size: 0.95rem;
}

/* MODIFICATION: Change color for telephone and email links in the footer */
.footer-column p a[href^="tel:"],
.footer-column p a[href^="mailto:"] {
    color: #ADD8E6; /* Light Blue */
    text-decoration: none; /* Optional: if you want to remove underline */
}
.footer-column p a[href^="tel:"]:hover,
.footer-column p a[href^="mailto:"]:hover {
    color: #87CEFA; /* Lighter Sky Blue on hover */
    text-decoration: underline; /* Optional: add underline on hover */
}

.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column ul li a {
    color: #c5c5c5;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-column ul li a:hover {
    color: #ffca63;
    text-decoration: underline;
}
.footer-bottom {
    padding-top: 30px;
    margin-top: 20px; /* Consistent margin from content above */
    border-top: 1px solid #4a4a4a;
    text-align: center;
    font-size: 0.9rem;
    /* The color property here will be inherited by default by children,
       but we will explicitly set it on the 'p' tag for more certainty. */
}

.footer-bottom p {
    color: #c5c5c5; /* UPDATED: Set copyright text to pure white */
}
.map-placeholder {
    /* This class might not be used if you switched to map-embed-container */
    /* but keeping for safety or if you revert for contact page */
    background-color: #3a3a4a;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #888;
    font-style: italic;
    font-size: 0.9rem;
    padding: 15px;
    text-align: center;
}
.map-placeholder .btn {
    margin-top: 15px;
    font-size: 0.85rem !important;
    padding: 8px 15px !important;
    width: auto !important;
    align-self: center !important;
}


/* Responsive Design */
@media (max-width: 992px) { /* Tablet */
    .hero-text h1 { font-size: 2.5rem; }
    .page-header h1 { font-size: 2.3rem; }
    h2.section-title { font-size: 2rem; }

    .footer-columns-container {
        flex-direction: column;
        align-items: center; /* Center columns container items */
    }
    .footer-column {
        flex-basis: 100%; /* Make columns take full width available in the new flex direction */
        width: 100%;
        max-width: 400px; /* Limit width of stacked columns */
        margin-bottom: 30px;
        text-align: center; /* Center text within each column */
    }
     .footer-column:last-child { margin-bottom: 0;}
}

@media (max-width: 768px) { /* Mobile */
    body { font-size: 15px; }
    .main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    .main-nav ul li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }
    .main-nav ul li:last-child {
        border-bottom: none;
    }
    .main-nav ul li a {
        display: block;
        padding: 1em;
        border-bottom: none;
    }
    .main-nav ul li a:hover,
    .main-nav ul li a.current-page {
        background-color: #f8f8f8;
    }
    .menu-toggle {
        display: block;
    }

    .hero { padding: 60px 0; }
    .hero-text {
        text-align: center;
        padding-right: 0;
        flex-basis: 100%;
        margin-bottom: 30px;
    }
    .hero-image {
        flex-basis: 80%;
        max-width: 350px;
    }
    .hero-text h1 { font-size: 2.2rem; }

    .page-header { padding: 40px 0; }
    .page-header h1 { font-size: 2rem; }

    h2.section-title { font-size: 1.8rem; }

    .why-choose-me-content {
        flex-direction: column;
    }
    .why-choose-me-image {
         margin-top: 30px;
         order: -1;
    }

    .pricing-grid {
        grid-template-columns: 1fr; /* Stack pricing cards */
    }
}

@media (max-width: 576px) { /* Small Mobile */
    .hero-text h1 { font-size: 2rem; }
    .page-header h1 { font-size: 1.8rem; }
    h2.section-title { font-size: 1.6rem; }

    .btn { /* General button full width on small mobile for easier tapping */
        padding: 10px 22px;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }
    .info-item .btn, .pricing-card .btn { /* Ensure buttons in cards also take full width */
        align-self: stretch;
    }
    .map-placeholder .btn {
        width: auto !important;
    }
     .contact-info .btn {
        width: auto;
    }
}

/* --- Capacity Alert Bar Styles --- */
.capacity-alert-bar {
    background-color: #1d1922; /* Your existing dark theme color */
    color: #f9f9f9;            /* Light text color */
    padding: 15px 0;
    border-bottom: 4px solid #ffca63; /* Your existing gold accent color */
    position: relative;
    z-index: 2000; /* Ensures it stays on top of other elements */
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.capacity-alert-bar p {
    margin: 0;
    font-size: 1rem;
    text-align: center;
    line-height: 1.5;
    color: #f9f9f9;
}

.capacity-alert-bar strong {
    color: #ffca63; /* Highlights the date and title in gold */
    font-weight: 700;
}

.capacity-alert-bar a {
    color: #ffca63;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.capacity-alert-bar a:hover {
    color: #fff;
    text-decoration: none;
}

/* Mobile adjustment to prevent text from being too large */
@media (max-width: 768px) {
    .capacity-alert-bar p {
        font-size: 0.9rem;
        padding: 0 10px;
    }
}

/* --- New Styles for SCP Page & Navbar --- */

/* Special Styling for the Navbar Item */
.main-nav ul li a.special-nav-item {
    color: #d88d00; /* Darker Gold/Orange to stand out */
    border-bottom: 2px solid transparent;
}

.main-nav ul li a.special-nav-item:hover,
.main-nav ul li a.special-nav-item.current-page {
    color: #b57600;
    border-bottom-color: #b57600;
    background-color: rgba(255, 202, 99, 0.1); 
    border-radius: 4px;
}

/* Styles for the Target Groups on SCP page */
.scp-target-group {
    margin-bottom: 30px;
}

.scp-target-group h4 {
    font-size: 1.4rem;
    color: #1d1922;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 1200px) {
    .main-nav ul li {
        margin-left: 20px; 
    }
    .main-nav ul li a {
        font-size: 0.85rem;
    }
}