@charset "UTF-8";

/* Slots de imagem — substitua os arquivos em assets/common/img/ */
.media-frame {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.media-frame__img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.media-frame__caption {
    padding: 0.65rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-blue-dark);
    background: var(--surface-muted);
    border-top: 1px solid var(--border);
    text-align: center;
}

.media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    min-height: 220px;
    background: linear-gradient(145deg, var(--surface-blue) 0%, var(--surface-muted) 100%);
}

.media-placeholder__icon {
    font-size: 2rem;
    color: var(--brand-blue);
    opacity: 0.65;
    margin-bottom: 0.75rem;
}

.media-placeholder__title {
    margin: 0 0 0.35rem;
    font-weight: 700;
    color: var(--brand-blue-dark);
    font-size: 0.9375rem;
}

.media-placeholder__file {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.media-placeholder__file code {
    font-size: 0.75rem;
    color: var(--brand-blue);
    word-break: break-all;
}

.media-placeholder__hint {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    max-width: 28ch;
    line-height: 1.45;
}

/* Home — foto da equipe */
.home-equipe {
    padding: 4rem 0;
    background: var(--surface-muted);
}

.home-equipe__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .home-equipe__grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.media-frame--home-equipe .media-frame__img,
.media-frame--home-equipe .media-placeholder {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    min-height: 280px;
}

.media-frame--home-equipe .media-placeholder {
    min-height: 280px;
}

/* Sobre — foto institucional */
.media-frame--sobre .media-frame__img,
.media-frame--sobre .media-placeholder {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    min-height: 360px;
}

.media-frame--sobre .media-placeholder {
    min-height: 360px;
}

.sobre-historia-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .sobre-historia-grid {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

/* Carrosséis de imagem (serviços, sobre) */
.servicos-screens {
    padding: 4rem 0;
    background: var(--surface-muted);
}

.sobre-galeria {
    margin-top: 3rem;
    padding-bottom: 1rem;
}

.media-carousel {
    max-width: 920px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(33, 64, 154, 0.12);
    background: var(--surface);
}

.media-frame--carousel {
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    background: #0a0a0f;
}

.media-frame__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(420px, 58vh);
    background: #0a0a0f;
}

.media-frame__stage--placeholder .media-placeholder {
    min-height: min(360px, 50vh);
    width: 100%;
    background: linear-gradient(145deg, #141820 0%, #0a0a0f 100%);
}

.media-frame--carousel .media-frame__img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(520px, 65vh);
    margin: 0 auto;
    object-fit: contain;
    object-position: center center;
}

.media-frame--carousel.media-frame--placeholder .media-placeholder {
    min-height: min(360px, 50vh);
    aspect-ratio: unset;
}

.media-frame__caption--carousel {
    flex-shrink: 0;
    padding: 0.9rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-primary);
    background: var(--surface);
    border-top: 1px solid var(--border);
    text-align: center;
    position: relative;
    z-index: 2;
}

.media-carousel .carousel-control-prev,
.media-carousel .carousel-control-next {
    width: 8%;
    z-index: 4;
}

/* Indicadores abaixo da legenda (não sobrepõem o texto) */
.media-carousel__indicators {
    position: static;
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.65rem 1rem 0.85rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.media-carousel__indicators [data-bs-target] {
    position: static;
    flex: 0 1 2.5rem;
    width: 2.5rem;
    height: 4px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 4px;
    background-color: rgba(33, 64, 154, 0.25);
    opacity: 1;
    text-indent: -9999px;
    overflow: hidden;
}

.media-carousel__indicators [data-bs-target].active {
    background-color: var(--brand-blue);
}

.sobre-galeria .media-frame__stage {
    min-height: min(400px, 52vh);
}

.sobre-galeria .media-frame--carousel .media-frame__img {
    max-height: min(480px, 55vh);
}

.media-carousel .carousel-inner {
    background: #0a0a0f;
}

.media-carousel .carousel-item {
    background: #0a0a0f;
}

.servicos-hero-grid .media-frame--servico-hero .media-frame__img,
.servicos-hero-grid .media-frame--servico-hero .media-placeholder {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    min-height: 280px;
}

.servicos-hero-grid .media-frame--servico-hero .media-placeholder {
    min-height: 280px;
}
