/* Shared inner-page hero (services, about, media, contact, etc.) */

:root {
    --page-hero-header-height: 100px;
}

@media (max-width: 991.98px) {
    :root {
        --page-hero-header-height: calc(56px + var(--app-safe-top, 0px));
    }
}

.hero.page-hero {
    padding: calc(var(--page-hero-header-height) + 2.25rem) 0 clamp(2rem, 3.5vw, 2.75rem) !important;
    background: linear-gradient(135deg, #2C3E50 0%, #1A252F 100%);
    position: relative;
    overflow: hidden;
}

.hero.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://img.freepik.com/free-photo/business-people-meeting-office_53876-25060.jpg') center/cover;
    opacity: 0.1;
    animation: pageHeroZoom 20s infinite alternate;
    z-index: 0;
}

@keyframes pageHeroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.hero.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: center;
}

@media (min-width: 992px) {
    .page-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(2rem, 4vw, 3rem);
    }

    .hero.page-hero.page-hero--text-only .page-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: none;
    }

    .hero.page-hero.page-hero--text-only .page-hero__copy {
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
    }
}

.page-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
    min-width: 0;
}

.page-hero__badge,
.hero.page-hero .hero-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    align-self: flex-start;
    width: auto;
    max-width: 100%;
    min-height: unset !important;
    margin-bottom: 1rem !important;
    padding: 0.5rem 1.15rem !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: start;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.page-hero__title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #fff;
    width: 100%;
}

.page-hero__lead {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    line-height: 1.55;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.92);
    max-width: 36rem;
    width: 100%;
}

.page-hero__media {
    min-width: 0;
}

.hero.page-hero .page-hero__image {
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
    aspect-ratio: 16 / 10;
    min-height: 0 !important;
    max-height: 320px;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

.hero.page-hero .page-hero__image img,
.hero.page-hero .page-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero.page-hero .page-hero__image .case-study-media-placeholder--hero {
    width: 100%;
    height: 100%;
    min-height: 220px;
}

.hero.page-hero.page-hero--text-only {
    padding-bottom: clamp(1.5rem, 3vw, 2.25rem) !important;
}

.page-hero--text-only .page-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: none;
}

.page-hero--text-only .page-hero__copy {
    width: 100%;
    max-width: none;
}

.page-hero--text-only .page-hero__title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    max-width: none;
}

.page-hero--text-only .page-hero__lead {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    max-width: 52rem;
}

@media (max-width: 991.98px) {
    .hero.page-hero {
        padding: calc(var(--page-hero-header-height) + 1.75rem) 0 2rem !important;
    }

    .page-hero__title {
        font-size: 1.85rem;
        line-height: 1.25;
    }

    .page-hero__lead {
        font-size: 1rem;
    }

    .page-hero--text-only .page-hero__title {
        font-size: clamp(1.85rem, 6vw, 2.35rem);
    }

    .hero.page-hero .page-hero__image {
        max-height: 240px;
    }
}

@media (max-width: 575.98px) {
    .hero.page-hero {
        padding: calc(var(--page-hero-header-height) + 1.5rem) 0 1.75rem !important;
    }

    .page-hero__title {
        font-size: 1.65rem;
    }

    .page-hero--text-only .page-hero__title {
        font-size: clamp(1.65rem, 7vw, 2rem);
    }

    .hero.page-hero .page-hero__image {
        max-height: 210px;
    }
}

/* Blog detail featured image */
.blog-detail__media {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
    background: #eef2f7;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.service-detail .blog-detail__media {
    max-width: none;
    margin: 0 0 1.5rem;
}

.blog-detail__image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 575.98px) {
    .blog-detail__media {
        border-radius: 0.875rem;
    }
}
