/* --- Global Variables --- */
:root {
    --primary: #1B75BC; /* Updated BlueCrimson Primary */
    --accent: #D7393F;  /* Updated BlueCrimson Red */
    --text-dark: #4B5563; /* Updated Dark Grey for Navigation */
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --gold: #F2C811;
    
}
/* --- Global Box-Sizing Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    
    width: 100%;
}

/* --- Container Margins (Reduced per feedback) --- */
.container {
    width: 95%; /* Increased from standard 90% to reduce left/right margins */
    max-width: 1400px; /* Allows the content to spread out more on large screens */
    margin: 0 auto;
}
/* --- Tighten Gap Between Badge and Hero Text --- */
.hero-text .badge {
    margin-bottom: 0.5rem !important; /* Keeps a small, clean space below the badge */
    display: inline-block; /* Ensures the bottom margin is respected by the browser */
}


/* =========================================
   MACRO-GEOMETRIC: DYNAMIC FRAMING
   ========================================= */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    
    /* Base light grey background */
    background-color: #F8FAFC; 
    
    /* 
       Drawing the massive angled corners using fixed gradients.
       Layer order matters here (top layer written first).
    */
    background-image: 
        /* Top Left: Corporate Blue overlapping Brand Gold */
        linear-gradient(165deg, var(--primary) 0%, var(--primary) 12%, transparent 12%),
        linear-gradient(165deg, var(--gold) 0%, var(--gold) 16%, transparent 16%),
        
        /* Bottom Right: Corporate Blue overlapping Brand Crimson */
        linear-gradient(-15deg, var(--primary) 0%, var(--primary) 6%, transparent 6%),
        linear-gradient(-15deg, var(--accent) 0%, var(--accent) 9%, transparent 9%);
        
    /* Locks the shapes to the screen so content scrolls smoothly over them */
    background-attachment: fixed; 
}
/* =========================================
   TRANSPARENCY FIX FOR BODY BACKGROUNDS
   ========================================= */
/* This forces the middle sections to be clear like glass, 
   allowing the body's geometric corners to show through */
.section, 
.bg-light, 
.results-section, 
.trust-section {
    background-color: transparent !important;
}
/* =========================================
   NAVIGATION BAR STYLES
   ========================================= */

.nav-brand .logo {
    height: 60px; /* Adjust based on your actual logo proportions */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark); /* The requested Dark Grey */
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}
/* Change Hover State from Red to Blue */
.nav-links a:hover,
.nav-links a.active {
    color: var(--accent); 
}

/* --- Navigation Alignment & Color Fixes --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Locks all three columns vertically in the center */
    padding: 1rem 5%; 
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-cta {
    display: flex;
    align-items: center; /* Ensures the button itself doesn't float up or down */
}

/* Ensure the Nav Button is Blue and perfectly aligned */
.btn-nav-contact {
    background-color: var(--primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap; /* Prevents the button text from wrapping on smaller screens */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-nav-contact:hover {
    background-color: #145A92;
    transform: translateY(-2px);
}


/* =========================================
   HERO SECTION
   ========================================+ */
.hero { padding: 160px 0 100px 0; border-bottom: 1px solid #E2E8F0; padding-top: 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }

.badge {
    background: #EFF6FF; color: var(--primary);
    padding: 0.4rem 0.8rem; border-radius: 50px;
    font-size: 0.8rem; font-weight: 600;
    margin-bottom: 1.5rem; display: inline-block;
}

.hero h1 { font-size: 3.5rem; letter-spacing: -0.02em; margin-bottom: 1.5rem; margin-top: 0; }
.hero .highlight { color: var(--primary); }
.hero p { font-size: 1.25rem; margin-bottom: 2rem; max-width: 90%; }
.hero-text { min-width: 0; }
/* Prevents the new paragraph text from stretching too wide across the screen */
.hero-subtitle {
    max-width: 650px;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    white-space: normal; /* Ensures it wraps beautifully */
}


/* --- CTA Buttons (Blue, White, No Underlines) --- */
.hero-cta-group a {
    text-decoration: none !important; /* Strips out any default link underlines */
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    display: inline-block;
}

/* Primary Button: "Our Expertise" (Solid Blue) */
.btn-primary {
    background-color: var(--primary) !important;
    color: white !important;
    border: 2px solid --primary !important;
}

.btn-primary:hover {
    background-color: #145A92 !important;
    border-color: #145A92 !important;
}

/* Secondary Button: "View Case Studies" (White with Blue Text/Border) */
.btn-secondary {
    background-color: white !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
}

.btn-secondary:hover {
    background-color: #f8fafc !important; /* Slight grey tint on hover */
}


/* =========================================
   THE TIER-1 CONSULTING BACKGROUND
   ========================================= */

.hero {
    /* The White Fade Overlay (Ensures text readability on the left) */
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0.1) 100%),
        url('https://images.unsplash.com/photo-1727434032773-af3cd98375ba?auto=format&fit=crop&w=1920&q=80') !important;
        
    background-size: cover !important;
    background-position: center right !important; /* Keeps the visual weight on the right side */
    background-repeat: no-repeat !important;
    
    background-color: #FFFFFF !important; /* Fallback */
    position: relative;
    overflow: hidden;
}

.cta-group { display: flex; gap: 1rem; margin-bottom: 3rem; }

/* --- Atmospheric 3D Carousel in Hero Section --- */
.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    overflow: visible;
}

