﻿:root {
    --bg: #f4f7fb;
    --bg2: #eef3f9;
    --text: #0f172a;
    --muted: #475569;
    --card: rgba(255,255,255,.78);
    --card2: rgba(255,255,255,.62);
    --line: rgba(15,23,42,.12);
    --brand: #2563eb;
    --shadow: 0 14px 45px rgba(15,23,42,.12);
    --radius: 18px;
    --max: 1120px;
    --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* Reset */
* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    background: radial-gradient(1200px 800px at 20% 10%, rgba(74,163,255,.18), transparent 60%), radial-gradient(900px 700px at 90% 20%, rgba(52,211,153,.12), transparent 55%), var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

/* Layout */
.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 18px
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248,250,252,.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

/* Brand / Logo */
.brand {
    display: flex;
    align-items: center
}

.brand-logo {
    height: 72px;
    width: auto;
    display: block;
}

/* Desktop menu */
.menu {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

    .menu a {
        padding: 10px 12px;
        border-radius: 12px;
        color: var(--muted);
        border: 1px solid transparent;
    }

        .menu a:hover {
            background: rgba(15,23,42,.05);
            border-color: rgba(15,23,42,.06);
            color: var(--text);
        }

        .menu a.active {
            background: rgba(37,99,235,.10);
            border-color: rgba(37,99,235,.18);
            color: var(--text);
        }

/* Right side */
.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.55);
    color: var(--text);
}

    .btn:hover {
        transform: translateY(-1px);
        transition: .15s ease;
        box-shadow: var(--shadow);
    }

    .btn.primary {
        background: linear-gradient(135deg, rgba(37,99,235,.92), rgba(16,185,129,.82));
        border: 0;
        color: #071018;
        font-weight: 700;
    }

/* ===== Mobile overlay menu system ===== */
.menu-toggle {
    display: none; /* desktop hidden */
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.65);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

/* Backdrop */
.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.40);
    z-index: 9998;
}

/* Overlay menu (top dropdown card) */
.mobile-menu {
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 9999;
    border-radius: 18px;
    border: 1px solid rgba(15,23,42,.12);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 22px 60px rgba(15,23,42,.22);
    overflow: hidden;
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    border-bottom: 1px solid rgba(15,23,42,.10);
}

.mobile-menu-title {
    font-weight: 800;
    color: var(--text);
}

.menu-close {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.12);
    background: rgba(255,255,255,.75);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.mobile-menu a {
    display: block;
    padding: 14px 14px;
    color: var(--text);
}

    .mobile-menu a:hover {
        background: rgba(15,23,42,.05)
    }

    .mobile-menu a.active {
        background: rgba(37,99,235,.10);
        font-weight: 700
    }

/* ===== Content blocks (kept from your theme) ===== */
.hero {
    padding: 46px 0 14px
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 22px;
    align-items: stretch;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.08;
    margin: 0 0 10px
}

.hero p {
    color: var(--muted);
    margin: 0 0 18px;
    font-size: 16.5px;
    line-height: 1.6
}

.kpis {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px
}

.kpi {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.55);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13.5px;
}

.hero-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

    .hero-card h3 {
        margin: 0 0 10px
    }

    .hero-card .small {
        color: var(--muted);
        font-size: 14px;
        line-height: 1.55;
        margin: 0
    }

.section {
    padding: 18px 0 44px
}

    .section h2 {
        margin: 0 0 12px;
        font-size: 24px
    }

    .section .lead {
        color: var(--muted);
        line-height: 1.65;
        margin: 0 0 18px
    }

.cards {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
}

.card {
    padding: 16px;
    border-radius: var(--radius);
    background: var(--card2);
    border: 1px solid var(--line);
    box-shadow: 0 12px 35px rgba(15,23,42,.10);
    min-height: 120px;
}

    .card .icon {
        width: 38px;
        height: 38px;
        border-radius: 14px;
        background: rgba(37,99,235,.12);
        border: 1px solid rgba(37,99,235,.18);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
    }

    .card h3 {
        margin: 0 0 6px;
        font-size: 16px
    }

    .card p {
        margin: 0;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.5
    }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 12px 35px rgba(15,23,42,.08);
}

    .panel p {
        color: var(--muted);
        line-height: 1.65;
        margin: 0
    }

.contact-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(37,99,235,.18);
    background: rgba(37,99,235,.08);
}

    .contact-cta .text p {
        margin: 0;
        color: var(--muted)
    }

    .contact-cta .text h3 {
        margin: 0 0 6px
    }

.form {
    display: grid;
    gap: 12px;
    margin-top: 8px
}

.field {
    display: grid;
    gap: 6px
}

label {
    font-size: 13px;
    color: var(--muted)
}

input, textarea {
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.72);
    color: var(--text);
    outline: none;
}

textarea {
    min-height: 130px;
    resize: vertical
}

/* Footer */
.footer {
    border-top: 1px solid var(--line);
    padding: 22px 0 30px;
    color: var(--muted);
    font-size: 13px;
}

    .footer .row {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        flex-wrap: wrap;
    }

    .footer a {
        color: var(--muted)
    }

        .footer a:hover {
            color: var(--text)
        }

/* Cookie (optional) */
.cookie {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    display: none;
    box-shadow: var(--shadow);
}

    .cookie.show {
        display: block
    }

    .cookie .row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap
    }

    .cookie p {
        margin: 0;
        color: var(--muted);
        font-size: 13.5px;
        line-height: 1.45
    }

    .cookie .actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap
    }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    /* Hide desktop menu & show hamburger */
    .desktop-menu {
        display: none !important;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Logo smaller on mobile */
    .brand-logo {
        height: 56px;
    }

    /* Avoid wrapping issues */
    .btn {
        white-space: nowrap
    }
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr
    }

    .cards {
        grid-template-columns: repeat(2,1fr)
    }

    .split {
        grid-template-columns: 1fr
    }

    .hero h1 {
        font-size: 34px
    }
}

@media (max-width: 520px) {
    .cards {
        grid-template-columns: 1fr
    }

    .brand-logo {
        height: 48px;
    }
}
