/* Unified Corporate Override Layer */

:root {
    --legacy-surface-a: #22334d;
    --legacy-surface-b: #1a2a43;
}

.page-header {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    padding-top: calc(var(--nav-height) + 2.8rem) !important;
    padding-bottom: 3rem !important;
    background:
        radial-gradient(920px 460px at 95% -10%, rgba(var(--theme-accent-rgb), 0.14), transparent 62%),
        linear-gradient(145deg, rgba(19, 32, 53, 0.96) 0%, rgba(17, 29, 47, 0.98) 100%) !important;
    border-bottom: 1px solid rgba(var(--theme-accent-rgb), 0.22);
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 14, 24, 0.12) 0%, rgba(8, 14, 24, 0.46) 100%);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(2.15rem, 3.7vw, 4rem);
    color: var(--text-primary) !important;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.page-header p {
    margin-top: 0.8rem;
    max-width: 820px;
    color: #dbe4f2 !important;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
}

section.section,
section[style*='padding: 80px'],
section[style*='padding: 60px'],
section[style*='padding: 40px'] {
    padding-top: clamp(4.2rem, 5.5vw, 7rem) !important;
    padding-bottom: clamp(4.2rem, 5.5vw, 7rem) !important;
}

section.section[style*='background'],
section[style*='background: linear-gradient'] {
    background: transparent !important;
}

.projects-hero,
.blog-hero {
    border-bottom: 1px solid rgba(var(--theme-accent-rgb), 0.22);
}

.projects-hero .hero-bg,
.blog-hero .hero-bg {
    filter: contrast(1.08) saturate(0.94) grayscale(0.36) !important;
}

.projects-hero .hero-overlay,
.blog-hero .hero-overlay,
.hero-overlay {
    background:
        linear-gradient(112deg, rgba(12, 22, 36, 0.86) 0%, rgba(13, 24, 40, 0.68) 46%, rgba(12, 22, 36, 0.84) 100%),
        linear-gradient(180deg, rgba(8, 15, 26, 0.52) 0%, rgba(8, 15, 26, 0.75) 100%) !important;
}

.glass-card,
.mv-card,
.timeline-content,
.stat-box,
.job-card,
.video-card,
.blog-card-v2,
.search-result-card,
.document-card,
.pricing-card,
.payment-card,
.feature-card,
.credit-card,
.faq-item,
.result-card,
.service-card,
.map-button,
.filter-select,
.form-input,
.project-table,
.card,
[class*='card'] {
    border-color: rgba(var(--theme-accent-rgb), 0.24) !important;
    background: linear-gradient(145deg, rgba(35, 52, 78, 0.82) 0%, rgba(24, 38, 59, 0.9) 100%) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24) !important;
}

.glass-card:hover,
.mv-card:hover,
.timeline-content:hover,
.job-card:hover,
.video-card:hover,
.blog-card-v2:hover,
.feature-card:hover,
.result-card:hover,
[class*='card']:hover {
    border-color: rgba(var(--theme-accent-rgb), 0.45) !important;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3) !important;
}

.filter-group label,
.section-tag,
.section-kicker,
.card-date,
.meta-label,
.text-gold,
.text-accent {
    color: var(--accent-primary) !important;
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='number'],
input[type='date'],
input[type='file'],
textarea,
select,
.form-control,
.form-input,
.filter-select {
    background: rgba(16, 28, 46, 0.78) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 12px !important;
}

input::placeholder,
textarea::placeholder {
    color: #93a7c1 !important;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus,
.form-input:focus,
.filter-select:focus {
    border-color: rgba(var(--theme-accent-rgb), 0.65) !important;
    box-shadow: 0 0 0 3px rgba(var(--theme-accent-rgb), 0.2) !important;
    outline: none !important;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(145deg, rgba(30, 47, 73, 0.84) 0%, rgba(21, 34, 54, 0.92) 100%) !important;
    border: 1px solid rgba(var(--theme-accent-rgb), 0.22);
    border-radius: 14px;
    overflow: hidden;
}

th,
td {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

th {
    color: #f0f4fb;
    background: rgba(10, 18, 30, 0.4) !important;
}

tbody tr:hover {
    background: rgba(var(--theme-accent-rgb), 0.08) !important;
}

[style*='text-shadow'] {
    text-shadow: 0 0 24px rgba(var(--theme-accent-rgb), 0.24) !important;
}

[style*='color: #C2A56A'],
[style*='color:#C2A56A'],
[style*='194, 165, 106'] {
    color: var(--accent-primary) !important;
}

[style*='background: #C2A56A'],
[style*='background:#C2A56A'] {
    background: linear-gradient(145deg, #d8bc84 0%, #c2a56a 53%, #a78952 100%) !important;
    color: #102035 !important;
}

[style*='border-color: #C2A56A'],
[style*='border-color:#C2A56A'],
[style*='border-color: rgba(194, 165, 106'] {
    border-color: rgba(var(--theme-accent-rgb), 0.56) !important;
}

@media (max-width: 1180px) {
    .page-header {
        min-height: 280px;
        padding-top: calc(var(--nav-height) + 1.8rem) !important;
    }

    .projects-hero .container > div,
    .blog-hero .container > div {
        grid-template-columns: 1fr !important;
        gap: 1.6rem !important;
    }
}

@media (max-width: 860px) {
    .page-header h1 {
        font-size: clamp(1.8rem, 9vw, 2.4rem);
    }

    section.section,
    section[style*='padding: 80px'],
    section[style*='padding: 60px'],
    section[style*='padding: 40px'] {
        padding-top: 3.2rem !important;
        padding-bottom: 3.2rem !important;
    }
}