/* Modern Design System - Builder Архитектура Бизнеса */

/* ============================================
   CSS Variables (Design Tokens)
   ============================================ */
:root {
    /* Primary Colors - Green like OrderCom */
    --primary: #22c55e;
    --primary-hover: #16a34a;
    --primary-light: #dcfce7;
    --primary-dark: #166534;

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic Colors */
    --success: #22c55e;
    --success-light: #dcfce7;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Spacing */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-800);
    background-color: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

.text-muted {
    color: var(--gray-500) !important;
}

/* ============================================
   Navbar - Clean Modern Style
   ============================================ */
.navbar {
    background-color: #fff !important;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xs);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-900) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    color: var(--primary);
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: var(--gray-600) !important;
    font-weight: 500;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

/* Centered nav menu with proper spacing */
.nav-menu-centered {
    gap: 0.5rem;
}

.nav-menu-centered .nav-item {
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    color: var(--gray-900) !important;
    background-color: var(--gray-100);
}

.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background-color: var(--primary-light);
}

/* User dropdown */
.user-dropdown {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.user-dropdown:hover {
    background-color: var(--gray-100);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--gray-100);
}

/* ============================================
   Cards - Modern Elevated Style
   ============================================ */
.card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--gray-100);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--gray-100);
    padding: 1rem 1.25rem;
}

/* Stats Cards */
.stat-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-normal);
}

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

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card-icon.primary {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-card-icon.info {
    background: var(--info-light);
    color: var(--info);
}

.stat-card-icon.warning {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-card-icon.success {
    background: var(--success-light);
    color: var(--success);
}

.stat-card-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--gray-900);
}

.stat-card-content p {
    margin: 0;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Highlight Card (green background like in OrderCom) */
.stat-card.highlight {
    background: var(--primary-light);
    border-color: var(--primary);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    font-weight: 500;
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-light {
    background: #fff;
    border-color: var(--gray-300);
    color: var(--gray-700);
}

.btn-light:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
}

.btn-success:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* ============================================
   Forms
   ============================================ */
.form-control, .form-select {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* Search Input */
.search-input {
    position: relative;
}

.search-input input {
    padding-left: 2.75rem;
    background: #fff;
}

.search-input i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

/* ============================================
   Tables
   ============================================ */
.table {
    margin: 0;
}

.table thead th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.table-responsive {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
}

/* ============================================
   Badges
   ============================================ */
.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

.badge.bg-success {
    background: var(--success-light) !important;
    color: var(--success) !important;
}

.badge.bg-warning {
    background: var(--warning-light) !important;
    color: #b45309 !important;
}

.badge.bg-primary {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
}

.badge.bg-secondary {
    background: var(--gray-100) !important;
    color: var(--gray-600) !important;
}

.badge.bg-info {
    background: var(--info-light) !important;
    color: var(--info) !important;
}

.badge.bg-danger {
    background: var(--danger-light) !important;
    color: var(--danger) !important;
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    border-radius: var(--radius-lg);
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: var(--success-light);
    color: var(--primary-dark);
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
}

.alert-danger {
    background: var(--danger-light);
    color: #991b1b;
}

.alert-info {
    background: var(--info-light);
    color: #1e40af;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: #fff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: 1.25rem;
    color: var(--gray-300);
    max-width: 500px;
}

.hero .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.hero .btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Features Section
   ============================================ */
.feature-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    height: 100%;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin: 0;
}

/* ============================================
   Methodology Cards
   ============================================ */
.methodology-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.methodology-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.methodology-card-body {
    padding: 1.5rem;
    flex: 1;
}

.methodology-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.methodology-card p {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin: 0;
}

.methodology-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 3rem 0 1.5rem;
}

footer h5, footer h6 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--primary) !important;
}

footer .social-links {
    display: flex;
    gap: 1rem;
}

footer .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

footer .social-links a:hover {
    background: var(--primary);
    color: #fff !important;
}

/* ============================================
   Content Display
   ============================================ */
.content-block {
    padding: 1.5rem 0;
}

.content-block .content-text {
    line-height: 1.8;
    color: var(--gray-700);
}

.content-block .content-text p {
    margin-bottom: 1rem;
}

