/* ====================================================
   MS CONCRETOS — Visual Limpo e Focado em Conversão
==================================================== */
:root {
    --blue: #1C4E9B;
    --blue-dark: #123969;
    --blue-light: #EAF1FB;
    --green: #25D366; 
    --green-dark: #1EAB52;
    --ink: #1F2937;
    --ink-soft: #5B6472;
    --bg: #FFFFFF;
    --bg-soft: #F4F7FB;
    --line: #E3E8EF;

    --font-display: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.65;
    background-color: var(--bg);
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1180px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
.bg-soft { background-color: var(--bg-soft); }

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.eyebrow { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }

/* ====================================================
   BOTÕES
==================================================== */
.btn {
    display: inline-flex; justify-content: center; align-items: center; gap: 9px;
    padding: 15px 30px; border-radius: 8px; font-weight: 700; font-family: var(--font-body);
    font-size: 0.95rem; transition: all 0.25s ease; cursor: pointer; text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background-color: var(--blue); color: white; }
.btn-primary:hover { background-color: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 15px rgba(28,78,155,0.3); }

.btn-accent { background-color: var(--green); color: white; }
.btn-accent:hover { background-color: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 15px rgba(37, 211, 102, 0.3); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--bg-soft); border-color: var(--blue); color: var(--blue); }

