:root {
    /* Brand Colors */
    --color-primary: #2e2a29;    /* Dark brown/charcoal */
    --color-secondary: #c1b4a3;  /* Warm beige/taupe */
    
    /* Extended Color Palette */
    --color-dark: #1a1817;       /* Darker shade for backgrounds */
    --color-light: #e8e2d9;      /* Lighter shade for accents */
    --color-accent: #8b7d6b;     /* Medium brown for borders */
    --color-text: #2e2a29;       /* Primary text color */
    --color-text-light: #5a544e; /* Secondary text color */
    --color-text-inverse: #ffffff; /* Text on dark backgrounds */
    
    /* Semantic Colors */
    --color-background: #ffffff;
    --color-surface: #f8f6f3;
    --color-border: #e8e2d9;
    --color-overlay: rgba(46, 42, 41, 0.6);
    
    /* Typography */
    --font-family: 'Inter', 'Arial', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 3rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(46, 42, 41, 0.1);
    --shadow-md: 0 4px 8px rgba(46, 42, 41, 0.15);
    --shadow-lg: 0 8px 16px rgba(46, 42, 41, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-modal: 1030;
    --z-popover: 1040;
    --z-tooltip: 1050;
}

/* GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - TRANSPARENT OVERLAY */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: none;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 1.5rem 0;
}

/* Header becomes hidden when scrolling down */
.header.header--hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* Header becomes visible when scrolling up */
.header.header--visible {
    transform: translateY(0);
    opacity: 1;
    background: var(--color-text-light);
}

/* Optional: Add a subtle background when at the top */
.header.header--at-top {
    background: transparent;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo on RIGHT */
.header__logo {
    order: 2;
}

/* Logo Image Styles */
.logo-image {
    height: 40px; /* Adjust based on your logo dimensions */
    width: auto;
    transition: all 0.3s ease;
}

/* For transparent header (hero section) */
.header--at-top .logo-image {
    filter: brightness(0) invert(1); /* Makes logo white */
}

/* For header with background (when scrolled) */
.header--visible .logo-image {
    filter: none; /* Original logo colors */
}

/* Mobile menu open state */
.header--menu-open .logo-image {
    filter: none; /* Original logo colors */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-image {
        height: 35px; /* Slightly smaller on mobile */
    }
}

/* Navigation on LEFT */
.header__nav {
    order: 1;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.nav__link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(12, 12, 12, 0.5);
}

.nav__link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

/* Who We Are Sidebar/Dropdown */
.nav__item--has-children {
    position: relative;
}

.nav__sidebar {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 250px;
    height: 430px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav__item--has-children:hover .nav__sidebar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__sidebar-list li {
    margin: 0;
}

.nav__sidebar-list a {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.nav__sidebar-list a:hover {
    background: var(--color-secondary);
    border-left-color: var(--color-primary);
    color: var(--color-dark);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.toggle-bar {
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Mobile Menu Toggle Animation */
.mobile-menu-toggle--active .toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle--active .toggle-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle--active .toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Open State */
.nav__list.nav__list--mobile-open {
    display: flex !important;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent body scroll when menu is open */
body.no-scroll {
    overflow: hidden;
}
/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* Banner */
.banner {
    background: #2c5aa0;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.banner__title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.banner__subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Cards */
.card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    margin: 1rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #2c5aa0;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin: 0.5rem;
}

.btn--secondary {
    background: transparent;
    border: 2px solid #2c5aa0;
    color: #2c5aa0;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.sidebar-nav {
    position: sticky;
    top: 100px;
}

.sidebar-nav__link {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #333;
    border-left: 3px solid transparent;
}

.sidebar-nav__item--active .sidebar-nav__link {
    border-left-color: #2c5aa0;
    background: #f5f5f5;
}

/* Grid Layouts */
.features-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    text-align: center;
    background: #f5f5f5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3;
        z-index: 1002;
    }
    
    .nav__list {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 0;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        margin: 0;
        display: flex !important;
    }
    
    .nav__list.nav__list--mobile-open {
        left: 0;
    }

    .nav__item {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav__item:last-child {
        border-bottom: none;
    }
    
    .nav__link {
        color: var(--color-light);
        padding: 2.7rem 1rem;
        text-shadow: none;
        font-size: 2rem;
        font-weight: 500;
        display: block;
        width: 100%;
        transition: all 0.3s ease;
    }

    .nav__link:hover {
        background: var(--color-light);
        color: var(--color-primary);
    }
    
    .nav__link::after {
        display: none;
    }
    
    /* Mobile Menu Overlay */
    .nav__list::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.4s ease;
    }
    
    .nav__list.nav__list--mobile-open::before {
        opacity: 1;
    }
    
    /* Header background when menu is open */
    .nav__list--mobile-open ~ .header__logo .logo-text {
        color: #333;
        text-shadow: none;
    }
    
    .banner__title {
        font-size: 2rem;
    }
}

/* Dropdown Arrow for Desktop - Hidden by default */
.dropdown-arrow {
    display: none;
}

/* Mobile Dropdown Styles */
@media (max-width: 768px) {
    /* Show dropdown arrow only on mobile for parent items */
    .nav__item--has-children .nav__link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dropdown-arrow {
        display: inline-block;
        transition: transform 0.3s ease;
        font-size: 1.5rem;
        margin-left: 1rem;
    }
    
    /* Rotate arrow when submenu is open */
    .nav__item--has-children.nav__item--mobile-open .dropdown-arrow {
        transform: rotate(90deg);
    }
    
    /* Who We Are Sidebar in Mobile - Hidden by default */
    .nav__sidebar {
        position: static;
        box-shadow: none;
        margin: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-radius: 0;
        border: none;
        padding: 0;
        max-height: 0;
        height: 370px;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    
    /* Show submenu when parent has mobile-open class */
    .nav__item--has-children.nav__item--mobile-open .nav__sidebar {
        max-height: 500px; /* Adjust based on your content */
    }
    
    .nav__sidebar-list a {
        padding: 1rem 2rem;
        font-size: 1.6rem;
        border-left: 4px solid transparent;
        background: rgba(255, 255, 255, 0.5);
        margin-bottom: 0;
    }
    
    .nav__sidebar-list a:hover {
        background: var(--color-secondary);
        border-left-color: var(--color-primary);
    }
    
    /* Prevent the main link from navigating when clicking arrow area */
    .nav__item--has-children .nav__link {
        pointer-events: auto;
    }
}

/* Header Layout Updates - FIXED */
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Move Logo to CENTER */
.header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Keep Navigation on LEFT */
.header__nav {
    /* Keep existing order: 1 */
}

/* Add Login Button on RIGHT */
.header__login {
    order: 3;
}

.login-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(12, 12, 12, 0.5);
    white-space: nowrap;
}

.login-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile Layout */
@media (max-width: 768px) {
    .header__login {
        display: none;
    }
    
    .header__logo {
        position: static;
        left: auto;
        transform: none;
        order: 2;
        flex: 1;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        order: 3;
    }
}

/* Show mobile-only login link in mobile menu */
.nav__item--mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .nav__item--mobile-only {
        display: block;
    }
    
    .nav__item--mobile-only .nav__link {
        color: var(--color-primary);
        font-weight: 600;
    }
}

/* Footer Styles - Enterprise Level */
.footer {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
    color: var(--color-text-inverse);
    position: relative;
    overflow: hidden;
    margin-top: 0rem;
}

.shape-fill {
    fill: var(--color-background);
}

.footer__main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-2xl);
    padding: var(--spacing-2xl) 0;
    position: relative;
    z-index: 2;
}

/* Brand Section */
.footer__brand {
    padding-right: var(--spacing-xl);
}

.brand__logo {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: var(--spacing-lg);
}

.logo__text {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text-inverse);
    letter-spacing: -0.02em;
}

