/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --color-bg: #FFFFFF;
    --color-primary: #329766;
    --color-primary-dark: #236947;
    --color-accent: #329766;
    --color-text-body: #696969;
    --color-text-heading: #102830;
    --color-light-gray: #FFFFFF;
    --color-white: #FFFFFF;

    /* Gradients */
    --gradient-glow: radial-gradient(circle at center, rgba(50, 151, 102, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    --gradient-glow-soft: radial-gradient(circle at center, rgba(34, 197, 94, 0.05) 0%, rgba(255, 255, 255, 0) 80%);
    --gradient-primary: linear-gradient(135deg, #329766 0%, #236947 100%);
    --gradient-card: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
    --gradient-premium: linear-gradient(135deg, #102830 0%, #236947 100%);

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(50, 151, 102, 0.08), 0 4px 6px -2px rgba(50, 151, 102, 0.04);
    --shadow-lg: 0 25px 50px -12px rgba(50, 151, 102, 0.15);
    --shadow-glow: 0 0 30px rgba(50, 151, 102, 0.3);
    --shadow-inner: none;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 10px;

    /* Spacing */
    --container-max-width: 1340px;
    --header-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    scrollbar-gutter: stable;
    /* Fixes jump when scrollbar disappears (e.g. video modal) */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-body);
    line-height: 1.6;
    overflow-x: hidden;
    zoom: 0.9;
    /* Adjusted from 0.7 to be less small */
}

/* Custom Text Selection */
::selection {
    background-color: var(--color-primary);
    color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.display-1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.display-2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.display-3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    width: 92%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.25rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    font-family: inherit;
    font-size: 1rem;
    gap: 0.6rem;
    text-decoration: none;
    border: 2px solid transparent;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
}

.btn-primary:hover {
    background-color: #277d52;
    box-shadow: 0 10px 20px -10px rgba(50, 151, 102, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

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

.section-padding {
    padding: 5rem 0;
}

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

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

.text-accent {
    color: var(--color-accent);
}

.bg-light {
    background-color: var(--color-light-gray);
}

/* Animations & Effects */
/* Global Section Reveal - Simple & Clean */
.reveal-up,
.reveal-left,
.reveal-right,
.scale-up,
.reveal-section {
    opacity: 1;
    transform: none;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.js .reveal-up,
.js .reveal-left,
.js .reveal-right,
.js .scale-up,
.js .reveal-section {
    opacity: 0;
    transform: translateY(20px);
}

/* Performance Optimization - GPU Acceleration */
.reveal-up,
.reveal-left,
.reveal-right,
.scale-up,
.reveal-section,
.site-header,
.blog-item,
.interactive-card {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
    /* Force GPU rendering */
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active,
.scale-up.active,
.reveal-section.active {
    opacity: 1;
    transform: translateY(0);
}

.hover-tilt {
    transition: transform 0.2s ease, box-shadow 0.4s ease;
    will-change: transform;
}

.card-premium {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(52, 153, 104, 0.2);
}

/* Stagger delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Form Styles */
input,
textarea,
select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--color-light-gray);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(52, 153, 104, 0.1);
    background-color: var(--color-white);
}

/* Mobile Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(50, 151, 102, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.nav-overlay-content {
    text-align: center;
}

.nav-overlay-content a {
    display: block;
    font-size: 2rem;
    color: white;
    margin: 1.5rem 0;
    font-weight: 700;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.nav-overlay.active .nav-overlay-content a {
    transform: translateY(0);
    opacity: 1;
}

/* Hamburger */
.hamburger {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    display: none;
    /* Desktop default */
}

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }
}

.line {
    width: 100%;
    height: 3px;
    background-color: var(--color-text-heading);
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.4s ease;
}

.hamburger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background-color: var(--color-white);
}

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

.hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: var(--color-white);
}

/* Shared Interactive Components */

.btn-dynamic {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.btn-dynamic svg {
    transition: transform 0.3s ease;
}

.btn-dynamic:hover {
    color: var(--color-primary-dark);
}

.btn-dynamic:hover svg {
    transform: translateX(5px);
}

/* Ensure card highlights its own borders on hover */
.interactive-card {
    background: white !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    border: 2px solid #f1f5f9 !important;
    /* Increased to 2px for better visibility */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.interactive-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--color-primary) !important;
}

/* Static Card - Disables hover effects for non-interactive content */
.static-card {
    cursor: default !important;
}

