/* ===================================
   Michal Trousil - Main Stylesheet
   Varianta A: Korporátní elegance
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background-color: #ffffff;
    padding-top: 70px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===================================
   Navigation
   =================================== */
nav {
    background: #1a1a2e;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links > li {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: #4a90d9;
}

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

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-dropdown > a::after {
    content: '▼';
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover > a::after,
.nav-dropdown.open > a::after {
    transform: rotate(180deg);
}

/* Na mobilu pouze .open třída, ne hover (hover zůstává "přilepený" na touch) */
@media (max-width: 768px) {
    .nav-dropdown:hover > a::after {
        transform: none;
    }

    .nav-dropdown.open > a::after {
        transform: rotate(180deg);
    }
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #1a1a2e;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #ffffff;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(74, 144, 217, 0.2);
    color: #4a90d9;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    color: #ffffff;
    padding: 16rem 2rem 6rem;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.6) 0%, rgba(22, 33, 62, 0.6) 100%);
    z-index: 1;
}

.hero-image-mobile {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

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

.hero p {
    font-size: 1.25rem;
    color: #b8c5d6;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #4a90d9;
    color: #ffffff;
}

.btn-primary:hover {
    background: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 144, 217, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #4a90d9;
    border: 2px solid #4a90d9;
}

.btn-secondary:hover {
    background: #4a90d9;
    color: #ffffff;
}

/* ===================================
   Stats Section
   =================================== */
.stats {
    background: #f8f9fc;
    padding: 5rem 2rem;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.stat-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #e8ecf4;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #4a90d9;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #5a6a7a;
}

/* ===================================
   Section Styles
   =================================== */
.section {
    padding: 4rem 2rem;
}

.section-light {
    background: #ffffff;
}

.section-gray {
    background: #f8f9fc;
}

.section-dark {
    background: #1a1a2e;
    color: #ffffff;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.section-dark .section-header h2 {
    color: #ffffff;
}

.section-header .subtitle {
    color: #5a6a7a;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-header .subtitle {
    color: #b8c5d6;
}

/* ===================================
   Services Grid
   =================================== */
.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e8ecf4;
    background: #ffffff;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: #4a90d9;
    box-shadow: 0 10px 30px rgba(74, 144, 217, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #e8f0fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
}

.service-card p {
    color: #5a6a7a;
    font-size: 0.95rem;
}

.service-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-card .read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #4a90d9;
    font-weight: 600;
    font-size: 0.9rem;
}

.service-card:hover .read-more {
    text-decoration: underline;
}

/* ===================================
   Content Block (for subpages)
   =================================== */
.content-block {
    max-width: 800px;
    margin: 0 auto;
}

.content-block h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
    text-align: center;
}

.content-block p {
    color: #5a6a7a;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.content-block p:last-child {
    margin-bottom: 0;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    color: #5a6a7a;
    font-size: 1.05rem;
    border-bottom: 1px solid #e8ecf4;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4a90d9;
    font-weight: 700;
}

/* Partner Logos */
.partner-logos {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    margin: 2rem 0 1.5rem;
    flex-wrap: wrap;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.partner-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.partner-logo span {
    font-size: 0.9rem;
    color: #5a6a7a;
    font-weight: 500;
}

.partner-logos-note {
    text-align: center;
    color: #5a6a7a;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* ===================================
   About Photo
   =================================== */
.about-photo {
    max-width: 800px;
    margin: 0 auto;
}

.about-photo img {
    width: 100%;
    height: auto;
    display: block;
    mask-image: linear-gradient(to bottom,
        transparent 0%, black 8%,
        black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom,
        transparent 0%, black 8%,
        black 92%, transparent 100%);
}

/* ===================================
   Team Section
   =================================== */
.team-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid #e8ecf4;
    transition: all 0.3s;
}

.team-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid #4a90d9;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.team-card .role {
    color: #4a90d9;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-card p {
    color: #5a6a7a;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.team-card p:last-child {
    margin-bottom: 0;
}

