/* Mitchell Technology Group - Main Stylesheet */

:root {
    --mtg-primary: #0d6efd;
    --mtg-secondary: #6c757d;
    --mtg-success: #198754;
    --mtg-info: #0dcaf0;
    --mtg-warning: #ffc107;
    --mtg-danger: #dc3545;
    --mtg-dark: #212529;
    --mtg-light: #f8f9fa;
    
    /* Light mode (default) */
    --mtg-body-bg: #ffffff;
    --mtg-body-color: #212529;
    --mtg-card-bg: #ffffff;
    --mtg-card-border: rgba(0, 0, 0, 0.125);
    --mtg-sidebar-bg: #ffffff;
    --mtg-sidebar-border: #e9ecef;
    --mtg-table-bg: #ffffff;
    --mtg-table-header-bg: #f8f9fa;
    --mtg-input-bg: #ffffff;
    --mtg-input-border: #ced4da;
    --mtg-text-muted: #6c757d;
    --mtg-border-color: #dee2e6;
    --mtg-hover-bg: #f8f9fa;
    --mtg-dropdown-bg: #ffffff;
    --mtg-dropdown-border: rgba(0, 0, 0, 0.15);
}

/* Dark mode */
[data-bs-theme="dark"] {
    --mtg-body-bg: #1a1d21;
    --mtg-body-color: #e9ecef;
    --mtg-card-bg: #212529;
    --mtg-card-border: rgba(255, 255, 255, 0.1);
    --mtg-sidebar-bg: #212529;
    --mtg-sidebar-border: #343a40;
    --mtg-table-bg: #212529;
    --mtg-table-header-bg: #2c3136;
    --mtg-input-bg: #2c3136;
    --mtg-input-border: #495057;
    --mtg-text-muted: #adb5bd;
    --mtg-border-color: #495057;
    --mtg-hover-bg: #2c3136;
    --mtg-dropdown-bg: #212529;
    --mtg-dropdown-border: rgba(255, 255, 255, 0.15);
    --mtg-light: #2c3136;
    --mtg-dark: #e9ecef;
}

/* Global styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--mtg-body-bg);
    color: var(--mtg-body-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

main {
    flex: 1;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--mtg-primary) 0%, #0056b3 100%);
    color: white;
    padding: 5rem 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.2s ease-in-out, background-color 0.3s ease;
    background-color: var(--mtg-card-bg);
    border: 1px solid var(--mtg-card-border);
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: var(--mtg-table-header-bg);
    border-bottom: 1px solid var(--mtg-card-border);
}

[data-bs-theme="dark"] .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
}

/* Services cards */
.service-card {
    text-align: center;
    padding: 2rem;
}

.service-card .bi {
    font-size: 3rem;
    color: var(--mtg-primary);
    margin-bottom: 1rem;
}

/* Dashboard stats */
.stat-card {
    border-left: 4px solid var(--mtg-primary);
}

.stat-card.success {
    border-left-color: var(--mtg-success);
}

.stat-card.warning {
    border-left-color: var(--mtg-warning);
}

.stat-card.danger {
    border-left-color: var(--mtg-danger);
}

.stat-card.info {
    border-left-color: var(--mtg-info);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mtg-dark);
}

