/* ============================================
   TRIBUS MP - Corporate Multi-Page Design System
   Target: Enterprise clients (Cemex, Scotiabank, etc.)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy: #0a1628;
    --navy-light: #132038;
    --red: #c4122f;
    --red-hover: #a60e27;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #adb5bd;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --gray-700: #343a40;
    --gray-800: #212529;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
.text-accent { color: var(--red); }

a { color: inherit; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,18,47,0.3); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-outline-dark { background: transparent; color: var(--navy); border: 2px solid var(--gray-300); }
.btn-outline-dark:hover { border-color: var(--navy); background: var(--gray-50); }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo { text-decoration: none; display: flex; flex-direction: column; }
.logo-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.logo-sub { font-size: 0.65rem; color: rgba(255,255,255,0.6); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-link { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.88rem; font-weight: 500; padding: 8px 14px; border-radius: var(--radius-sm); transition: var(--transition); }
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-link.active { color: var(--white); }
.nav-cta { background: var(--red); color: var(--white) !important; padding: 10px 24px; }
.nav-cta:hover { background: var(--red-hover) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: var(--transition); border-radius: 2px; }

/* --- Page Hero (internal pages) --- */
.page-hero {
    position: relative;
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1a2d4a 100%);
    overflow: hidden;
}
.page-hero .hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(196,18,47,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 40%);
}
.page-hero-content { position: relative; z-index: 1; max-width: 700px; }
.page-hero .hero-badge {
    display: inline-flex;
    padding: 8px 20px;
    background: rgba(196,18,47,0.15);
    border: 1px solid rgba(196,18,47,0.3);
    border-radius: 100px;
    color: #ff6b7d;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); color: var(--white); margin-bottom: 20px; letter-spacing: -0.03em; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.7); line-height: 1.7; max-width: 560px; }
.page-hero .breadcrumb { margin-bottom: 24px; font-size: 0.85rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; transition: var(--transition); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.3); margin: 0 8px; }

/* --- Home Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #1a2d4a 100%);
    overflow: hidden;
    padding-top: 80px;
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(196,18,47,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 40%);
}
.hero-bg-pattern::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -100px;
    transform: translateY(-50%) rotate(45deg);
    width: 500px;
    height: 500px;
    border: 2px solid rgba(255,255,255,0.04);
    border-radius: 20px;
}
.hero-bg-pattern::after {
    content: '';
    position: absolute;
    top: 45%;
    right: -50px;
    transform: translateY(-50%) rotate(45deg);
    width: 400px;
    height: 400px;
    border: 2px solid rgba(196,18,47,0.08);
    border-radius: 20px;
}
.hero-content { position: relative; z-index: 1; max-width: 750px; padding: 60px 0; }
.hero-badge { display: inline-flex; align-items: center; padding: 8px 20px; background: rgba(196,18,47,0.15); border: 1px solid rgba(196,18,47,0.3); border-radius: 100px; color: #ff6b7d; font-size: 0.85rem; font-weight: 500; margin-bottom: 32px; }
.hero-title { font-size: clamp(2.8rem, 6vw, 4.5rem); color: var(--white); margin-bottom: 24px; letter-spacing: -0.03em; }
.hero-accent { color: var(--red); }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.7); max-width: 560px; margin-bottom: 40px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 64px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); }
.stat { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-plus { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--red); line-height: 1; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 6px; font-weight: 500; }

/* --- Section Styles --- */
section { padding: 100px 0; }
.section-header { margin-bottom: 56px; }
.section-tag { display: inline-block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); margin-bottom: 16px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); letter-spacing: -0.02em; }
.section-subtitle { font-size: 1.05rem; color: var(--gray-500); max-width: 600px; margin-top: 16px; line-height: 1.7; }

/* --- Home Services Preview --- */
.home-services { background: var(--white); }
.home-services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.home-service-block {
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.home-service-block:hover { border-color: var(--red); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.home-service-number { font-family: var(--font-display); font-size: 5rem; font-weight: 900; color: var(--gray-100); position: absolute; top: -10px; right: 20px; line-height: 1; }
.home-service-block h3 { font-size: 1.6rem; color: var(--navy); margin-bottom: 12px; position: relative; }
.home-service-block p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 24px; position: relative; }
.home-service-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; position: relative; }
.home-service-list li { font-size: 0.82rem; color: var(--gray-500); background: var(--gray-50); padding: 6px 14px; border-radius: 100px; border: 1px solid var(--gray-200); }
.home-service-block .btn { position: relative; }

