:root {
    --navy: #0B1120;
    --navy-medium: #1a2332;
    --navy-light: #2d3748;
    --accent: #0EA5E9;
    --accent-glow: #38bdf8;
    --gray: #64748B;
    --gray-light: #cbd5e1;
    --gray-lighter: #f1f5f9;
    --white: #FFFFFF;
    --success: #22C55E;
    --warning: #F59E0B;
    --text-muted: #64748B;
    --nav-breakpoint: 1024px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background: var(--white);
    color: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 24px rgba(11, 17, 32, 0.08);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1001;
}

.logo-accent {
    color: var(--accent);
}

/* Mobile menu toggle - hidden by default */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Desktop navigation - default */
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    display: block;
    padding: 0.5rem 0;
}

.nav-links > li > a:hover {
    color: var(--accent);
}

/* Desktop Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(11, 17, 32, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    border: 1px solid var(--gray-lighter);
    pointer-events: none;
    list-style: none;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    padding: 0.75rem 1.5rem;
    display: block;
    color: var(--navy);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.cta-button {
    background: var(--accent);
    color: white !important;
    padding: 0.7rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--accent-glow);
    transform: translateY(-2px);
}

/* Desktop-only hover effects (above mobile breakpoint) */
@media (min-width: 1025px) {
    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .dropdown-menu a:hover {
        background: var(--gray-lighter);
        color: var(--accent);
        padding-left: 2rem;
    }

    /* Hover bridge to prevent dropdown from closing when moving mouse */
    .dropdown::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 12px;
    }
}

/* Mobile Navigation (1024px and below) */
@media (max-width: 1024px) {
    nav {
        padding: 1.2rem 1.5rem;
    }

    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Slide-in panel */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 350px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 0;
        box-shadow: -4px 0 24px rgba(11, 17, 32, 0.15);
        transition: right 0.4s ease;
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links > li {
        width: 100%;
        border-bottom: 1px solid var(--gray-lighter);
    }

    .nav-links > li > a {
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    /* Mobile dropdowns - collapsed by default */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: var(--gray-lighter);
        pointer-events: auto;
    }

    .dropdown.open .dropdown-menu {
        max-height: 500px;
    }

    /* Dropdown arrow indicator */
    .dropdown > a::after {
        content: "▼";
        font-size: 0.7rem;
        margin-left: 0.5rem;
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .dropdown.open > a::after {
        transform: rotate(180deg);
    }

    .dropdown-menu a {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .dropdown-menu a:hover {
        background: rgba(14, 165, 233, 0.1);
        padding-left: 1.5rem;
    }

    .cta-button {
        margin-top: 1rem;
        display: block;
        text-align: center;
    }
}

/* Hero */
.hero {
    margin-top: 80px;
    padding: 8rem 4rem 6rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-medium) 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 4.2rem;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-highlight {
    color: var(--accent-glow);
    font-style: italic;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-btn {
    background: var(--accent);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
    display: inline-block;
}

.primary-btn:hover {
    background: var(--accent-glow);
    transform: translateY(-3px);
}

.secondary-btn {
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

/* Page Hero (for pricing and other pages) */
.page-hero {
    margin-top: 80px;
    padding: 5rem 4rem 3rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-medium) 100%);
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--gray-light);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Services Section */
.services {
    padding: 6rem 4rem;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 3rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--gray-lighter);
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(11, 17, 32, 0.12);
    border-color: var(--accent);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 1rem;
}

/* Footer */
footer {
    background: var(--navy);
    color: var(--white);
    padding: 3rem 4rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .hero {
        margin-top: 70px;
        padding: 4rem 1.5rem 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        text-align: center;
    }

    .page-hero {
        margin-top: 70px;
        padding: 3rem 1.5rem 2rem;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .page-hero p {
        font-size: 1.05rem;
    }

    .services {
        padding: 3rem 1.5rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem;
    }

    footer {
        padding: 2rem 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }
}