.static-card:hover {
    transform: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    border-color: #f1f5f9 !important;
}

.card-category {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    display: block;
}


/* Specific adjustment for blog svg icons to also turn primary on hover */
.interactive-card:hover a[style*="color: var(--color-primary)"] svg,
.interactive-card:hover span[style*="color: var(--color-primary)"] svg {
    transform: translateX(4px);
    transition: transform 0.3s ease;
}

/* Nav Link Styles */
.nav-link,
.dropdown-toggle {
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text-body);
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}


.nav-link:hover,
.dropdown-toggle:hover {
    color: var(--color-primary);
}

/* Global Heading Size Tweaks */
h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Main Header Styling */
.site-header {
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-bottom: 1px solid transparent;
    box-shadow: none;
}

.site-header.header-scrolled {
    height: 80px;
    /* Keep height same as base to prevent layout shift */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.5rem 0;
    /* Add slight padding change instead of height shift */
}

/* Navigation Mega Menu */
.nav-item-dropdown {
    position: static;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
}

.nav-item-dropdown:hover .dropdown-toggle {
    background: transparent;
    color: var(--color-primary);
}

.nav-item-dropdown:hover .dropdown-toggle svg {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 680px;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #edf2f7;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.mega-menu::after {
    content: '';
    position: absolute;
    top: -30px;
    /* Increased coverage to bridge the gap */
    left: 0;
    width: 100%;
    height: 30px;
}

.nav-item-dropdown:hover .mega-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0px);
    /* Brings it right up to the header */
}

.mega-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid #f1f5f9;
}

.mega-item:hover {
    background: #ffffff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.mega-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

/* FORCE Icon to stay same on hover */
.mega-item:hover .mega-icon {
    background: #f1f5f9 !important;
    color: var(--color-primary) !important;
}

.mega-content h4 {
    margin-bottom: 0.15rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.mega-content p {
    font-size: 0.8rem;
    opacity: 0.6;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 900px) {
    .mega-menu {
        position: static;
        width: 100%;
        transform: none !important;
        background: transparent;
        box-shadow: none;
        border: none;
        display: none;
        grid-template-columns: 1fr;
        padding: 1rem 0;
    }

    .nav-overlay.active .mega-menu {
        display: grid;
    }

    .mega-item {
        padding: 0.75rem 0;
        color: white;
        background: transparent;
        border: none;
    }

    .mega-item:hover {
        background: transparent;
        transform: none;
        box-shadow: none;
    }

    .mega-content p {
        color: white;
        opacity: 0.7;
    }

    .mega-content h4 {
        color: white;
    }

    .mega-icon {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
}

/* Social Links */
.social-links {
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white !important;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(50, 151, 102, 0.3);
    color: white !important;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* FINAL OVERRIDE: Prevent mega menu icon form turning green */
.mega-item:hover .mega-icon {
    background-color: #f1f5f9 !important;
    color: inherit !important;
    box-shadow: none !important;
}

/* --- MOBILE RESPONSIVE STYLES --- */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger .line {
    width: 30px;
    height: 3px;
    background: var(--color-text-heading);
    transition: 0.3s;
    border-radius: 2px;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--color-primary-dark);
    z-index: 1000;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
}

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

.nav-overlay a {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s;
}

.nav-overlay.active a {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for menu items */
.nav-overlay.active a:nth-child(1) {
    transition-delay: 0.1s;
}

.nav-overlay.active a:nth-child(2) {
    transition-delay: 0.15s;
}

.nav-overlay.active a:nth-child(3) {
    transition-delay: 0.2s;
}

.nav-overlay.active a:nth-child(4) {
    transition-delay: 0.25s;
}

.nav-overlay.active a:nth-child(5) {
    transition-delay: 0.3s;
}

/* Hamburger Animation */
.hamburger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: white;
}

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

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

@media (max-width: 1199px) {
    .desktop-nav {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }

    .display-1 {
        font-size: 2.5rem !important;
    }

    /* Layout Adjustments */
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: repeat(3, 1fr)"],
    div[style*="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Adjust Hero Dashboard for Mobile */
    /* Adjust Hero Dashboard for Mobile - FIXED V2 */
    .dashboard-assembly {
        display: block !important;
        height: auto !important;
        width: 100% !important;
        margin-top: 2rem;
    }

    .db-sidebar {
        display: none !important;
    }

    .db-main {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        padding: 0 !important;
        width: 100% !important;
        overflow: visible !important;
    }

    /* Ensure widgets take full space */
    .db-main>div {
        width: 100% !important;
        max-width: 100% !important;
        grid-area: auto !important;
        min-height: auto !important;
    }

    /* Hide 3rd+ widget to simplify if broken */
    .db-main>div:nth-child(n+3) {
        display: none !important;
    }

    /* MENU FIXES */
    .menu-close {
        position: absolute;
        top: 2rem;
        right: 1.5rem;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1002;
    }

    /* Fix Mega Menu Content in Overlay */
    .nav-overlay .mega-menu {
        display: flex !important;
        flex-direction: column !important;
        position: static !important;
        width: 100% !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        gap: 0.5rem !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: all !important;
    }

    .nav-overlay .mega-item {
        background: rgba(255, 255, 255, 0.05) !important;
        border-radius: 8px !important;
        padding: 0.75rem !important;
        display: flex !important;
        align-items: center !important;
        border: none !important;
    }

    .nav-overlay .mega-content h4 {
        color: white !important;
        font-size: 0.95rem !important;
        margin: 0 !important;
    }

    .nav-overlay .mega-content p {
        display: none !important;
    }

    /* Simplify for mobile */
    .nav-overlay .mega-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
        background: rgba(255, 255, 255, 0.1) !important;
        color: white !important;
    }

    /* Footer */
    footer {
        padding: 3rem 0 !important;
    }
}

/* ===== SMALL PHONES (375px - iPhone SE, older Android) ===== */
@media (max-width: 480px) {
    .container {
        width: 96%;
        padding: 0 1rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    /* Fix hero buttons side by side on small phones */
    #hero-actions {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    /* Hero title smaller on tiny screens */
    #hero-title {
        font-size: 1.8rem !important;
        letter-spacing: -0.5px !important;
    }

    #hero-subtitle {
        font-size: 0.95rem !important;
    }

    /* Blog grid: single column */
    #blog-grid {
        grid-template-columns: 1fr !important;
    }

    /* Ceník cards */
    .pricing-card {
        padding: 2rem 1.5rem !important;
    }

    /* Kontakt form */
    div[style*="display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem"] {
        grid-template-columns: 1fr !important;
    }

    /* Hide floating phone on tiny screens */
    #floating-phone {
        display: none !important;
    }

    /* Mega menu font in overlay */
    .nav-overlay a {
        font-size: 1.25rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }
}