/* --- Home Clients Bar --- */
.home-clients { background: var(--gray-50); padding: 60px 0; }
.home-clients-inner { text-align: center; }
.home-clients-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-400); margin-bottom: 32px; display: block; }
.home-clients-grid { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.home-client-item { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--gray-400); transition: var(--transition); letter-spacing: -0.01em; }
.home-client-item:hover { color: var(--navy); }

/* --- About Cards --- */
.about { background: var(--gray-50); }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.about-card { background: var(--white); padding: 40px 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid var(--gray-100); }
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.about-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(196,18,47,0.08); border-radius: var(--radius-sm); margin-bottom: 24px; color: var(--red); }
.about-icon svg { width: 24px; height: 24px; }
.about-card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 12px; }
.about-card p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.7; }

/* --- Services Detail (internal pages) --- */
.services-detail { background: var(--white); }
.service-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.service-detail-card {
    background: var(--gray-50);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}
.service-detail-card:hover { border-color: var(--gray-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-detail-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: var(--navy); border-radius: var(--radius-sm); margin-bottom: 24px; color: var(--white); }
.service-detail-icon svg { width: 26px; height: 26px; }
.service-detail-card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 12px; }
.service-detail-card p { font-size: 0.92rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 20px; }
.service-detail-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.service-detail-list li { font-size: 0.88rem; color: var(--gray-600); padding-left: 16px; position: relative; line-height: 1.5; }
.service-detail-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: var(--red); border-radius: 50%; }

/* --- Process Section --- */
.process { background: var(--gray-50); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-step { text-align: center; padding: 32px 20px; counter-increment: step; }
.process-step::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-200);
    margin-bottom: 16px;
}
.process-step h4 { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.6; }

/* --- Cases / Portfolio --- */
.cases { background: var(--navy); }
.cases .section-tag { color: #ff6b7d; }
.cases .section-title { color: var(--white); }
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition);
}
.case-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); transform: translateY(-2px); }
.case-logo-hero { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.case-logo-hero svg { width: 100%; max-width: 220px; height: auto; }
.case-featured { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: linear-gradient(135deg, rgba(196,18,47,0.15), rgba(196,18,47,0.05)); border-color: rgba(196,18,47,0.2); }
.case-featured .case-logo-hero { margin-bottom: 0; padding-bottom: 0; border-bottom: none; display: flex; align-items: center; justify-content: center; min-height: 200px; }
.case-featured .case-logo-hero svg { max-width: 280px; }
.case-tag { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); background: rgba(196,18,47,0.15); padding: 4px 12px; border-radius: 100px; margin-bottom: 16px; }
.case-desc { color: rgba(255,255,255,0.6); font-size: 0.95rem; margin-bottom: 24px; line-height: 1.6; }
.case-metrics { display: flex; gap: 32px; margin-bottom: 20px; }
.metric { display: flex; flex-direction: column; }
.metric-value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--white); }
.metric-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 4px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case-tags span { font-size: 0.78rem; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); padding: 4px 12px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.08); }

/* --- Cases page on white bg --- */
.cases-white { background: var(--white); }
.cases-white .section-title { color: var(--navy); }
.cases-white .case-card { background: var(--navy); }
.cases-white .case-featured { background: linear-gradient(135deg, var(--navy), var(--navy-light)); }