.btn-large { padding: 18px 34px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ====================================================
   CABEÇALHO
==================================================== */
.header { background-color: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); padding: 16px 0; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--line); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand-logo { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand-mark { height: 44px; width: auto; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .title { font-family: var(--font-display); font-weight: 800; color: var(--blue); font-size: 1.2rem; }
.brand-text .subtitle { font-size: 0.72rem; color: var(--ink-soft); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; margin: 0 16px; font-weight: 600; font-size: 0.94rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--blue); }

/* ====================================================
   HERO (FOTO EM TELA CHEIA)
==================================================== */
.hero { position: relative; min-height: 680px; display: flex; align-items: center; overflow: hidden; background: var(--blue-dark); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 80%; z-index: 0; }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(100deg,
        rgba(18,57,105,0.95) 0%,
        rgba(18,57,105,0.85) 30%,
        rgba(18,57,105,0.60) 60%,
        rgba(18,57,105,0.20) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 660px; animation: fadeUp 0.9s ease-out; }

.hero .eyebrow { display: block; font-size: 0.9rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.hero h1 { font-size: 3.5rem; font-weight: 800; color: white; line-height: 1.15; margin-bottom: 22px; }

/* Marca-texto nas palavras principais */
.highlight-bg { background-color: var(--green); color: white; padding: 2px 10px; border-radius: 4px; display: inline-block; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.hero p { font-size: 1.15rem; color: #DCE6F5; font-weight: 400; margin-bottom: 34px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

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

/* ====================================================
   BOTÃO FLUTUANTE WHATSAPP (COM PULSO)
==================================================== */
.whatsapp-float {
    position: fixed; bottom: 26px; right: 26px; z-index: 1500;
    width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: white;
    display: flex; align-items: center; justify-content: center; font-size: 1.9rem;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4); 
    transition: transform 0.2s ease;
    text-decoration: none;
    animation: pulse-whatsapp 2.5s infinite; /* A nova animação pulsante */
}

@keyframes pulse-whatsapp {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float:hover { 
    animation: none; /* Para a animação se passar o mouse */
    transform: scale(1.1); 
    background-color: var(--green-dark);
}

/* ====================================================
   FAIXA DE CONFIANÇA
==================================================== */
.trust-strip { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trust-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 30px 0; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item i { font-size: 1.6rem; color: var(--blue); }
.trust-item strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.trust-item span { font-size: 0.85rem; color: var(--ink-soft); }

/* ====================================================
   TÍTULOS DE SEÇÃO
==================================================== */
.section-header { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-header h2 { font-size: 2.3rem; margin-bottom: 14px; }
.section-header p { color: var(--ink-soft); font-size: 1.03rem; }
.section-header.on-dark h2, .section-header.on-dark .eyebrow { color: white; }
.section-header.on-dark p { color: #C7D3E5; }

/* ====================================================
   CALCULADORA DE CONCRETO
==================================================== */
.calculator { background: var(--blue-dark); position: relative; overflow: hidden; }
.calc-card { background: white; border-radius: 16px; box-shadow: 0 30px 70px rgba(0,0,0,0.25); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; max-width: 980px; margin: 0 auto; }
.calc-form { padding: 48px; }
.calc-form h3 { font-size: 1.4rem; margin-bottom: 6px; }
.calc-form > p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 26px; }

.shape-toggle { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.shape-btn { flex: 1; min-width: 110px; padding: 12px 10px; border-radius: 8px; border: 2px solid var(--line); background: white; font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; color: var(--ink-soft); cursor: pointer; transition: all 0.2s; text-align: center; }
.shape-btn.active { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field label { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.calc-field input { padding: 12px 14px; border: 2px solid var(--line); border-radius: 8px; font-size: 0.98rem; font-family: var(--font-body); outline: none; transition: border-color 0.2s; }
.calc-field input:focus { border-color: var(--blue); }

.calc-result { background: var(--green); color: white; border-radius: 12px; padding: 26px 28px; display: none; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.calc-result.show { display: flex; }
.calc-result .value { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; line-height: 1; }
.calc-result .value span { font-size: 1rem; font-weight: 600; }
.calc-result .note { font-size: 0.8rem; opacity: 0.9; max-width: 220px; }

.calc-visual { position: relative; background: var(--blue-light); display: flex; align-items: center; justify-content: center; }
.calc-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ====================================================
   SERVIÇOS (COM FOTOS REAIS EM CARDS)
==================================================== */
.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 24px; }

.service-card {
    background: white;
    border-radius: 14px;
    border: 1px solid var(--line);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 20px 45px rgba(28,78,155,0.1); 
    border-color: transparent; 
}

.photo-wrapper {
    overflow: hidden;
    height: 220px;
    width: 100%;
}

.card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-photo {
    transform: scale(1.05);
}

.card-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: white;
    position: relative;
    z-index: 2;
}

.card-content h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--blue); }
.card-content p { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.6; }

/* ====================================================
   DIFERENCIAIS
==================================================== */
.differentials { position: relative; background-size: cover; background-position: center; }
.differentials-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,57,105,0.9) 0%, rgba(18,57,105,0.94) 100%); }
.differentials .container { position: relative; z-index: 2; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.stat-item { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 14px; padding: 32px 18px; }
.stat-item i { font-size: 1.9rem; color: #7ED957; margin-bottom: 12px; }
.stat-item h2 { font-size: 2.4rem; color: white; margin-bottom: 4px; }
.stat-item p { font-size: 0.88rem; font-weight: 600; text-transform: uppercase; color: #C7D3E5; letter-spacing: 1px; }

/* ====================================================
   SEÇÃO DE PARCEIROS (CARROSSEL COM 11 LOGOS)
==================================================== */
.partners-section {
    background-color: #ffffff;
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}

.partners-title {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-weight: 700;
}

.partners-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Efeito de degradê branco nas laterais */
.partners-slider::before,
.partners-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
}
.partners-slider::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, rgba(255,255,255,0) 100%);
}
.partners-slider::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, rgba(255,255,255,0) 100%);
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 70px;
    width: max-content;
    animation: scrollLogos 25s linear infinite; 
    will-change: transform;
}

.partners-track img {
    height: 55px; 
    width: auto;
    flex-shrink: 0; 
    opacity: 1; 
    mix-blend-mode: multiply; 
    transition: transform 0.3s ease;
}

.partners-track img:hover {
    transform: scale(1.1);
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* ====================================================
   GALERIA
==================================================== */
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.media-card { border-radius: 14px; overflow: hidden; position: relative; box-shadow: 0 8px 24px rgba(28,78,155,0.08); aspect-ratio: 4 / 3; }
.media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.media-card:hover img { transform: scale(1.07); }

/* ====================================================
   NOVO: SEÇÃO INSTAGRAM FEED
==================================================== */
.ig-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.ig-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    display: block;
    aspect-ratio: 4 / 5; /* Formato clássico do Instagram */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.ig-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ig-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ig-overlay i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.ig-overlay span {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ig-card:hover .ig-thumb { transform: scale(1.08); }
.ig-card:hover .ig-overlay { opacity: 1; }

/* ====================================================
   NOVO: FAQ (PERGUNTAS FREQUENTES)
==================================================== */
.faq-section { background-color: var(--white); }
.faq-grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

.faq-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--blue);
    box-shadow: 0 5px 15px rgba(28,78,155,0.08);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: var(--bg-soft);
    border: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.faq-question:hover { color: var(--blue); }
.faq-question i { color: var(--blue); transition: transform 0.3s ease; }

/* O que acontece quando abre a sanfona */
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-item.active .faq-question { background: var(--blue-light); color: var(--blue); }

.faq-answer {
    max-height: 0; /* Fechado por padrão */
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: white;
}

.faq-answer p {
    padding: 0 24px;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* O que acontece quando abre a sanfona */
.faq-item.active .faq-answer {
    max-height: 300px; 
    padding: 20px 0;
}
.faq-item.active .faq-answer p {
    opacity: 1;
}

/* ====================================================
   DEPOIMENTOS
==================================================== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial-card { background: white; padding: 32px; border-radius: 14px; border: 1px solid var(--line); }
.testimonial-card .stars { color: #F5A623; font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p { color: var(--ink); font-size: 1rem; font-style: italic; margin-bottom: 18px; line-height: 1.6; }
.testimonial-source { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.testimonial-source i { color: #4285F4; }

/* ====================================================
   MAPA E RODAPÉ
==================================================== */
.map-container { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(28,78,155,0.1); }

.footer { background-color: var(--blue-dark); color: #B9C8DC; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer h3 { color: white; font-family: var(--font-display); font-size: 1rem; margin-bottom: 18px; }
.footer p { margin-bottom: 10px; font-size: 0.92rem; }
.footer p i { color: #7ED957; width: 22px; }
.footer p a { color: #B9C8DC; text-decoration: none; transition: color 0.2s; }
.footer p a:hover { color: white; }
.footer-info p { max-width: 300px; }

.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-links a {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.05rem; text-decoration: none; transition: all 0.2s;
}
.social-links a:hover { background: var(--green); border-color: var(--green); transform: translateY(-2px); }
.footer-bottom { text-align: center; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; color: #8FA2BE; }

/* ====================================================
   MODAL
==================================================== */
.modal { display: none; position: fixed; z-index: 2000; inset: 0; background: rgba(18, 57, 105, 0.7); backdrop-filter: blur(6px); align-items: center; justify-content: center; }
.modal-content { background: white; padding: 44px; border-radius: 16px; width: 90%; max-width: 460px; position: relative; box-shadow: 0 25px 60px rgba(0,0,0,0.25); opacity: 0; transition: opacity 0.3s; }
.modal-header { text-align: center; margin-bottom: 26px; }
.modal-header .brand-mark { height: 36px; margin: 0 auto 12px; }
.modal-header h2 { font-size: 1.4rem; margin-bottom: 8px; }
.modal-header p { color: var(--ink-soft); font-size: 0.9rem; }
.close-btn { position: absolute; top: 18px; right: 20px; font-size: 22px; color: #94A3B8; cursor: pointer; }
.close-btn:hover { color: var(--ink); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.88rem; }
.form-group select { width: 100%; padding: 14px; border: 2px solid var(--line); border-radius: 8px; font-size: 0.94rem; font-family: var(--font-body); font-weight: 600; background: var(--bg-soft); outline: none; cursor: pointer; }
.form-group select:focus { border-color: var(--blue); }

/* ====================================================
   ACESSIBILIDADE E RESPONSIVIDADE
==================================================== */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

@media (max-width: 992px) {
    .calc-card { grid-template-columns: 1fr; }
    .calc-visual { min-height: 220px; }
    .hero { min-height: 620px; }
    .hero h1 { font-size: 2.8rem; }
    .hero-overlay {
        background: linear-gradient(180deg,
            rgba(18,57,105,0.97) 40%,
            rgba(18,57,105,0.88) 62%,
            rgba(18,57,105,0.5) 82%,
            rgba(18,57,105,0.15) 100%);
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-large { width: 100%; }
    .section-header h2 { font-size: 1.8rem; }
    .modal-content { padding: 34px 22px; }
    .section-padding { padding: 66px 0; }
    .calc-form { padding: 30px 24px; }
    .calc-fields { grid-template-columns: 1fr; }
    .trust-grid { justify-content: flex-start; }
    
    /* Botão flutuante WhatsApp menor no celular */
    .whatsapp-float { width: 54px; height: 54px; font-size: 1.6rem; bottom: 18px; right: 18px; }
    
    /* Ajustes da Seção Parceiros no Celular */
    .partners-track { gap: 40px; }
    .partners-track img { height: 40px; }
}