/* Modern Theme for Galma Website - Brand Colors */

:root {
    /* GALMA brand colors */
    --primary-blue: #003d7a;      /* Tmavě modrá GALMA */
    --primary-light: #0056b3;     /* Světlejší modrá */
    --primary-dark: #002855;      /* Tmavší modrá */
    --accent-blue: #4a90e2;       /* Akcent modrá */
    --silver: #c0c0c0;            /* Stříbrná */
    --light-silver: #e8e8e8;      /* Světlá stříbrná */
    
    /* Základní barvy */
    --white: #ffffff;
    --black: #1a1a1a;
    --dark-gray: #333333;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --border-color: #dee2e6;
    
    /* Funkční barvy */
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    
    /* Stíny */
    --shadow-sm: 0 2px 4px rgba(0, 61, 122, 0.08);
    --shadow: 0 4px 12px rgba(0, 61, 122, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 61, 122, 0.16);
    --shadow-xl: 0 12px 48px rgba(0, 61, 122, 0.24);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    background: var(--light-gray);
}

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

/* Header */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-blue);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Submenu */
.main-nav li {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-blue);
    border-radius: 0 0 8px 8px;
}

.main-nav li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    display: block;
}

.submenu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--dark-gray);
    border-bottom: 1px solid var(--border-color);
    text-transform: none;
}

.submenu a:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 177.77777778vh; /* 16:9 Aspect Ratio */
    height: 56.25vw; /* 16:9 Aspect Ratio */
    max-width: none;
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(0, 0, 0, 0.6);
    letter-spacing: -2px;
    animation: fadeInUp 1s ease-out;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    opacity: 1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out 0.2s both;
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Buttons */
.btn {
    padding: 0.875rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--light-gray);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
    font-weight: 700;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 255, 255, 0.3);
}

.btn-small {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

/* Page Content */
.site-content {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.page-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.page-content p {
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
}

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

.service-card h3 {
    color: var(--primary-blue);
    margin: 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.service-card p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Contacts Grid */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.contact-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.contact-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.contact-card .position {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-card .department {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--light-gray);
    border-radius: 20px;
    display: inline-block;
}

.contact-card .contact-info {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.contact-card .contact-info a {
    color: var(--dark-gray);
    text-decoration: none;
}

.contact-card .contact-info a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

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

.reference-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

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

.reference-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.reference-card ul {
    list-style: none;
    padding-left: 0;
}

.reference-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray);
}

.reference-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 61, 122, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button[type="submit"] {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.875rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

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

.footer-column h3,
.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* Flash Messages */
.flash {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    animation: slideDown 0.3s;
}

.flash.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash.danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }
    
    .main-nav.active {
        max-height: 500px;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .main-nav a {
        padding: 0.75rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--light-gray);
        margin-left: 1rem;
    }
    
    .hero h1 {
        font-size: 3rem;
        letter-spacing: -1px;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-video {
        transform: translate(-50%, -50%) scale(1.5);
    }
    
    .services-grid,
    .references-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .page-content {
        padding: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Loading animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.loading {
    animation: pulse 2s infinite;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .menu-toggle,
    .btn {
        display: none;
    }
    
    .page-content {
        box-shadow: none;
        padding: 0;
    }
    
    body {
        background: white;
    }
}