/* ==========================================================================
   BrightVista Consultants - Premium Enterprise Design System
   Brand Colors: Red (#155EEF), White (#FFFFFF), Charcoal (#171717)
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFAFA;
    --bg-dark: #050A12;
    
    --text-primary: #171717; /* Charcoal */
    --text-secondary: #4B5563; /* Secondary Gray */
    --text-muted: #6B7280;
    
    --accent-primary: #155EEF; /* BrightVista Red */
    --accent-dark: #0B3B8F; /* Dark Red */
    
    --border-color: #E5E7EB; /* Light Gray Borders */
    
    /* Typography */
    --font-primary: 'Inter', 'Manrope', 'Plus Jakarta Sans', system-ui, sans-serif;
    
    /* Spacing & Layout - Normalized for compact feel */
    --container-max: 1320px;
    --container-padding: 20px;
    --section-padding-y: clamp(50px, 6vw, 70px);
    --section-padding-y-lg: clamp(60px, 8vw, 100px);
    
    /* Transitions */
    --transition-fast: 0.2s ease-out;
    --transition-normal: 0.3s ease-out;
}

/* ==========================================================================
   Base Reset & Typography
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(44px, 5vw, 72px); }
h2 { font-size: clamp(32px, 4vw, 50px); }
h3 { font-size: clamp(24px, 3vw, 30px); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    font-size: clamp(16px, 1.5vw, 18px);
    margin-bottom: 1.5rem;
}
.text-small {
    font-size: clamp(13px, 1vw, 15px);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--accent-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Layouts & Sections
   ========================================================================== */
.container {
    width: min(100% - 40px, var(--container-max));
    margin-inline: auto;
}