.content-block .content-text ul,
.content-block .content-text ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Block visibility indicator */
.block-restricted {
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
    background: var(--primary-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.5rem;
    margin: 1rem 0;
}

/* ============================================
   Page Headers
   ============================================ */
.page-header {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.75rem;
    margin: 0;
}

.page-header .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
}

.page-header .breadcrumb-item a {
    color: var(--gray-500);
    text-decoration: none;
}

.page-header .breadcrumb-item a:hover {
    color: var(--primary);
}

.page-header .breadcrumb-item.active {
    color: var(--gray-700);
}

/* ============================================
   Auth Pages
   ============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
}

.auth-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
}

.auth-card .logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card .logo i {
    font-size: 3rem;
    color: var(--primary);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

/* ============================================
   Utility Classes
   ============================================ */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.section-subtitle {
    color: var(--gray-500);
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.divider {
    height: 1px;
    background: var(--gray-200);
    margin: 2rem 0;
}

.link-primary {
    color: var(--primary) !important;
}

.link-primary:hover {
    color: var(--primary-hover) !important;
}

/* ============================================
   Responsive
   ============================================ */

/* Large screens */
@media (max-width: 992px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
    }

    .nav-menu-centered {
        gap: 0.25rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .stat-card-content h3 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    /* Cases page responsiveness */
    .cases-hero h1 {
        font-size: 1.75rem;
    }

    .case-card-image {
        height: 150px;
    }

    /* About page responsiveness */
    .about-hero h1 {
        font-size: 1.75rem;
    }

    .competency-card {
        padding: 1.5rem;
    }

    /* Contact page responsiveness */
    .contacts-hero h1 {
        font-size: 1.75rem;
    }

    .contact-card {
        padding: 1.25rem;
    }

    /* Profile responsiveness */
    .profile-header {
        padding: 1.5rem;
    }

    .profile-avatar {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    /* Footer responsiveness */
    footer {
        padding: 2rem 0 1rem;
    }

    footer h6 {
        margin-top: 1rem;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    /* Navigation */
    .navbar-brand {
        gap: 0.5rem;
    }

    .navbar-brand i {
        font-size: 1.5rem;
    }

    .brand-main {
        font-size: 1rem;
    }

    .brand-sub {
        font-size: 0.625rem;
    }

    /* Hero sections */
    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .cases-hero,
    .contacts-hero,
    .about-hero {
        padding: 2rem 0;
    }

    .cases-hero h1,
    .contacts-hero h1,
    .about-hero h1 {
        font-size: 1.5rem;
    }

    /* Cards */
    .case-card-title {
        font-size: 1rem;
    }

    .case-card-text {
        font-size: 0.875rem;
    }

    .methodology-card-body {
        padding: 1rem;
    }

    /* CTA section */
    .cta-section {
        padding: 3rem 0;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section .btn-lg {
        width: 100%;
    }

    /* Target market list */
    .target-item {
        font-size: 1rem;
        padding: 0.75rem 0;
    }

    /* Service cards */
    .service-card {
        padding: 1.5rem;
    }

    /* Experience card */
    .experience-card {
        padding: 1.5rem;
    }

    /* User dropdown */
    .user-dropdown span {
        display: none;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* Stagger animation for cards */
.row > [class*="col"]:nth-child(1) .animate-fade-in-up { animation-delay: 0.1s; }
.row > [class*="col"]:nth-child(2) .animate-fade-in-up { animation-delay: 0.2s; }
.row > [class*="col"]:nth-child(3) .animate-fade-in-up { animation-delay: 0.3s; }
.row > [class*="col"]:nth-child(4) .animate-fade-in-up { animation-delay: 0.4s; }

/* Loading states */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   Hero Stats (Homepage)
   ============================================ */
.hero-stats {
    position: relative;
    z-index: 1;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.hero-stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: var(--gray-300);
    line-height: 1.2;
}

/* ============================================
   Problem Cards (Homepage)
   ============================================ */
.problem-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
    transition: all var(--transition-normal);
}

.problem-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.problem-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--danger-light);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.problem-card h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: var(--gray-900);
}

.problem-card p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* ============================================
   Trust Section (Homepage)
   ============================================ */
.trust-logo {
    padding: 1rem;
    transition: all var(--transition-normal);
}

.trust-logo:hover {
    transform: scale(1.05);
}

.trust-logo i {
    transition: color var(--transition-normal);
}

.trust-logo:hover i {
    color: var(--primary) !important;
}

/* ============================================
   Case Cards
   ============================================ */
.case-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.case-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

.case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.case-card:hover .case-card-image img {
    transform: scale(1.05);
}

.case-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--gray-100) 100%);
}

