/* =====================================================
   FORTE MINAS CORRETORA DE SEGUROS
   STYLE.CSS - VERSÃO CORRIGIDA E OTIMIZADA
===================================================== */

/* =====================================================
   VARIÁVEIS
===================================================== */
:root {
    --azul-escuro: #061A33;
    --azul: #0B3A66;
    --azul-claro: #155A8A;
    --dourado: #C89B3C;
    --laranja: #E87524;
    --branco: #FFFFFF;
    --cinza-claro: #F5F7FA;
    --cinza: #667085;
    --grafite: #222222;
    --preto: #111111;

    --sombra: 0 20px 50px rgba(0,0,0,0.12);
    --transicao: all .3s ease;
    --radius: 18px;
    --container: 1200px;
}

/* =====================================================
   RESET
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--grafite);
    background: var(--branco);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* =====================================================
   CONTAINER & SEÇÕES
===================================================== */
.container {
    width: 90%;
    max-width: var(--container);
    margin: auto;
}

.section {
    padding: 100px 0;
}

/* =====================================================
   CABEÇALHO (HEADER)
===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 6px 0;
    background: #061A33 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
    transition: var(--transicao);
}

.header.scrolled {
    background: #061A33 !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, .20);
}

.header-container {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 26px;
    position: relative;
}

.header-faith {
    color: var(--dourado);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.2;
    flex-shrink: 0;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    width: 76px;
    height: auto;
}

.nav {
    margin-left: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-list a {
    color: var(--branco);
    font-size: 15px;
    font-weight: 500;
    position: relative;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--dourado);
    transition: var(--transicao);
}

.nav-list a:hover::after {
    width: 100%;
}

.btn-header {
    margin-left: 28px;
    background: var(--dourado);
    color: var(--azul-escuro);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    white-space: nowrap;
    transition: var(--transicao);
}

.btn-header:hover {
    background: var(--laranja);
    color: var(--branco);
    transform: translateY(-3px);
}

.menu-toggle {
    display: none;
    background: none;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--branco);
    margin: 5px;
    border-radius: 5px;
}

/* =====================================================
   HERO
===================================================== */
.hero {
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: flex-end;
    position: relative;
    padding-top: 84px;
    padding-bottom: 40px;
    overflow: hidden;
    background-image: url('../assets/hero.webp');
    background-size: cover;
    background-position: center 18%;
    background-repeat: no-repeat;
}

.hero::before,
.hero::after,
.hero-overlay {
    display: none;
    content: none;
    background: transparent;
    opacity: 0;
}

.hero-container {
    width: 100%;
    min-height: calc(100vh - 164px);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-buttons-only {
    margin: 0;
}

.btn-primary {
    background: var(--dourado);
    color: var(--azul-escuro);
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transicao);
}

.btn-primary:hover {
    background: var(--laranja);
    color: var(--branco);
    transform: translateY(-4px);
}

.btn-secondary {
    border: 2px solid var(--branco);
    color: var(--branco);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transicao);
}

.hero-buttons-only .btn-secondary {
    background: rgba(6,26,51,.42);
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 25px rgba(0,0,0,.18);
}

.btn-secondary:hover {
    background: var(--branco);
    color: var(--azul-escuro);
}

.hero-buttons-only .btn-primary,
.hero-buttons-only .btn-secondary {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 28px;
    font-weight: 700;
}

/* =====================================================
   CABEÇALHO DAS SEÇÕES
===================================================== */
.section-header {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.section-tag {
    display: inline-block;
    color: var(--dourado);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.1;
    color: var(--azul-escuro);
    margin-bottom: 25px;
    font-weight: 800;
}

.section-header p {
    color: var(--cinza);
    font-size: 21px;
    line-height: 1.8;
    max-width: 920px;
    margin: 0 auto 18px;
}

/* =====================================================
   SOBRE NÓS
===================================================== */
.about {
    background: var(--branco);
}

.about-grid {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 46px;
}

.about-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: min(100%, 780px);
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    background: var(--branco);
    transition: transform .45s ease;
}

.about-image:hover img {
    transform: scale(1.018);
}

.about-content {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.about-content h3 {
    margin-bottom: 24px;
    color: var(--azul-escuro);
    font-size: 32px;
    line-height: 1.25;
    text-align: center;
}

.about-content p {
    margin-bottom: 18px;
    color: var(--cinza);
    line-height: 1.75;
}

.about-list {
    max-width: 760px;
    margin: 28px auto 0;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    font-weight: 600;
}

.about-list span {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul-escuro);
    background: var(--dourado);
    border-radius: 50%;
    font-weight: 800;
}

.about-image.reveal {
    opacity: 1;
    transform: none;
}

/* =====================================================
   SERVIÇOS / SEGUROS
===================================================== */
.services {
    background: var(--cinza-claro);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--branco);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    transition: var(--transicao);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--dourado),
        var(--laranja)
    );
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transicao);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 45px;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--azul-escuro);
    font-size: 23px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--cinza);
    margin-bottom: 20px;
}

