/* Reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #000;
    background-image: url('user_input_files/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

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

/* Header a navigace */
.navbar {
    background: #3D6075;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

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

.nav-logo-img {
    height: 40px;
    width: auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-text {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-link:hover,
.nav-link.active {
    background: #E86F6F;
    color: white;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero sekce */
.hero {
    padding: 2rem 0;
    margin: 2rem 0;
    border-radius: 10px;
}

/* Logo s textem */
.hero-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-with-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.company-name {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3D6075;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
    margin: 0;
}

.hero-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.main-logo {
    max-width: 400px;
    height: auto;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Alert box */
.alert-box {
    background: #E86F6F;
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: center;
}

.alert-box h2 {
    margin-bottom: 0.5rem;
}

.alert-box h3 {
    margin-bottom: 0.5rem;
}

/* Info cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.info-card {
    background: rgba(255, 255, 255, 0.85);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 4px solid #3D6075;
}

.info-card h3 {
    color: #3D6075;
    margin-bottom: 1rem;
}

/* Tlačítka */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #3D6075;
    color: white;
}

.btn-primary:hover {
    background: #2a4559;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #E86F6F;
    color: white;
}

.btn-secondary:hover {
    background: #d65555;
    transform: translateY(-2px);
}

/* Features sekce */
.features {
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 10px;
}

.features h2 {
    text-align: center;
    color: #3D6075;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    background: rgba(255, 255, 255, 0.85);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature h3 {
    color: #3D6075;
    margin-bottom: 1rem;
}

/* Page header */
.page-header {
    padding: 2rem 0;
    margin: 2rem 0;
    border-radius: 10px;
    text-align: center;
}

.page-header h1 {
    color: #3D6075;
    margin-bottom: 1rem;
}

/* Produkty */
.products {
    padding: 2rem 0;
}

.category {
    margin-bottom: 3rem;
}

.category h2 {
    color: #3D6075;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid #E86F6F;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.product-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #f8f9fa;
    padding: 10px;
}

.product-image-placeholder {
    background: #f0f0f0;
    height: 150px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #666;
    font-size: 14px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.product-card h3 {
    color: #3D6075;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.product-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.pricing {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.price-item:last-child {
    margin-bottom: 0;
}

.price-item span {
    color: #666;
}

.price-item strong {
    color: #E86F6F;
    font-weight: 600;
}

/* Pricing info */
.pricing-info {
    padding: 2rem 0;
}

.pricing-rules {
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.pricing-rules h2 {
    color: #3D6075;
    margin-bottom: 1rem;
}

.pricing-rules ul {
    list-style: none;
    padding-left: 0;
}

.pricing-rules li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.pricing-rules li::before {
    content: "•";
    color: #E86F6F;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Kontakt */
.contact-content {
    padding: 2rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h2,
.contact-map h2 {
    color: #3D6075;
    margin-bottom: 1.5rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.85);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid #E86F6F;
}

.contact-item h3 {
    color: #3D6075;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #3D6075;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.map-container {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-cta {
    text-align: center;
}

.cta-box {
    background: rgba(255, 255, 255, 0.85);
    padding: 3rem;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.cta-box h2 {
    color: #3D6075;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #3D6075;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    /* Zvětšit písmo pro lepší čitelnost */
    body {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #3D6075;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    h1 {
        font-size: 1.7rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 200px;
        font-size: 1.1rem;
    }

    .main-logo {
        max-width: 300px;
    }
    
    /* Product cards na mobilu - menší obrázky a větší padding */
    .product-image {
        height: 90px;
        margin-bottom: 1.2rem;
    }
    
    .product-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .product-card p {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .tech-specs {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-top: 0.8rem;
    }
    
    /* Zvětšit padding pro product card */
    .product-card {
        padding: 1.2rem;
    }
    
    /* Modal adjustments for mobile - větší obrázky */
    .modal-content {
        margin: 1% auto;
        padding: 1.2rem;
        width: 98%;
        max-height: 95vh;
    }
    
    .modal-image {
        max-height: 280px;
    }
    
    /* Contact grid adjustments */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info,
    .contact-map {
        margin-bottom: 2rem;
    }
    
    /* Pricing table na mobilu - větší text */
    .pricing-table {
        font-size: 0.95rem;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 10px 6px;
    }
    
    .price-item {
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    /* Ještě větší písmo pro malé obrazovky */
    body {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }

    .container {
        padding: 0 12px;
    }

    .hero {
        margin: 1rem 0;
        padding: 1.5rem 0;
    }

    .info-card {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }

    .product-card {
        padding: 1.1rem;
        margin-bottom: 1rem;
    }

    .cta-box {
        padding: 2rem 1rem;
    }

    .main-logo {
        max-width: 220px;
    }
    
    /* Ještě menší obrázky pro malé obrazovky */
    .product-image {
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .modal-image {
        max-height: 200px;
    }
    
    /* Lepší layout pro technické specifikace */
    .tech-specs {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Větší spacing mezi elementy */
    .products-grid {
        gap: 1.2rem;
    }
    
    .info-cards {
        gap: 1.2rem;
    }
    
    .features-grid {
        gap: 1.2rem;
    }
    
    /* Further optimizations for very small screens */
    .product-image {
        height: 80px;
    }
    
    .modal-content {
        margin: 1% auto;
        padding: 1rem;
        width: 98%;
    }
    
    .modal-image {
        max-height: 200px;
    }
    
    /* Smaller text for mobile */
    .product-card h3 {
        font-size: 1.1rem;
    }
    
    .product-card p {
        font-size: 0.9rem;
    }
    
    .pricing {
        font-size: 0.85rem;
    }
}

/* Animace pro hover efekty */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.info-card,
.feature {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Focus states pro přístupnost */
.btn:focus,
.nav-link:focus {
    outline: 2px solid #E86F6F;
    outline-offset: 2px;
}

/* Pricing table */
.pricing-table {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    overflow-x: auto;
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.pricing-table th,
.pricing-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.pricing-table th {
    background: #3D6075;
    color: white;
    font-weight: 600;
}

.pricing-table tr:nth-child(even) {
    background: #f9f9f9;
}

.pricing-table tr:hover {
    background: #f0f8ff;
}

/* Modal pro produkty */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close:hover,
.close:focus {
    color: #E86F6F;
}

.modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .modal {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .product-card,
    .info-card,
    .pricing-table {
        break-inside: avoid;
    }
}
