/* Základ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    color: #1f2933;
    background-color: #f8fafc;

    /* pro sticky footer */
    display: flex;
    flex-direction: column;
}

/* Kontejner */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hlavička */
.site-header {
    border-bottom: 1px solid #e5e7eb;
    background-color: #ffffff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.25rem;
}

.logo-text {
    font-weight: 700;
    color: #0b4da2;
}

/* Navigace */
.nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.95rem;
    text-decoration: none;
    color: #4b5563;
    position: relative;
    padding-bottom: 2px;
}

.nav-link:hover {
    color: #0b4da2;
}

.nav-link.active {
    color: #0b4da2;
    font-weight: 600;
}

/* Hero sekce */
main {
    flex: 1; /* aby footer držel dole */
}

.hero {
    padding: 4rem 0 2rem;
    text-align: center;
}

.hero-small {
    padding-bottom: 1.5rem;
}

.hero-inner h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.underline {
    width: 80px;
    height: 3px;
    background-color: #0b4da2;
    margin: 0.75rem auto 1.5rem;
    border-radius: 999px;
}

.hero-text {
    max-width: 640px;
    margin: 0 auto;
    color: #4b5563;
    font-size: 1rem;
}

/* Karty */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.card-center {
    max-width: 800px;
    margin: 4rem auto 3rem;
    padding: 2rem 2.5rem;
    text-align: center;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.75rem;
}

/* Řádek s tlačítky */
.buttons-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* Tlačítka */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    background-color: #0b4da2;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.1s;
    box-shadow: 0 8px 18px rgba(11, 77, 162, 0.35);
}

.btn-primary:hover {
    background-color: #093b7b;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(11, 77, 162, 0.25);
}

/* sekundární tlačítko – náhled dokumentu */
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    background-color: transparent;
    color: #0b4da2;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid #0b4da2;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.1s;
}

.btn-secondary:hover {
    background-color: rgba(11, 77, 162, 0.06);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Kontakt – karta */
.contact-section {
    padding: 1rem 0 3rem;
}

.contact-card {
    margin-top: 1rem;
    padding: 0;
    overflow: hidden;
}

/* modrá hlavička karty */
.contact-card-header {
    background: linear-gradient(90deg, #0b4da2, #1666d1);
    color: #ffffff;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* aby byl název firmy v hlavičce vidět */
.contact-card-header .logo-text {
    color: #ffffff;
}

/* obsah karty */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 1.5rem 1.25rem;
}

.contact-item .label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.contact-item .value {
    font-size: 0.95rem;
    color: #111827;
}

/* spodní proužek v kartě */
.contact-footer {
    border-top: 1px solid #e5e7eb;
    padding: 0.9rem 1.5rem;
    background-color: #f9fafb;
    font-size: 0.9rem;
}

.contact-footer .label {
    font-weight: 600;
    margin-right: 0.25rem;
}

/* Mapa */
.map-card {
    margin-top: 1.5rem;
    padding: 0.75rem;
    background-color: #f3f4f6;
}

.map-iframe {
    width: 100%;
    min-height: 260px;
    border: 0;
    border-radius: 10px;
}

/* Patička */
.site-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
    background-color: #ffffff;
}

/* PDF PREVIEW MODAL */
.pdf-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 9999;
}

.pdf-modal.open {
    display: flex;
}

.pdf-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.pdf-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Close button */
.pdf-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.pdf-close:hover {
    background: #b91c1c;
}

/* Responsivita */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 0;
        height: auto;
        gap: 0.5rem;
    }

    .nav {
        gap: 1rem;
    }

    .hero {
        padding-top: 3rem;
    }

    .hero-inner h1 {
        font-size: 2rem;
    }

    .card-center {
        margin-top: 2.5rem;
        padding: 1.5rem 1.25rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-iframe {
        min-height: 220px;
    }

    .pdf-modal-content {
        height: 80vh;
    }
}
