/* style.css */

/* 1. CSS Variables (Tetradic Eco-Minimalist & Creative) */
:root {
    --primary-color: #58B09C; /* Muted Teal/Green - Eco, Calm */
    --primary-color-dark: #4A9382;
    --secondary-color: #3D5A80; /* Professional Blue - Trust, Online */
    --accent-color-1: #E07A5F; /* Warm Terracotta - Energy, Action */
    --accent-color-1-dark: #C76B52;
    --accent-color-2: #F4A261; /* Friendly Orange/Yellow - Secondary Accent */
    
    --neutral-light: #F7F9F9; /* Off-white for light backgrounds */
    --neutral-medium: #E1E8ED; /* Light grey for borders, subtle elements */
    --neutral-dark: #293241;  /* Dark desaturated blue for dark sections/accents */

    --text-light: #FFFFFF;
    --text-dark: #1D2D35;   /* Very dark, almost black, but softer */
    --text-grey: #5A6D7C;   /* Medium grey for subtitles, less important text */

    --font-headings: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;

    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 16px;

    --shadow-light: 0 2px 8px rgba(41, 50, 65, 0.1);
    --shadow-medium: 0 4px 12px rgba(41, 50, 65, 0.15);
    --shadow-strong: 0 8px 24px rgba(41, 50, 65, 0.2);

    --header-height: 70px; /* Approximate, can be dynamic */
}

/* 2. Global Styles & Typography */
html {
    scroll-behavior: smooth;
    background-color: var(--neutral-light);
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px; /* Base font size */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll */
    padding-top: 0px !important;
}

h1, h2, h3, h4, h5, h6,
.title, .subtitle {
    font-family: var(--font-headings);
    color: var(--text-dark);
    font-weight: 700;
}

