/* Layout: Shared Header, Footer, and Structural Resets */

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    line-height: 1.5;
    color: var(--gray-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: pan-y;
}

/* Trust Banner */
.trust-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    background: #111827;
    color: #fff;
    font-size: .7rem;
    letter-spacing: .03em;
    font-weight: 600;
    text-align: center;
    padding: .35rem .5rem;
    border-bottom: 1px solid #1f2937;
}

.trust-banner strong {
    color: #fff;
}

body.has-trust-banner .header {
    top: 24px;
}

@media (max-width:640px) {
    .trust-banner {
        font-size: .65rem;
        padding: .4rem .5rem;
    }

    body.has-trust-banner .header {
        top: 28px;
    }
}

/* HEADER - Critical styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95); /* Slate 900 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    min-height: 80px;
    height: 80px;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 900;
    font-size: 1.4rem; /* Scaled down 20% from 1.75rem */
    color: #FFFFFF;
    text-decoration: none;
    line-height: 1;
    height: 100%;
    letter-spacing: -0.04em;
    margin-right: 3.5rem; /* Fixed margin to separate from NAV */
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem; /* gap-x-8 equivalent */
    height: 100%;
}

.nav-link {
    color: #CBD5E1; /* Muted Slate / Light contrast */
    text-decoration: none;
    font-weight: 500; /* font-medium */
    transition: all 0.2s ease;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em; /* tracking-wider */
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: #FFFFFF;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: #FFFFFF;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active {
    color: #FFFFFF;
}

.nav-link.active::after {
    transform: scaleX(1);
    background: #FFFFFF;
}

.btn-cta {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-cta:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: #FFFFFF; /* High contrast */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem; /* py-2 px-4 */
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    line-height: 1; /* Keep icon vertically aligned precisely */
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* Mobile Menu Button - Removed (handled by enterprise-mobile-menu.css) */

/* Responsive */
@media (max-width: 768px) {
    .header {
        height: 72px;
        min-height: 72px;
    }

    .nav {
        display: none;
    }

    .btn-ghost {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}