/* ===================================
   References Section
   =================================== */
.references-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.reference-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid #e8ecf4;
    transition: all 0.3s;
}

.reference-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

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

.reference-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.reference-info h3 {
    font-size: 1.25rem;
    color: #1a1a2e;
}

.reference-info .since {
    color: #4a90d9;
    font-size: 0.875rem;
    font-weight: 600;
}

.reference-header h3 {
    font-size: 1.25rem;
    color: #1a1a2e;
}

.reference-header .since {
    color: #4a90d9;
    font-size: 0.875rem;
    font-weight: 600;
}

.reference-card blockquote {
    color: #5a6a7a;
    font-style: italic;
    line-height: 1.7;
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid #4a90d9;
    margin-bottom: 1rem;
}

.reference-author {
    color: #1a1a2e;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* ===================================
   Contact Section
   =================================== */
.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
}

.contact-info > p {
    color: #5a6a7a;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: #e8f0fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-item .info .label {
    color: #5a6a7a;
    font-size: 0.875rem;
}

.contact-item .info .value {
    color: #1a1a2e;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-item .info a {
    color: #1a1a2e;
    transition: color 0.3s;
}

.contact-item .info a:hover {
    color: #4a90d9;
}

/* Contact Form */
.contact-form {
    background: #f8f9fc;
    padding: 2.5rem;
    border-radius: 12px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1a1a2e;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e8ecf4;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    background: #1a1a2e;
    color: #ffffff;
    padding: 5rem 2rem;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #b8c5d6;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ===================================
   Page Header (for subpages)
   =================================== */
.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 3rem 2rem 2.5rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    color: #b8c5d6;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-header-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.2rem;
}

.page-header-logos img {
    height: 28px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
}

.page-header-logos span {
    color: #b8c5d6;
    font-size: 0.95rem;
}

.page-header-logos .logo-invert {
    filter: brightness(0) invert(1);
}

/* ===================================
   Footer
   =================================== */
footer {
    background: #0f0f1a;
    color: #b8c5d6;
    padding: 3rem 2rem;
}

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

footer p {
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #b8c5d6;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4a90d9;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .services-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a2e;
        flex-direction: column;
        padding: 1rem 2rem 2rem;
        gap: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links.active {
        display: flex;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

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

    .nav-links a {
        display: block;
        padding: 1rem 0;
    }

    /* Mobile Dropdown */
    .nav-dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-dropdown > a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        padding: 1rem 0;
    }

    .dropdown-menu {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        min-width: 100%;
        border-radius: 0;
        box-shadow: none;
        margin-top: 0;
        border: none;
        background: rgba(0, 0, 0, 0.2);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .nav-dropdown:hover .dropdown-menu {
        transform: none;
    }

    .nav-dropdown.open .dropdown-menu {
        max-height: 500px;
        padding: 0.5rem 0;
    }

    .dropdown-menu a {
        padding: 0.75rem 1.25rem 0.75rem 1.5rem;
        font-size: 0.9rem;
        border-left: 3px solid transparent;
        transition: border-color 0.2s, background 0.2s, color 0.2s;
    }

    .dropdown-menu a:hover {
        background: rgba(74, 144, 217, 0.15);
        border-left-color: #4a90d9;
    }

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

    .dropdown-menu li:not(:last-child) {
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    /* Hero */
    .hero {
        padding: 7rem 1.5rem 2rem;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }

    .hero-bg {
        display: none;
    }

    .hero-overlay {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-image-mobile {
        display: block;
        width: 100%;
        max-width: 400px;
        height: auto;
        margin: 2rem auto 0;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    /* Stats */
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Sections */
    .section {
        padding: 3rem 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Grids */
    .services-grid,
    .team-grid,
    .references-grid {
        grid-template-columns: 1fr;
    }

    /* Page Header */
    .page-header {
        padding: 2.5rem 1.5rem 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header-logos {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .page-header-logos img {
        height: 22px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* CTA */
    .cta-section h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .service-card,
    .team-card,
    .reference-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}
