/* Reset a základné štýly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #0ea5e9;
    --accent-color: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

html { scroll-behavior: smooth; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigácia */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;          /* zvýšené kvôli väčšiemu logu */
    min-height: 88px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-image {
    width: 180px;               /* väčšie logo */
    height: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.25));
    transition: width 0.25s ease;
}
.navbar.scrolled .logo-image {
    width: 150px;               /* mierne menšie po scrolle */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;                /* menšie medzery nech sa vojde vedľa loga */
    align-items: center;
}
.nav-menu li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.975rem;
    transition: color 0.3s ease;
    position: relative;
}
.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-menu li a:hover { color: var(--primary-color); }
.nav-menu li a:hover::after { width: 100%; }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-menu-btn span {
    width: 25px; height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* --- Hero sekcia s karuselom --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* fallback gradient, keď sa obrázky nenačítajú */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 140px 0 80px; /* posunuté kvôli vyššiemu navbaru */
    overflow: hidden;
}

/* vrstva s obrázkami za textom */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-carousel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: heroFade 24s infinite;
    filter: saturate(1.05) contrast(1.05);
}

/* rozfázovanie 4 snímok */
.hero-carousel img:nth-child(1) { animation-delay: 0s;  }
.hero-carousel img:nth-child(2) { animation-delay: 6s;  }
.hero-carousel img:nth-child(3) { animation-delay: 12s; }
.hero-carousel img:nth-child(4) { animation-delay: 18s; }

/* plynulé prelínanie */
@keyframes heroFade {
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  25%  { opacity: 1; }
  31%  { opacity: 0; }
  100% { opacity: 0; }
}

/* stmavovacia vrstva nad obrázkami pre čitateľnosť */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,rgba(10, 30, 80, 0.75) 0%, rgba(5, 70, 120, 0.65) 100%);
    z-index: 1;
}

/* text ostáva nad overlayom */
.hero-content { position: relative; z-index: 2; text-align: center; }

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}
.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-description {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-title,
.hero-subtitle,
.hero-description {
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    animation: fadeInUp 0.8s ease 0.6s both;
}
.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-xl);
}
.feature-icon { font-size: 3rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.feature-card p { opacity: 0.9; font-size: 0.95rem; }

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease 0.8s both;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--accent-color);
    color: white;
}

/* Sekcie */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-light); }

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}
.subsection-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2rem 0 1.5rem;
    color: var(--text-dark);
}
.section-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Content bloky */
.content-block {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.content-block:hover { box-shadow: var(--shadow-md); }
.content-block h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.content-block p { color: var(--text-light); line-height: 1.8; margin-bottom: 1rem; }

/* e-Shop sekcia */
.eshop-intro {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}
.eshop-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}
.eshop-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.category-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}
.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}
.category-icon { font-size: 3rem; margin-bottom: 1rem; }
.category-card h4 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--text-dark); }
.category-card p { color: var(--text-light); font-size: 0.95rem; }
.category-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Služby */
.process-list {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}
.process-list li {
    margin-bottom: 1rem;
    padding-left: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}
.process-list strong { color: var(--text-dark); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-dark); }
.service-card p { color: var(--text-light); margin-bottom: 0.75rem; line-height: 1.6; }
.service-card strong { color: var(--text-dark); font-weight: 600; }

/* Legislatíva */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.document-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}
.document-category h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}
.document-list { list-style: none; }
.document-list li { margin-bottom: 1rem; }
.document-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}
.document-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
    border-color: var(--primary-color);
}

/* Kontakt */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}
.contact-info, .contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}
.contact-info h3,
.contact-form-wrapper h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.info-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}
.info-item:last-child { border-bottom: none; }
.info-item strong { color: var(--text-dark); font-weight: 600; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; }
.form-group label { margin-bottom: 0.5rem; color: var(--text-dark); font-weight: 500; }
.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.submit-button {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.submit-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: white;
}
.footer-section p, .footer-section ul {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-section ul li a:hover { color: white; }
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Animácie */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Rešpektovanie preferencie zníženého pohybu */
@media (prefers-reduced-motion: reduce) {
    .hero-carousel img { animation: none; opacity: 1; }
}

/* Responzívny dizajn */
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }

    .nav-menu {
        position: fixed;
        top: 70px; left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        background: white;
        padding: 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.active { left: 0; }

    .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.25rem; }

    .features-grid { grid-template-columns: 1fr; }

    .section { padding: 3rem 0; }
    .section-title { font-size: 2rem; }

    .categories-grid,
    .services-grid,
    .documents-grid { grid-template-columns: 1fr; }

    .contact-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.125rem; }
    .cta-button { padding: 0.875rem 2rem; font-size: 1rem; }
}
