:root {
    --primary-color: #1e3a5c;
    --primary-light: #2563eb; 
    --secondary-color: #d4af37;
    --secondary-hover: #e0b831;
    --accent-color: #f8fafc;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Contact Bar*/
.header-contact {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, padding 0.3s ease;
}

.header-contact.header-hidden {
    transform: translateY(-110%);
}

.header-contact.scrolled {
    padding: 8px 0;
}


.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: center;
}

.main-nav {
    justify-self: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.contact-item i,
.contact-item svg {
    color: var(--secondary-color);
    fill: var(--secondary-color);
    font-size: 18px;
}

.contact-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.contact-item a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    background-image: url('img/Header_Praha.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--primary-color) 85%, transparent) 0%,
        color-mix(in srgb, var(--primary-light) 75%, transparent) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 500;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-primary {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px color-mix(in srgb, var(--secondary-color) 40%, transparent);
    background: var(--secondary-hover);
}

/* Animations*/
.fade-in {
    animation: fadeIn 1s ease-in;
}

.fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services Section */
.services {
    padding: 40px 0;
    background: var(--accent-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--white);
    padding: 30px 22px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    border-left: 4px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--secondary-color);
}

.service-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    color: var(--secondary-color);
}

.service-link i,
.service-link svg {
    transition: transform 0.3s ease;
}

.service-link:hover i,
.service-link:hover svg {
    transform: translateX(5px);
}

/* Service Detail Sections */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

section[id] {
    scroll-margin-top: 70px;
}

.service-detail {
    padding: 40px 0;
}

.service-detail.alt-bg {
    background: var(--accent-color);
}

.service-detail h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    padding-left: 150px;
}

.detail-content {
    max-width: 900px;
    margin: 0 auto;
}

.detail-content p {
    margin-bottom: 14px;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-dark);
}

.detail-content strong {
    color: var(--primary-color);
}

.detail-cta {
    margin-top: 30px;
    text-align: center;
}

.detail-cta .btn-primary {
    font-size: 1rem;
    padding: 12px 30px;
}

.info-box {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 30px;
    border-left: 4px solid var(--secondary-color);
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.info-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--white);
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 14px;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-dark);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--accent-color);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-card i,
.contact-card svg {
    color: var(--secondary-color);
    fill: var(--secondary-color);
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.contact-card a,
.contact-card p {
    color: var(--text-light);
    font-size: 1.1rem;
}



.contact-card a[href^="mailto"] {
    font-size: clamp(0.7rem, 1.2vw + 0.4rem, 0.9rem);
}

.contact-card a:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    background: var(--secondary-hover);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 14px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.error-page .btn-primary { margin-top: 20px; }

/* Responsive Design */
@media (max-width: 768px) {
    .service-detail h2 {
        padding-left: 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 15px;
        gap: 10px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 16px;
        padding: 8px 0;
    }

    .hero {
        height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .services {
        padding: 50px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail {
        padding: 50px 0;
    }
    
    .service-detail h2 {
        font-size: 2rem;
    }
    
    .contact-grid {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .main-nav {
        margin-left: auto;
        justify-self: auto;
    }

    .contact-item span {
        display: none;
    }

    .contact-item svg {
        width: 22px;
        height: 22px;
        font-size: 22px;
    }

    .nav-links.open {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        padding: 10px 20px 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        width: auto;
    }
}

@media (max-width: 480px) {
    .btn-primary {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .service-card {
        padding: 30px 20px;
    }
}