.ambient-glow {
    position: absolute;
    width: 300px; height: 300px;
    background: var(--accent);
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
}

.carousel-scene {
    position: relative;
    width: 280px; /* Scaled down from 320px */
    height: 300px; /* Scaled down from 300px */
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    transform: rotateY(var(--rotation, 0deg));
}

/* --- The Upright Cards --- */
.carousel-card {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 25, 45, 0.6); 
    /*border: 1px solid rgba(255, 255, 255, 0.1); */
    border-radius: 40px 8px 40px 8px;
    background-color: var(--primary); /* The original solid corporate blue */
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Soft shadow for the 3D effect */
 
    
    padding: 1.5rem; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    
    transform: rotateY(calc(var(--card-index) * 90deg)) translateZ(260px);
    transform-origin: center center;

    opacity: 0.3;
    transition: opacity 0.8s ease-in-out, box-shadow 0.8s ease-in-out;
    will-change: opacity, transform;
    
}

/* Maintain the active state */
.carousel-card.active-card {
    opacity: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .carousel-wrapper { height: 400px; perspective: 900px; }
    /* Scaled down orbit for smaller phone screens so they still fit */
    .carousel-card { transform: rotateY(calc(var(--card-index) * 90deg)) translateZ(220px); padding: 1.5rem; }
}

/* Accent Borders */
.carousel-card.card-ai { border-top: 5px solid var(--accent) !important; }

/* Card 1: Enterprise & Mobile (Bright Gold) */
.carousel-card.card-logic { border-top: 5px solid #F2C811 !important; }

/* Card 2: Front-End Technologies (Crisp White) */
.carousel-card.card-data { border-top: 5px solid white !important; }

/* Card 3: Gen AI (Cyan) */
.carousel-card.card-genai { border-top: 5px solid cyan !important;
}

/* Typography */
.layer-header {
    color: white;
    font-size: 1.1rem; /* Scaled down from 1.25rem */
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.layer-header i { color: var(--accent); }

.layer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    color: #E2E8F0;
    font-size: 0.75rem; /* Scaled down from 0.85rem */
    font-weight: 600;
    padding: 0.3 0.4rem; /* Scaled down padding */
    border-radius: 8px;
    text-align: center;
    
}


/* --- About Us Grid --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.about-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary); /* Highlights the BlueCrimson Blue */
}

.check-icon {
    color: var(--primary); /* BlueCrimson */
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.about-item p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.about-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

/* --- Full-Width Trust Section --- */
.trust-section {
    background: #F8FAFC; /* Light gray-blue instead of dark navy */
    border-bottom: 1px solid var(--border); 
}

.trust-section .trust-label {
    color: var(--text-dark); /* Darker text for light background */
    font-size: 0.rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    
    padding-top: 0.5rem;
}

/* --- Trusted Delivery Partner Seamless Marquee --- */

.carousel-container {
    overflow: hidden; /* Hides the logos outside the screen */
    width: 100%;
    padding: 1rem 0;
    position: relative;
}

/* Optional: Adds a subtle fade gradient on the left and right edges */
.carousel-container::before,
.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}
.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}
.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