.title.is-1 { font-size: 3rem; margin-bottom: 1.5rem; }
.title.is-2 { font-size: 2.5rem; margin-bottom: 1.25rem; }
.title.is-3 { font-size: 2rem; margin-bottom: 1rem; }
.title.is-4 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.title.is-5 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.subtitle {
    color: var(--text-grey);
    font-weight: 400; /* Lighter than titles */
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

.section {
    padding: 4rem 1.5rem; /* More vertical padding */
}

.container {
    max-width: 1140px; /* Standard container width */
    margin-left: auto;
    margin-right: auto;
}

/* Ensure Bulma titles use our theme colors */
.title { color: var(--text-dark); }
.has-text-grey-darker { color: var(--text-dark) !important; }
.has-text-grey { color: var(--text-grey) !important; }
.has-text-white { color: var(--text-light) !important; }

.section-title {
    text-align: center;
    margin-bottom: 3rem; /* Increased margin */
    color: var(--text-dark);
    font-weight: 700;
}
.section-title.is-2 {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Background image styling */
[style*="background-image"] {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* 3. Header / Navbar */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: var(--header-height);
}

.navbar {
    min-height: var(--header-height);
}

.navbar-item img {
    max-height: 40px; /* Adjust as needed */
}

.navbar-item, .navbar-link {
    font-family: var(--font-headings);
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 0.5rem 1rem;
}

.navbar-item:hover, .navbar-link:hover,
.navbar-item.is-active, .navbar-link.is-active {
    background-color: transparent;
    color: var(--primary-color) !important; /* Important to override Bulma */
}

.navbar-burger {
    color: var(--secondary-color);
    height: var(--header-height);
    width: var(--header-height);
}
.navbar-burger:hover {
    background-color: rgba(0,0,0,0.05);
}

.navbar-burger span {
    background-color: var(--secondary-color);
}


/* 4. Hero Section */
.hero#hero {
    background-color: var(--neutral-dark); /* Fallback */
    position: relative; /* For parallax children if any */
}

.hero#hero .hero-body {
    padding: 6rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero#hero .title.is-1 {
    color: var(--text-light);
    font-size: 3.5rem; /* Larger for hero */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero#hero .subtitle.is-3 {
    color: var(--text-light);
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* 5. Global Component Styles */

/* Buttons (Styling Bulma's .button.is-primary) */
.button {
    font-family: var(--font-headings);
    font-weight: 600;
    border-radius: var(--border-radius-medium);
    padding: 0.75em 1.5em;
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button.is-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.button.is-primary:hover {
    background-color: var(--primary-color-dark);
    color: var(--text-light);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.button.is-primary:active {
    transform: translateY(0px);
    box-shadow: var(--shadow-light);
}

.button.is-large {
    padding: 1em 2em;
    font-size: 1.15rem;
}

/* Cards */
.card {
    background-color: var(--text-light);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards in a row have same height if content varies */
}

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

.card .card-image {
    border-top-left-radius: var(--border-radius-medium);
    border-top-right-radius: var(--border-radius-medium);
    overflow: hidden; /* Ensures image respects border radius */
}

.card .card-image figure.image img {
    object-fit: cover;
    width: 100%;
    height: 100%; /* For Bulma aspect ratio containers */
    display: block;
}
/* For images not in figure.image if any */
.card .card-image > img { 
    object-fit: cover;
    width: 100%;
    max-height: 250px; /* Example fixed height */
    border-top-left-radius: var(--border-radius-medium);
    border-top-right-radius: var(--border-radius-medium);
}

.card .card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to expand and push button down */
    display: flex;
    flex-direction: column;
}
.card .card-content .title {
    text-align: center;
    color: var(--secondary-color);
}
.card .card-content .subtitle {
    text-align: center;
    color: var(--text-grey);
    margin-bottom: 1rem;
}
.card .card-content .content {
    flex-grow: 1;
    font-size: 0.95rem;
    color: var(--text-dark);
}
.card .card-content .content strong {
    color: var(--accent-color-1);
}

.card .button {
    margin-top: auto; /* Pushes button to the bottom of card-content */
}


/* Forms (Modern Styling for .input, .textarea, .select) */
.input.custom-input,
.textarea.custom-input,
.select.custom-input select {
    font-family: var(--font-body);
    border-radius: var(--border-radius-small);
    border: 1px solid var(--neutral-medium);
    box-shadow: none; /* Override Bulma's default focus shadow if any */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    padding: 0.75em 1em;
    font-size: 1rem;
}

.input.custom-input:focus,
.textarea.custom-input:focus,
.select.custom-input select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(var(--primary-color), 0.25); /* Bulma-like focus */
}

.label.has-text-grey-darker {
    color: var(--secondary-color) !important;
    font-weight: 600;
    font-family: var(--font-headings);
}

.checkbox input[type="checkbox"] {
    margin-right: 0.5em;
}
.checkbox a {
    color: var(--accent-color-1);
    font-weight: 600;
}
.checkbox a:hover {
    color: var(--accent-color-1-dark);
}

/* 6. Specific Section Styles */

/* Kurzy Section (#kurzy) */
.course-card .card-image figure.is-4by3 {
    height: 250px; /* Example fixed height for consistency */
}

/* Statistiky Section (#statistiky) */
#statistiky {
    background-color: var(--neutral-light);
}
#statistiky .level-item .heading {
    font-family: var(--font-headings);
    color: var(--text-grey);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
#statistiky .level-item .title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-top: 0.5rem;
}
#statistiky .content p {
    color: var(--text-grey);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Pribehy Uspechu Section (#pribehy-uspechu) */
.testimonial-card {
    text-align: center; /* Center content like image and title */
}
.testimonial-card .card-image {
    max-width: 150px; /* Control size of rounded image */
    margin: 0 auto 1rem auto; /* Center the image container */
    border: 4px solid var(--neutral-light);
    box-shadow: var(--shadow-medium);
}
.testimonial-card .card-image img.is-rounded {
    border-radius: 50%; /* Ensure it's perfectly round */
}
.testimonial-card .card-content .title.is-5 {
    color: var(--secondary-color);
}
.testimonial-card .content {
    font-style: italic;
    color: var(--text-grey);
}
#pribehy-uspechu .content.column p {
     color: var(--text-grey);
}


/* Zdroje Section (#zdroje) */
#zdroje {
    background-color: var(--neutral-light);
}
.resource-box {
    background-color: var(--text-light);
    border-radius: var(--border-radius-medium);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.resource-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}
.resource-box .title.is-5 a {
    color: var(--secondary-color);
    font-weight: 600;
}
.resource-box .title.is-5 a:hover {
    color: var(--primary-color);
}
.resource-box .subtitle.is-6 {
    color: var(--text-grey);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Komunita Section (#komunita) */
#komunita .image img {
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
}
#komunita p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-grey);
}

