:root {
    --color-primary: hsl(216, 16%, 94%);
    --color-secondary: #886427;
    --color-text: #2c3e50;
    --color-text-light: #5d6d7e;
    --color-bg: #ffffff;
    --color-dark: #071c38;
    --transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    --container-width: 100%;
    --header-height: 100px;

    /* New Navbar Colors */
    --blue: #0a2850;
    --blue-mid: #0f3b75;
    --teal: #be9646;
    --green: #8c6d30;
    --purple: #0a2850;
    --orange: #be9646;
    --slate: #4a5568;
    --white: #ffffff;
    --off-white: #f4f6ff;
    --border: rgba(10, 40, 80, 0.10);
    --brand-grad: linear-gradient(90deg, #0a2850 0%, #be9646 100%);
    --sub-grad: linear-gradient(90deg, #0a2850 0%, #be9646 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;

}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Top Bar */
.top-bar {
    background-color: var(--color-dark);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 20px;
}

.top-info span i {
    color: var(--color-primary);
    margin-right: 5px;
}

.top-socials {
    display: flex;
    gap: 15px;
}

/* New Navbar Styles */
nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 2px 24px rgba(26, 58, 143, 0.08);
    font-family: 'DM Sans', sans-serif;
}

nav::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--brand-grad);
}

.nav-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 3rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.logo-divider {
    width: 2px;
    height: 30px;
    background: var(--brand-grad);
    border-radius: 2px;
    flex-shrink: 0;
    opacity: 0.5;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.firm-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    white-space: nowrap;
}

.firm-sub {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-top: 4px;
    font-family: 'DM Sans', sans-serif;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2px;
    margin-left: auto;
}

.nav-links li {
    position: relative;
}

.nav-links>li>a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--slate);
    text-decoration: none;
    border-radius: 8px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-links>li>a:hover {
    color: var(--blue);
    background: var(--off-white);
}

.nav-links li.active>a {
    color: var(--blue);
    font-weight: 600;
}

.nav-links li.active>a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--brand-grad);
    border-radius: 2px 2px 0 0;
}

/* CHEVRON */
.chevron {
    width: 13px;
    height: 13px;
    opacity: 0.5;
    transition: transform 0.25s;
}

.has-dropdown:hover>a .chevron,
.has-dropdown.active>a .chevron {
    transform: rotate(180deg);
}

/* DROPDOWN */
.dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    min-width: 230px;
    box-shadow: 0 20px 50px rgba(26, 58, 143, 0.13);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
    list-style: none;
    z-index: 1001;
}

.has-dropdown:hover .dropdown,
.has-dropdown.active .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--slate);
    border-radius: 8px;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.01em;
    transition: color 0.2s, background 0.2s;
}

.dropdown li a:hover {
    color: var(--blue);
    background: var(--off-white);
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dropdown li:nth-child(8n+1) .dot {
    background: var(--blue);
}

.dropdown li:nth-child(8n+2) .dot {
    background: var(--blue-mid);
}

.dropdown li:nth-child(8n+3) .dot {
    background: var(--teal);
}

.dropdown li:nth-child(8n+4) .dot {
    background: var(--green);
}

.dropdown li:nth-child(8n+5) .dot {
    background: var(--purple);
}

.dropdown li:nth-child(8n+6) .dot {
    background: var(--orange);
}

.dropdown li:nth-child(8n+7) .dot {
    background: var(--blue);
}

.dropdown li:nth-child(8n+8) .dot {
    background: var(--teal);
}

/* CTA */
.nav-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    padding: 10px 22px !important;
    border-radius: 8px;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    text-decoration: none;
    margin-left: 10px;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: var(--brand-grad) !important;
    box-shadow: 0 3px 14px rgba(26, 58, 143, 0.22);
    transition: box-shadow 0.2s, transform 0.15s, filter 0.2s !important;
}

.nav-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(26, 58, 143, 0.28) !important;
    filter: brightness(1.08);
    background: var(--brand-grad) !important;
}

.nav-cta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s;
    z-index: 1100;
}

.hamburger:hover {
    background: var(--off-white);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--blue);
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--dark);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--dark);
}

/* Global Button Styles */
.btn-primary {
    background: var(--brand-grad);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 4px 15px rgba(26, 58, 143, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 58, 143, 0.4);
    filter: brightness(1.1);
    color: white;
}

/* Hero Section */
.hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;

}