/* ============================================================
   NEW MOBILE NAV (mob-nav) — only active on mobile
   ============================================================ */
.mob-nav {
    display: none !important;
    /* hidden on desktop always */
}

@media (max-width: 1199px) {

    /* ---- mob-nav panel ---- */
    .mob-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: #ffffff;
        z-index: 9999;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mob-nav.is-open {
        transform: translateX(0);
    }

    /* ---- header bar ---- */
    .mob-nav__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid #f1f5f9;
        position: sticky;
        top: 0;
        background: #ffffff;
        z-index: 2;
    }

    .mob-nav__close {
        background: #f1f5f9;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #1e293b;
        flex-shrink: 0;
    }

    .mob-nav__close:hover {
        background: #e2e8f0;
    }

    /* ---- link list ---- */
    .mob-nav__links {
        flex: 1;
        padding: 1rem 0;
        display: flex;
        flex-direction: column;
    }

    .mob-nav__link {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        font-weight: 600;
        color: #1e293b !important;
        text-decoration: none;
        border-bottom: 1px solid #f8fafc;
        transition: background 0.15s, color 0.15s;
    }

    .mob-nav__link:hover,
    .mob-nav__link:active {
        background: #f8fafc;
        color: var(--color-primary) !important;
    }

    .mob-nav__link--sub {
        font-size: 0.975rem;
        font-weight: 500;
        color: #475569 !important;
        padding-left: 2.25rem;
    }

    .mob-nav__link--sub:hover {
        color: var(--color-primary) !important;
    }

    .mob-nav__section-label {
        padding: 1.25rem 1.5rem 0.5rem;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #94a3b8;
    }

    /* ---- footer CTA ---- */
    .mob-nav__footer {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        border-top: 1px solid #f1f5f9;
        background: #fff;
    }

    .mob-nav__btn {
        display: block;
        text-align: center;
        padding: 0.9rem 1.5rem;
        border-radius: 12px;
        font-weight: 700;
        font-size: 1rem;
        text-decoration: none;
        transition: all 0.2s;
    }

    .mob-nav__btn--primary {
        background: var(--color-primary);
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(50, 151, 102, 0.25);
    }

    .mob-nav__btn--primary:hover {
        background: #236947;
    }

    .mob-nav__btn--ghost {
        background: #f1f5f9;
        color: #1e293b !important;
    }

    .mob-nav__btn--ghost:hover {
        background: #e2e8f0;
    }

    /* ---- hamburger button (in the site-header) ---- */
    .hamburger {
        display: flex;
    }
}