.service-card a {
    color: var(--dourado);
    font-weight: 700;
}

.service-card a:hover {
    color: var(--laranja);
}

/* =====================================================
   BANNER INSTITUCIONAL
===================================================== */
.institutional-banner {
    padding: 90px 0;
    background: linear-gradient(
        135deg,
        var(--azul-escuro),
        var(--azul)
    );
    position: relative;
    overflow: hidden;
}

.institutional-banner::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    right: -100px;
    top: -100px;
    background: rgba(200,155,60,.15);
    border-radius: 50%;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--branco);
}

.banner-content h2 {
    font-size: clamp(30px, 4vw, 45px);
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 35px;
    opacity: .9;
}

/* =====================================================
   DIFERENCIAIS
===================================================== */
.advantages {
    background: var(--branco);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.advantage-card {
    padding: 35px 25px;
    border-radius: var(--radius);
    background: var(--cinza-claro);
    transition: var(--transicao);
}

.advantage-card:hover {
    background: var(--azul-escuro);
    color: var(--branco);
    transform: translateY(-8px);
}

.advantage-number {
    font-size: 40px;
    font-weight: 800;
    color: var(--dourado);
    margin-bottom: 15px;
}

.advantage-card h3 {
    color: var(--azul-escuro);
    margin-bottom: 15px;
    font-size: 22px;
}

.advantage-card:hover h3 {
    color: var(--branco);
}

.advantage-card p {
    color: var(--cinza);
}

.advantage-card:hover p {
    color: rgba(255,255,255,.8);
}

/* =====================================================
   NÚMEROS / ESTATÍSTICAS
===================================================== */
.numbers {
    background: linear-gradient(
        135deg,
        var(--azul-escuro),
        var(--azul)
    );
    padding: 80px 0;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.number-item {
    color: var(--branco);
}

.number-item strong {
    display: block;
    font-size: 55px;
    font-weight: 800;
    color: var(--dourado);
    line-height: 1;
    margin-bottom: 15px;
}

.number-item span {
    font-size: 16px;
    opacity: .9;
}

/* =====================================================
   DEPOIMENTOS
===================================================== */
.testimonials {
    background: var(--cinza-claro);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--branco);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    transition: var(--transicao);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra);
}

.quote {
    font-size: 60px;
    line-height: .5;
    color: var(--dourado);
    font-weight: 800;
    margin-bottom: 25px;
}

.testimonial-card p {
    color: var(--cinza);
    font-style: italic;
    margin-bottom: 25px;
}

.testimonial-card h4 {
    color: var(--azul-escuro);
    font-size: 17px;
}

/* =====================================================
   CTA FINAL
===================================================== */
.cta {
    background: var(--branco);
}

.cta-box {
    background: linear-gradient(
        135deg,
        var(--azul-escuro),
        var(--azul)
    );
    border-radius: 30px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    position: relative;
}

.cta-box::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(200,155,60,.18);
    border-radius: 50%;
    right: -100px;
    bottom: -100px;
}

.cta-content {
    position: relative;
    z-index: 2;
    color: var(--branco);
}

.cta-content h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    margin: 15px 0;
}

.cta-content p {
    opacity: .9;
    max-width: 550px;
}

.cta-box .btn-primary {
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

/* =====================================================
   CONTATO
===================================================== */
.contact {
    background: var(--cinza-claro);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background: var(--branco);
    padding: 35px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
    transition: var(--transicao);
}

.contact-card:hover {
    transform: translateY(-8px);
}

.contact-icon {
    font-size: 45px;
    margin-bottom: 20px;
}

.contact-card h3 {
    color: var(--azul-escuro);
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--cinza);
    margin-bottom: 15px;
}

.contact-card a {
    color: var(--dourado);
    font-weight: 700;
}

.contact-card a:hover {
    color: var(--laranja);
}

/* =====================================================
   MAPA
===================================================== */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--sombra);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
    background: #041326;
    color: rgba(255,255,255,.8);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-brand img {
    width: 190px;
    margin-bottom: 20px;
}

.footer-brand p {
    max-width: 300px;
    line-height: 1.8;
}

.footer h3 {
    color: var(--branco);
    font-size: 20px;
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    transition: var(--transicao);
}

.footer-links a:hover {
    color: var(--dourado);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 25px 0;
    text-align: center;
    font-size: 14px;
}

/* =====================================================
   WHATSAPP FLUTUANTE
===================================================== */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 70px;
    height: 70px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .26);
    animation: pulse 2s infinite;
}