.case-card-placeholder i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.5;
}

.case-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
    line-height: 1.4;
}

.case-card-text {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    flex: 1;
}

.case-card-results {
    padding-top: 0.75rem;
    border-top: 1px dashed var(--gray-200);
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
}

.case-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.case-card-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    transition: color var(--transition-fast);
}

.case-card:hover .case-card-link {
    color: var(--primary-hover);
}

/* Badge improvements */
.bg-primary-subtle {
    background: var(--primary-light) !important;
}

.bg-secondary-subtle {
    background: var(--gray-100) !important;
}

.case-results {
    padding-top: 0.75rem;
    border-top: 1px dashed var(--gray-200);
}

/* ============================================
   Case Detail Page
   ============================================ */
.case-hero {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: #fff;
    padding: 3rem 0;
}

.case-hero h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.case-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.case-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-300);
    font-size: 0.9375rem;
}

.case-meta-item i {
    color: var(--primary);
}

.results-card {
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.results-card h3 {
    color: var(--primary-dark);
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-card p {
    color: var(--gray-800);
    margin: 0;
    font-size: 1.125rem;
    font-weight: 500;
}

/* Case content styling */
.case-content {
    line-height: 1.8;
}

.case-content h2 {
    font-size: 1.375rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.case-content h3 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

.case-content p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.case-content ul,
.case-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--gray-700);
}

.case-content li {
    margin-bottom: 0.5rem;
}

.case-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--gray-600);
}

/* ============================================
   Case List Page
   ============================================ */
.cases-hero {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: #fff;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.cases-hero h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cases-hero p {
    color: var(--gray-400);
    margin: 0;
}

/* ============================================
   Brand Logo Layout
   ============================================ */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.navbar-brand i {
    color: var(--primary);
    font-size: 2rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-main {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.brand-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-500);
    letter-spacing: 0.5px;
}

/* ============================================
   Breadcrumbs - Modern Style
   ============================================ */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumb-item {
    color: var(--gray-500);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--gray-400);
    padding: 0 0.5rem;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--gray-700);
    font-weight: 500;
}

/* Page breadcrumb wrapper */
.page-breadcrumb {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
    background: #fff;
    margin-bottom: 1.5rem;
}

/* ============================================
   Links in Content - Consistent Style
   ============================================ */
.case-content a,
.methodology-content a,
.content-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.case-content a:hover,
.methodology-content a:hover,
.content-text a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ============================================
   Profile Page
   ============================================ */
.profile-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.profile-header {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    padding: 2.5rem 2rem;
    color: #fff;
    text-align: center;
    position: relative;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    opacity: 0.1;
    clip-path: polygon(0 70%, 100% 50%, 100% 100%, 0% 100%);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
    border: 4px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.profile-role {
    font-size: 0.875rem;
    color: var(--primary);
    background: rgba(34, 197, 94, 0.2);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-md);
    display: inline-block;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.profile-body {
    padding: 2rem;
}

.profile-section {
    margin-bottom: 2rem;
}

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

.profile-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-info-row {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
    align-items: center;
}

.profile-info-row:last-child {
    border-bottom: none;
}

.profile-info-label {
    width: 140px;
    font-weight: 500;
    color: var(--gray-500);
    flex-shrink: 0;
    font-size: 0.9375rem;
}

.profile-info-value {
    color: var(--gray-900);
    font-weight: 500;
    font-size: 0.9375rem;
}

@media (max-width: 768px) {
    .profile-header {
        padding: 2rem 1.5rem;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .profile-name {
        font-size: 1.25rem;
    }

    .profile-body {
        padding: 1.5rem;
    }

    .profile-info-row {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    .profile-info-label {
        width: 100%;
    }
}

/* ============================================
   Contacts Page
   ============================================ */
.contacts-hero {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: #fff;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.contacts-hero h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contacts-hero p {
    color: var(--gray-400);
    margin: 0;
}

.contact-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: 100%;
    transition: all var(--transition-normal);
}

.contact-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.contact-card p {
    margin: 0;
    color: var(--gray-600);
}

.contact-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ============================================
   About Page
   ============================================ */
.about-hero {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: #fff;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.1;
}

.about-hero h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.about-hero .lead {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
}

.about-hero .hero-mission {
    color: var(--gray-300);
    font-size: 1.0625rem;
    line-height: 1.7;
    max-width: 500px;
    margin-top: 1rem;
}

.about-hero .breadcrumb-item a {
    color: var(--gray-400);
}

.about-hero .breadcrumb-item.active {
    color: var(--gray-300);
}

/* Expert Photo */
.expert-photo-wrapper {
    position: relative;
    display: inline-block;
}

.expert-photo {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 6px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.expert-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Expert Stats */
.expert-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

.hero-contacts .btn {
    margin-bottom: 0.5rem;
}

/* Target Market Section */
.target-market-list {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.target-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 1.0625rem;
    color: var(--gray-700);
}

.target-item:last-child {
    border-bottom: none;
}

.target-item i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Competency Cards */
.competency-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: all var(--transition-normal);
    text-align: center;
}

.competency-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.competency-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
}

.competency-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.competency-card p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* Service Cards */
.service-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: all var(--transition-normal);
    position: relative;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.service-card p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* Formats List */
.formats-list {
    margin-bottom: 2rem;
}

.format-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 1.0625rem;
    color: var(--gray-700);
}