p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    p {
        font-size: 0.8rem;
        width: 90%;
    }
}

/* About Section with Parallax Background */
.about {
    position: relative;
    color: white;
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--color-primary);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--color-primary);
}

/* Featured Services Grid */
.featured-services {
    background-color: #f8f9fa;
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}


.service-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-primary);
    font-weight: 800;
}

.service-card p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.service-image {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: auto;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }


}

/* Service Hub Section */
.service-hub {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background-color: #fcfcfc;
}


.hub-container {
    display: flex;
    min-height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.hub-tabs {
    flex: 0 0 350px;
    background: var(--color-dark);
    padding: 40px 0;
    z-index: 2;
}

.hub-tab {
    padding: 20px 40px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    font-size: 1.2rem;
}

.hub-tab i {
    font-size: 1.2rem;
    width: 25px;
}

.hub-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.hub-tab.active {
    background: rgba(240, 90, 40, 0.1);
    color: var(--color-primary);
    border-left: 4px solid var(--color-primary);
}

.hub-content-wrapper {
    flex: 1;
    position: relative;
    color: white;
}

.hub-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.hub-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease, transform 1.2s ease;
    opacity: 0;
    transform: scale(1.1);
}

.hub-bg-image.active {
    opacity: 1;
    transform: scale(1);
}

.hub-content-area {
    position: relative;
    z-index: 2;
    padding: 60px;
    height: 100%;
    display: none;
    animation: fadeInUp 0.6s ease forwards;
}

.hub-content-area.active {
    display: block;
}

.hub-content-area h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--color-primary);
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    width: 100%;
}

/* Dynamic Grids using :has() for specific item counts */
@media (min-width: 993px) {

    .service-list:has(> .service-item:last-child:nth-child(2)),
    .service-list:has(> .service-item:last-child:nth-child(4)) {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-list:has(> .service-item:last-child:nth-child(6)),
    .service-list:has(> .service-item:last-child:nth-child(9)) {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-list:has(> .service-item:last-child:nth-child(8)) {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 992px) {

    .service-list:has(> .service-item:last-child:nth-child(4)),
    .service-list:has(> .service-item:last-child:nth-child(6)),
    .service-list:has(> .service-item:last-child:nth-child(8)),
    .service-list:has(> .service-item:last-child:nth-child(9)) {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    font-size: 1.2rem;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.service-item i {
    color: var(--color-secondary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .hub-container {
        flex-direction: column;
    }

    .hub-tabs {
        flex: 0 0 auto;
        display: flex;
        overflow-x: auto;
        padding: 10px 0;
    }

    .hub-tab {
        padding: 15px 25px;
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .hub-tab.active {
        border-bottom: 3px solid var(--color-primary);
        border-left: none;
    }

    .hub-content-area {
        padding: 30px;
    }

    .hub-content-area h2 {
        font-size: 1.8rem;
    }
}

/* Footer */
.footer {
    background-color: #104f87;
    color: rgb(240, 236, 253);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-links {
    margin-left: 100px;
}

.footer-links li {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
    text-align: left;
}

.footer .blue-text,
.footer .green-text,
.footer .firm-sub {
    color: white !important;
    margin-top: 0;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.footer-contact i {
    color: var(--color-primary);
}

.footer-bottom {
    position: relative;
    /* 🔥 important */
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    color: #828282;
    z-index: 10000;
}

.footer-bottom p {
    font-weight: bold;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1.2rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 40px;
        gap: 5px;
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.15);
        transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1060;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links>li>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        font-size: 1.05rem;
        width: 100%;
        color: var(--color-dark);
        white-space: normal;
        background: none;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        width: 100%;
        box-shadow: none;
        padding: 0 0 0 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        border-top: none;
        transform: none;
        background-color: transparent;
        border-radius: 0;
        border: none;
        margin-left: 100px;
    }

    .has-dropdown.active .dropdown {
        max-height: 500px;
        margin-bottom: 10px;
        overflow-y: auto;
    }

    .chevron {
        transition: transform 0.3s ease;
    }

    .has-dropdown.active>a .chevron {
        transform: rotate(180deg);
    }

    .top-bar {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .hero {
        height: 70vh;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .hub-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
        gap: 10px;
    }

    .hub-tab {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .hub-content-area {
        padding: 30px 20px;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    .footer-links {
        margin-left: 0px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.4rem;
        letter-spacing: 0;
    }

    .hero-content {
        padding: 0 15px;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1040;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}