/* --- Clients marquee --- */
.clients { background: var(--gray-50); overflow: hidden; }
.clients-marquee { margin: 48px -24px; overflow: hidden; mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%); }
.marquee-track { display: flex; gap: 32px; animation: marquee 40s linear infinite; width: max-content; }
.client-logo { flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 16px 32px; background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--gray-200); min-width: 180px; height: 64px; transition: var(--transition); font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--gray-400); }
.client-logo:hover { border-color: var(--navy); color: var(--navy); box-shadow: var(--shadow-sm); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Testimonials --- */
.testimonials { margin-top: 64px; display: flex; justify-content: center; }
.testimonial-card { max-width: 640px; text-align: center; padding: 48px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.testimonial-quote { font-family: var(--font-display); font-size: 5rem; color: var(--red); line-height: 0.5; margin-bottom: 16px; opacity: 0.3; }
.testimonial-text { font-size: 1.1rem; color: var(--gray-700); line-height: 1.7; font-style: italic; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testimonial-author strong { display: block; font-size: 0.95rem; color: var(--navy); }
.testimonial-author span { display: block; font-size: 0.85rem; color: var(--gray-500); }

/* --- CTA --- */
.cta-section { background: var(--red); padding: 100px 0; text-align: center; }
.cta-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 16px; }
.cta-text { font-size: 1.15rem; color: rgba(255,255,255,0.8); margin-bottom: 40px; }
.cta-section .btn-primary { background: var(--white); color: var(--red); }
.cta-section .btn-primary:hover { background: var(--gray-100); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* --- About Page Specific --- */
.about-story { background: var(--white); }
.about-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-story-text h2 { font-size: 2rem; color: var(--navy); margin-bottom: 20px; }
.about-story-text p { font-size: 1rem; color: var(--gray-600); line-height: 1.8; margin-bottom: 16px; }
.about-visual {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    color: var(--white);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.about-visual .big-year { font-family: var(--font-display); font-size: 6rem; font-weight: 900; line-height: 1; opacity: 0.15; }
.about-visual .motto { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-top: 16px; font-style: italic; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.value-item { text-align: center; padding: 32px 16px; }
.value-item h4 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.value-item p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.6; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.team-card { text-align: center; padding: 40px 24px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-100); transition: var(--transition); }
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--gray-100); margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.team-card h4 { font-size: 1.05rem; color: var(--navy); margin-bottom: 4px; }
.team-card span { font-size: 0.85rem; color: var(--gray-500); }

/* --- Contact --- */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-desc { font-size: 1.05rem; color: var(--gray-600); margin: 24px 0 40px; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item svg { width: 24px; height: 24px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-size: 0.95rem; color: var(--navy); }
.contact-item a { color: var(--gray-600); text-decoration: none; font-size: 0.9rem; }
.contact-item a:hover { color: var(--red); }
.contact-motto { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--navy); font-style: italic; padding: 24px; background: var(--gray-50); border-radius: var(--radius-md); border-left: 4px solid var(--red); }

/* --- Form --- */
.contact-form { background: var(--gray-50); padding: 48px; border-radius: var(--radius-lg); border: 1px solid var(--gray-100); }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; font-family: var(--font-primary); font-size: 0.95rem; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); background: var(--white); color: var(--gray-800); transition: var(--transition); outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,22,40,0.08); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }

/* --- Footer --- */
.footer { background: var(--navy); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .logo-text { font-size: 1.3rem; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; line-height: 1.7; margin-top: 16px; max-width: 320px; }
.footer-links h4 { color: var(--white); font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.88rem; transition: var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-social { display: flex; gap: 16px; margin-top: 20px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-social a:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.85rem; }

/* ============================================
   CASE STUDY DETAIL PAGES
   ============================================ */

/* --- CS Hero --- */
.cs-hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cs-hero-bg { position: absolute; inset: 0; z-index: 0; }
.cs-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.cs-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.7) 50%, transparent 100%); z-index: 1; }
.cs-hero-content { position: relative; z-index: 2; max-width: 720px; }
.cs-hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; background: rgba(196,18,47,0.15); border: 1px solid rgba(196,18,47,0.3); border-radius: 100px; color: #ff6b7d; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 24px; }
.cs-hero-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.cs-hero h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); color: var(--white); margin-bottom: 24px; letter-spacing: -0.03em; line-height: 1.1; }
.cs-hero h1 span { color: rgba(255,255,255,0.5); }
.cs-hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.7); max-width: 580px; line-height: 1.7; margin-bottom: 40px; }
.cs-hero-cta { display: inline-flex; align-items: center; gap: 8px; padding: 16px 36px; background: var(--white); color: var(--navy); font-weight: 700; font-family: var(--font-primary); border-radius: var(--radius-sm); text-decoration: none; font-size: 0.95rem; transition: var(--transition); box-shadow: var(--shadow-lg); }
.cs-hero-cta:hover { background: var(--gray-100); transform: translateY(-2px); box-shadow: var(--shadow-xl); }
.cs-scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,0.4); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; text-align: center; animation: cs-bounce 2s infinite; }
.cs-scroll-indicator::after { content: ''; display: block; width: 1px; height: 32px; background: rgba(255,255,255,0.3); margin: 8px auto 0; }
@keyframes cs-bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* --- CS Metrics --- */
.cs-metrics { position: relative; z-index: 3; margin-top: -60px; padding: 0 24px; }
.cs-metrics-card { max-width: 1200px; margin: 0 auto; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); padding: 48px 56px; border: 1px solid var(--gray-100); }
.cs-metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.cs-metric { text-align: center; padding: 0 16px; }
.cs-metric:not(:last-child) { border-right: 1px solid var(--gray-200); }
.cs-metric-value { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 8px; }
.cs-metric-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-400); margin-bottom: 4px; }
.cs-metric-desc { font-size: 0.92rem; color: var(--gray-600); font-weight: 500; }