.format-item:last-child {
    border-bottom: none;
}

.format-item i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Experience Card */
.experience-card {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    color: #fff;
}

.experience-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.experience-card h3 {
    color: #fff;
    font-size: 1.375rem;
    margin-bottom: 1rem;
}

.experience-card p {
    margin: 0;
    color: var(--gray-300);
    font-size: 1rem;
    line-height: 1.7;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 1.75rem;
    }

    .about-hero .hero-mission {
        font-size: 1rem;
    }

    .expert-photo {
        width: 200px;
        height: 200px;
    }

    .expert-stats {
        justify-content: space-between;
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* ============================================
   Contacts Page - Enhanced Styles
   ============================================ */
.contacts-hero {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: #fff;
    padding: 3rem 0;
}

.contacts-hero h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contacts-hero p {
    color: var(--gray-400);
    margin: 0;
}

/* Contact Info Block */
.contact-info-block {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    height: 100%;
}

.contact-info-block h3 {
    color: var(--gray-900);
    font-size: 1.25rem;
    font-weight: 600;
}

.contact-item-large {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.contact-item-large:last-of-type {
    border-bottom: none;
}

.contact-icon-large {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.6875rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    line-height: 1.2;
}

.contact-value {
    font-size: 0.9375rem;
    color: var(--gray-900);
    font-weight: 500;
    text-decoration: none;
    line-height: 1.3;
}

.contact-value:hover {
    color: var(--primary);
}

.contact-actions {
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

/* Map Container */
.map-container {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    height: 100%;
}

.map-container h3 {
    color: var(--gray-900);
    font-size: 1.25rem;
    font-weight: 600;
}

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-note {
    color: var(--gray-600);
    font-size: 0.9375rem;
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 0;
}

.map-note i {
    color: var(--primary);
}

@media (max-width: 991px) {
    .contact-info-block,
    .map-container {
        height: auto;
    }

    .map-wrapper iframe {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .contact-info-block {
        padding: 1.5rem;
    }

    .contact-icon-large {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .contact-value {
        font-size: 0.9375rem;
    }

    .map-container {
        padding: 1.5rem;
    }
}

/* ============================================
   Case Detail Page Styles
   ============================================ */
.methodology-link-row {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.methodology-link {
    color: var(--primary) !important;
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.methodology-link:hover {
    color: var(--primary-hover) !important;
    text-decoration: underline;
}

.case-section {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.case-section h2 {
    display: flex;
    align-items: center;
}

.case-content {
    color: var(--gray-700);
    line-height: 1.7;
}

.results-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.results-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 0, 0, 0.1);
    color: #fff;
}

.results-card-header i {
    font-size: 1.25rem;
}

.results-card-body {
    padding: 1.5rem;
    color: #fff;
    font-size: 1rem;
    line-height: 1.7;
}

/* CTA section in case detail */
.cta-section.rounded {
    padding: 2.5rem;
}