/* Pro Koho Section (#pro-koho) */
#pro-koho {
    background-color: var(--neutral-light);
}
#pro-koho .image img {
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
}
#pro-koho p, #pro-koho ul li {
    color: var(--text-grey);
}
#pro-koho ul {
    list-style-position: outside;
    padding-left: 20px; /* Ensure bullets are visible */
}
#pro-koho ul li {
    margin-bottom: 0.5rem;
}


/* Kontakt Section (#kontakt) */
#kontakt p {
    color: var(--text-grey);
}

/* 7. Footer */
.footer {
    background-color: var(--neutral-dark);
    color: var(--text-light);
    padding: 3rem 1.5rem 2rem; /* Reduced bottom padding */
}
.footer .title.is-5 {
    color: var(--text-light) !important; /* Override Bulma */
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1.1rem;
}
.footer p, .footer .has-text-light {
    color: var(--neutral-medium) !important; /* Lighter grey for readability */
    font-size: 0.95rem;
}
.footer .footer-links li {
    margin-bottom: 0.5rem;
}
.footer .footer-links a, .footer .has-text-grey-lighter {
    color: var(--neutral-medium) !important;
    transition: color 0.3s ease;
}
.footer .footer-links a:hover, .footer .has-text-grey-lighter:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

/* 8. Animation Helper Classes (for Anime.js or other JS animations) */
[data-anime] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-anime].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax effect basic setup (JS will handle more complex transforms if needed) */
[data-parallax] {
   /* background-attachment: fixed; --- This can cause issues on mobile and with other transforms */
   /* JS should handle parallax for better control */
}

/* 9. Responsive Styles (Media Queries) */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 16px rgba(10,10,10,.1);
        padding: 0.5rem 0;
        border-bottom-left-radius: var(--border-radius-medium);
        border-bottom-right-radius: var(--border-radius-medium);
    }
    .navbar-item, .navbar-link {
        padding: 0.75rem 1.5rem;
    }
    .columns.is-multiline .column { /* Ensure columns stack properly */
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .hero#hero .title.is-1 {
        font-size: 2.5rem;
    }
    .hero#hero .subtitle.is-3 {
        font-size: 1.5rem;
    }
    .section {
        padding: 3rem 1rem;
    }
    .title.is-2, .section-title.is-2 {
        font-size: 2rem;
    }
    .footer .columns {
        text-align: center;
    }
    .footer .column:not(:last-child) {
        margin-bottom: 2rem;
    }
}


/* 10. Page-specific styles */

/* success.html */
body.success-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--neutral-light);
}
.success-page .main-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.success-page .success-content-section {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.success-page .success-box {
    background-color: var(--text-light);
    padding: 3rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-strong);
    max-width: 600px;
}
.success-page .success-box .icon.is-large .fa { /* If using FontAwesome */
    font-size: 4rem;
    color: var(--primary-color);
}
.success-page .success-box .title {
    color: var(--primary-color);
    margin-top: 1.5rem;
}
.success-page .success-box .button {
    margin-top: 2rem;
}


/* privacy.html & terms.html */
body.privacy-page .main-container > .section:first-of-type,
body.terms-page .main-container > .section:first-of-type {
    padding-top: calc(var(--header-height) + 3rem); /* Header height + extra space */
}
.privacy-page .content h2, .terms-page .content h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.privacy-page .content h3, .terms-page .content h3 {
    font-size: 1.4rem;
    color: var(--accent-color-1);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.privacy-page .content p, .terms-page .content p,
.privacy-page .content li, .terms-page .content li {
    color: var(--text-dark);
    line-height: 1.8;
}

/* Cookie Consent Popup - Minimal styles already in HTML, this ensures it fits theme */
#cookieConsentPopup {
    font-family: var(--font-body);
    font-size: 0.9rem; /* Slightly smaller for popup */
}
#cookieConsentPopup a {
    color: var(--accent-color-2) !important; /* Distinct color for link */
}
#acceptCookieButton {
    background-color: var(--primary-color) !important;
    font-family: var(--font-headings);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
#acceptCookieButton:hover {
     background-color: var(--primary-color-dark) !important;
}
*{
    opacity: 1 !important;
}