/* ==========================================================================
   Phantom Security - Hlavní Styly
   Modern CSS s Flexbox/Grid Layout
   ========================================================================== */

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

:root {
    /* Barevná paleta */
    --primary-color: #0066cc;
    --secondary-color: #00a86b;
    --accent-color: #ff6b35;
    --dark-bg: #1a1a2e;
    --dark-secondary: #16213e;
    --light-bg: #f8f9fa;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-light: #ffffff;
    --border-color: #dee2e6;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    
    /* Typografie - Google Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Rozměry */
    --container-width: 1200px;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--light-bg);
}

/* Headings - Poppins font */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

/* Dark background sections - white headings */
.hero h1, .hero h2, .hero h3,
.cta-section h1, .cta-section h2, .cta-section h3,
.premium-section h1, .premium-section h2, .premium-section h3,
.upgrade-section h1, .upgrade-section h2, .upgrade-section h3,
.main-footer h1, .main-footer h2, .main-footer h3,
[style*="background: linear-gradient"] h1,
[style*="background: linear-gradient"] h2,
[style*="background: linear-gradient"] h3 {
    color: var(--text-light) !important;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.main-header {
    background-color: var(--dark-bg);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 35px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-image:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Hlavní Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark-secondary);
    list-style: none;
    min-width: 250px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 0.5rem;
}

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

.dropdown-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
}

.menu-icon {
    font-size: 1.2rem;
}

/* Akční Tlačítka */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobilní Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobilní menu položky - skryté na desktopu */
.mobile-only {
    display: none;
}

.mobile-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0.5rem 0;
}

.desktop-only {
    display: flex;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.lang-toggle {
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    min-width: 180px;
    margin-top: 0.5rem;
    display: none;
    z-index: 1000;
}

.lang-dropdown.active {
    display: block;
}

.lang-option {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.lang-option:hover {
    background: var(--light-bg);
}

.lang-option.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.mobile-lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
}

.lang-select {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
}

.lang-select option {
    background: var(--dark-bg);
    color: white;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

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

.btn-outline {
    background-color: transparent;
    border-color: var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-icon {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
    color: var(--text-light);
    padding: 5rem 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-light); /* Bílá barva pro hero */
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* CTA Dropdown Menu */
.cta-dropdown {
    position: relative;
}

.cta-dropdown .dropdown-toggle-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background-color: var(--dark-secondary) !important;
    min-width: 220px !important;
    max-width: 250px !important;
    border-radius: var(--border-radius) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
    margin-top: 0.75rem !important;
    z-index: 1000 !important;
    overflow: hidden !important;
    display: block !important;
}

.cta-dropdown.active .cta-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.cta-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.2rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 500;
    font-size: 0.95rem;
    text-align: left;
    justify-content: flex-start;
}

.cta-dropdown-item:last-child {
    border-bottom: none;
}

.cta-dropdown-item:hover {
    background-color: rgba(0, 102, 204, 0.2);
    padding-left: 1.5rem;
}

.cta-dropdown-item .menu-icon {
    font-size: 1.2rem;
    opacity: 0.9;
}

.cta-dropdown .dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.cta-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Segment Dropdown Menu */
.segment-dropdown {
    position: relative;
    margin-top: 1.5rem;
}

.segment-dropdown .dropdown-toggle-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.segment-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-10px) !important;
    background-color: var(--dark-secondary) !important;
    min-width: 100% !important;
    border-radius: var(--border-radius) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    margin-top: 0.75rem !important;
    z-index: 1000 !important;
    overflow: hidden !important;
    display: block !important;
}

.segment-dropdown.active .segment-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

.segment-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.2rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 500;
    font-size: 0.95rem;
}

.segment-dropdown-item:last-child {
    border-bottom: none;
}

.segment-dropdown-item:hover {
    background-color: rgba(0, 102, 204, 0.2);
    padding-left: 1.5rem;
}

.segment-dropdown-item .menu-icon {
    font-size: 1.2rem;
    opacity: 0.9;
}

.segment-dropdown .dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.segment-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.illustration-icon {
    font-size: 8rem;
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features {
    padding: 5rem 0;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

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

.feature-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.feature-icon {
    margin-bottom: 1.5rem;
    text-align: center;
}

.feature-icon .icon {
    font-size: 3rem;
}

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

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.feature-list li:before {
    content: "✓ ";
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ==========================================================================
   Services Overview
   ========================================================================== */

.services-overview {
    padding: 5rem 0;
    background: var(--light-bg);
}

.services-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.service-segment {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-segment.highlighted {
    border: 2px solid var(--primary-color);
    position: relative;
}

.service-segment.highlighted::before {
    content: "NEJPOPULÁRNĚJŠÍ";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.segment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.segment-icon {
    font-size: 2.5rem;
}

.segment-header h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.segment-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.segment-services {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.segment-services li {
    padding: 0.75rem 0;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.segment-services li:last-child {
    border-bottom: none;
}

/* Service Segment Buttons - Jednotná velikost */
.service-segment > .btn,
.service-segment .segment-dropdown {
    margin-top: auto;
}

.service-segment > .btn {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    min-height: 52px;
    box-sizing: border-box;
}

.service-segment .segment-dropdown .dropdown-toggle-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 5rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-light); /* Bílá barva */
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-outline {
    border-color: var(--text-light);
}

.cta-section .btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* ==========================================================================
   Pricing & Premium Sections
   ========================================================================== */

.pricing-cta,
.premium-section,
.upgrade-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 3rem 0;
}

.pricing-cta h3,
.premium-section h2,
.premium-section h3,
.premium-section h4,
.upgrade-section h2,
.upgrade-section h3 {
    color: var(--text-light) !important;
    margin-bottom: 1rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    max-width: 600px;
    margin: 2rem auto;
    padding: 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.pricing-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--text-light);
    font-weight: bold;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.main-footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

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

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

.footer-tagline {
    opacity: 0.8;
    font-style: italic;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

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

.footer-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   Forms
   ========================================================================== */

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

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

.form-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-success {
    color: var(--success);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

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

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

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-illustration {
        width: 200px;
        height: 200px;
    }
    
    .illustration-icon {
        font-size: 5rem;
    }
    
    .services-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .logo-image {
        height: 32px;
    }
}

@media (max-width: 768px) {
    .logo-image {
        height: 28px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--dark-secondary);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0;
        box-shadow: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Zobrazit mobilní položky */
    .mobile-only {
        display: block;
    }
    
    /* Skrýt desktop tlačítka */
    .desktop-only {
        display: none;
    }
    
    .nav-actions {
        flex-wrap: wrap;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
}