/* ============================================================
   MOBILE HERO — COMPLETE OVERRIDE
   ============================================================ */
@media (max-width: 1199px) {

    /* 1. Fix scroll blocked by overflow:hidden on hero */
    #hero {
        overflow: visible !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* 2. Single column, centered */
    #hero .container {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }

    #hero-left {
        text-align: center !important;
    }

    /* 3. Fix hero title — was being clipped right */
    #hero-title {
        font-size: 2rem !important;
        letter-spacing: -0.5px !important;
        opacity: 1 !important;
        transform: none !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow: visible !important;
    }

    #hero-subtitle {
        font-size: 0.975rem !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-badge {
        opacity: 1 !important;
        transform: none !important;
    }

    /* 4. Claims — flex rows, centered */
    .hero-usp-list {
        opacity: 1 !important;
        transform: none !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 0 1.5rem !important;
        gap: 0.5rem 1.25rem !important;
    }

    .hero-usp-list li {
        width: auto !important;
    }

    /* 5. Buttons — stack vertically */
    #hero-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }

    #hero-actions a.btn {
        width: 100% !important;
        max-width: 320px !important;
        justify-content: center !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* 6. Hide complex animated desktop dashboard */
    #hero-right {
        display: none !important;
    }

    /* 7. Mobile dashboard area — shown via #mob-hero-visual injected below buttons */
    #mob-hero-visual {
        display: block !important;
        position: relative;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        border-radius: 0;
        overflow: visible;
        background: transparent !important;
        box-shadow: none !important;
    }

    #mob-hero-visual img {
        width: 100%;
        height: auto;
        display: block;
    }

    #mob-play-btn {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 64px;
        height: 64px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        cursor: pointer;
        transition: transform 0.2s;
        border: none;
    }

    #mob-play-btn:hover {
        transform: translate(-50%, -50%) scale(1.08);
    }

    #mob-play-btn svg {
        color: var(--color-primary);
    }

    #mob-play-pulse {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: rgba(50, 151, 102, 0.2);
        animation: pulse 2s infinite;
        pointer-events: none;
    }
}

/* Hide mobile hero visual on desktop */
#mob-hero-visual {
    display: none;
}


/* ============================================================
   REFERENCE LOGOS — more visible on mobile
   ============================================================ */
@media (max-width: 1199px) {
    .client-logos {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem 2rem !important;
    }

    .client-logos img {
        filter: grayscale(0%) !important;
        opacity: 0.75 !important;
        max-height: 28px !important;
        width: auto !important;
        margin: 0 auto;
    }
}

/* ============================================================
   HAMBURGER — FINAL FIX (must beat all previous rules)
   ============================================================ */
.hamburger {
    display: none !important;
    /* hidden on desktop */
}

@media (max-width: 1199px) {
    .hamburger {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        padding: 10px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        z-index: 9998 !important;
        background: transparent !important;
    }

    .hamburger .line {
        display: block !important;
        width: 24px !important;
        height: 2px !important;
        background: #1e293b !important;
        border-radius: 2px !important;
        transition: 0.3s !important;
    }
}

/* ============================================================
   HERO CLAIMS — side by side on desktop & mobile
   ============================================================ */
.hero-usp-list {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.5rem 1.5rem !important;
    justify-content: flex-start !important;
}

@media (max-width: 1199px) {
    .hero-usp-list {
        justify-content: center !important;
        gap: 0.4rem 1.25rem !important;
    }
}

/* ============================================================
   HERO BUTTONS — stacked vertically, same width
   ============================================================ */
@media (max-width: 1199px) {
    #hero-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }

    #hero-actions a.btn {
        width: 100% !important;
        max-width: 320px !important;
        text-align: center !important;
        padding: 0.85rem 1rem !important;
        font-size: 0.95rem !important;
        opacity: 1 !important;
        transform: none !important;
    }
}