/* Základné nastavenia a premenné */
:root {
    --primary-color: #4CAF50; /* Zelená */
    --secondary-color: #66BB6A; /* Svetlejšia zelená */
    --accent-color: #FFC107; /* Oranžová/Žltá */
    --dark-text: #333;
    --light-text: #f4f4f4;
    --bg-light: #f8f8f8;
    --bg-dark: #222;
    --white: #fff;
    --gradient-start: #6dd5ed;
    --gradient-end: #2193b0;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --dark-green: #2E8B57; /* Tmavozelená */
    --even-darker-green: #1E6F40; /* Ešte tmavšia zelená pre gradienty */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Plynulé scrolovanie */
}

body {
    font-family: 'Montserrat', sans-serif; /* Ponechaný font podľa požiadavky */
    line-height: 1.6;
    color: var(--dark-text); /* Použitá premenná */
    background-color: var(--bg-light); /* Použitá premenná */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hlavička */
.main-header {
    background: var(--dark-green); /* Použitá tmavozelená */
    color: var(--white);
    padding: 1.2rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky; /* Aby sa hlavička prilepila hore */
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Lora', serif; /* Ponechaný font */
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.main-nav ul {
    list-style: none;
}

.main-nav ul li {
    display: inline-block; /* Pre lepšie medzery a hover */
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.3s ease; /* Pridaná transformácia */
    position: relative; /* Pre podčiarknutie */
}

.main-nav ul li a::after { /* Animované podčiarknutie */
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--accent-color); /* Farba podčiarknutia */
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.main-nav ul li a:hover {
    color: var(--accent-color);
    transform: translateY(-2px); /* Jemný efekt pri hover */
}

/* Hero sekcia pre index.html */
.hero-section {
    background: linear-gradient(135deg, var(--dark-green), var(--even-darker-green)); /* Použité tmavšie zelené pre gradient */
    color: var(--white); /* Nastavuje default farbu textu v sekcii na bielu */
    text-align: center;
    padding: 150px 0; /* Zväčšený padding */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before { /* Jemné animované pozadie */
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 0% 0%, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
    animation: moveLight 20s infinite alternate;
}

@keyframes moveLight {
    from { transform: translate(0, 0); }
    to { transform: translate(50%, 50%); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h2 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    font-family: 'Lora', serif;
    line-height: 1.1;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    color: var(--white); /* Farba nadpisu je biela */
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: var(--white);
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px; /* Okrúhlejší vzhľad */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-light); /* Použitá premenná */
    }

.btn.primary-btn {
    background: var(--accent-color);
    color: var(--dark-text);
}

.btn.primary-btn:hover {
    background: #e6a000;
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.btn.secondary-btn {
    background: var(--primary-color);
    color: var(--white);
}

.btn.secondary-btn:hover {
    background: var(--secondary-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

/* Sekcie obsahu - všeobecné */
section {
    padding: 80px 0; /* Zväčšený padding */
}

section:nth-child(even) { /* Striedavé pozadie */
    background-color: var(--bg-light);
}

section:nth-child(odd) {
    background-color: var(--white);
}

h2 { /* Všeobecné nastavenie nadpisov sekcií */
    text-align: center;
    margin-bottom: 60px;
    font-size: 3.2rem;
    color: var(--dark-green);
    font-family: 'Lora', serif;
    position: relative;
}

h2::after { /* Animované podčiarknutie pre h2 */
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--dark-green);
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* O mne sekcia */
.about-section {
    background-color: var(--white);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
    justify-content: center; /* Vycentruje text, ak nie je obrázok */
}

.about-text { /* Pre novú štruktúru bez obrázka */
    flex: 1;
    min-width: 300px;
    text-align: center; /* Vycentruje text */
}

.about-text h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.8rem;
}
.about-text h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.about-text p {
    font-size: 1.15rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* --- Štýly pre podstránku Služby (services.html / sluzby/index.html) --- */

/* Page Hero pre podstránky */
.page-hero {
    background: linear-gradient(45deg, var(--dark-green), var(--even-darker-green));
    color: var(--light-text);
    text-align: center;
    padding: 100px 0 60px 0;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-hero h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

.page-hero h2::after {
    background: var(--accent-color);
}

.page-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Sekcia definícií */
.definitions-section {
    background-color: var(--white);
    padding: 60px 0;
}

.definition-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.definition-item h3 {
    font-family: 'Lora', serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.definition-item p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.definition-item p strong {
    color: var(--dark-text);
}

/* Prehľad služieb na podstránke */
.services-overview-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-detail-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Štýly pre klikateľné karty služieb */
.service-card-link {
    text-decoration: none; /* Odstráni podčiarknutie odkazu */
    color: inherit; /* Zabezpečí, že text vo vnútri karty si zachová farbu */
    display: block; /* Umožní odkazu vyplniť celú šírku karty */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Pre animáciu pri hover */
}

/* Opätovné aplikovanie hover efektu na celú kartu */
.service-card-link:hover .service-detail-card {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Zrušenie pôvodného hover efektu z .service-detail-card, keďže ho preberá .service-card-link */
.service-detail-card:hover {
    transform: none; /* Resetuje transformáciu, ak je predtým definovaná */
    box-shadow: var(--shadow-light); /* Resetuje tieň, ak je predtým definovaný */
}

.service-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--primary-color);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.service-detail-card h3 {
    font-family: 'Lora', serif;
    font-size: 2rem;
    color: var(--dark-text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-detail-card h3 .fas,
.service-detail-card h3 .fab {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.service-detail-card p {
    font-size: 1.05rem;
    margin-bottom: 15px;
    line-height: 1.7;
    flex-grow: 1;
}

.service-detail-card ul {
    list-style: none;
    margin-bottom: 20px;
    margin-top: 15px;
}

.service-detail-card ul li {
    font-size: 0.95rem;
    margin-bottom: 18px; /* Zväčšená medzera medzi položkami zoznamu */
    padding-left: 25px;
    position: relative;
}

.service-detail-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

.service-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.service-price strong {
    color: var(--dark-text);
}

/* Kontakt sekcia (pre index.html) */
.contact-section {
    background: linear-gradient(to right, var(--dark-green), var(--even-darker-green));
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.contact-section h2 {
    color: var(--white);
}
.contact-section h2::after {
    background: var(--accent-color);
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.contact-info {
    margin-top: 40px;
    font-size: 1.1rem;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
}

.contact-info p .fas,
.contact-info p .fab {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.whatsapp-note {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: -5px;
    margin-bottom: 20px !important;
}

.contact-info p a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info p a:hover {
    color: var(--accent-color);
}

/* Pätička */
.main-footer {
    background: var(--bg-dark);
    color: var(--white);
    text-align: center;
    padding: 25px 0;
    font-size: 0.95rem;
}

/* --- Štýly pre formulár na termin.html --- */
.formular-section {
    padding: 40px 0;
    background-color: var(--bg-light);
}

/* Kontajner formulára */
.contact-form-wrapper {
    max-width: 700px; /* Zväčšená max šírka pre viac polí */
    margin: 50px auto 50px auto; /* Medzera hore/dole */
    padding: 40px; /* Zväčšený padding */
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    text-align: left; /* Zarovnáme obsah doľava, aby formulár vyzeral lepšie */
}

/* Nadpis formulára */
.contact-form-wrapper h3 {
    text-align: center; /* Nadpis zostane centrovaný */
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: var(--dark-green); /* Tmavozelená farba */
}

/* Všeobecné nastavenia pre skupiny polí */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Väčšia medzera medzi skupinami otázok */
}

.form-group {
    margin-bottom: 0; /* Resetujeme pôvodný margin-bottom */
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-text);
    font-size: 1.05rem;
}

.form-group label span {
    color: #f44336; /* Farba pre hviezdičku povinného poľa - ZMENENÉ NA ČERVENÚ */
    margin-left: 4px;
}

/* Štýly pre textové a emailové inputy a textarea */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #f9f9f9;
    color: var(--dark-text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2); /* Použitá RGB hodnota pre primary-color */
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Štýly pre nadpis skupiny otázok (napr. Mám záujem o:, Preferovaná komunikácia:) */
.question-group .question-label {
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
    color: var(--dark-text);
    font-size: 1.05rem;
}

/* Štýly pre checkbox a radio buttons */
.checkbox-label,
.radio-label {
    display: flex; /* Použijeme flexbox pre zarovnanie */
    align-items: center; /* Zarovnáme text s checkboxom/rádiom */
    margin-bottom: 10px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--dark-text);
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    margin-right: 12px; /* Väčšia medzera medzi boxom a textom */
    transform: scale(1.1); /* Mierne zväčšíme */
    cursor: pointer;
    flex-shrink: 0; /* Zabraňuje scvrkávaniu inputu */
}

/* Štýly pre spodnú informačnú časť formulára (GDPR) */
.form-footer-info {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    text-align: center; /* Centruje text GDPR */
}

.form-footer-info p {
    margin-bottom: 10px;
}

.form-footer-info a {
    color: var(--dark-green);
    text-decoration: none;
    font-weight: 600;
}

.form-footer-info a:hover {
    text-decoration: underline;
}

/* Štýly pre správu "Ďakujem za vyplnenie dotazníku" */
.form-footer-info .thank-you-message {
    font-size: 2rem; /* Zväčšený font, skúšame 2rem */
    font-weight: 700; /* Tučné písmo */
    color: var(--dark-green); /* Tmavozelená farba pre výraznosť */
    margin-bottom: 20px; /* Väčšia medzera pod správou */
}

/* --- Štýly pre modálne okno --- */
.modal {
    display: none; /* Predvolene skryté */
    position: fixed; /* Zostane na mieste aj pri scrollovaní */
    z-index: 1001; /* Vyššie ako všetko ostatné */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Povoliť scroll, ak je obsah príliš veľký */
    background-color: rgba(0, 0, 0, 0.6); /* Polopriehľadné čierne pozadie */
    justify-content: center; /* Centruje obsah horizontálne */
    align-items: center; /* Centruje obsah vertikálne */
}

.modal-content {
    background-color: #fff;
    margin: auto; /* Centruje obsah */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative; /* Pre pozíciu tlačidla zatvorenia */
    max-width: 500px; /* Maximálna šírka modalu */
    text-align: center;
    animation: fadeIn 0.3s ease-out; /* Animácia zobrazenia */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-message {
    font-size: 2.2rem; /* Veľkosť poďakovania */
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 1.1rem;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 36px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

/* Responzívne úpravy pre modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px;
        max-width: 90%; /* Na mobiloch zaberie väčšiu šírku */
    }
    .modal-message {
        font-size: 1.8rem;
    }
    .modal-content p {
        font-size: 1rem;
    }
    .close-button {
        font-size: 30px;
        top: 5px;
        right: 15px;
    }
}

/* Responzívny dizajn */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 3.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .main-nav ul li {
        margin-left: 20px;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-text h2 {
        text-align: center;
    }
    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }
    .main-nav ul {
        margin-top: 15px;
        padding: 0;
    }
    .main-nav ul li {
        margin: 0 10px;
    }
    .logo {
        font-size: 1.8rem;
    }
    .hero-section {
        padding: 100px 0;
        min-height: 60vh;
    }
    .hero-content h2 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    h2 {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    .service-detail-grid {
        grid-template-columns: 1fr;
    }
    .service-detail-card h3 {
        font-size: 1.8rem;
        flex-direction: column;
        text-align: center;
    }
    .service-detail-card h3 .fas,
    .service-detail-card h3 .fab {
        margin-bottom: 10px;
    }
    .contact-info p {
        flex-direction: column;
        gap: 5px;
    }
    /* Responzívne úpravy pre formulár */
    .contact-form-wrapper {
        padding: 20px;
        margin: 30px auto;
    }
    .contact-form-wrapper h3 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .contact-form {
        gap: 20px;
    }
    .form-group label {
        font-size: 1rem;
    }
    .radio-label, .checkbox-label {
        font-size: 0.95rem;
    }
    .form-footer-info {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    section {
        padding: 60px 0;
    }
    h2 {
        font-size: 2rem;
    }
    .service-detail-card {
        padding: 30px;
    }
    .service-detail-card h3 {
        font-size: 1.6rem;
    }
    .service-price {
        font-size: 1.1rem;
    }
}