/* AIAA Marketing - Marketingová stránka www.aiaa.cz */

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

:root {
    --primary-color: #3F73DB;  /* Hlavní modrá */
    --primary-dark: #2c5bb8;
    --secondary-color: #F59D1C; /* Oranžová pro CTA */
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-alt: #ffffff;
    --border-color: #dee2e6;
    --success-color: #4CAF50;
    --error-color: #dc3545;
    --bg-main: #ffffff;
    --bg-section: #f8f9fa;
    --bg-section-alt: #ffffff;
    --card-bg: #ffffff;
    --footer-bg: #f5f5f5;
    --shadow: rgba(0,0,0,0.1);
}

/* Dark mode variables */
body.dark-mode {
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --bg-light: #2a2a2a;
    --bg-alt: #1e1e1e;
    --bg-main: #1a1a1a;
    --bg-section: #1e1e1e;
    --bg-section-alt: #242424;
    --border-color: #404040;
    --card-bg: #2a2a2a;
    --footer-bg: #1e1e1e;
    --shadow: rgba(0,0,0,0.3);
}

body.dark-mode .main-header {
    background-color: #1e1e1e;
    border-bottom: 1px solid #404040;
}

body.dark-mode .main-footer {
    background-color: #1e1e1e;
    border-top: 1px solid #404040;
}

body.dark-mode .footer-section h4 {
    color: #4a9eff;
}

body.dark-mode .footer-section p {
    color: #b0b0b0;
}

body.dark-mode .footer-section a {
    color: #4a9eff;
}

body.dark-mode .footer-section a:hover {
    color: #70b8ff;
}

body.dark-mode .footer-bottom p {
    color: #888;
}

body.dark-mode .footer-brand h3 {
    color: #4a9eff;
}

body.dark-mode .footer-tagline {
    color: #b0b0b0;
}

body.dark-mode .footer-by {
    color: #b0b0b0;
}

body.dark-mode .footer-by img {
    filter: brightness(0) invert(1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-main);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Header */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

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

.logo-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.2;
}

.main-header nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-header nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.button-secondary {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.2s;
    border: 2px solid var(--primary-color);
}

.button-secondary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Login button v hlavičce */
.btn-login {
    display: inline-block;
    padding: 8px 20px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: 2px solid white;
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: silver;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    margin-left: auto;
}

.dark-mode-toggle:hover {
    background-color: var(--bg-light);
    transform: scale(1.1);
}

.dark-mode-icon {
    width: 20px;
    height: 20px;
    transition: filter 0.3s ease;
}


body.dark-mode .dark-mode-toggle {
    border-color: rgba(255,255,255,0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

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

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
}

.button-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    cursor: pointer;
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 157, 28, 0.4);
    background-color: #d88915;
}

.button-primary.large {
    padding: 16px 40px;
    font-size: 1.2rem;
}

.button-primary.full-width {
    width: 100%;
    text-align: center;
}

/* Form Container */
.hero-form-container {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow);
    color: var(--text-color);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.form-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
}

.tab-link {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
    transition: all 0.2s;
}

.tab-link:hover {
    color: var(--primary-color);
}

.tab-link.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    font-weight: 600;
}

.form-tab-content {
    display: none !important;
}

.form-tab-content.active {
    display: block !important;
}

/* Zajistíme, že první tab je viditelný i bez JavaScriptu */
.form-tab-content.active,
#tab-poptavka.form-tab-content.active {
    display: block !important;
}

.form-tab-content h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(245, 157, 28, 0.15);
}

.form-link {
    display: block;
    margin-top: 15px;
    text-align: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.form-link:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    font-weight: 500;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    font-weight: 500;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
    background-color: var(--bg-section-alt);
}

.content-section-alt {
    padding: 80px 0;
    background-color: var(--bg-section);
}

.content-section h2,
.content-section-alt h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    justify-items: center;
}

