/* ==================== GLOBAL FONT ==================== */
:root {
    --bs-body-font-family: 'Libre Baskerville', Baskerville, Georgia, serif;
}

body, input, button, select, textarea {
    font-family: 'Libre Baskerville', Baskerville, Georgia, serif;
}

.footer-bg {
    background-image: url('/images/SIDE ELEVATION.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

    .footer-bg::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to right,rgba(0,0,0,0.75),rgba(0,0,0,0.45));
    }

.footer-content {
    position: relative;
    z-index: 2;
}

/* ==================== NAV (Deep Navy Blue) ==================== */
.nav-deep-navy {
    color: #001f3f !important;
}

.nav-deep-navy:hover,
.nav-deep-navy:focus {
    color: #001f3f !important;
}

.nav-deep-navy-hover-border:hover {
    border-color: #001f3f !important;
}

/* ==================== MOBILE NAV (Beautiful list-style menu) ==================== */
:root {
    --mobile-nav-bg: #fafbfc;
    --mobile-nav-border: rgba(0, 31, 63, 0.08);
    --mobile-nav-text: #001f3f;
    --mobile-nav-text-muted: #4a6572;
    --mobile-nav-accent: #b39359;
    --mobile-nav-hover-bg: rgba(179, 147, 89, 0.08);
    --mobile-nav-divider: rgba(0, 31, 63, 0.06);
}

.mobile-nav-drawer {
    background: var(--mobile-nav-bg);
    border-top: 1px solid var(--mobile-nav-border);
    box-shadow: 0 12px 40px rgba(0, 31, 63, 0.12);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--mobile-nav-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease, color 0.2s ease;
    min-height: 3.25rem;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus-visible {
    background-color: var(--mobile-nav-hover-bg);
    color: var(--mobile-nav-text);
}

.mobile-nav-item:active {
    background-color: rgba(179, 147, 89, 0.14);
}

.mobile-nav-item--home {
    padding-left: 1.25rem;
}

.mobile-nav-item--home .mobile-nav-label {
    font-weight: 700;
}

.mobile-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--mobile-nav-accent);
    font-size: 1.35rem;
    flex-shrink: 0;
}

.mobile-nav-label {
    flex: 1;
    text-align: left;
}

.mobile-nav-chevron {
    font-size: 1.35rem;
    color: var(--mobile-nav-text-muted);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.mobile-nav-details[open] .mobile-nav-chevron--rotate {
    transform: rotate(90deg);
}

.mobile-nav-divider {
    height: 1px;
    background: var(--mobile-nav-divider);
    margin: 0 1.25rem;
    flex-shrink: 0;
}

.mobile-nav-details {
    margin: 0;
}

.mobile-nav-details summary {
    list-style: none;
    cursor: pointer;
}

.mobile-nav-details summary::-webkit-details-marker {
    display: none;
}

.mobile-nav-sub {
    padding: 0.25rem 0 0.5rem 0;
    background: rgba(0, 31, 63, 0.02);
    border-left: 3px solid var(--mobile-nav-accent);
    margin-left: 1.25rem;
    margin-right: 1.25rem;
    margin-bottom: 0.25rem;
}

.mobile-nav-sub a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    color: var(--mobile-nav-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 0 6px 6px 0;
}

.mobile-nav-sub a:hover {
    background-color: var(--mobile-nav-hover-bg);
    color: var(--mobile-nav-text);
}

.mobile-nav-sub a:not(:last-child) {
    border-bottom: 1px solid var(--mobile-nav-divider);
}

/* ==================== AFFILIATE HERO (reliable background on mobile) ==================== */
.affiliate-hero-section {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.affiliate-hero-bg {
    overflow: hidden;
}

.affiliate-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Mobile: wide baked-in-text banners crop badly with object-fit:cover — show full image instead */
@media (max-width: 768px) {
    .affiliate-hero-img {
        object-fit: contain;
        object-position: center center;
    }
}

/* Team Member Card Styling */
.team-member-card {
    position: relative;
    transition: all 0.3s ease;
}

.team-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background-color: #f3f4f6;
}

/* Grayscale effect on default state */
.team-member-image {
    filter: grayscale(100%);
    transition: filter 0.4s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Remove grayscale and show color on hover */
.team-member-card:hover .team-member-image {
    filter: grayscale(0%);
}

/* LinkedIn container positioning */
.team-linkedin-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

/* Show LinkedIn icon on image hover */
.team-member-card:hover .team-linkedin-container {
    opacity: 1 !important;
}

.team-linkedin-icon {
    transition: all 0.3s ease;
}

    /* LinkedIn icon hover effect - scale up */
    .team-linkedin-icon:hover {
        transform: scale(1.15) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-member-image {
        filter: grayscale(0%);
    }

    .team-linkedin-container {
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.3);
    }
}
.tab-btn {
    padding: 0.75rem 2.5rem;
    background-color: #f5f5f5;
    color: #666;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border-right: 1px solid #ddd;
}

    .tab-btn:last-child {
        border-right: none;
    }

    .tab-btn.active {
        background-color: #2d2d2d;
        color: white;
    }

/* ==================== SCROLL EFFECTS ANIMATIONS ==================== */

/* Base styles for scroll animations - elements start hidden */
.scroll-fade-in,
.scroll-fade-in-up,
.scroll-fade-in-down,
.scroll-fade-in-left,
.scroll-fade-in-right,
.scroll-slide-up,
.scroll-slide-down,
.scroll-slide-left,
.scroll-slide-right,
.scroll-scale-in,
.scroll-scale-up,
.scroll-rotate-in,
.scroll-fade-scale,
.scroll-fade-slide-up {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Fade In */
.scroll-fade-in {
    opacity: 0;
}
.scroll-fade-in.scroll-animated {
    opacity: 1;
}

/* Fade In Up */
.scroll-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}
.scroll-fade-in-up.scroll-animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Down */
.scroll-fade-in-down {
    opacity: 0;
    transform: translateY(-30px);
}
.scroll-fade-in-down.scroll-animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Left */
.scroll-fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
}
.scroll-fade-in-left.scroll-animated {
    opacity: 1;
    transform: translateX(0);
}

