/* =========================================
   SMARTWATT PRO - V5 ABSOLUTE PREMIUM "BIG4"
   ========================================= */

:root {
    /* Refined Color Palette */
    --color-bg-main: #FFFFFF;
    --color-bg-alt: #F4F5F7;
    /* Very sophisticated light gray, not blueish */
    --color-border: #E5E7EB;

    --color-text-body: #4B5563;
    /* Medium gray for perfect reading contrast */
    --color-text-heading: #111827;
    /* Almost black */
    --color-text-muted: #9CA3AF;

    --color-navy: #090E17;
    /* Incredibly deep, dark navy/black for absolute authority */

    --color-emerald: #058855;
    /* Sophisticated, serious green */
    --color-emerald-dark: #046A42;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing System */
    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;

    /* Transitions */
    --transition-smooth: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* =========================================
   BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-main);
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-smooth);
}

img {
    max-width: 100%;
    display: block;
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-heading);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.text-emerald {
    color: var(--color-emerald) !important;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 2px;
    /* Very slight rounding for premium feel */
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-emerald);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-emerald-dark);
}

.btn-solid-dark {
    background-color: var(--color-navy);
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.btn-solid-dark:hover {
    background-color: var(--color-emerald);
}

.btn-outline-light {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-outline-light:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-massive {
    padding: 1.5rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.nav-cta {
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    background-color: var(--color-navy);
    color: #FFFFFF;
    box-shadow: none !important;
}

.nav-cta:hover {
    background-color: var(--color-emerald);
}

/* =========================================
   SHARED CONTAINERS
   ========================================= */
.hero-container,
.statement-container,
.expertise-container,
.commitment-container,
.footer-container,
.nav-container {
    width: 100%;
    max-width: 1360px;
    /* Wider for that editorial spread */
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar.menu-active {
    border-bottom: 1px solid transparent;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: none;
    z-index: 999;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 96px;
    /* Taller, more authoritative header space */
}

.logo-box,
.logo-box-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo-img {
    height: 76px;
    /* Enlarged logo */
    width: auto;
    object-fit: contain;
    transition: opacity var(--transition-smooth);
}

.brand-logo-img:hover {
    opacity: 0.8;
}

/* Mobile Navigation Defaults */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-navy);
    cursor: pointer;
    z-index: 1001;
}

.nav-wrapper {
    position: absolute;
    top: 96px;
    /* Below navbar */
    left: 0;
    right: 0;
    height: calc(100vh - 96px);
    /* Full screen overlay */
    background-color: rgba(255, 255, 255, 0.85);
    /* More transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-lg) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-smooth);
}

.nav-wrapper.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-align: left;
}

.nav-link {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-navy);
    padding: 1rem 0;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-link:last-child {
    border-bottom: none;
}

.nav-actions {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-top: 1rem;
}

.nav-cta {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1.125rem;
    border-radius: 8px;
}

/* Desktop override */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }

    .nav-wrapper {
        position: static;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        box-shadow: none;
        border-bottom: none;
        transform: none;
        opacity: 1;
        pointer-events: auto;

        display: flex;
        flex-direction: row;
        align-items: center;
        flex: 1;
        justify-content: flex-end;
        /* Push to right */
        gap: var(--space-xl);
    }

    .nav-links {
        flex-direction: row;
        gap: var(--space-lg);
    }

    .nav-link {
        font-size: 0.95rem;
        border-bottom: none;
        padding: 0.5rem 0;
    }

    .nav-link::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 2px;
        background-color: var(--color-emerald);
        transition: width var(--transition-smooth);
    }

    .nav-link:hover {
        color: var(--color-navy);
    }

    .nav-link:hover::after {
        width: 100%;
    }

    .nav-actions {
        width: auto;
        margin-top: 0;
    }

    .nav-cta {
        width: auto;
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    padding-top: 140px;
    /* Push down past nav */
    padding-bottom: var(--space-xl);
    min-height: 95vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(9, 14, 23, 0.95) 0%, rgba(9, 14, 23, 0.7) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 900px;
}

.hero-label {
    display: inline-block;
    color: var(--color-emerald);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-emerald);
    padding-bottom: 0.25rem;
}

.headline {
    color: #fff;
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: var(--space-md);
}

.subheadline {
    color: #D1D5DB;
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    font-weight: 300;
    max-width: 700px;
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* =========================================
   STATEMENT (PROBLÉM/ŘEŠENÍ)
   ========================================= */
.statement {
    padding: var(--space-2xl) 0;
    background-color: var(--color-bg-main);
}

.statement-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 1024px) {
    .statement-grid {
        grid-template-columns: 5fr 7fr;
        gap: var(--space-xl);
    }
}

.statement-heading h2 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.05;
    position: sticky;
    top: 120px;
}

.statement-body .lead-text {
    font-size: 1.5rem;
    color: var(--color-text-heading);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.statement-body p {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

.stats-row {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================
   EXPERTISE (SERVICES LIST)
   ========================================= */
.expertise {
    padding: var(--space-xl) 0;
    background-color: var(--color-bg-alt);
    /* Subtle gray background */
}

.expertise-header {
    margin-bottom: var(--space-xl);
    max-width: 800px;
}

.section-kicker {
    display: block;
    color: var(--color-emerald);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.expertise-header h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
}

/* Editorial List Layout instead of Bento Grid */
.services-list {
    display: flex;
    flex-direction: column;
}

.service-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--space-sm);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-border);
    transition: background-color var(--transition-smooth);
}

.service-row:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.service-row:last-child {
    border-bottom: 1px solid var(--color-border);
}

.service-num {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-text-muted);
    padding-top: 0.25rem;
}

.service-content h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text-heading);
}

.service-content p {
    font-size: 1.125rem;
    max-width: 700px;
}

.service-icon {
    display: none;
    /* Hide on small screens */
}

@media (min-width: 768px) {
    .service-row {
        grid-template-columns: 80px 1fr 100px;
        align-items: start;
        gap: var(--space-md);
    }

    .service-content h3 {
        font-size: 2rem;
    }

    .service-icon {
        display: flex;
        justify-content: flex-end;
        font-size: 3rem;
        color: var(--color-emerald);
        opacity: 0.5;
        transition: opacity var(--transition-smooth);
    }

    .service-row:hover .service-icon {
        opacity: 1;
    }
}

/* =========================================
   COMMITMENT (CTA)
   ========================================= */
.commitment {
    padding: var(--space-2xl) 0;
    background-color: var(--color-navy);
    color: #fff;
    text-align: center;
}

.commitment-content {
    max-width: 800px;
    margin: 0 auto;
}

.commitment-label {
    display: block;
    color: var(--color-emerald);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.commitment h2 {
    color: #fff;
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: var(--space-md);
}

.commitment p {
    font-size: 1.25rem;
    color: #9CA3AF;
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--color-bg-main);
    padding: var(--space-xl) 0 var(--space-md) 0;
    border-top: 1px solid var(--color-border);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

.brand-logo-img-footer {
    height: 48px;
    /* Enlarged footer logo */
    width: auto;
    object-fit: contain;
    margin-bottom: var(--space-xs);
}

.copyright {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .footer-contact {
        justify-content: flex-end;
    }
}

.contact-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.block-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.block-value,
.block-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-heading);
}

.block-link:hover {
    color: var(--color-emerald);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}