/* css/home-2026.css - Adaptive Office Strategist Theme (FINAL CORRECTED) */

/* -------------------------------------------------------------------------
    1. [cite_start]ROOT VARIABLES (CODEX PALETTE) [cite: 46-66]
    ------------------------------------------------------------------------- */
:root {
    /* Primary Brand Colors */
    --cc-navy: #02042D;      /* Deep Navy: Dominant brand color */
    --cc-charcoal: #1B1E23;  /* Charcoal: Shadows and footer */
    --cc-gold: #D4B980;      /* Brushed Gold: Accents and CTAs */
    --cc-stone: #C8C8C8;     /* Warm Stone: Secondary surfaces */
    --cc-offwhite: #F7F7F5;  /* Soft Off White: Backgrounds */
    --cc-white: #FFFFFF;     /* Pure White: Text on Navy, Cards */

    /* Functional Colors */
    --cc-text-dark: #02042D;
    --cc-text-light: #F7F7F5;
    --cc-text-medium: #555555;
    --cc-border: #E0E0E0;

    /* Spacing & Layout */
    --sp-xs: 0.5rem; 
    --sp-sm: 1rem; 
    --sp-md: 2rem; 
    --sp-lg: 4rem; 
    --sp-xl: 6rem;
    --container-width: 1200px;
    --border-radius: 4px; /* Sharper, more institutional look */
    
    [cite_start]/* Fonts [cite: 76-78] */
    --font-heading: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* -------------------------------------------------------------------------
    2. RESET & TYPOGRAPHY
    ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--cc-text-dark);
    background-color: var(--cc-offwhite);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--cc-navy);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--sp-sm);
}

a { color: var(--cc-navy); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--cc-gold); }

img { max-width: 100%; height: auto; display: block; border-radius: var(--border-radius); }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* -------------------------------------------------------------------------
    3. COMPONENT STYLES - BUTTONS (CRITICAL FIXES)
    ------------------------------------------------------------------------- */

/* Primary CTA Button (Gold) */
.cta-button, .solution-cta {
    display: inline-block;
    background: var(--cc-gold) !important; /* Shorthand wipes old gradients */
    background-color: var(--cc-gold) !important;
    color: var(--cc-navy) !important;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 4px;
    text-transform: capitalize;
    border: 2px solid var(--cc-gold); /* Adds visual weight */
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.2;
}

.cta-button:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    filter: brightness(1.05);
}

/* Ghost Button (Outline - for White Backgrounds) */
.cta-button.ghost-cta {
    background: transparent !important;
    border: 2px solid var(--cc-navy); /* Thicker border */
    color: var(--cc-navy) !important;
    box-shadow: none;
}

.cta-button.ghost-cta:hover {
    background: var(--cc-navy) !important;
    color: var(--cc-white) !important;
    transform: translateY(-2px);
}

/* Dark Mode Ghost Button (for Hero / Navy Backgrounds) */
.dark-mode-btn {
    background: transparent !important;
    border: 2px solid var(--cc-white);
    color: var(--cc-white) !important;
}

.dark-mode-btn:hover {
    background: var(--cc-white) !important;
    color: var(--cc-navy) !important;
    border-color: var(--cc-white);
}

/* Section Headers */
.section-heading-premium-style {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--cc-navy);
    margin-bottom: var(--sp-sm);
    text-align: center;
}
.section-subheading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: var(--cc-text-medium);
    font-size: 1.1rem;
}

/* -------------------------------------------------------------------------
    4. HEADER & NAVIGATION
    ------------------------------------------------------------------------- */
.site-header-v3 {
    background-color: var(--cc-white);
    border-bottom: 1px solid var(--cc-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation Links */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--cc-navy);
    font-weight: 500;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--cc-gold);
}

.header-cta {
    font-size: 0.85rem !important;
    padding: 10px 20px !important;
}

/* Mobile Menu Button */
.hamburger-button {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}
.hamburger-button__bar {
    width: 25px;
    height: 2px;
    background-color: var(--cc-navy);
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0; right: 0; width: 100%; height: 100%;
    background-color: var(--cc-navy);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
}
.mobile-menu-overlay.is-open { transform: translateX(0); }

.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-menu-logo img { width: 150px; filter: brightness(0) invert(1); } /* Force white logo */
.close-menu-button { background: transparent; border: none; cursor: pointer; }
.close-menu-button svg { fill: var(--cc-white); width: 30px; height: 30px; }

.mobile-menu-nav { display: flex; flex-direction: column; gap: 20px; text-align: center; }
.mobile-menu-link {
    font-size: 1.5rem;
    color: var(--cc-white);
    font-weight: 500;
}
.mobile-menu-link:hover { color: var(--cc-gold); }
.mobile-menu-cta { 
    margin-top: 20px; 
    border: 1px solid var(--cc-gold); 
    color: var(--cc-gold) !important;
    padding: 10px 30px;
    border-radius: 50px;
}