.stat-card .stat-label {
    color: var(--mtg-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* Tables */
.table th {
    border-top: none;
    background-color: var(--mtg-light);
    font-weight: 600;
}

/* Status badges */
.badge-status {
    font-weight: 500;
    padding: 0.4em 0.8em;
}

/* Forms */
.form-label {
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--mtg-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
}

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

/* Sidebar (for dashboard) */
.sidebar {
    min-width: 250px;
    max-width: 250px;
    min-height: calc(100vh - 56px);
    background-color: var(--mtg-light);
    border-right: 1px solid #dee2e6;
}

.sidebar .nav-link {
    color: var(--mtg-dark);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin: 0.125rem 0.5rem;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
}

.sidebar .nav-link.active {
    background-color: var(--mtg-primary);
    color: white;
}

.sidebar .nav-link .bi {
    margin-right: 0.5rem;
}

/* HTMX loading indicator */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .sidebar {
        min-width: 100%;
        max-width: 100%;
        min-height: auto;
    }
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* Public Website Enhancements */

/* Icon boxes */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Service description formatting */
.service-description p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-description ul,
.service-description ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.service-description li {
    margin-bottom: 0.5rem;
}

/* Consultation form */
.consultation-form .form-check {
    margin-bottom: 0.5rem;
}

.consultation-form .form-check-input:checked {
    background-color: var(--mtg-primary);
    border-color: var(--mtg-primary);
}

/* Feature list styling */
.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Pricing display */
.pricing-highlight {
    background: linear-gradient(135deg, var(--mtg-primary) 0%, #0056b3 100%);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
}

/* Testimonial cards */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    line-height: 1;
    color: var(--mtg-primary);
    opacity: 0.2;
}

/* Navigation enhancements */
.navbar-dark .nav-link {
    opacity: 0.9;
    transition: opacity 0.2s;
}

.navbar-dark .nav-link:hover {
    opacity: 1;
}

/* Footer links */
footer a:hover {
    color: white !important;
}

/* Breadcrumb styling */
.breadcrumb-item a {
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Call to action sections */
.cta-section {
    background: linear-gradient(135deg, var(--mtg-primary) 0%, #0056b3 100%);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    margin-top: -0.5rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   DASHBOARD STYLES
   ===================================================== */

/* Dashboard Layout */
.dashboard-layout {
    background-color: #f8f9fa;
}

.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 56px);
}

.dashboard-main {
    flex: 1;
    padding: 1.5rem;
    overflow-x: hidden;
}

/* KPI Cards */
.kpi-card {
    border-radius: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

.kpi-card .kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.kpi-card .kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.kpi-card .kpi-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* KPI Card Variants */
.kpi-card.kpi-primary { border-left: 4px solid var(--mtg-primary); }
.kpi-card.kpi-success { border-left: 4px solid var(--mtg-success); }
.kpi-card.kpi-warning { border-left: 4px solid var(--mtg-warning); }
.kpi-card.kpi-danger { border-left: 4px solid var(--mtg-danger); }
.kpi-card.kpi-info { border-left: 4px solid var(--mtg-info); }

/* Sidebar Enhancement */
.sidebar {
    width: 250px;
    min-width: 250px;
    background-color: #fff;
    border-right: 1px solid #e9ecef;
    transition: all 0.3s;
}

.sidebar .nav-link {
    color: #495057;
    padding: 0.625rem 1rem;
    margin: 0.125rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.15s;
}

.sidebar .nav-link:hover {
    background-color: #f8f9fa;
    color: var(--mtg-primary);
}

.sidebar .nav-link.active {
    background-color: var(--mtg-primary);
    color: white;
}

.sidebar .nav-link .bi {
    width: 1.25rem;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.sidebar-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6c757d;
    padding: 0 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Dashboard Cards */
.card {
    border-radius: 0.75rem;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid #f0f0f0;
    padding: 1rem 1.25rem;
}

.card-header h5,
.card-header h6 {
    font-weight: 600;
}

/* Activity Feed */
.activity-feed .activity-item {
    position: relative;
}

.activity-feed .activity-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 2.5rem;
    bottom: 0;
    width: 2px;
    background-color: #e9ecef;
}

.activity-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* List Group Enhancements */
.list-group-item {
    border-color: #f0f0f0;
}

.list-group-item-action:hover {
    background-color: #f8f9fa;
}

/* Table Enhancements */
.table {
    margin-bottom: 0;
}

.table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    border-bottom-width: 1px;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Badge Enhancements */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Background Color Utilities */
.bg-success-subtle { background-color: rgba(25, 135, 84, 0.1) !important; }
.bg-warning-subtle { background-color: rgba(255, 193, 7, 0.15) !important; }
.bg-danger-subtle { background-color: rgba(220, 53, 69, 0.1) !important; }
.bg-info-subtle { background-color: rgba(13, 202, 240, 0.1) !important; }
.bg-primary-subtle { background-color: rgba(13, 110, 253, 0.1) !important; }
.bg-secondary-subtle { background-color: rgba(108, 117, 125, 0.1) !important; }

/* Avatar */
.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-md {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notification Dropdown */
.notification-dropdown {
    min-width: 320px;
    max-height: 400px;
    overflow-y: auto;
}

/* Dashboard Messages */
.dashboard-messages {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

.dashboard-messages .alert {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .dashboard-main {
        padding: 1rem;
    }
    
    .sidebar {
        position: fixed;
        left: -250px;
        top: 56px;
        height: calc(100vh - 56px);
        z-index: 1020;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .kpi-card .kpi-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .kpi-card .kpi-icon {
        display: none;
    }
    
    .dashboard-messages {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* Progress Bar Enhancements */
.progress {
    background-color: #e9ecef;
    border-radius: 0.5rem;
}

.progress-bar {
    border-radius: 0.5rem;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
}

.dropdown-item {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Widget Card Styling */
.card.h-100 {
    display: flex;
    flex-direction: column;
}

.card.h-100 .card-body {
    flex: 1;
}

/* Empty State Styling */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.empty-state .bi {
    font-size: 4rem;
    color: #dee2e6;
}

.empty-state h5 {
    margin-top: 1rem;
    color: #495057;
}

.empty-state p {
    color: #6c757d;
}

/* Public marketing pages */
:root {
    --mtg-deep: #0b1f3a;
    --mtg-deep-2: #12315b;
    --mtg-accent: #6fd3ff;
    --mtg-surface: #f4f8fc;
    --mtg-border-soft: rgba(11, 31, 58, 0.08);
    --mtg-shadow-soft: 0 18px 40px rgba(11, 31, 58, 0.08);
}

.eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.public-hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    background:
        radial-gradient(circle at top right, rgba(111, 211, 255, 0.18), transparent 26%),
        radial-gradient(circle at bottom left, rgba(29, 128, 255, 0.18), transparent 30%),
        linear-gradient(135deg, #07162b 0%, #0b1f3a 48%, #12315b 100%);
}

.public-hero::before,
.public-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
}

.public-hero::before {
    width: 18rem;
    height: 18rem;
    top: -4rem;
    right: -3rem;
    background: rgba(111, 211, 255, 0.12);
}

.public-hero::after {
    width: 14rem;
    height: 14rem;
    left: -3rem;
    bottom: -5rem;
    background: rgba(13, 110, 253, 0.16);
}

.public-hero .eyebrow-badge {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.public-hero-copy {
    position: relative;
    z-index: 1;
}

.public-hero-title {
    max-width: 12ch;
    line-height: 1.03;
    letter-spacing: -0.03em;
}

.public-hero .lead,
.public-hero .hero-trust-line {
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.82);
}

.hero-trust-line {
    font-size: 0.98rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.hero-metric {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-metric strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.hero-metric span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

.hero-showcase {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: rgba(9, 23, 42, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(4, 10, 22, 0.35);
}

.hero-showcase-window {
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #f9fbfd;
}

.hero-showcase-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.9rem 1.15rem;
    background: #edf4fb;
    border-bottom: 1px solid rgba(11, 31, 58, 0.08);
}

.hero-showcase-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: rgba(11, 31, 58, 0.22);
}

.hero-showcase-body {
    padding: 1.25rem;
}

.hero-showcase-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1rem;
}

.hero-showcase-panel {
    border-radius: 1rem;
    border: 1px solid var(--mtg-border-soft);
    background: #fff;
    padding: 1.1rem;
    box-shadow: var(--mtg-shadow-soft);
}

.hero-showcase-panel h3,
.hero-showcase-panel h4 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.showcase-kpi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.9rem;
    background: var(--mtg-surface);
    margin-bottom: 0.75rem;
}

.showcase-kpi:last-child,
.solution-list li:last-child,
.build-list li:last-child {
    margin-bottom: 0;
}

.showcase-kpi strong {
    color: var(--mtg-deep);
}

.showcase-kpi span,
.panel-note,
.public-section-subtitle,
.solution-list li,
.build-list li,
.problem-card p,
.about-copy p,
.contact-helper-copy,
.testimonial-card-public p,
.testimonial-meta,
.footer-note {
    color: #5d6b7d;
}

.panel-note {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.mini-stack {
    display: grid;
    gap: 1rem;
}

.status-chip,
.insight-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.status-chip {
    color: var(--mtg-deep-2);
    background: rgba(13, 110, 253, 0.08);
}

.insight-badge {
    color: #0b4f7a;
    background: rgba(111, 211, 255, 0.18);
}

.public-section-header {
    max-width: 46rem;
}

.public-section-label {
    color: var(--mtg-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
}

.public-section-title {
    color: var(--mtg-deep);
    letter-spacing: -0.03em;
}

.public-soft-section {
    background: linear-gradient(180deg, #f8fbfe 0%, #eef5fb 100%);
}

.trust-point-card,
.solution-card,
.problem-card,
.build-card,
.about-principle-card,
.contact-method-card,
.testimonial-card-public {
    height: 100%;
    padding: 1.75rem;
    border: 1px solid var(--mtg-border-soft);
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: var(--mtg-shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trust-point-card:hover,
.solution-card:hover,
.problem-card:hover,
.build-card:hover,
.about-principle-card:hover,
.contact-method-card:hover,
.testimonial-card-public:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 45px rgba(11, 31, 58, 0.12);
}

.trust-point-icon,
.solution-icon,
.problem-icon,
.build-icon,
.about-principle-icon,
.contact-method-icon {
    width: 3.4rem;
    height: 3.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    margin-bottom: 1.1rem;
    font-size: 1.2rem;
    color: var(--mtg-primary);
    background: rgba(13, 110, 253, 0.08);
}

.solution-card h3,
.problem-card h3,
.build-card h3,
.about-principle-card h3,
.contact-method-card h3,
.trust-point-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    color: var(--mtg-deep);
}

.solution-list,
.build-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.solution-list li,
.build-list li {
    position: relative;
    padding-left: 1.15rem;
    margin-bottom: 0.7rem;
}

.solution-list li::before,
.build-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--mtg-primary);
}

.service-featured-card {
    border: 1px solid var(--mtg-border-soft);
    border-radius: 1.1rem;
    box-shadow: var(--mtg-shadow-soft);
}

.service-featured-card .card-body {
    padding: 1.5rem;
}

.service-featured-card .service-icon {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--mtg-primary);
    background: rgba(13, 110, 253, 0.08);
    margin-bottom: 1rem;
}

.build-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quote-mark {
    color: rgba(13, 110, 253, 0.22);
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 0.9rem;
}

.testimonial-meta strong {
    display: block;
    color: var(--mtg-deep);
}

.public-final-cta {
    background:
        radial-gradient(circle at top right, rgba(111, 211, 255, 0.18), transparent 28%),
        linear-gradient(135deg, var(--mtg-deep) 0%, var(--mtg-deep-2) 100%);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 26px 60px rgba(11, 31, 58, 0.18);
}

.public-final-cta h2,
.public-final-cta p,
.public-final-cta .footer-note {
    color: #fff;
}

.public-final-cta p,
.public-final-cta .footer-note {
    color: rgba(255, 255, 255, 0.76);
}

.public-page-header {
    padding: 4.5rem 0 2rem;
    background: linear-gradient(180deg, #f8fbfe 0%, #eef5fb 100%);
}

.public-page-header h1 {
    color: var(--mtg-deep);
    letter-spacing: -0.03em;
}

.public-page-header .lead {
    color: #516070;
    max-width: 46rem;
}

.about-copy .lead,
.contact-helper-copy {
    color: #516070;
}

.about-highlight {
    padding: 1.25rem;
    border-left: 4px solid var(--mtg-primary);
    background: var(--mtg-surface);
    border-radius: 0 1rem 1rem 0;
}

.contact-form-card {
    border: 1px solid var(--mtg-border-soft);
    border-radius: 1.25rem;
    box-shadow: var(--mtg-shadow-soft);
}

.contact-method-card p:last-child,
.about-principle-card p:last-child,
.trust-point-card p:last-child,
.problem-card p:last-child,
.build-card p:last-child {
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .public-hero {
        padding: 4.75rem 0;
    }

    .hero-showcase-grid,
    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .public-final-cta {
        padding: 2.25rem;
    }
}

@media (max-width: 767.98px) {
    .public-hero-title {
        max-width: none;
    }

    .public-hero .btn-lg {
        width: 100%;
    }

    .trust-point-card,
    .solution-card,
    .problem-card,
    .build-card,
    .about-principle-card,
    .contact-method-card,
    .testimonial-card-public {
        padding: 1.4rem;
    }

    .public-page-header {
        padding-top: 3.25rem;
    }
}

/* ===================================
   Profile Page Styles
   =================================== */

.profile-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    font-size: 3rem;
}