/* The Track that holds both sets */
.carousel-track {
    display: inline-flex;
    width: max-content; /* Allows the track to be as wide as the logos dictate */
    animation: scroll-partners 35s linear infinite; /* Adjust the 35s to make it faster/slower */
}

/* Pause the animation if a user wants to look closely at a logo */
.carousel-track:hover {
    animation-play-state: paused;
}

/* The Logo Groups */
.carousel-logos {
    display: inline-flex;
    align-items: center;
    gap: 5rem; /* The space between each logo */
    padding-right: 5rem; /* MUST exactly match the gap so the loop stitches together seamlessly */
}

/* Sizing the colored logos once you drop them in */
.carousel-logos img {
    height: 40px; /* Adjust this to make the logos legible */
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Bring them to full color when hovered */
.carousel-logos img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* --- The Seamless Loop Animation --- */
@keyframes scroll-partners {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        /* Shifts exactly half the total track width, resting perfectly on Set 2 before instantly resetting to Set 1 */
        transform: translateX(-50%); 
    }
}



/* --- Stats Bar --- */
.stats-section { background: var(--primary); padding: 0.5rem 0; color: white; }
.stats-grid { display: flex; justify-content: space-between; text-align: center; }
.stat-item h2 { color: white; font-size: 2rem; margin-bottom: 0.3rem; } 
.stat-item p { color: white; font-size: 0.9rem; font-weight: 500; text-transform: uppercase; }


/* --- Why BlueCrimson Section --- */
.text-center { text-align: center; margin: 0 auto 4rem auto; }

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-card {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.why-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.icon-blue { color: var(--primary); }
.icon-grey { color: var(--text-dark); }

.why-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.why-card p {
    font-size: 0.9rem;
    color: #4B5563 !important;
}


/*--Engagement Section --*/
/* --- Accordion UI --- */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
    box-shadow: var(--shadow-sm);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: transparent;
    border: none;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.accordion-header i {
    color: var(--accent);
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #FAFAFA;
}

.accordion-content p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
}

/* Active State Styles */
.accordion-item.active .accordion-header {
    color: var(--accent);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

/* --- Services Section --- */
.section { padding: 6rem 0; }
.bg-light { background-color: var(--bg-light); }
.section-header { margin-bottom: 4rem; max-width: 600px; }
.overline { color: var(--accent); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; display: block; margin-bottom: 1rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

.service-card {
    background: white; padding: 2.5rem;
    border-radius: 12px; border: 1px solid var(--border);
    transition: 0.3s; cursor: pointer;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.service-card h3 { margin-bottom: 1rem; font-size: 1.25rem; }
.service-card .link { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-top: 1rem; display: block; }

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px; /* Slightly rounded square for a tech feel */
    background: rgba(27, 117, 188, 0.1); /* Very faint Corporate Blue background */
    margin-bottom: 1.5rem;
}

/* Styles the actual SVG lines */
.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary); /* Corporate Blue */
}

/* --- Service Modal Cards --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px);
    z-index: 2000; opacity: 0; pointer-events: none; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.modal-active { opacity: 1; pointer-events: auto; }
.modal-card {
    background: white; width: 90%; max-width: 600px; padding: 3rem;
    border-radius: 12px; position: relative; transform: translateY(20px); transition: 0.3s;
}
.modal-active .modal-card { transform: translateY(0); }
.close-modal { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--text-light); }
.close-modal:hover { color: var(--accent); }
hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-grid, .case-study-layout, .leadership-wrapper, .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    
    .stats-grid { flex-wrap: wrap; gap: 2rem; }
    
    .tech-collage { grid-template-columns: repeat(2, 1fr); }
    .hero-visual { order: -1; margin-bottom: 2rem; justify-content: center; }
    
    .collage-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .img-large { grid-row: auto; height: 250px; }
}

/* =========================================
   RESULTS / CASE STUDIES SECTION STYLES
   ========================================= */

.results-section {
    padding: 6rem 0;
    background-color: #F8FAFC; /* Soft off-white to make the white cards pop */
}