.mobile-menu-footer {
    margin-top: auto;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

@media (max-width: 991px) {
    .main-navigation { display: none; }
    .hamburger-button { display: flex; }
}

/* -------------------------------------------------------------------------
    5. HOMEPAGE SECTIONS
    ------------------------------------------------------------------------- */

/* Hero Section - READABILITY FIXES */
.hero-section {
    background-color: var(--cc-navy);
    /* Darker overlay for better text contrast */
    background-image: linear-gradient(rgba(2,4,45,0.75), rgba(2,4,45,0.65)), url('../images/hero-home.jpg'); 
    background-size: cover;
    background-position: center;
    padding: 160px 0 120px 0;
    color: var(--cc-white);
    text-align: center;
}

/* Force White Headline with Strong Shadow */
.hero-section .section-heading-premium-style {
    color: #FFFFFF !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.hero-section p.section-subheading {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.hero-badge {
    display: inline-block;
    border: 1px solid var(--cc-gold);
    color: var(--cc-gold);
    background: rgba(0,0,0,0.3); /* Darkens background behind badge */
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    backdrop-filter: blur(4px);
}

.highlight-ai { color: var(--cc-gold); }

/* Logo Marquee - FIXED */
.logo-marquee-container {
    background-color: var(--cc-white);
    padding: 40px 0;
    border-bottom: 1px solid var(--cc-border);
    overflow: hidden; /* Hides the scrollbar but allows track to be huge */
    width: 100%;
}

/* Find .logo-marquee-track and .logo-item */

.logo-marquee-track {
    display: flex;
    align-items: center;
    /* REMOVE gap: 60px; */
    width: max-content;
    animation: marquee 100s linear infinite;
}

.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* ADD padding instead of gap */
    padding: 0 30px; /* 30px left + 30px right = 60px total gap */
}

.logo-item img {
    height: 50px; /* Increased size so they aren't tiny */
    width: auto;  /* Maintains aspect ratio */
    max-width: 180px; /* Prevents extremely wide logos from dominating */
    object-fit: contain;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.logo-item img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Moves exactly half way (since we duplicated the list) */
}

/* Narrative Section (The Shift) */
.page-section-v2 {
    background-color: var(--cc-navy);
    color: var(--cc-white);
    padding: 80px 0;
}

[cite_start]/* Framework Cards - VISUAL UPGRADE [cite: 133-149] */
/* Framework Cards - VISUAL UPGRADE */
.framework-card {
    display: block; 
    background: var(--cc-white);
    padding: 30px;
    border-radius: 4px;
    border-top: 4px solid var(--cc-navy);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
    position: relative;
    height: 100%;
    text-decoration: none; 
    color: inherit; 
}

.framework-card h4 {
    color: var(--cc-navy);
    margin-bottom: 10px;
    font-weight: 700;
}

.framework-card p {
    color: var(--cc-text-medium);
    font-size: 0.95rem;
}


[cite_start]/* Engagement/Offer Suite - VISUAL UPGRADE [cite: 434-457] */
.audience-section { padding: 80px 0; background-color: var(--cc-offwhite); }
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

