/* =========================================
   Základné nastavenia & CSS Premenné
   ========================================= */
:root {
    --primary-color: #146eb4;      /* Hlavná modrá */
    --secondary-color: #339966;    /* Medicínska zelená z pôvodného dizajnu */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f4f7f9;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   Tlačidlá (Zaoblené - Pill shape)
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px; /* Úplné zaoblenie */
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9em;
    border-radius: 30px; /* Úplné zaoblenie pre malé tlačidlo */
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-small:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px); /* Jemný efekt nadvihnutia */
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-2px); /* Jemný efekt nadvihnutia */
}

.btn-large {
    font-size: 1.1em;
    padding: 16px 36px;
}

/* =========================================
   Top Bar
   ========================================= */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9em;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.contact-info i {
    margin-right: 5px;
    color: rgba(255,255,255,0.7);
}

.booking-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.highlight-text {
    color: #ffd700; /* Zlatá pre pozornosť */
    font-weight: 600;
}

/* =========================================
   Hlavička (Header) & Navigácia
   ========================================= */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 0.85em;
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 5px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.95em;
    padding: 10px 0;
    position: relative;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    border-radius: 3px; /* Zaoblená čiara pod menu */
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

/* =========================================
   Pravá časť hlavičky a Jazykové Vlajky (Kruhové)
   ========================================= */
.header-right {
    display: flex;
    align-items: center;
    gap: 40px; 
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 12px; 
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
}

.lang-switcher a {
    display: inline-block;
    transition: transform 0.2s ease;
}

.lang-switcher a:hover {
    transform: scale(1.15) translateY(-2px); 
}

.lang-switcher img {
    width: 26px; 
    height: 26px; /* Rovnaká výška pre dokonalý kruh */
    object-fit: cover; /* Oreže vlajku do kruhu bez deformácie */
    border-radius: 50%; /* Vlajky ako krúžky */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15); 
    display: block;
    border: 2px solid var(--white); /* Jemný biely okraj okolo vlajky */
}

/* =========================================
   Hero Sekcia s Video Pozadím
   ========================================= */
.hero-video {
    position: relative;
    width: 100%;
    min-height: 85vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: var(--white);
    padding: 100px 0;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover; 
    z-index: -2; 
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(20, 110, 180, 0.7), rgba(51, 153, 102, 0.7)); 
    z-index: -1;
}

.hero-video .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-video h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0,0,0,0.4); 
}

.hero-video p {
    font-size: 1.2em;
    font-weight: 300;
    margin-bottom: 40px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.hero-video .sub-action {
    margin-top: 15px;
    font-size: 0.9em;
    color: #ffcccc;
}

/* =========================================
   Info Sekcia (Karty so zaoblením)
   ========================================= */
.info-section {
    padding: 80px 0;
    margin-top: -60px; 
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 24px; /* Výraznejšie zaoblenie celej karty */
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px; /* Hrubšia linka */
    background-color: var(--secondary-color);
    border-radius: 24px 24px 0 0; /* Zaoblenie vrchnej linky, aby kopírovala kartu */
}

.card-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-card h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.highlight-box {
    background-color: rgba(51, 153, 102, 0.1);
    padding: 15px 20px;
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 16px 16px 0; /* Zaoblenie boxu zo strán bez rámiku */
    margin-top: 20px;
    font-weight: 600;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color); /* Jemnejšia čiarka */
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list li.closed {
    color: #e74c3c;
}

/* =========================================
   Poisťovne
   ========================================= */
.insurance-section {
    background-color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 4px; /* Zaoblená podčiarkovacia línia */
    background-color: var(--secondary-color);
}

.insurance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.insurance-logo img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.insurance-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05); /* Jemné priblíženie loga */
}

/* =========================================
   Mapa & Footer
   ========================================= */
.map-section iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

.main-footer {
    background-color: #111;
    color: #888;
    text-align: center;
    padding: 30px 0;
}

/* =========================================
   Responzivita (Mobil/Tablet)
   ========================================= */
@media (max-width: 992px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-video h1 {
        font-size: 2.8em;
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-inner {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .header-right {
        flex-direction: column;
        gap: 20px;
    }
    
    .lang-switcher {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
        padding-top: 15px;
        justify-content: center;
        width: 100%;
    }

    .insurance-grid {
        grid-template-columns: 1fr;
    }
    
    .info-section {
        margin-top: 0;
        padding: 40px 0;
    }

    .hero-video {
        min-height: 70vh; 
        padding: 60px 0;
    }

    .hero-video h1 {
        font-size: 2.2em;
    }
}


/* =========================================
   One-Page a Kotvy (Anchors)
   ========================================= */
/* Posunie záchytný bod pri scrollovaní trochu nižšie, aby hlavička neprekryla nadpis sekcie */
.section-offset {
    scroll-margin-top: 100px; 
}

.text-center {
    text-align: center;
}

/* =========================================
   Služby - Odrážkový zoznam
   ========================================= */
.custom-list {
    margin-top: 20px;
}

.custom-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.5;
}

.custom-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--secondary-color);
    font-size: 1.2em;
}

/* =========================================
   Cenník (Grid s kartami)
   ========================================= */
.pricing-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pricing-card h4 {
    font-size: 1.1em;
    color: var(--primary-color);
    margin-bottom: 15px;
    min-height: 50px; /* Zarovnanie textu, aby karty boli rovnako vysoké */
}

.pricing-card .price {
    font-size: 2em;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: auto; /* Posunie cenu vždy na spodok karty */
}

/* =========================================
   Galéria (Moderná mriežka)
   ========================================= */
.gallery-section {
    padding: 80px 0;
    background-color: var(--white);
}

.gallery-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-modern-grid a {
    display: block;
    overflow: hidden;
    border-radius: 24px; /* Zaoblenie podľa "soft UI" štýlu */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.gallery-modern-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-modern-grid a:hover img {
    transform: scale(1.1); /* Jemný plynulý zoom obrázka po nabehnutí myšou */
}

/* Responzivita pre galériu */
@media (max-width: 768px) {
    .gallery-modern-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}


/* =========================================
   Hlavička (Header) - Glassmorphism Efekt
   ========================================= */
.main-header {
    /* Glassmorphism (Sklenený efekt) */
    background-color: rgba(255, 255, 255, 0.80); /* 80% biela, 20% priesvitná */
    backdrop-filter: blur(12px); /* Rozmazanie obsahu pod hlavičkou (hlavný sklenený efekt) */
    -webkit-backdrop-filter: blur(12px); /* Podpora pre Safari a iOS */
    
    /* Jemný tieň a lesk na spodnej hrane, aby to vyzeralo ako reálne sklo */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* =========================================
   Zaoblené Logo a Animácia
   ========================================= */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo img {
    border-radius: 20px; /* Zaoblenie loga podľa Soft UI */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Jemný tieň, aby logo vystúpilo */
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05); /* Logo sa jemne zväčší pri prejdení myšou */
}

.logo-text {
    font-size: 0.85em;
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 5px;
}