/* ==========================================================================
   Prondes CMS — Corporate Default Theme (V1.0.0)
   100% Dynamic CSS custom properties (--brand-primary, --brand-secondary, --brand-font)
   Zero CDN dependencies, accessible & responsive (320px - 1920px)
   ========================================================================== */

:root {
    --brand-primary: #0f4c81;
    --brand-secondary: #1e293b;
    --brand-font: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --corp-surface: #f8fafc;
    --corp-border: #e2e8f0;
    --corp-text: #0f172a;
    --corp-muted: #475569;
}

.corp-body {
    font-family: var(--brand-font);
    color: var(--corp-text);
    background-color: #ffffff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* Accessible skip link */
.corp-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1100;
    padding: 0.75rem 1.25rem;
    background: var(--brand-primary);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 0.5rem 0;
}

.corp-skip-link:focus {
    left: 0;
    outline: 3px solid #ffffff;
    outline-offset: -3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Top Utility Bar */
.corp-topbar {
    background-color: var(--brand-secondary);
    color: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.corp-topbar-link {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    transition: color 0.18s ease;
}

.corp-topbar-link:hover,
.corp-topbar-link:focus {
    color: #ffffff;
}

/* Sticky Corporate Header */
.corp-header {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--corp-border);
    transition: box-shadow 0.2s ease;
    z-index: 1030;
}

.corp-header.is-scrolled {
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

.corp-brand {
    min-width: 0;
    max-width: calc(100% - 64px);
}

.corp-brand-logo {
    max-height: 40px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.corp-brand-logo-only {
    max-height: 44px;
    max-width: 190px;
}

.corp-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.corp-brand-mark-light {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.corp-brand-name {
    color: var(--brand-secondary);
    font-size: 1.05rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.corp-nav-link {
    color: var(--corp-text) !important;
    font-weight: 500;
    font-size: 0.94rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.375rem;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.corp-nav-link:hover,
.corp-nav-link:focus,
.corp-nav-link.active {
    color: var(--brand-primary) !important;
    background-color: rgba(15, 76, 129, 0.06);
}

.corp-dropdown-menu {
    border-radius: 0.65rem;
    padding: 0.5rem;
    min-width: 12.5rem;
}

.corp-dropdown-menu .dropdown-item {
    border-radius: 0.4rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
}

.corp-dropdown-menu .dropdown-item:hover,
.corp-dropdown-menu .dropdown-item:focus {
    background-color: var(--corp-surface);
    color: var(--brand-primary);
}

/* Brand Buttons */
.corp-btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
    border-radius: 0.5rem;
    transition: filter 0.18s ease, transform 0.18s ease;
}

.corp-btn-primary:hover,
.corp-btn-primary:focus {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
    filter: brightness(0.92);
}

.corp-btn-outline-primary {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    background-color: transparent;
    border-radius: 0.5rem;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.corp-btn-outline-primary:hover,
.corp-btn-outline-primary:focus {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
}

.corp-btn-light {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--brand-secondary);
    border-radius: 0.5rem;
}

.corp-btn-light:hover,
.corp-btn-light:focus {
    background-color: #f1f5f9;
    border-color: #f1f5f9;
    color: var(--brand-secondary);
}

.corp-btn-outline-light {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.65);
    background-color: transparent;
    border-radius: 0.5rem;
}

.corp-btn-outline-light:hover,
.corp-btn-outline-light:focus {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: #ffffff;
    color: #ffffff;
}

/* Hero & Slider */
.corp-hero,
.corp-carousel-slide {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
    min-height: 460px;
    display: flex;
    align-items: center;
}

.corp-hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.corp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.56) 65%, rgba(15, 23, 42, 0.38) 100%);
    z-index: 1;
}

.corp-hero .container,
.corp-carousel-slide .container {
    z-index: 2;
}

.corp-hero-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.84);
}

.corp-hero-title {
    font-size: clamp(1.75rem, 3.6vw, 3rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.corp-hero-lead {
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 42rem;
}

.corp-hero-lead p:last-child {
    margin-bottom: 0;
}

/* Page Banner (Inner pages) */
.corp-page-banner {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
    color: #ffffff;
    padding: 3rem 0;
}

.corp-breadcrumb .breadcrumb-item,
.corp-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.corp-breadcrumb .breadcrumb-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.corp-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.55);
}

.corp-breadcrumb .breadcrumb-item.active {
    color: #ffffff;
}