.feature-box {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    max-width: 350px;
    border: 1px solid var(--border-color);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.feature-box h3,
.feature-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-box p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Process Timeline with vertical line */
.process-timeline {
    max-width: 900px;
    margin: 50px auto 0;
    position: relative;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.timeline-line {
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
    align-items: start;
}

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

.timeline-icon {
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px var(--shadow);
    justify-self: center;
}

.timeline-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.timeline-icon span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.timeline-content {
    flex: 1;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    border-left: 3px solid var(--primary-color);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Legacy timeline support (fallback) */
.timeline-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Contact Info */
.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    margin: 30px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

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

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

/* Footer */
.main-footer {
    background-color: #f5f5f5;
    color: #333;
    padding: 50px 0 20px;
    margin-top: 60px;
    border-top: 1px solid #ddd;
}

.footer-logo-section {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.footer-brand h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.footer-tagline {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 10px;
    color: #555;
    font-size: 0.95rem;
}

.footer-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 5px;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Responzivní design */
@media (max-width: 968px) {
    .split-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-section {
        padding: 60px 0;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        justify-content: center;
        width: 100%;
    }
    
    .logo-title {
        text-align: center;
        font-size: 1.5rem;
    }
    
    .main-header nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
        width: 100%;
    }
    
    .main-header nav a {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content .button-primary,
    .hero-content .button-secondary {
        display: block;
        width: 100%;
        margin: 10px 0 !important;
        text-align: center;
    }
    
    .content-section h2,
    .content-section-alt h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline {
        padding: 10px;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
    }
    
    .timeline-icon img {
        width: 30px;
        height: 30px;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-item {
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   CALCULATOR (Kalkulačka AI potenciálu)
   ========================================= */

.calculator-wrapper {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.calculator-wrapper h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.calculator-intro {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 35px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.slider {
    flex: 1;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(245, 157, 28, 0.4);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slider-value {
    min-width: 100px;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.calculator-results {
    margin-top: 40px;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.results-intro {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 15px;
}

.savings-amount {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin: 20px 0;
    font-weight: bold;
}

.hours-saved {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 20px 0;
}

.annual-savings {
    font-size: 1.2rem;
    color: #555;
    margin: 15px 0;
}

.disclaimer {
    font-size: 0.9rem;
    color: #888;
    margin-top: 20px;
    font-style: italic;
}

.cta-block {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    border-radius: 10px;
    color: white;
}

.cta-block h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.cta-block p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.info-tooltip {
    cursor: help;
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    font-size: 0.9rem;
    line-height: 18px;
}

body.dark-mode .calculator-wrapper {
    background-color: #2a2a2a;
}

body.dark-mode .calculator-intro {
    color: #b0b0b0;
}

body.dark-mode .calculator-results {
    background-color: #1e1e1e;
}

body.dark-mode .results-intro,
body.dark-mode .annual-savings {
    color: #b0b0b0;
}

body.dark-mode .slider {
    background: #404040;
}

@media (max-width: 768px) {
    .calculator-wrapper {
        padding: 25px 20px;
    }
    
    .savings-amount {
        font-size: 2.5rem;
    }
    
    .slider-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .slider-value {
        text-align: center;
        font-size: 1.3rem;
    }
}

/* =========================================
   CLIENTS SLIDER (Loga klientů)
   ========================================= */

.clients-slider-container {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0px;
}

.clients-slider {
    display: flex;
    gap: 30px;
    animation: slide 25s linear infinite;
    width: max-content;
}

.clients-slider:hover {
    animation-play-state: paused;
}

.client-logo-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 120px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.client-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.client-logo-card img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

body.dark-mode .client-logo-card {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(255,255,255,0.05);
}

body.dark-mode .client-logo-card img {
    filter: grayscale(100%) brightness(0) invert(1);
    opacity: 0.7;
}

body.dark-mode .client-logo-card:hover img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .client-logo-card {
        min-width: 150px;
        height: 100px;
    }
    
    .client-logo-card img {
        max-height: 60px;
    }
    
    .clients-slider {
        animation: slide 15s linear infinite;
        gap: 20px;
    }
}