.section-heading {
    margin-bottom: 4rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    color: #1B75BC; /* Corporate Blue */
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #4B5563 !important;
    max-width: 700px;
    margin: 0 auto;
}

/* The 3-Column Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

/* The Premium Card Styling */
.result-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

/* Card Header & Brand Accents */
.card-header {
    padding: 2rem 2rem 1.5rem;
    border-top: 4px solid #1B75BC; /* Corporate Blue Default */
    background: linear-gradient(to bottom, #F8FAFC, #FFFFFF);
    border-bottom: 1px solid #F1F5F9;
}

.card-header.border-crimson { border-top-color: #D7393F; } /* Brand Crimson */
.card-header.border-gold { border-top-color: #F2C811; }    /* Brand Gold */

.industry-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6B7280;
    margin-bottom: 0.8rem;
}

.card-header h3 {
    font-size: 1.4rem;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}

/* Card Body & Typography */
.card-body {
    padding: 1.5rem 2rem 2rem;
    flex-grow: 1; /* Ensures cards stretch to equal height */
}

.case-section {
    margin-bottom: 1.5rem;
}

.case-section:last-child {
    margin-bottom: 0;
}

.case-section h4 {
    font-size: 1.05rem;
    color: #1B75BC;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.case-section p {
    font-size: 0.95rem;
    color: #4B5563 !important;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Custom Tech Bullet Points */
.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    color: #4B5563;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

/* Creates a custom Blue dot for the lists */
.tech-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #1B75BC;
}

.tech-list li strong {
    color: #111827;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr; /* Stacks to a single column on phones */
    }
}

/* --- Story-Driven Team Grid --- */
/* --- Executive Spotlight Layout --- */
.executive-spotlight {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-top: 3rem;
    min-height: 500px;
}

/* --- Left Roster --- */
.spotlight-roster {
    background: var(--bg-light);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    /* Height grows naturally with the 8 items */
}

.roster-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.roster-item:hover {
    background: white;
}

.roster-item.active {
    background: white;
    border-left-color: var(--accent);
}

.roster-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.roster-info h4 {
    font-size: 1rem;
    color: var(--primary);
    margin: 0;
}

.roster-info span {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 700;
}

/* --- Right Stage (Editorial Text Wrap Layout) --- */
.spotlight-stage {
    padding: 3rem 3rem 3rem 0;
    position: relative;
}

.spotlight-content {
    display: none; 
    animation: fadeIn 0.5s ease-in-out;
}

/* 1. Revert to standard block display (Removes Flexbox) */
.spotlight-content.active-content {
    display: block; 
}

/* Clearfix: Prevents the layout from breaking if an executive has very short text */
.spotlight-content.active-content::after {
    content: "";
    display: table;
    clear: both;
}

/* 2. Float the image to the left */
.stage-image-wrapper {
    float: left; /* This is the magic property that allows wrapping */
    width: 280px; 
    margin-right: 3rem; /* Replaces the old flex gap on the right */
    margin-bottom: 1.5rem; /* Creates a clean cushion when text flows underneath */
}

/* Portrait Image Styling */
.stage-image-wrapper img {
    width: 100%;
    height: 380px; 
    object-fit: cover;
    object-position: top center; 
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: block; 
}

/* 3. Text positioning */
.stage-text {
    padding-top: 0.25rem; /* Nudges the title down slightly to align with the top of the photo */
}

.stage-text h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stage-title {
    display: block;
    font-size: 1rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.stage-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .executive-spotlight { grid-template-columns: 1fr; }
    .spotlight-roster { border-right: none; border-bottom: 1px solid var(--border); max-height: 300px; }
    .spotlight-stage { padding: 2rem; }
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent); /* Adds a splash of crimson on hover */
}

