/* Braspeg – layout v2 com identidade roxa original */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

:root {
    --braspeg-primary: #8e1df8;
    --braspeg-primary-dark: #6311af;
    --braspeg-primary-rgb: 142, 29, 248;
    --braspeg-dark: #1e0a33;
    --braspeg-muted: #6b5c7d;
    --braspeg-hero-overlay: linear-gradient(
        135deg,
        rgba(99, 17, 175, 0.42),
        rgba(30, 10, 51, 0.32)
    );
}

.text-braspeg {
    color: var(--braspeg-primary);
}

.btn-braspeg {
    background-color: var(--braspeg-primary);
    color: #fff;
    font-weight: 600;
    border: none;
}

.btn-braspeg:hover,
.btn-braspeg:focus {
    background-color: var(--braspeg-primary-dark);
    color: #fff;
}

/* Header */
.header-contact {
    background-color: var(--braspeg-primary);
    color: #fff;
    font-size: 0.9rem;
}

.header-contact a {
    color: inherit;
    text-decoration: none;
}

.header-contact a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.header-contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
}

.navbar .nav-link.active {
    color: var(--braspeg-primary) !important;
    font-weight: 600;
}

.nav-logo {
    height: 2.75rem;
    width: auto;
}

/* Hero */
.hero-section {
    height: 82vh;
    min-height: 420px;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    height: 82vh;
    min-height: 420px;
    padding: 0 1.25rem;
    background: var(--braspeg-hero-overlay);
}

.hero-slide h1,
.hero-slide p {
    color: #fff !important;
    max-width: 42rem;
}

.hero-slide .lead {
    color: rgba(255, 255, 255, 0.92) !important;
}

.hero-slide .btn-braspeg {
    background-color: #fff;
    color: var(--braspeg-primary);
}

.hero-slide .btn-braspeg:hover,
.hero-slide .btn-braspeg:focus {
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--braspeg-primary-dark);
}

.hero-slide h1,
.hero-slide p,
.hero-slide a {
    animation: fadeIn 1.2s ease-in-out;
}

.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-item {
    background-size: cover;
    background-position: center;
    transition: transform 1s ease, opacity 1s ease-in-out;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    filter: none;
    width: 2.5rem;
    height: 2.5rem;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    opacity: 0.85;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animações */
.animate-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cabeçalhos de seção */
.section-header {
    margin-bottom: 2.25rem;
}

.section-header__eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--braspeg-primary);
    margin-bottom: 0.45rem;
}

.section-header__title {
    font-size: clamp(1.65rem, 3.5vw, 2.15rem);
    font-weight: 700;
    color: var(--braspeg-dark);
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-header__accent {
    display: block;
    width: 2.75rem;
    height: 4px;
    margin-top: 0.85rem;
    background: linear-gradient(90deg, var(--braspeg-primary), #b56dff);
    border-radius: 2px;
}

.section-header__desc {
    margin: 1rem 0 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--braspeg-muted);
    max-width: 36rem;
}

.section-header--center {
    text-align: center;
}

.section-header--center .section-header__accent {
    margin-left: auto;
    margin-right: auto;
}

.section-header--center .section-header__desc {
    margin-left: auto;
    margin-right: auto;
}

.section-band {
    width: 100%;
    background-color: var(--bs-gray-100);
}

.section-surface {
    width: 100%;
    background-color: #fff;
}

/* Cards */
.site-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 2rem 1.5rem 1.75rem;
    background: #fff;
    border: 1px solid rgba(var(--braspeg-primary-rgb), 0.12);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(30, 10, 51, 0.06);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.site-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--braspeg-primary), #b56dff);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.site-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--braspeg-primary-rgb), 0.28);
    box-shadow: 0 16px 40px rgba(30, 10, 51, 0.12);
}

.site-card:hover::before {
    opacity: 1;
}

.site-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: rgba(var(--braspeg-primary-rgb), 0.1);
    border: 2px solid rgba(var(--braspeg-primary-rgb), 0.15);
    color: var(--braspeg-primary);
    font-size: 1.75rem;
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.site-card:hover .site-card__icon {
    background: var(--braspeg-primary);
    border-color: var(--braspeg-primary);
    color: #fff;
    transform: scale(1.06);
}

.site-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--braspeg-dark);
    margin-bottom: 0.65rem;
}

.site-card__text {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--braspeg-muted);
    margin: 0;
}

.site-card__list {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--braspeg-muted);
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
    width: 100%;
}

.site-card__list li {
    padding: 0.15rem 0;
}

/* Compromisso – alinhado à esquerda */
.site-card--left {
    align-items: flex-start;
    text-align: left;
}

.site-card--left .site-card__icon {
    margin-bottom: 1rem;
}

.site-card--left .site-card__title,
.site-card--left .site-card__text {
    width: 100%;
}

/* PNG / fotos sem recorte em caixa */
.section-media {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.section-media img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    display: block;
}

@media (min-width: 768px) {
    .section-media img {
        max-height: 420px;
    }
}

/* Visual / ícones */
.about-visual {
    margin: 0;
    width: 100%;
    height: 260px;
    max-height: 260px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(30, 10, 51, 0.14);
}

.about-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.about-visual--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--braspeg-primary-dark), var(--braspeg-primary));
}

.about-visual--icon .bi {
    font-size: 4.5rem;
    color: #fff;
    opacity: 0.95;
}

@media (min-width: 768px) {
    .about-visual {
        height: 300px;
        max-height: 300px;
    }
}

/* Clientes – carrossel infinito */
.clientes-marquee {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        #000 6%,
        #000 94%,
        transparent
    );
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 6%,
        #000 94%,
        transparent
    );
}

.clientes-marquee__track {
    display: flex;
    width: max-content;
    animation: clientes-marquee-scroll 45s linear infinite;
}

.clientes-marquee:hover .clientes-marquee__track {
    animation-play-state: paused;
}

.clientes-marquee__group {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding: 0 clamp(1rem, 3vw, 2rem);
    margin: 0;
    list-style: none;
    flex-shrink: 0;
}

.clientes-marquee__group li {
    flex-shrink: 0;
}

.img-clientes {
    display: block;
    height: 56px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(0.25);
    opacity: 0.88;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.clientes-marquee__group li:hover .img-clientes {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes clientes-marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .clientes-marquee__track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-start;
        gap: 1.5rem;
    }

    .clientes-marquee__group[aria-hidden="true"] {
        display: none;
    }
}

/* Footer */
.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background-color: #25d366;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.whatsapp-button img {
    width: 40px;
    height: 40px;
    display: block;
}

.whatsapp-button:hover {
    transform: scale(1.08);
}

@media (min-width: 992px) {
    .site-card {
        padding: 2.25rem 1.5rem 2rem;
    }
}
