/* ===== VENDOR MANAGEMENT CASE STUDY STYLES ===== */

/* Removed smooth scrolling behavior */







/* === RESET & VARIABLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove focus outlines for specific elements only */
.nav-link:focus,
.cta-link:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Remove button focus outline */
button:focus {
    outline: none !important;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    background: none;
    border: none;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--surface);
    z-index: 9999;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem 1rem 1.5rem;
    box-sizing: border-box;
    overflow-y: auto;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1003;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.mobile-menu.active {
    right: 0 !important;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.mobile-menu li {
    margin: 0;
    padding: 0;
}

.mobile-menu a {
    display: block;
    padding: 1.2rem 0;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--accent);
    padding-left: 0.5rem;
}

.mobile-menu li:last-child a {
    border-bottom: none;
    margin-top: 20px;
}

.mobile-cta-link {
    background: var(--accent);
    color: var(--surface) !important;
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1rem;
    text-align: center;
    display: block;
}

.mobile-cta-link:hover {
    background: var(--brand-primary);
    color: var(--surface) !important;
}

:root {
    color-scheme: light dark;
    --brand-accent: rgba(0, 163, 120, 0.133);
    --brand-accent-strong: rgba(0, 163, 120, 0.4);
    --brand-primary: #00a378;
    --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-surface: #ffffff;
    --bg-alt: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --background: var(--bg-primary);
    --surface: var(--bg-surface);
    --text-main: var(--text-primary);
    --accent: var(--brand-primary);
    --accent-hover: var(--brand-primary);
    --mclaren-orange: var(--brand-primary);
    --grid-line: rgba(0, 0, 0, 0.04);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --border-radius: 16px;
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* === GLOBAL STYLES === */
body {
    background: var(--background);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grid background pattern */
body::before {
    display: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.accent {
    color: var(--accent);
}

.highlight {
    color: var(--accent);
    font-weight: 600;
}

/* === HERO SECTION === */
.hero-section {
    padding: calc(var(--spacing-xl) + 80px) 0 var(--spacing-xl);
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* === AT A GLANCE SECTION === */
.at-glance-section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 2;
}

.glance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.glance-card {
    background: var(--bg-secondary);
    border: 2px solid var(--accent);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    text-align: center;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.glance-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.glance-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Results Overview Section */
.results-overview {
    text-align: center;
    margin: var(--spacing-xl) 0;
    position: relative;
    z-index: 2;
}

.results-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.result-item {
    text-align: center;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.metric-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: var(--spacing-sm);
    line-height: 1;
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.3;
    max-width: 200px;
}

/* === CLIENT SECTION === */
.client-section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 2;
}

.client-box {
    background: linear-gradient(135deg, var(--brand-accent) 0%, rgba(0, 163, 120, 0.05) 100%);
    border: 2px solid var(--brand-primary);
    border-radius: 2rem;
    box-shadow: var(--box-shadow);
    padding: var(--spacing-xl) var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.client-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    margin-top: var(--spacing-lg);
}

.client-details h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.client-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.client-tags {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.tag {
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.client-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.client-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 1.51 / 1;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    /* Debug: Add border to see if image container is visible */
    border: 2px solid var(--brand-primary);
    min-height: 200px;
    background: rgba(255, 106, 38, 0.1);
}

.client-confidentiality-note {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .client-confidentiality-note {
        font-size: 0.7rem;
        margin-top: 0.4rem;
        padding: 0 1rem;
    }
}

/* === CHALLENGE SECTION === */
.challenge-section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 2;
}



.challenge-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.challenge-point {
    background: rgba(220, 53, 69, 0.05);
    border-left: 4px solid #dc3545;
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.challenge-point h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.challenge-point p {
    color: var(--text-secondary);
    line-height: 1.6;
}



/* === SOLUTION SECTION === */
.solution-section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 2;
}

.solution-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.solution-step {
    background: rgba(40, 167, 69, 0.05);
    border-left: 4px solid #28a745;
    padding: 2rem;
    border-radius: 0 12px 12px 0;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}



.solution-step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.solution-step p {
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
}

/* === RESULTS SECTION === */
.results-section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 2;
}



.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.result-card {
    background: linear-gradient(135deg, var(--brand-accent) 0%, rgba(0, 163, 120, 0.05) 100%);
    border: 2px solid var(--brand-primary);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
}

.result-icon {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.2rem;
}

.result-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.result-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.bonus-insights {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.bonus-insights h3 {
    color: var(--accent);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
    font-weight: 600;
}

.bonus-insights p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== RESPONSIVE STYLES ===== */

/* === DESKTOP LARGE === */
@media (min-width: 1440px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
}

/* === TABLET === */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* TABLET: Same as desktop - 3 cards horizontally */
    .glance-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
    
    .glance-card {
        min-height: 280px;
        padding: 1.5rem;
    }
    
    .results-content {
        gap: var(--spacing-md);
    }
    
    .client-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .challenge-points {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .challenge-point {
        min-height: auto;
        padding: 1.5rem;
    }
    
    .solution-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .solution-step {
        padding: 1rem;
        min-height: auto;
    }
}

/* === TABLET === */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* TABLET: Same as desktop - 3 cards horizontally */
    .glance-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
    
    .glance-card {
        min-height: 280px;
        padding: 1.5rem;
    }
    
    .results-content {
        gap: var(--spacing-md);
    }
}

/* Mobile Navigation Responsive */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .nav-cta {
        display: none;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 280px;
        padding: 1.5rem 1rem 1rem 1rem;
    }

    .mobile-cta-link {
        padding: 1rem 1.2rem;
    }
}

/* === MOBILE === */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-section {
        padding: 100px 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* MOBILE: Single column stack for At a Glance */
    .glance-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-sm);
    }
    
    .glance-card {
        min-height: 220px;
        padding: var(--spacing-sm);
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .glance-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .glance-card p {
        font-size: 0.9rem;
    }
    
    /* MOBILE: Results horizontally under cards */
    .results-content {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
    
    .result-item {
        padding: var(--spacing-sm);
    }
    
    .metric-number {
        font-size: 2.2rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .metric-label {
        font-size: 1rem;
        max-width: 150px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .client-box {
        padding: var(--spacing-md);
        border-radius: 1.5rem;
    }
    
    .client-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .client-tags {
        justify-content: center;
    }
    
    .challenge-points {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .challenge-point {
        padding: var(--spacing-sm);
        min-height: auto;
    }
    
    .solution-steps {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .solution-step {
        padding: 1rem;
        min-height: auto;
    }
}

/* === SMALL MOBILE === */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .glance-card {
        min-height: 200px;
        padding: 1rem;
    }
    
    .results-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .result-item {
        padding: var(--spacing-sm);
    }
    
    .metric-number {
        font-size: 2rem;
    }
    
    .metric-label {
        font-size: 0.95rem;
        max-width: 200px;
    }
    
    .client-box {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
}
