/* ===== CSS Variables ===== */
:root {
    --primary-blue: #4A90C2;
    --primary-blue-dark: #357ABD;
    --primary-blue-light: #6BA3CF;
    --accent: #f59e0b;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --gray: #6B7280;
    --dark-gray: #374151;
    --text-dark: #1F2937;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Tmavě modrá jako hero nahoře — zakryje bílý overscroll NAHOŘE (Safari/iOS rubber band). */
    background-color: #0b1e30;
    /* Zakáže rubber-band bounce v moderních prohlížečích (Chrome, Edge, Firefox). */
    overscroll-behavior-y: none;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    /* Tmavá barva footeru — zakryje bílý overscroll DOLE. Sekce si dokreslují vlastní pozadí. */
    background-color: var(--text-dark);
    overscroll-behavior-y: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-img-footer {
    height: 50px;
    filter: brightness(0) invert(1) opacity(0.95);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark-gray);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(160deg, #0b1e30 0%, #0d3a6e 40%, #1a6ec7 75%, #4A90C2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(74, 144, 194, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(255, 255, 255, 0.07) 0%, transparent 45%),
        radial-gradient(ellipse at 60% 90%, rgba(26, 110, 199, 0.3) 0%, transparent 50%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 80"><path fill="%23f8f9fa" fill-opacity="1" d="M0,40 C360,80 1080,0 1440,40 L1440,80 L0,80 Z"/></svg>');
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 900px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.15;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 36px;
    opacity: 0.92;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 36px;
    background-color: var(--white);
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--white);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
    box-shadow: none;
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    margin-top: 36px;
    margin-bottom: 60px;
}

/* ===== About Section ===== */
.about {
    background-color: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== Services Section ===== */
.services {
    background-color: var(--white);
}

.services .section-title {
    margin-bottom: 20px;
}

.service-category {
    margin-bottom: 60px;
}

.service-category:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(74, 144, 194, 0.15);
}

.category-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(74, 144, 194, 0.3);
}

.category-icon .mdi {
    font-size: 2rem;
    line-height: 1;
}

.category-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.category-desc {
    color: var(--gray);
    font-size: 0.98rem;
    margin: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    justify-items: stretch;
}

.services-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--white);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e8f0fe, #d0e2ff);
    border-radius: 50%;
    flex-shrink: 0;
}

.service-icon .mdi {
    font-size: 2.2rem;
    color: var(--primary-blue);
    line-height: 1;
}

.service-card h3,
.service-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.service-card .coming-soon {
    font-size: 0.8rem;
    color: var(--primary-blue);
    font-style: italic;
    margin-top: 10px;
    font-weight: 500;
}

/* ===== Projects Section ===== */
.projects {
    background-color: var(--light-gray);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.project-photo {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--primary-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    overflow: hidden;
    cursor: zoom-in;
}

.project-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-photo img {
    transform: scale(1.05);
}

.project-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.project-address {
    font-size: 0.9rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 500;
}

.project-text {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.project-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    align-self: flex-start;
}

.project-cta:hover {
    color: var(--primary-blue-dark);
    gap: 10px;
}

.project-cta .mdi {
    font-size: 1.1rem;
    line-height: 1;
}

/* ===== Contact Section ===== */
.contact {
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon .mdi {
    font-size: 1.8rem;
    color: var(--primary-blue);
    line-height: 1;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--gray);
}

.contact-item p a {
    color: var(--primary-blue);
    font-weight: 500;
    transition: var(--transition);
}

.contact-item p a:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

.contact-map {
    border-radius: 15px;
    overflow: hidden;
}

/* ===== Static map card (GDPR-friendly náhrada za Google Maps iframe) ===== */
.contact-map-static {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: linear-gradient(135deg, #eef4fb 0%, #d7e6f7 100%);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.contact-map-static::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(74, 144, 194, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 144, 194, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
    pointer-events: none;
}

.map-card {
    position: relative;
    background: var(--white);
    border-radius: 14px;
    padding: 30px 28px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(13, 58, 110, 0.12);
    max-width: 320px;
    width: 100%;
}

.map-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(74, 144, 194, 0.35);
}

.map-card-icon .mdi {
    font-size: 1.8rem;
    line-height: 1;
}

.map-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.map-card-address {
    color: var(--gray);
    font-size: 0.98rem;
    margin-bottom: 22px;
    line-height: 1.5;
}

.map-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
    margin: 4px 2px;
}

.map-card-link:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(74, 144, 194, 0.35);
}

.map-card-link-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 8px 16px;
}

.map-card-link-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.map-card-link .mdi {
    font-size: 1rem;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo .logo {
    margin-bottom: 15px;
    display: inline-flex;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary-blue-light);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

/* ===== Footer legal info ===== */
.footer-legal {
    padding: 26px 0 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 30px;
}

.footer-legal-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-legal-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
}

.footer-legal-value {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-legal-link {
    color: var(--primary-blue-light);
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-legal-link:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary-blue-light);
}

.lightbox-content {
    text-align: center;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.lightbox-title {
    color: var(--white);
    margin-top: 20px;
    font-size: 1.2rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .services-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .services-grid,
    .services-grid-2 {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .category-header {
        gap: 14px;
    }

    .category-icon {
        width: 52px;
        height: 52px;
    }

    .category-icon .mdi {
        font-size: 1.5rem;
    }

    .category-title {
        font-size: 1.3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links ul {
        align-items: center;
    }

    .footer-logo .logo {
        justify-content: center;
    }

    .footer-legal-grid {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }

    .footer-legal-item {
        align-items: center;
    }

    .map-card-link {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.9rem;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        max-width: 280px;
        margin: 0 auto;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-legal-grid {
        grid-template-columns: 1fr;
    }
}