.whatsapp-float img {
    width: 54px;
    height: 54px;
    display: block;
    object-fit: contain;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

/* =====================================================
   ANIMAÇÕES SCROLL
===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.about-image.reveal {
    opacity: 1;
    transform: none;
}

/* =====================================================
   RESPONSIVIDADE (TABLET & MOBILE)
===================================================== */
@media(max-width: 1024px) {
    .header-faith {
        display: none;
    }

    .header-container {
        min-height: 68px;
    }

    .logo img {
        width: 72px;
    }

    .hero {
        min-height: 720px;
        padding-top: 78px;
        padding-bottom: 30px;
        background-position: 68% 18%;
    }

    .hero-container {
        min-height: 610px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 850px) {
    .header {
        padding: 5px 0;
    }

    .header-container {
        min-height: 64px;
        justify-content: space-between;
    }

    .nav {
        position: absolute;
        top: calc(100% + 5px);
        left: 0;
        width: 100%;
        margin-left: 0;
        background: var(--azul-escuro);
        padding: 30px;
        border-radius: 0 0 18px 18px;
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: .4s;
        box-shadow: 0 12px 25px rgba(0,0,0,.18);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 25px;
    }

    .btn-header {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }
}

@media(max-width: 600px) {
    .container {
        width: 92%;
    }

    .section {
        padding: 58px 0;
    }

    .header {
        padding: 4px 0;
    }

    .header-container {
        min-height: 66px;
    }

    .logo img {
        width: 72px;
    }

    .menu-toggle span {
        width: 26px;
        height: 3px;
        margin: 4px;
    }

    .hero {
        min-height: 620px;
        padding-top: 74px;
        padding-bottom: 18px;
        align-items: flex-end;
        background-position: 64% center;
        background-size: cover;
        background-color: #f5f7fa;
    }

    .hero-container {
        min-height: 528px;
        align-items: flex-end;
        justify-content: center;
    }

    .hero-buttons-only {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons-only .btn-primary,
    .hero-buttons-only .btn-secondary {
        width: 100%;
        min-height: 48px;
        padding: 12px 20px;
        font-size: 16px;
        line-height: 1.2;
        text-align: center;
    }

    .section-header {
        max-width: 100%;
        margin-bottom: 38px;
    }

    .section-tag {
        font-size: 13px;
        letter-spacing: 1.7px;
        margin-bottom: 12px;
    }

    .section-header h2 {
        font-size: 34px;
        line-height: 1.12;
        margin-bottom: 18px;
    }

    .section-header p {
        font-size: 16px;
        line-height: 1.75;
    }

    .about-grid {
        gap: 34px;
    }

    .about-image {
        width: 100%;
    }

    .about-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 14px;
    }

    .about-content {
        max-width: 100%;
    }

    .about-content h3 {
        font-size: 27px;
        line-height: 1.2;
        text-align: center;
    }

    .about-content p {
        font-size: 16px;
        line-height: 1.75;
    }

    .about-list {
        margin-top: 24px;
    }

    .about-list li {
        align-items: flex-start;
        font-size: 15px;
    }

    .cards-grid,
    .advantages-grid,
    .numbers-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .contact-card,
    .testimonial-card {
        padding: 28px 22px;
    }

    .advantages-grid,
    .cards-grid,
    .contact-grid {
        gap: 20px;
    }

    .cta-box {
        padding: 32px 22px;
        flex-direction: column;
        text-align: center;
    }

    .footer {
        padding-top: 58px;
    }

    .footer-grid {
        text-align: center;
    }

    .footer-brand img {
        margin: 0 auto 20px;
    }

    .footer-brand p {
        margin: auto;
    }

    .partners {
        margin-top: 45px;
    }

    .partners h3 {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .partners-track img {
        width: 105px;
        height: 44px;
        margin: 0 14px;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px 18px;
    }

    .partner-logo {
        width: 105px;
        height: 46px;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 62px;
        height: 62px;
    }

    .whatsapp-float img {
        width: 38px;
        height: 38px;
    }

    .section-header {
        max-width: 100%;
        margin-bottom: 38px;
        padding: 0;
    }

    .section-header h2 {
        font-size: 34px;
        line-height: 1.12;
        margin-bottom: 18px;
    }

    .section-header p {
        font-size: 16px;
        line-height: 1.75;
        max-width: 100%;
        margin-bottom: 14px;
    }

    .partners {
        margin-top: 45px;
    }

    .partners h3 {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 18px;
    }

    .partner-logo {
        width: 105px;
        height: 46px;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 62px;
        height: 62px;
    }

    .whatsapp-float img {
        width: 38px;
        height: 38px;
    }
}

/* =====================================================
   PARCEIROS
===================================================== */
.partners {
    margin-top: 70px;
    text-align: center;
}

.partners h3 {
    margin-bottom: 45px;
    color: var(--azul-escuro);
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.2;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    align-items: center;
    gap: 38px 30px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.partner-logo {
    width: 170px;
    height: 72px;
    margin: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .78;
    transition: var(--transicao);
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}