/* --- CS Challenge --- */
.cs-challenge { background: var(--white); }
.cs-challenge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cs-challenge-label { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cs-challenge-label::before { content: ''; display: block; width: 32px; height: 2px; background: var(--red); }
.cs-challenge-label span { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); }
.cs-challenge h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--navy); margin-bottom: 24px; letter-spacing: -0.02em; }
.cs-challenge-text { display: flex; flex-direction: column; gap: 20px; }
.cs-challenge-text p { font-size: 1.05rem; color: var(--gray-600); line-height: 1.8; }
.cs-challenge-team { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.cs-avatar-stack { display: flex; }
.cs-avatar-stack span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gray-200); font-size: 0.75rem; font-weight: 700; color: var(--gray-500); border: 2px solid var(--white); margin-left: -8px; }
.cs-avatar-stack span:first-child { margin-left: 0; }
.cs-challenge-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); }
.cs-challenge-image img { width: 100%; height: auto; object-fit: cover; display: block; transition: transform 0.7s ease; }
.cs-challenge-image:hover img { transform: scale(1.03); }
.cs-challenge-image-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 24px; background: linear-gradient(to top, rgba(10,22,40,0.85), transparent); color: rgba(255,255,255,0.8); font-size: 0.82rem; font-family: monospace; }

/* --- CS Strategy --- */
.cs-strategy { background: var(--navy); position: relative; overflow: hidden; }
.cs-strategy-bg { position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: rgba(196,18,47,0.06); transform: skewX(-12deg); transform-origin: top right; }
.cs-strategy-header { text-align: center; max-width: 700px; margin: 0 auto 56px; position: relative; z-index: 1; }
.cs-strategy-header .section-tag { color: #ff6b7d; }
.cs-strategy-header h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 16px; letter-spacing: -0.02em; }
.cs-strategy-header p { font-size: 1.05rem; color: rgba(255,255,255,0.5); line-height: 1.7; }
.cs-strategy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; z-index: 1; }
.cs-strategy-step { background: var(--navy-light); padding: 40px 32px; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.08); transition: var(--transition); text-align: center; }
.cs-strategy-step:hover { border-color: rgba(196,18,47,0.4); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(196,18,47,0.15); }
.cs-step-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); border: 2px solid var(--red); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; box-shadow: 0 0 20px rgba(196,18,47,0.3); }
.cs-step-icon svg { width: 28px; height: 28px; color: var(--red); }
.cs-strategy-step h3 { font-size: 1.15rem; color: var(--white); margin-bottom: 12px; }
.cs-strategy-step p { font-size: 0.9rem; color: rgba(255,255,255,0.5); line-height: 1.7; }