.team-card h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.team-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.team-story {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
}
/* --- Team Culture Gallery --- */
.culture-header {
    margin-top: 5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.culture-header h3 {
    font-size: 1.75rem;
    color: var(--primary) !important;
}

.culture-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.culture-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.culture-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Makes certain images span two columns for a dynamic layout */
.culture-img.wide {
    grid-column: span 2;
}

/* Mobile adjustments for the gallery */
@media (max-width: 900px) {
    .culture-gallery { grid-template-columns: 1fr; }
    .culture-img.wide { grid-column: span 1; }
}

/* =========================================
   MODERN 4-COLUMN FOOTER
   ========================================= */

.site-footer {
    background-color: #F8FAFC; /* Soft off-white to match your site base */
    padding: 0.5rem 0;
    border-top: 1px solid #E2E8F0;
    color: var(--text-dark);
}

.footer-container {
    display: grid;
    /* Col 1 is slightly wider to hold the logo/email cleanly */
    grid-template-columns: 1.5fr 1fr 1fr 1fr; 
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography & Spacing */
.footer-brand {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.footer-tagline {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-col h4 {
    color: var(--text-dark); /* Dark slate for high contrast */
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* Layout for the SVG Icons next to the text */
.contact-item, .address-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.address-block p {
    margin: 0;
}

/* Brand Crimson SVGs */
.footer-icon {
    width: 20px;
    height: 20px;
    color: var(--accent); /* BlueCrimson Brand Red */
    flex-shrink: 0;
    margin-top: 2px; /* Aligns the icon perfectly with the top line of text */
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .footer-container {
        /* Drops to a 2x2 grid on tablets */
        grid-template-columns: 1fr 1fr; 
    }
}

@media (max-width: 640px) {
    .footer-container {
        /* Stacks completely vertically on phones */
        grid-template-columns: 1fr; 
    }
    .footer-col {
        margin-bottom: 1rem;
    }
}

/* --- The Bottom Copyright Bar --- */
.footer-bottom {
    background-color: var(--primary); /* Solid Corporate Blue */
    text-align: center;
    padding: 1.5rem 0;
}

.footer-bottom p {
    margin: 0;
    color: white;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stacks into a single column on phones */
        text-align: center;
    }
    
    .site-footer i {
        display: none; /* Hides icons on mobile to keep text perfectly centered */
    }
}


/* =========================================
   CLIENT FEEDBACK OVERRIDES (Grey & Blue)
   ========================================= */

/* --- 1. Global Grey Headings & Text (#4B5563) --- */
h3, h4, h5, h6, .trust-section p, .stage-text p, .culture-header p,
body { color: var(--text-dark) !important; }
.section-header h2{ color: var(--primary) !important; }
h2 { color: var(--text-dark);}

.about-item p, .section-header p, .accordion-content p, .trust-section p,
.service-card p, .team-card p, .site-footer p, .modal-card p, .hero-subtitle {
    color: var(--text-dark) !important; 
    line-height: 1.6;
}
.footer-bottom p {
    color: white !important; 
    line-height: 1.6;
}



/* --- Widen the Header Container ONLY for specific sections --- */
#services .section-header,
#why-us .section-header {
    max-width: 1100px !important;
}

/* --- Stretch the paragraph and tighten the height --- */
#services .section-header p,
#engagement .section-header p,
#about .section-header p,
#why-us .section-header p {
    max-width: 100% !important; /* Tells the text to fill the newly widened parent container */
    line-height: 1.5 !important; 
    margin: 0 auto 2rem auto !important; 
    font-size: 1.05rem !important; 
}
#stats-section .stat-item h2, p {
    color: #E2E8F0 !important;
}

/* =========================================
   COMPREHENSIVE MOBILE OPTIMIZATION
   ========================================= */
@media (max-width: 900px) {
    /* 1. Fix the "Squished" Grids 
       (About & Why sections were stuck in 3 columns) */
    .about-grid, 
    .why-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* 2. Global Space Reduction 
       (Prevents massive white gaps on small screens) */
    .hero {
        padding: 100px 0 60px 0 !important; /* Reduced from 160px top padding */
    }
    .section, .results-section {
        padding: 4rem 0 !important; /* Reduced from 6rem */
    }
    .section-header {
        margin-bottom: 2.5rem !important; /* Tightened up the headers */
    }

    /* 3. Prevent Horizontal Scrolling on Small Phones
       (iPhone SE width is 375px; minmax(350px) was causing horizontal overflow) */
    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; 
    }
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    }

    /* 4. Fix the Team Spotlight Scroll
       (Allows users to swipe through the team without it taking up the whole screen) */
    .spotlight-roster {
        overflow-y: auto; 
        max-height: 250px;
    }

    /* 5. Tighten the Logo Carousel
       (5rem gap is too wide for phones; this tightens the visual rhythm) */
    .carousel-logos {
        gap: 2.5rem !important;
        padding-right: 2.5rem !important;
    }
    .carousel-logos img {
        height: 30px !important; 
    }
    .carousel-scene {
        transform: scale(0.7) rotateY(var(--rotation, 0deg)) !important; /* Shrinks the entire 3D object to fit the phone screen */
    }
    .carousel-wrapper {
        height: 380px; /* Reduces the height so there isn't massive empty space around the shrunken carousel */
    }
}