/* Base Card Style */
.audience-card {
    background: var(--cc-white);
    padding: 40px 30px;
    border: 1px solid var(--cc-border);
    border-radius: 4px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Feature the First Card (Scan) */
.audience-card:first-child {
    background-color: var(--cc-navy);
    border-color: var(--cc-navy);
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(2, 4, 45, 0.15);
    z-index: 2;
}
/* Adjust colors inside the Featured Card */
.audience-card:first-child h3 { color: var(--cc-white) !important; }
.audience-card:first-child p { color: rgba(255,255,255,0.8) !important; }
.audience-card:first-child .sub { color: var(--cc-gold) !important; opacity: 1; }
.audience-card:first-child .cta-button {
    background-color: var(--cc-gold);
    color: var(--cc-navy) !important;
    font-weight: 700;
}

/* Hover effects for secondary cards */
.audience-card:not(:first-child):hover {
    border-color: var(--cc-gold);
    transform: translateY(-5px);
}

.audience-card h3 { color: var(--cc-navy); margin-bottom: 5px; }
.audience-card p.sub {
    color: var(--cc-gold);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Carousels */
.carousel-container { overflow-x: auto; padding-bottom: 20px; }
.carousel-track { display: flex; gap: 30px; }
.article-card {
    min-width: 300px;
    background: var(--cc-white);
    border: 1px solid var(--cc-border);
    border-radius: 4px;
    overflow: hidden;
}
.article-content { padding: 20px; }
.article-card img { height: 200px; width: 100%; object-fit: cover; }

/* Video Carousel Specifics */
.video-carousel-wrapper { position: relative; max-width: 1000px; margin: 0 auto; overflow: hidden; }
.video-carousel-track { display: flex; transition: transform 0.5s ease; }
.video-slide { min-width: 100%; padding: 0 10px; }
.video-slide iframe { width: 100%; height: 400px; border-radius: 8px; }
.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none; width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; z-index: 10;
    color: var(--cc-navy); font-weight: bold;
}
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

/* -------------------------------------------------------------------------
    6. FOOTER
    ------------------------------------------------------------------------- */
.site-footer-enhanced {
    background-color: var(--cc-charcoal);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 20px;
    border-top: 4px solid var(--cc-gold);
}

.footer-container-enhanced {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top-enhanced {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-column-enhanced { flex: 1; min-width: 200px; }

.footer-heading-enhanced {
    color: var(--cc-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.footer-links-list-enhanced { list-style: none; }
.footer-links-list-enhanced li { margin-bottom: 10px; }
.footer-links-list-enhanced a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-links-list-enhanced a:hover { color: var(--cc-gold); }

.footer-bottom-enhanced {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
   SPLIT FEATURE SECTION (50/50 Layout)
   ------------------------------------------------------------------------- */
.split-feature-section {
    display: flex;
    min-height: 650px; /* Gives the detailed image room to breathe */
    background-color: var(--cc-navy);
    overflow: hidden;
    position: relative;
}

/* Left Side: Text */
.split-content-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Pushes text towards the center line */
    padding: 80px 60px;
    z-index: 2;
}

.split-text-wrapper {
    max-width: 600px; /* Prevents text from stretching too wide */
    margin-right: 40px; /* Gap between text and image */
}

/* Typography Enhancements for this section */
.split-heading {
    color: var(--cc-white);
    font-size: clamp(2rem, 3.5vw, 3rem); /* Responsive scaling */
    margin-bottom: 30px;
    line-height: 1.1;
}

.split-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 25px;
    font-weight: 300;
}

.split-description strong {
    color: var(--cc-gold);
    font-weight: 600;
}

/* Right Side: Image Background */
.split-image-side {
    flex: 1;
    background-image: url('../images/flexible-os4.png'); /* Your detailed diagram */
    background-size: cover; /* Ensures image fills the box without stretching */
    background-position: center left; /* Focuses on the center-left of the image */
    background-repeat: no-repeat;
    position: relative;
    min-height: 400px;
}

/* Add a subtle inner shadow to blend image with navy background on the left edge */
.split-image-side::after {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 150px;
    background: linear-gradient(to right, var(--cc-navy), transparent);
    pointer-events: none;
}

/* -------------------------------------------------------------------------
   NEW SECTION: Asset Evolution (Solutions Page Only)
   ------------------------------------------------------------------------- */

.asset-evolution-section {
    background-color: var(--cc-navy);
    padding: 100px 0;
    color: var(--cc-white);
}

.evolution-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Give more space to the wide diagram */
    gap: 60px;
    align-items: center;
}

.evolution-text {
    max-width: 550px;
}

.evolution-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.evolution-description strong {
    color: var(--cc-gold);
    font-weight: 600;
}

/* The Diagram Card */
.evolution-image-wrapper {
    background-color: var(--cc-white);
    padding: 30px; /* Creates a nice white frame around the diagram */
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3); /* Lifts it off the navy background */
}

.evolution-diagram {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive: Stack vertically on mobile */
@media (max-width: 991px) {
    .evolution-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .evolution-text {
        max-width: 100%;
        text-align: center;
    }
    .evolution-text h2 {
        text-align: center !important;
    }
    .evolution-image-wrapper {
        padding: 15px;
    }
}

/* Responsive: Stack on Mobile */
@media (max-width: 991px) {
    .split-feature-section {
        flex-direction: column;
    }
    .split-content-side {
        justify-content: center;
        padding: 60px 20px;
    }
    .split-text-wrapper {
        margin-right: 0;
        text-align: center;
    }
    .split-image-side {
        min-height: 400px; /* Keep image visible on mobile */
        order: -1; /* Puts image ON TOP of text on mobile */
        width: 100%;
    }
    .split-image-side::after {
        width: 100%;
        height: 100px;
        background: linear-gradient(to top, var(--cc-navy), transparent);
        bottom: 0; top: auto;
    }
}

/* Helper for SEO text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* R&D Internal Layout */
.rd-project-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

.rd-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
    background: #f9f9f9; /* Subtle contrast from the white card */
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.rd-item:hover {
    border-color: var(--cc-gold);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.rd-icon-small {
    width: 40px; 
    height: 40px; 
    min-width: 40px;
    margin-right: 15px;
    margin-top: 5px;
}

.rd-content h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--cc-navy);
}

.rd-content p {
    font-size: 0.85rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Top Utility Bar - Contact Info Header */
.top-utility-bar {
    background: #f4f5f7;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.78rem;
    color: #6b7280;
}
.top-utility-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    line-height: 1;
}
.top-utility-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 600;
}
.top-utility-link:hover {
    color: #111827;
}
.top-utility-sep {
    color: #c0c4cc;
}
@media (max-width: 768px) {
    .top-utility-bar {
        font-size: 0.85rem;
    }
    .top-utility-inner {
        justify-content: center;
        gap: 12px;
        padding: 8px 16px;
    }
    .top-utility-link:not([href*="tel"]),
    .top-utility-sep:not(:last-of-type) {
        display: none;
    }
    .top-utility-link[href*="tel"]::before {
        content: "📞 ";
    }
}

.rd-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cc-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.rd-link:hover { text-decoration: underline; }