:root {
    --primary: #23408e;
    --primary-2: #385399;
    --accent: #ed1b24;
    --border: #cccccc;
    --white: #ffffff;
    --dark: #0f1c49;
    --text: #1a274b;
    --text-soft: #667085;
    --bg-light: #f7f9ff;
    --shadow-sm: 0 10px 30px rgba(35, 64, 142, 0.08);
    --shadow-md: 0 18px 40px rgba(35, 64, 142, 0.12);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-full: 999px;
    --container: 1200px;
    --transition: 0.3s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    z-index: 9999;
    background: var(--primary);
    color: var(--white);
    padding: 12px 18px;
    border-radius: var(--radius-full);
}

.skip-link:focus {
    left: 12px;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.topbar {
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    color: var(--white);
    font-size: 0.88rem;
}

.topbar-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar a:hover {
    opacity: 0.85;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(204, 204, 204, 0.45);
}

.header-shell {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    height: 56px;
    width: auto;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.site-nav > a:not(.nav-cta),
.nav-dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: color var(--transition);
}

.site-nav > a:not(.nav-cta)::after,
.nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.site-nav > a:not(.nav-cta):hover,
.site-nav > a:not(.nav-cta).active,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.active .nav-dropdown-toggle {
    color: var(--accent);
}

.site-nav > a:not(.nav-cta):hover::after,
.site-nav > a:not(.nav-cta).active::after,
.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown.active .nav-dropdown-toggle::after {
    width: 100%;
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-toggle {
    appearance: none;
}

.dropdown-arrow {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    margin-left: 2px;
    transition: transform 0.25s ease;
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(45deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 230px;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(35, 64, 142, 0.08);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
}

.nav-dropdown-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: rgba(237, 27, 36, 0.08);
    color: var(--accent);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent), #ff4f67);
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    position: relative;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(35, 64, 142, 0.14);
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1003;
}

.nav-toggle span {
    position: absolute;
    left: 14px;
    width: 24px;
    height: 2.5px;
    background: #23408e;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.nav-toggle span:nth-child(1) {
    top: 17px;
}

.nav-toggle span:nth-child(2) {
    top: 24px;
}

.nav-toggle span:nth-child(3) {
    top: 31px;
}

.nav-toggle.is-active span:nth-child(1) {
    top: 24px;
    transform: rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    top: 24px;
    transform: rotate(-45deg);
}

.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.82);
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 28px;
    padding: 60px 0 36px;
}

.footer-brand {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--white);
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
}

.footer-col h3 {
    margin: 0 0 18px;
    font-size: 1.05rem;
    color: var(--white);
}

.footer-col ul li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.78);
}

.footer-col a:hover {
    color: var(--white);
    opacity: 0.9;
}

.footer-brand-col p {
    max-width: 360px;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
}

.footer-contact li {
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-shell {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-bottom-shell p {
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.92rem;
}

.footer-bottom-shell a {
    color: var(--white);
    font-weight: 600;
}

.footer-bottom-shell a:hover {
    opacity: 0.85;
}

@media (max-width: 992px) {
    .topbar-inner {
        flex-direction: column;
        justify-content: center;
        padding: 8px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 18px;
        border-radius: 20px;
        background: #ffffff;
        border: 1px solid rgba(35, 64, 142, 0.08);
        box-shadow: var(--shadow-md);
        z-index: 1002;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav > a:not(.nav-cta),
    .nav-dropdown,
    .nav-dropdown-toggle {
        width: 100%;
    }

    .site-nav > a:not(.nav-cta),
    .nav-dropdown-toggle {
        justify-content: space-between;
        padding: 14px 4px;
    }

    .site-nav > a:not(.nav-cta)::after,
    .nav-dropdown-toggle::after {
        display: none;
    }

    .nav-dropdown {
        display: block;
    }

    .nav-dropdown-menu {
        position: static;
        min-width: 100%;
        margin-top: 6px;
        padding: 8px;
        border-radius: 14px;
        background: rgba(35, 64, 142, 0.04);
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }

    .nav-cta {
        margin-top: 12px;
        width: 100%;
        min-height: 50px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .topbar {
        display: none;
    }

    .header-shell {
        min-height: 74px;
    }

    .brand-logo {
        height: 46px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        padding: 48px 0 28px;
    }

    .footer-bottom-shell {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 16px 0;
    }
}