/* =========================================
   MOBILE HAMBURGER MENU & DROPDOWN
   ========================================= */

/* Base Hamburger Styles (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0.5rem;
    z-index: 1001; /* Keeps it above the menu panel */
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary); /* Corporate Blue */
    border-radius: 3px;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .hamburger {
        display: block;
    }

    /* Transform the standard nav into a sliding panel */
    .nav-links {
        position: absolute; /* Positions it directly under the header */
        left: -100%; /* Hides it off-screen to the left */
        top: 100%; 
        flex-direction: column;
        background-color: #FFFFFF;
        width: 100%;
        text-align: center;
        transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Adds a slight bounce */
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border);
        padding: 2rem 0;
    }

    /* The class JavaScript will add to slide it into view */
    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    /* Animates the 3 bars into an 'X' */
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--accent); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--accent); }

    .stage-image-wrapper {
        float: none; /* Kills the editorial wrap on small screens */
        width: 220px; 
        margin: 0 auto 1.5rem auto; /* Perfectly centers the portrait */
    }
    
    .stage-text {
        text-align: center; /* Centers the name and bio text under the photo */
    }
}
/* =========================================
   SURGICAL HORIZONTAL OVERFLOW FIX
   (Leaves Sticky Navbar Intact)
   ========================================= */
.navbar,
.accordion-header, 
.nav-links,
.modal-card,
.carousel-container {
    box-sizing: border-box !important;
    max-width: 100%;
}



/* ========================================================
   15 Year - SPLASH OVERLAY STYLES
   ======================================================== */
.celebration-overlay {
    position: fixed;
    inset: 0; /* Stretches to all 4 corners */
    background: rgba(10, 20, 40, 0.85); /* Deep dark blue */
    backdrop-filter: blur(12px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999; /* Sits above absolutely everything */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Class added by JS to fade it out */
.celebration-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.celebration-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 2rem;
    z-index: 10000;
    /* A slick pop-in animation when the page loads */
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* The Glowing 15 Badge */
/* --- Enhanced Glowing 15 Badge --- */
.celebration-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 130px; /* Increased size */
    height: 130px; /* Increased size */
    border-radius: 50%;
    
    /* Creates an internal glow effect */
    background: radial-gradient(circle, rgba(242, 200, 17, 0.15) 0%, rgba(242, 200, 17, 0.02) 70%);
    border: 2px solid #F2C811; /* Brand Gold */
    
    color: #F2C811;
    font-size: 4.5rem; /* Massive font size */
    font-weight: 900;
    margin-bottom: 1.5rem;
    
    /* Makes the number itself glow */
    text-shadow: 0 0 15px rgba(242, 200, 17, 0.5), 0 0 30px rgba(242, 200, 17, 0.2);
    
    /* Attaches the pulsing animation */
    animation: goldPulse 2s infinite alternate ease-in-out; 
}

/* The Breathing Light Animation */
@keyframes goldPulse {
    0% { 
        box-shadow: 0 0 20px rgba(242, 200, 17, 0.3), inset 0 0 15px rgba(242, 200, 17, 0.2); 
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 45px rgba(242, 200, 17, 0.7), inset 0 0 25px rgba(242, 200, 17, 0.4); 
        transform: scale(1.03); /* Extremely subtle physical expansion */
    }
}

.celebration-content h2 {
    color: white !important;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.celebration-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Ensure the button matches your primary red */
#enter-site-btn {
    background-color: #D7393F !important;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
}