.section {
    padding: var(--section-padding-y) 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.section-lg {
    padding: var(--section-padding-y-lg) 0;
}

.section-bg-light { background-color: var(--bg-secondary); }
.section-bg-dark { 
    background-color: var(--text-primary); 
    color: #fff; 
}
.section-bg-dark h1, .section-bg-dark h2, .section-bg-dark h3 { color: #fff; }
.section-bg-dark p { color: #D1D5DB; }
.section-bg-dark .section-eyebrow { color: var(--accent-primary); }

.section-bg-red { 
    background-color: var(--accent-primary); 
    color: #fff; 
}
.section-bg-red h1, .section-bg-red h2, .section-bg-red h3 { color: #fff; }
.section-bg-red p { color: #EEF4FF; }

/* Editorial Elements */
.section-eyebrow {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: clamp(38px, 4vw, 58px);
    margin-bottom: 1.5rem;
    max-width: 800px;
    line-height: 1.15;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* Utility Classes */
.align-start { align-items: flex-start; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 4rem; }
.mt-4 { margin-top: 2rem; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 72px;
    background: rgba(5, 10, 18, 0.70);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar.scrolled {
    background: rgba(5, 10, 18, 0.95);
    height: 72px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: min(100% - 100px, var(--container-max));
}

.logo {
    font-size: clamp(24px, 2vw, 26px);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}
.navbar.scrolled .logo { color: #fff; }

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    height: 100%;
}

.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
}

.desktop-talk-btn {
    height: 48px;
    padding: 0 32px;
    font-size: 14px;
    line-height: 48px;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    height: 48px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.btn-arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
    display: inline-block;
}
.btn:hover .btn-arrow {
    transform: translateX(4px);
}
.btn:hover {
    transform: translateY(-2px);
}
.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: none;
}
.btn-primary:hover::after {
    animation: shimmer 0.6s ease-in-out;
}
@keyframes shimmer {
    100% { left: 200%; }
}
.btn-primary:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(21, 94, 239, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: rgba(255,255,255,0.7);
    color: #ffffff;
}
.btn-outline:hover {
    background-color: #ffffff;
    color: var(--text-primary);
}

.btn-outline-dark {
    background-color: transparent;
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}
.btn-outline-dark:hover {
    background-color: var(--accent-primary);
    color: #ffffff;
}

.btn-white {
    background-color: #ffffff;
    color: var(--accent-primary);
}
.btn-white:hover {
    background-color: var(--bg-secondary);
}

/* ==========================================================================
   Hero Slider (Premium 3-Slide Network)
   ========================================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh; /* Explicit height fixes absolute children and reaches viewport bottom */
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: -2%;
    background-size: cover;
    background-position: 58% center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 16s linear; /* Smooth Ken Burns */
}
.hero-slide.active .hero-bg-image {
    transform: scale(1.035);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(3,8,18,0.72) 0%,
        rgba(3,8,18,0.45) 35%,
        rgba(3,8,18,0.16) 65%,
        rgba(3,8,18,0.02) 100%
    );
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 5;
    padding-top: 80px; /* Accounts for fixed navbar */
}

.hero-content {
    width: 100%;
    max-width: 560px;
    position: relative;
    left: clamp(30px, 7vw, 110px);
}

.hero-eyebrow-container, .line-1, .line-2, .hero-main-desc, .hero-actions {
    opacity: 0;
    transform: translateY(20px);
    display: inline-block;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.hero-slide.active .hero-eyebrow-container {
    opacity: 1; transform: translateY(0); transition-delay: 0.2s;
}
.hero-slide.active .line-1 {
    opacity: 1; transform: translateY(0); transition-delay: 0.4s;
}
.hero-slide.active .line-2 {
    opacity: 1; transform: translateY(0); transition-delay: 0.55s;
}
.hero-slide.active .hero-main-desc {
    opacity: 1; transform: translateY(0); transition-delay: 0.7s;
}
.hero-slide.active .hero-actions {
    opacity: 1; transform: translateY(0); transition-delay: 0.85s;
}

/* Typography specifics for hero */
.hero-main-title {
    font-size: clamp(46px, 5vw, 68px);
    line-height: 1.02;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 800;
}
.hero-main-title .line-1 {
    color: #ffffff;
}
.hero-main-title .line-2 {
    color: var(--accent-primary);
}

/* Custom Eyebrow color for Slide 1, 2, and 3 */
.hero-slide:nth-child(1) .hero-eyebrow,
.hero-slide:nth-child(2) .hero-eyebrow,
.hero-slide:nth-child(3) .hero-eyebrow {
    color: #ffffff;
}
.hero-main-desc {
    font-size: clamp(16px, 1.2vw, 18px);
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 520px;
}
.hero-eyebrow {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.hero-eyebrow-line {
    width: 24px;
    height: 2px;
    background-color: var(--accent-primary);
    display: inline-block;
}
.hero-eyebrow-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Slider Controls */
.hero-controls {
    position: absolute;
    bottom: 40px;
    right: clamp(20px, 5vw, 40px);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.hero-indicators {
    display: flex;
    gap: 10px;
}
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}
.hero-dot.active {
    background-color: var(--accent-primary);
    transform: scale(1.2);
}
.hero-arrows {
    display: flex;
    gap: 8px;
}
.hero-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}
.hero-arrow:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: clamp(20px, 5vw, 40px);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.scroll-line {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: var(--accent-primary);
    animation: scrollLine 2s infinite ease-in-out;
}
@keyframes scrollLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Global Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-up.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: opacity 0.5s ease; }
    .hero-bg-image { transition: none !important; transform: scale(1) !important; }
    .hero-slide.active .hero-bg-image { transform: scale(1) !important; }
    .hero-eyebrow-container, .hero-main-title, .hero-main-desc, .hero-actions, .reveal-up {
        transition: none !important; transform: none !important; opacity: 1 !important;
    }
    .scroll-line::after, .btn:hover { animation: none; transform: none; }
}

/* ==========================================================================
   Services Grid (Premium 3-column)
   ========================================================================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.service-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: rgba(21, 94, 239, 0.2);
}
.service-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 24px;
    margin-bottom: 1.25rem;
}
.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.service-link {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.service-link::after {
    content: '→';
    transition: transform 0.2s ease;
}
.service-card:hover .service-link::after {
    transform: translateX(4px);
}

/* ==========================================================================
   Lists & Elements
   ========================================================================== */
.enterprise-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}
.enterprise-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text-secondary);
}
.enterprise-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
}