.corp-banner-lead {
    color: rgba(255, 255, 255, 0.88);
    max-width: 46rem;
}

.corp-banner-lead p:last-child {
    margin-bottom: 0;
}

/* Section Rhythm & Typography */
.corp-section {
    padding: 4.25rem 0;
}

.corp-section-muted {
    background-color: var(--corp-surface);
    border-top: 1px solid var(--corp-border);
    border-bottom: 1px solid var(--corp-border);
}

.corp-eyebrow {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--brand-primary);
}

.corp-section-title {
    font-size: clamp(1.45rem, 2.5vw, 2.05rem);
    color: var(--brand-secondary);
    letter-spacing: -0.015em;
}

.corp-prose {
    color: var(--corp-muted);
    font-size: 1rem;
}

.corp-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.corp-prose table {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
}

.corp-page-cover {
    max-height: 420px;
    width: 100%;
    object-fit: cover;
}

.corp-media-frame img {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

/* Cards */
.corp-card {
    background-color: #ffffff;
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--corp-border) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.corp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.corp-card-media {
    overflow: hidden;
    background-color: var(--corp-surface);
}

.corp-card-img {
    height: 210px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.corp-card:hover .corp-card-img {
    transform: scale(1.03);
}

.corp-card-placeholder {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.08), rgba(30, 41, 59, 0.14));
    color: var(--brand-primary);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.corp-card-title-link {
    color: var(--brand-secondary);
}

.corp-card-title-link:hover {
    color: var(--brand-primary);
}

.corp-text-link {
    color: var(--brand-primary);
    text-decoration: none;
}

.corp-text-link:hover {
    text-decoration: underline;
}

/* References */
.corp-ref-card {
    background-color: #ffffff;
    border: 1px solid var(--corp-border);
    border-radius: 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.corp-ref-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.corp-ref-logo {
    height: 76px;
    width: 100%;
}

.corp-ref-logo img {
    max-height: 66px;
    max-width: 100%;
    object-fit: contain;
}

.corp-ref-monogram {
    width: 52px;
    height: 52px;
    border-radius: 0.75rem;
    background-color: var(--corp-surface);
    border: 1px solid var(--corp-border);
    color: var(--brand-primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.corp-ref-desc {
    font-size: 0.8rem;
}

/* Sidebar / Contact Cards */
.corp-side-card {
    background-color: var(--corp-surface);
    border: 1px solid var(--corp-border);
}

.corp-label-xs {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.corp-empty-state {
    background-color: var(--corp-surface);
    border: 1px dashed var(--corp-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: var(--corp-muted);
    font-size: 0.95rem;
}

/* CTA Band */
.corp-cta-section {
    background: linear-gradient(125deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
}

/* Footer */
.corp-footer {
    background-color: var(--brand-secondary);
    color: #ffffff;
}

.corp-footer-logo {
    max-height: 36px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.corp-footer-heading {
    color: #ffffff;
    font-size: 0.8rem;
    letter-spacing: 0.09em;
}

.corp-footer-muted {
    color: rgba(255, 255, 255, 0.75);
}

.corp-footer-link {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: color 0.16s ease;
}

.corp-footer-link:hover,
.corp-footer-link:focus {
    color: #ffffff;
}

.corp-social-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.16s ease;
}

.corp-social-pill:hover,
.corp-social-pill:focus {
    background-color: var(--brand-primary);
    color: #ffffff;
}

.corp-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background-color: rgba(0, 0, 0, 0.15);
}

/* 404 Page */
.corp-404-code {
    font-size: clamp(3.5rem, 10vw, 5.5rem);
    line-height: 1;
    color: var(--brand-primary);
    letter-spacing: -0.04em;
}

/* Visually hidden honeypot field (no display:none so bots still see it) */
.corp-hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .corp-hero,
    .corp-carousel-slide {
        min-height: 360px;
    }

    .corp-section {
        padding: 3rem 0;
    }

    .corp-page-banner {
        padding: 2.25rem 0;
    }
}

@media (max-width: 575.98px) {
    .corp-hero,
    .corp-carousel-slide {
        min-height: 300px;
    }

    .corp-brand-name {
        font-size: 0.96rem;
    }

    .corp-brand-logo {
        max-height: 32px;
        max-width: 110px;
    }

    .corp-brand-logo-only {
        max-height: 36px;
        max-width: 150px;
    }
}