/* Fade In Right */
.scroll-fade-in-right {
    opacity: 0;
    transform: translateX(30px);
}
.scroll-fade-in-right.scroll-animated {
    opacity: 1;
    transform: translateX(0);
}

/* Slide Up */
.scroll-slide-up {
    transform: translateY(50px);
}
.scroll-slide-up.scroll-animated {
    transform: translateY(0);
    opacity: 1;
}

/* Slide Down */
.scroll-slide-down {
    transform: translateY(-50px);
}
.scroll-slide-down.scroll-animated {
    transform: translateY(0);
    opacity: 1;
}

/* Slide Left */
.scroll-slide-left {
    transform: translateX(50px);
}
.scroll-slide-left.scroll-animated {
    transform: translateX(0);
    opacity: 1;
}

/* Slide Right */
.scroll-slide-right {
    transform: translateX(-50px);
}
.scroll-slide-right.scroll-animated {
    transform: translateX(0);
    opacity: 1;
}

/* Scale In */
.scroll-scale-in {
    opacity: 0;
    transform: scale(0.8);
}
.scroll-scale-in.scroll-animated {
    opacity: 1;
    transform: scale(1);
}

/* Scale Up */
.scroll-scale-up {
    opacity: 0;
    transform: scale(0.9);
}
.scroll-scale-up.scroll-animated {
    opacity: 1;
    transform: scale(1);
}

/* Rotate In */
.scroll-rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
}
.scroll-rotate-in.scroll-animated {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Fade Scale */
.scroll-fade-scale {
    opacity: 0;
    transform: scale(0.9);
}
.scroll-fade-scale.scroll-animated {
    opacity: 1;
    transform: scale(1);
}

/* Fade Slide Up */
.scroll-fade-slide-up {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
}
.scroll-fade-slide-up.scroll-animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger Container */
.scroll-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-stagger > *.scroll-animated {
    opacity: 1;
    transform: translateY(0);
}

/* Performance optimizations */
.scroll-fade-in,
.scroll-fade-in-up,
.scroll-fade-in-down,
.scroll-fade-in-left,
.scroll-fade-in-right,
.scroll-slide-up,
.scroll-slide-down,
.scroll-slide-left,
.scroll-slide-right,
.scroll-scale-in,
.scroll-scale-up,
.scroll-rotate-in,
.scroll-fade-scale,
.scroll-fade-slide-up {
    will-change: opacity, transform;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .scroll-fade-in,
    .scroll-fade-in-up,
    .scroll-fade-in-down,
    .scroll-fade-in-left,
    .scroll-fade-in-right,
    .scroll-slide-up,
    .scroll-slide-down,
    .scroll-slide-left,
    .scroll-slide-right,
    .scroll-scale-in,
    .scroll-scale-up,
    .scroll-rotate-in,
    .scroll-fade-scale,
    .scroll-fade-slide-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}