/* --- CS Gallery --- */
.cs-gallery { background: var(--gray-50); }
.cs-gallery-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.cs-gallery-header p { max-width: 400px; text-align: right; color: var(--gray-500); font-size: 0.95rem; }
.cs-gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto; gap: 20px; }
.cs-gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background: var(--gray-200); min-height: 240px; }
.cs-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s ease; }
.cs-gallery-item:hover img { transform: scale(1.05); }
.cs-gallery-main { grid-column: span 8; grid-row: span 2; min-height: 480px; }
.cs-gallery-side { grid-column: span 4; grid-row: span 1; min-height: 230px; }
.cs-gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,40,0.85), transparent 60%); opacity: 0; transition: opacity 0.3s ease; display: flex; align-items: flex-end; padding: 24px; }
.cs-gallery-item:hover .cs-gallery-overlay { opacity: 1; }
.cs-gallery-overlay h4 { font-size: 1.2rem; color: var(--white); margin-bottom: 4px; }
.cs-gallery-overlay p { font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.cs-gallery-tag { position: absolute; bottom: 12px; left: 12px; background: rgba(255,255,255,0.9); padding: 4px 12px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; color: var(--navy); backdrop-filter: blur(4px); }

/* --- CS Testimonial --- */
.cs-testimonial { background: var(--white); border-top: 1px solid var(--gray-100); }
.cs-testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cs-testimonial-quote { position: relative; }
.cs-testimonial-mark { position: absolute; top: -40px; left: -20px; font-family: Georgia, serif; font-size: 8rem; color: var(--gray-100); line-height: 1; user-select: none; pointer-events: none; }
.cs-testimonial-quote blockquote { position: relative; z-index: 1; }
.cs-testimonial-quote blockquote p { font-family: var(--font-display); font-size: clamp(1.3rem, 2.5vw, 1.8rem); color: var(--gray-800); line-height: 1.5; font-style: italic; margin-bottom: 32px; }
.cs-testimonial-author { display: flex; align-items: center; gap: 16px; }
.cs-testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gray-200); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: var(--gray-500); overflow: hidden; }
.cs-testimonial-author strong { display: block; font-size: 0.95rem; color: var(--navy); }
.cs-testimonial-author span { display: block; font-size: 0.85rem; color: var(--red); font-weight: 600; }
.cs-testimonial-image { position: relative; }
.cs-testimonial-image-offset { position: absolute; inset: 0; background: var(--red); border-radius: var(--radius-lg); transform: translate(12px, 12px); z-index: 0; }
.cs-testimonial-image img, .cs-testimonial-image .cs-placeholder { position: relative; z-index: 1; border-radius: var(--radius-lg); width: 100%; height: 400px; object-fit: cover; box-shadow: var(--shadow-xl); filter: grayscale(100%); transition: filter 0.5s ease; }
.cs-testimonial-image:hover img, .cs-testimonial-image:hover .cs-placeholder { filter: grayscale(0%); }
.cs-testimonial-presenter { position: absolute; bottom: 24px; left: 24px; right: 24px; z-index: 2; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); padding: 16px 20px; border-radius: var(--radius-sm); border-left: 4px solid var(--red); }
.cs-testimonial-presenter small { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400); margin-bottom: 4px; }
.cs-testimonial-presenter strong { display: block; font-size: 0.92rem; color: var(--navy); }
.cs-testimonial-presenter span { font-size: 0.78rem; color: var(--gray-600); }

/* --- CS Placeholders --- */
.cs-placeholder { background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-100) 100%); display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.cs-placeholder-dark { background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%); color: rgba(255,255,255,0.2); }

/* --- CS Back Link --- */
.cs-back { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; font-weight: 500; margin-bottom: 24px; transition: var(--transition); }
.cs-back:hover { color: var(--white); }
.cs-back svg { width: 16px; height: 16px; }

/* --- Animations --- */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .home-services-grid { grid-template-columns: 1fr; }
    .service-detail-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .cs-challenge-grid { grid-template-columns: 1fr; gap: 40px; }
    .cs-strategy-grid { grid-template-columns: 1fr 1fr; }
    .cs-testimonial-grid { grid-template-columns: 1fr; gap: 40px; }
    .cs-gallery-main { grid-column: span 12; grid-row: span 1; min-height: 360px; }
    .cs-gallery-side { grid-column: span 6; }
}

@media (max-width: 768px) {
    section { padding: 80px 0; }
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 24px; gap: 4px; border-top: 1px solid rgba(255,255,255,0.1); }
    .nav-menu.active { display: flex; }
    .nav-toggle { display: flex; }
    .nav-link { width: 100%; padding: 12px 16px; }
    .nav-cta { text-align: center; margin-top: 8px; }
    .hero-content { padding: 40px 0; }
    .hero-stats { flex-direction: column; gap: 24px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-story-grid { grid-template-columns: 1fr; gap: 40px; }
    .cases-grid { grid-template-columns: 1fr; }
    .case-featured { grid-column: auto; grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-form { padding: 32px 24px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .team-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .cs-hero { min-height: 80vh; }
    .cs-metrics-card { padding: 32px 24px; }
    .cs-metrics-grid { grid-template-columns: 1fr; gap: 24px; }
    .cs-metric:not(:last-child) { border-right: none; border-bottom: 1px solid var(--gray-200); padding-bottom: 24px; }
    .cs-strategy-grid { grid-template-columns: 1fr; }
    .cs-gallery-main { grid-column: span 12; }
    .cs-gallery-side { grid-column: span 12; }
    .cs-gallery-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .cs-gallery-header p { text-align: left; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; text-align: center; }
    .case-metrics { flex-direction: column; gap: 16px; }
    .home-clients-grid { gap: 24px; }
}
