/* Big4 patch: header alignment, hero centering, drawer typography, soft transitions */
:root {
    --site-header-height: 82px;
    --header-logo-height: 120px;
    background-color: var(--white, #fff);
}

@media (max-width: 768px) {
    :root {
        --site-header-height: 76px;
    }
}

/* Header alignment */
.site-header > .container,
.site-header > .container-wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 768px) {
    .site-header > .container,
    .site-header > .container-wide {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.site-header > .container > a,
.site-header > .container-wide > a,
.site-header .logo {
    margin-right: auto;
    justify-self: flex-start;
}

.site-header .logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: -16px;
}

.site-header .main-nav,
.site-header .mobile-menu-btn {
    margin-left: auto;
    justify-self: flex-end;
}

.site-header .logo img,
.site-header .brand-logo {
    height: var(--header-logo-height);
    width: auto;
}

/* Hero title alignment */
.hero-content,
.about-hero .hero-grid > div:first-child,
.blog-hero .container,
.contact-hero .container > div,
.pricing-hero .container > div,
.workflow-hero .container > div,
.legal-hero .container,
.page-header .container {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 860px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-btns {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero-content,
    .about-hero .hero-grid > div:first-child,
    .blog-hero .container,
    .contact-hero .container > div,
    .pricing-hero .container > div,
    .workflow-hero .container > div,
    .legal-hero .container,
    .page-header .container {
        max-width: 92%;
    }
}

/* Side panel nav typography */
.nav-drawer__nav a {
    font-size: 0.98rem;
    line-height: 1.45;
    padding: 12px 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-drawer__nav .nav-btn-header {
    font-size: 0.98rem;
    line-height: 1.45;
    min-height: 44px;
    padding: 12px 16px;
}

/* Hero KPI strip */
.hero .hero-stats {
    margin-top: 20px;
    padding-top: 20px;
    gap: 0;
    align-items: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero .hero-stats .stat-item {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 18px;
}

.hero .hero-stats .stat-item + .stat-item {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hero .hero-stats .stat-number {
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.hero .hero-stats .stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    opacity: 0.75;
    margin-top: 6px;
}

@media (max-width: 480px) {
    .hero .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px 0;
    }

    .hero .hero-stats .stat-item {
        padding: 0 12px;
        min-height: 56px;
        text-align: center;
    }

    .hero .hero-stats .stat-item + .stat-item {
        border-left: none;
    }

    .hero .hero-stats .stat-item:last-child {
        grid-column: 1 / -1;
    }
}

/* Hero fade to soften transition */
.hero,
.page-hero,
.service-hero,
.page-header,
.about-hero,
.blog-hero,
.contact-hero,
.pricing-hero,
.workflow-hero,
.legal-hero {
    position: relative;
    overflow: hidden;
}

.hero,
.page-hero,
.service-hero,
.page-header,
.about-hero,
.blog-hero,
.contact-hero,
.pricing-hero,
.workflow-hero,
.legal-hero {
    color: var(--text-light, #f8fafc);
}

.hero .text-muted,
.page-hero .text-muted,
.service-hero .text-muted,
.page-header .text-muted,
.about-hero .text-muted,
.blog-hero .text-muted,
.contact-hero .text-muted,
.pricing-hero .text-muted,
.workflow-hero .text-muted,
.legal-hero .text-muted,
.hero .text-dark,
.page-hero .text-dark,
.service-hero .text-dark,
.page-header .text-dark,
.about-hero .text-dark,
.blog-hero .text-dark,
.contact-hero .text-dark,
.pricing-hero .text-dark,
.workflow-hero .text-dark,
.legal-hero .text-dark,
.hero .text-primary,
.page-hero .text-primary,
.service-hero .text-primary,
.page-header .text-primary,
.about-hero .text-primary,
.blog-hero .text-primary,
.contact-hero .text-primary,
.pricing-hero .text-primary,
.workflow-hero .text-primary,
.legal-hero .text-primary {
    color: inherit;
}

.hero::after,
.page-hero::after,
.service-hero::after,
.page-header::after,
.about-hero::after,
.blog-hero::after,
.contact-hero::after,
.pricing-hero::after,
.workflow-hero::after,
.legal-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.18) 100%);
    pointer-events: none;
    z-index: 0;
}
