/* ATT AB – v2 (baseado na estrutura Braspeg / home2) */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

:root {
    --attb-brand: #1C665E;
    --attb-primary: #1C665E;
    --attb-primary-dark: #154e48;
    --attb-accent: #1C665E;
    --attb-dark: #0d2b26;
    --attb-muted: #5a7f7a;
    --attb-hero-overlay: linear-gradient(135deg, rgba(13, 43, 38, 0.82), rgba(28, 102, 94, 0.78));
}

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

.text-attb-accent {
    color: var(--attb-brand);
}

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

.btn-attb:hover,
.btn-attb:focus {
    background-color: color-mix(in srgb, var(--attb-brand) 85%, #000);
    color: #fff;
}

.btn-outline-attb {
    border: 2px solid var(--attb-primary);
    color: var(--attb-primary);
    font-weight: 600;
}

.btn-outline-attb:hover {
    background-color: var(--attb-primary);
    color: #fff;
}

/* Header */
.header-contact {
    background-color: var(--attb-dark);
    color: #f5f5f0;
    font-size: 0.9rem;
}

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

.header-contact a:hover {
    color: var(--attb-brand);
}

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

.navbar .nav-link.active {
    color: var(--attb-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(--attb-hero-overlay);
}

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

.hero-slide .lead {
    color: rgba(245, 245, 240, 0.9) !important;
}

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

.hero-slide .btn-attb:hover,
.hero-slide .btn-attb:focus {
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--attb-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;
}

.carousel-item--1 {
    background-image: url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1600&q=80");
}

.carousel-item--2 {
    background-image: url("https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1600&q=80");
}

.carousel-item--3 {
    background-image: url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1600&q=80");
}

#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;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover,
#heroCarousel .carousel-control-prev:focus,
#heroCarousel .carousel-control-next:focus {
    opacity: 1;
}

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

/* Scroll animations */
.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);
}

/* ========== Cards unificados (site-card) ========== */
.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(28, 102, 94, 0.12);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(13, 43, 38, 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(--attb-primary), var(--attb-accent));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.site-card:hover {
    transform: translateY(-8px);
    border-color: rgba(28, 102, 94, 0.28);
    box-shadow: 0 16px 40px rgba(13, 43, 38, 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(28, 102, 94, 0.1);
    border: 2px solid rgba(28, 102, 94, 0.15);
    color: var(--attb-primary);
    font-size: 1.75rem;
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.site-card:hover .site-card__icon {
    background: var(--attb-primary);
    border-color: var(--attb-primary);
    color: #fff;
}

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

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

/* Etapas (Como funciona) – ícone à esquerda, número à direita */
.site-card--step {
    align-items: stretch;
    text-align: left;
}

.site-card--step .site-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1.25rem;
}

.site-card--step .site-card__icon {
    margin-bottom: 0;
}

.site-card--step .site-card__step {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1;
    color: var(--attb-primary);
    opacity: 0.28;
    flex-shrink: 0;
    user-select: none;
}

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

/* Problema / solução – alinhamento à esquerda */
.site-card--left {
    align-items: flex-start;
    text-align: left;
}

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

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

.site-card--accent .site-card__title {
    color: var(--attb-primary);
}

.site-card--muted .site-card__icon {
    background: rgba(108, 117, 125, 0.1);
    border-color: rgba(108, 117, 125, 0.2);
    color: var(--bs-secondary);
}

.site-card--muted:hover .site-card__icon {
    background: var(--bs-secondary);
    border-color: var(--bs-secondary);
    color: #fff;
}

/* 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(--attb-primary);
    margin-bottom: 0.45rem;
}

.section-header__title {
    font-size: clamp(1.65rem, 3.5vw, 2.15rem);
    font-weight: 700;
    color: var(--attb-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(--attb-primary), var(--attb-accent));
    border-radius: 2px;
}

.section-header__desc {
    margin: 1rem 0 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--attb-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-header--on-accent .section-header__eyebrow {
    color: rgba(255, 255, 255, 0.85);
}

.section-header--on-accent .section-header__title {
    color: #fff;
}

.section-header--on-accent .section-header__desc {
    color: rgba(255, 255, 255, 0.8);
}

/* Segundo header dentro da mesma seção (ex.: Mais serviços) */
.section-header--follow {
    margin-top: 3rem;
}

/* Impact */
.impact-band {
    background: var(--attb-brand);
    color: #fff;
}

.impact-band .display-5 {
    font-weight: 700;
}

.impact-metrics {
    text-align: left;
}

.impact-metrics .fw-semibold {
    opacity: 0.85;
}

/* Seções com fundo alternado */
.section-alt {
    background: linear-gradient(180deg, var(--bs-gray-100) 0%, #fff 100%);
}

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

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

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

/* About visual placeholder */
.about-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.about-logo-wrap img {
    width: min(70%, 280px);
    height: auto;
}

@media (min-width: 768px) {
    .about-logo-wrap {
        justify-content: flex-end;
        margin-bottom: 0;
    }

    .about-logo-wrap img {
        width: 70%;
        max-width: 360px;
    }
}

.about-visual {
    margin: 0;
    width: 100%;
    height: 260px;
    max-height: 260px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(13, 43, 38, 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(--attb-primary-dark), var(--attb-brand));
}

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

@media (min-width: 768px) {
    .about-visual {
        height: 300px;
        max-height: 300px;
    }
}
/* 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;
}

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

footer.bg-attb-dark {
    background-color: var(--attb-dark) !important;
}

.border-attb {
    border-color: rgba(28, 102, 94, 0.25) !important;
}

@media (max-width: 767px) {
    .header-contact-content {
        flex-direction: column;
        gap: 0.35rem;
        font-size: 0.85rem;
    }
}