.testimonial-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.testimonial-card {
    padding: 2.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-primary);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.testimonial-quote {
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}
.testimonial-author {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    height: 48px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}
textarea.form-control {
    height: auto;
    min-height: 120px;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    background-color: var(--bg-primary);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #111315;
    color: #fff;
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
}
.footer h4 { color: #fff; font-size: 1.125rem; margin-bottom: 1.25rem; font-weight: 700; }
.footer a { color: #9CA3AF; display: block; margin-bottom: 0.75rem; font-size: 0.95rem; transition: color var(--transition-fast), padding-left var(--transition-fast); }
.footer a:hover { color: var(--accent-primary); padding-left: 5px; }
.footer-text { color: #9CA3AF; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 2rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #9CA3AF;
}

/* ==========================================================================
   Admin Overrides (Preserving existing logic)
   ========================================================================== */
.admin-layout { display: flex; min-height: 100vh; background: var(--bg-secondary); }
.admin-sidebar { width: 260px; background: var(--text-primary); color: #fff; padding: 2rem; }
.admin-sidebar .logo { color: #fff; }
.admin-main { flex: 1; padding: 2rem; }
.admin-nav a { display: block; padding: 0.75rem 1rem; color: #9CA3AF; font-weight: 500; margin-bottom: 0.5rem; text-transform: none; font-size: 0.95rem; letter-spacing: normal;}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-card { background: var(--bg-primary); border: 1px solid var(--border-color); padding: 1.5rem; border-radius: 8px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 1rem; border-bottom: 1px solid var(--border-color); text-align: left; font-size: 0.95rem; }
.admin-table th { font-weight: 600; color: var(--text-secondary); }
.badge-status { padding: 4px 10px; font-size: 0.75rem; font-weight: 700; display: inline-block; border-radius: 4px;}
.badge-active { background: #DCFCE7; color: #166534; }
.badge-inactive { background: #FEE2E2; color: #991B1B; }

/* ==========================================================================
   About Page Layout & Components
   ========================================================================== */
/* ==========================================================================
   About Page Redesign - Premium Components
   ========================================================================== */

/* 1. Premium Hero */
.about-hero-v2 {
    position: relative;
    width: 100%;
    height: 700px;
    max-height: 80vh;
    padding-top: 72px; /* Navbar offset */
    background: #F7F8FA;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.about-hero-v2 .grid-2 {
    grid-template-columns: 45% 50%;
    justify-content: space-between;
    align-items: center;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.hero-label-line {
    display: inline-block;
    height: 2px;
    background-color: var(--accent-primary);
    width: 0;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.reveal-active .hero-label-line {
    width: 40px;
}

.hero-title-v2 {
    font-size: clamp(44px, 4.5vw, 68px);
    line-height: 1.12;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-title-v2 span {
    color: var(--accent-primary);
}

.hero-desc-v2 {
    font-size: clamp(17px, 1.2vw, 19px);
    color: var(--text-secondary);
    max-width: 90%;
    line-height: 1.6;
}

.hero-image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}

.hero-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(0.96);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-active .hero-image-box img {
    transform: scale(1);
}

.hero-image-box:hover img {
    transform: scale(1.02);
    transition-duration: 0.6s;
}

/* 2. Who We Are (Editorial Split) */
.editorial-split {
    display: grid;
    grid-template-columns: 45% 50%;
    justify-content: space-between;
    align-items: center;
}

.who-we-are-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.who-we-are-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editorial-content {
    border-left: 3px solid var(--accent-primary);
    padding-left: 3rem;
}

.editorial-content h2 {
    font-size: clamp(40px, 4vw, 56px);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.editorial-content p {
    font-size: clamp(16px, 1.1vw, 18px);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.editorial-content p:last-child {
    margin-bottom: 0;
}

/* 3. Mission / Vision Cards */
.mv-card-v2 {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 3.5rem;
    border-radius: 12px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.mv-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mv-card-v2:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
}

.mv-card-v2:hover::before {
    opacity: 1;
}

.mv-card-v2 h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.mv-card-v2 p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* 4. Expertise Section (Two Panel Showcase) */
.expertise-showcase {
    display: grid;
    grid-template-columns: 40% 55%;
    justify-content: space-between;
    align-items: stretch;
    min-height: 500px;
}

.expertise-nav {
    display: flex;
    flex-direction: column;
}

.expertise-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.expertise-item:first-child {
    border-top: 1px solid var(--border-color);
}

.exp-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    width: 40px;
    transition: color 0.3s ease;
}

.exp-title {
    flex: 1;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    transition: all 0.3s ease;
}

.exp-arrow {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.expertise-item:hover .exp-num,
.expertise-item.active .exp-num {
    color: var(--accent-primary);
}

.expertise-item:hover .exp-title,
.expertise-item.active .exp-title {
    color: var(--accent-primary);
    transform: translateX(10px);
}

.expertise-item:hover .exp-arrow,
.expertise-item.active .exp-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent-primary);
}

.expertise-panels {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.expertise-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    flex-direction: column;
}

.expertise-panel.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.exp-panel-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.exp-panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exp-panel-desc {
    padding: 2.5rem;
    flex: 1;
    background: #fff;
}

.exp-panel-desc p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* 5. Methodology Timeline */
.timeline-wrapper {
    position: relative;
    padding-top: 2rem;
}

.timeline-line {
    position: absolute;
    top: 45px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 1.5s ease-out;
}

.reveal-active .timeline-line {
    width: 100%;
}

.timeline-line-bg {
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.1);
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.timeline-step {
    padding-top: 1.5rem;
}

.timeline-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--text-primary);
    border: 2px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.timeline-step:hover .timeline-num {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    transform: scale(1.05);
}

.timeline-step h4 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
}

.timeline-step p {
    font-size: 0.95rem;
    color: #9CA3AF;
}

/* 6. Premium Leadership Layout */
.leadership-premium {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    max-width: 1000px;
    margin: 0 auto;
}

.leadership-image-box {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.leadership-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.leadership-premium:hover .leadership-image-box img {
    transform: scale(1.03);
}

.leadership-details {
    padding: 3rem;
}

.leadership-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.leadership-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* CTA Height Constraint */
.cta-compact {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Base Reveal Animation System */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-active {
    opacity: 1;
    transform: translate(0, 0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.25s; }
.stagger-3 { transition-delay: 0.45s; }
.stagger-4 { transition-delay: 0.65s; }

/* ==========================================================================
   Contact Page Premium Redesign
   ========================================================================== */

/* 1. Contact Hero */
.contact-hero-compact {
    padding: 110px 0 35px; /* 72px navbar + 38px padding */
    background-color: var(--bg-light);
    text-align: center;
}

.contact-hero-title {
    font-size: clamp(42px, 4vw, 56px);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 1rem;
    max-width: 900px;
    margin-inline: auto;
}

.contact-hero-desc {
    font-size: clamp(16px, 1.8vw, 18px);
    color: var(--text-secondary);
    max-width: 700px;
    margin-inline: auto;
    line-height: 1.5;
}

/* 2. Contact Split Grid */
.contact-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 40px;
}

/* 3. Headquarters Card */
.hq-card-premium {
    background: var(--text-primary);
    color: #fff;
    padding: 24px;
    border-radius: 10px;
    border: 2px solid var(--accent-primary);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.hq-card-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.hq-card-premium h2 {
    font-size: 1.85rem;
    color: #fff;
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.hq-section-title {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

/* Interactive Links */
.interactive-contact-link {
    display: inline-block;
    color: #D1D5DB;
    font-size: 1.05rem;
    line-height: 1.4;
    text-decoration: none;
    transition: all 0.2s ease;
}

.interactive-contact-link:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

/* Office Image */
.office-image-box {
    margin-top: 1.5rem;
    height: 140px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.office-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hq-card-premium:hover .office-image-box img {
    transform: scale(1.03);
}

/* 4. Form Premium UI */
.form-card-premium {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 8px 25px rgba(0,0,0,0.02);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.form-card-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

.form-control-premium {
    width: 100%;
    height: 44px;
    padding: 0 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    background: #FAFAFB;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea.form-control-premium {
    height: auto;
    min-height: 100px;
    padding: 0.8rem 1rem;
    resize: vertical;
}

.form-control-premium:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(200, 32, 38, 0.1);
}

/* Submit Button */
.btn-submit-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 200px;
    height: 46px;
    padding: 0 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.btn-submit-compact .arrow-icon {
    transition: transform 0.3s ease;
}

.btn-submit-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 32, 38, 0.25);
}

.btn-submit-compact:hover .arrow-icon {
    transform: translateX(4px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-2, .about-hero .grid-2, .about-hero-v2 .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
    .editorial-split, .contact-split { grid-template-columns: 1fr; gap: 3rem; }
    .leadership-premium { grid-template-columns: 1fr; }
    .leadership-image-box { aspect-ratio: 16/9; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .expertise-showcase { grid-template-columns: 1fr; gap: 3rem; }
    .timeline-line, .timeline-line-bg { display: none; }
    
    /* Hero Slider Tablet */
    .hero-bg-image { background-position: 60% center; }
    .hero-content { max-width: 80%; }
    
    .mission-vision-box { 
        border-left: none; 
        border-top: 4px solid var(--accent-primary); 
        border-radius: 8px; 
        padding: 2.5rem; 
    }
}

@media (max-width: 768px) {
    .grid-3, .grid-4, .form-row, .service-grid { grid-template-columns: 1fr; }
    .team-grid.grid-4, .team-grid.grid-3, .team-grid.grid-2-center, .team-grid.grid-1-center { grid-template-columns: 1fr; }
    .timeline-grid { grid-template-columns: 1fr; }
    .huge-typography { font-size: clamp(40px, 10vw, 60px); }
    .mv-card-v2 { padding: 2rem; }
    .leadership-details { padding: 2rem; }
    .expertise-title { font-size: 1.5rem; }
    
    .about-hero, .about-hero-v2 { min-height: auto; padding-top: 100px; padding-bottom: 3rem; }
    .about-hero-image-wrapper, .hero-image-box { min-height: 300px; }
    .about-hero-content { padding-right: 0; margin-bottom: 2rem; }
    .navbar { padding: 1rem 0; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 10, 18, 0.98);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn { display: block; }
    .desktop-talk-btn { display: none; }
    
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; border-right: none; display: flex; overflow-x: auto; padding: 1rem; }
    .admin-nav { display: flex; }
    
    /* Hero Slider Mobile */
    .hero-slider { height: 70vh; min-height: 500px; }
    .hero-content { width: 100%; max-width: 100%; }
    .hero-bg-image { background-position: 70% center; }
    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(0,0,0,0.85) 0%,
            rgba(0,0,0,0.70) 40%,
            rgba(0,0,0,0.4) 100%
        );
    }
    .hero-controls { bottom: 20px; right: 20px; }
    .scroll-indicator { display: none; } /* Hide on mobile to save space */
}