.logo__accent {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.brand__tagline {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    max-width: 400px;
}

.cta__button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.cta__button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-secondary);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.cta__button:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(193, 180, 163, 0.3);
}

.cta__button:hover::before {
    left: 0;
}

.cta__button svg {
    transition: transform 0.3s ease;
}

.cta__button:hover svg {
    transform: translateX(4px);
}

/* Navigation Grid */
.footer__nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.nav__column {
    padding: 0 var(--spacing-lg);
}

.nav__title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.nav__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav__column:hover .nav__title::after {
    width: 50px;
}

.nav__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav__links li {
    margin-bottom: var(--spacing-sm);
}

.nav__links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.nav__links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav__links a:hover {
    color: var(--color-text-inverse);
    padding-left: 15px;
}

.nav__links a:hover::before {
    width: 10px;
}

/* Footer Bottom */
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xl) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.footer__legal {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.footer__legal p {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    margin: 0;
}

.legal__links {
    display: flex;
    gap: var(--spacing-lg);
}

.legal__links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color 0.3s ease;
}

.legal__links a:hover {
    color: var(--color-secondary);
}

.footer__badges {
    display: flex;
    gap: var(--spacing-md);
}

.badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer__main {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .footer__nav-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .nav__column {
        padding: 0;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer__legal {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .brand__logo {
        justify-content: center;
    }
    
    .nav__title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer__main > * {
    animation: slideInUp 0.6s ease-out;
}

.footer__nav-grid > * {
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.footer__bottom {
    animation: slideInUp 0.6s ease-out 0.4s both;
}

.brand__logo {
    margin-bottom: var(--spacing-lg);
}

.logo__image {
    height: 50px; /* Adjust based on your logo */
    width: auto;
    transition: transform 0.3s ease;
}

.logo__image:hover {
    transform: scale(1.05);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .logo__image {
        height: 40px;
    }
}