﻿:root {
    --primary: #182140;
    --primary-2: #101a36;
    --accent: #D6BF9E;
    --accent-soft: rgba(214,191,158,.16);
    --light: #F4F5F0;
    --white: #ffffff;
    --text: #182140;
    --muted: #5f6780;
    --border: rgba(24,33,64,.12);
    --shadow-sm: 0 10px 30px rgba(11,20,44,.08);
    --shadow-md: 0 18px 45px rgba(11,20,44,.12);
    --shadow-lg: 0 30px 70px rgba(11,20,44,.16);
    --radius-lg: 24px;
    --radius-xl: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--light);
    color: var(--text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

main {
    display: block;
}

.container {
    width: min(92%,1400px);
    margin: auto;
}

/* HEADER */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: .35s ease;
    background: rgba(255,255,255,.68);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.18);
}

    header.scrolled {
        background: rgba(255,255,255,.88);
        box-shadow: 0 16px 40px rgba(0,0,0,.06);
        border-bottom: 1px solid var(--border);
    }

.nav {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    min-width: 140px;
}

    .logo img {
        height: 50px;
        object-fit: contain;
    }

nav {
    margin-left: auto;
}

    nav ul {
        list-style: none;
        display: flex;
        gap: 30px;
        align-items: center;
    }

        nav ul li {
            position: relative;
        }

            nav ul li > a {
                font-weight: 500;
                font-size: 15px;
                color: var(--primary);
                position: relative;
                transition: .25s ease;
                display: inline-flex;
                align-items: center;
                gap: 8px;
            }

                nav ul li > a::after {
                    content: "";
                    position: absolute;
                    left: 0;
                    bottom: -8px;
                    width: 0;
                    height: 2px;
                    border-radius: 99px;
                    background: var(--accent);
                    transition: .3s ease;
                }

                nav ul li > a:hover {
                    color: var(--primary-2);
                }

            nav ul li:hover > a::after {
                width: 100%;
            }

.has-dropdown > a .caret {
    font-size: 12px;
    transition: transform .25s ease;
}

.has-dropdown:hover > a .caret {
    transform: rotate(180deg);
}

/* DROPDOWN */

.dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    min-width: 420px;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(24,33,64,.08);
    border-radius: 24px;
    padding: 14px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: .28s ease;
    display: grid;
    gap: 8px;
    z-index: 1001;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-group {
    padding: 8px 10px 10px;
    border-radius: 18px;
    transition: .25s ease;
}

    .dropdown-group:hover {
        background: rgba(24,33,64,.035);
    }

.dropdown-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

    .dropdown-group-title .icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(180deg, rgba(214,191,158,.24), rgba(214,191,158,.12));
        font-size: 16px;
    }

.dropdown-links {
    list-style: none;
    display: grid;
    gap: 2px;
    padding-left: 44px;
}

    .dropdown-links li a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
        font-size: 13px;
        color: var(--primary);
        transition: .25s ease;
    }

        .dropdown-links li a::before {
            content: "";
            width: 6px;
            height: 6px;
            min-width: 6px;
            border-radius: 50%;
            background: var(--accent);
            box-shadow: 0 0 0 5px rgba(214,191,158,.12);
        }

        .dropdown-links li a:hover {
            color: var(--primary-2);
            transform: translateX(4px);
        }

/* CTA */

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    transition: .3s ease;
    white-space: nowrap;
}

    .nav-cta:hover {
        transform: translateY(-2px);
        background: var(--primary-2);
    }

/* HAMBURGER */

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,.8);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

    .hamburger span {
        display: block;
        width: 18px;
        height: 2px;
        background: var(--primary);
        border-radius: 99px;
    }

/* FOOTER */

footer {
    background: radial-gradient(circle at top left, rgba(214,191,158,.07), transparent 22%), linear-gradient(180deg,#121726 0%,#0b0f18 100%);
    color: rgba(255,255,255,.72);
    padding: 70px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr .8fr .8fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand h3 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 12px;
}

.footer-brand p {
    max-width: 520px;
    line-height: 1.85;
    font-size: 14px;
    color: rgba(255,255,255,.68);
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
}

.footer-col a,
.footer-col p {
    display: block;
    color: rgba(255,255,255,.68);
    font-size: 14px;
    line-height: 1.9;
    transition: .25s ease;
}

    .footer-col a:hover {
        color: var(--accent);
    }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    font-size: 13px;
    color: rgba(255,255,255,.52);
}

/* RESPONSIVE */

@media (max-width:900px) {
    .nav {
        height: 74px;
    }

    .hamburger {
        display: inline-flex;
    }

    nav {
        position: absolute;
        top: 84px;
        left: 4%;
        right: 4%;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: .25s ease;
        margin-left: 0;
    }

        nav.open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        nav ul {
            background: rgba(255,255,255,.96);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid rgba(24,33,64,.08);
            border-radius: 24px;
            box-shadow: var(--shadow-md);
            flex-direction: column;
            align-items: stretch;
            padding: 12px;
            gap: 4px;
        }

            nav ul li > a {
                display: flex;
                justify-content: space-between;
                padding: 14px 16px;
                border-radius: 14px;
            }

                nav ul li > a::after {
                    display: none;
                }

                nav ul li > a:hover {
                    background: rgba(24,33,64,.05);
                }

    .has-dropdown:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) translateY(12px);
    }

    .dropdown-menu {
        position: static;
        transform: none;
        min-width: auto;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
        border-radius: 18px;
        border: 1px solid rgba(24,33,64,.06);
        background: rgba(24,33,64,.03);
        display: none;
        opacity: 1;
        visibility: visible;
        padding: 10px;
    }

    .has-dropdown.open .dropdown-menu {
        display: grid;
    }

    .dropdown-group {
        padding: 8px;
    }

    .dropdown-links {
        padding-left: 0;
    }

    .nav-cta {
        display: none;
    }
}

@media (max-width:700px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: start;
    }
}
