/* ============================================
   WIDGET WHATSAPP FLUTUANTE + MODAL
   ============================================ */

/* ---------- BOTÃO FLUTUANTE (apenas ícone) ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    background: #25d366;
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: -1px;
}

.whatsapp-float.is-open {
    background: #25d366;
    animation: waPulse 2.4s infinite;
}

.whatsapp-float.is-closed {
    background: #f0a500;
    color: #fff;
    animation: none;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.whatsapp-float:active {
    transform: scale(0.96);
}

.whatsapp-float-status-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.whatsapp-float.is-open .whatsapp-float-status-dot {
    background: #4caf50;
}

.whatsapp-float.is-closed .whatsapp-float-status-dot {
    background: #ff5252;
}

@keyframes waPulse {
    0%   { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5), 0 0 0 0   rgba(37, 211, 102, 0.7); }
    70%  { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5), 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5), 0 0 0 0   rgba(37, 211, 102, 0); }
}

/* ---------- MODAL ---------- */
.wa-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.wa-modal.active {
    opacity: 1;
    visibility: visible;
}

.wa-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.wa-modal-box {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wa-modal.active .wa-modal-box {
    transform: translateY(0) scale(1);
}

.wa-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.95rem;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wa-modal-close:hover {
    background: #fff;
    color: #2c2c2c;
    transform: rotate(90deg);
}

.wa-modal-header {
    padding: 26px 26px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #f8f5f2, #ffffff);
    border-bottom: 1px solid #f0f0f0;
}

.wa-modal-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    color: #fff;
}

.wa-modal-icon.open {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.wa-modal-icon.closed {
    background: linear-gradient(135deg, #f0a500, #d18e00);
}

.wa-modal-header h3 {
    margin: 0 0 4px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #2c2c2c;
    line-height: 1.2;
}

.wa-modal-status {
    margin: 0;
    font-size: 0.83rem;
    color: #666;
    line-height: 1.45;
}

.wa-modal-status strong {
    color: #2c2c2c;
    display: block;
    margin-top: 2px;
}

.wa-modal-body {
    padding: 22px 26px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.wa-modal-primarias {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.wa-modal-primarias .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.95rem;
}

.wa-modal-primarias .btn-whatsapp {
    background: #25d366;
    color: #fff;
    border: none;
}

.wa-modal-primarias .btn-whatsapp:hover {
    background: #128c7e;
}

.wa-modal-aviso {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    background: #fff8e1;
    border-left: 3px solid #f0a500;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.83rem;
    color: #6d4c00;
    line-height: 1.5;
}

.wa-modal-aviso i {
    color: #d18e00;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.wa-modal-subtitulo {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    margin: 20px 0 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wa-modal-subtitulo:first-child {
    margin-top: 0;
}

.wa-modal-subtitulo i {
    color: var(--color-primary);
}

.wa-modal-horarios {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
}

.wa-modal-horarios li {
    display: flex;
    justify-content: space-between;
    padding: 9px 14px;
    font-size: 0.86rem;
    border-bottom: 1px solid #f5f5f5;
}

.wa-modal-horarios li:last-child { border-bottom: none; }

.wa-modal-horarios li span { color: #666; }
.wa-modal-horarios li strong { color: #2c2c2c; }

.wa-modal-horarios li.hoje {
    background: #fdf7f0;
    border-left: 3px solid var(--color-primary);
}

.wa-modal-horarios li.hoje span {
    color: var(--color-primary-dark);
    font-weight: 600;
}

.wa-modal-horarios li.fechado { opacity: 0.55; }
.wa-modal-horarios li.fechado strong { color: #999; font-weight: 400; }

.wa-modal-faq {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wa-modal-faq a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #f8f9fa;
    color: #2c2c2c;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.87rem;
    border: 1px solid transparent;
}

.wa-modal-faq a:hover {
    background: #f0f2f5;
    border-color: var(--color-primary);
    transform: translateX(3px);
}

.wa-modal-faq a > i:first-child {
    color: var(--color-primary);
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.wa-modal-faq a > i:last-child {
    color: #ccc;
    font-size: 0.75rem;
    margin-left: auto;
}

.wa-modal-faq a div {
    flex: 1;
    min-width: 0;
}

.wa-modal-faq a strong {
    display: block;
    font-weight: 600;
    color: #2c2c2c;
    font-size: 0.87rem;
}

.wa-modal-faq a small {
    display: block;
    font-size: 0.74rem;
    color: #888;
    margin-top: 2px;
}

@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 18px;
        right: 18px;
        width: 56px;
        height: 56px;
        font-size: 1.55rem;
    }

    .whatsapp-float-status-dot {
        width: 13px;
        height: 13px;
    }

    .wa-modal {
        align-items: flex-end;
        padding: 0;
    }

    .wa-modal-box {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
    }

    .wa-modal-header {
        padding: 22px 20px 16px;
    }

    .wa-modal-body {
        padding: 18px 20px;
    }

    .wa-modal-close {
        top: 12px;
        right: 12px;
    }
}

/* ============================================
   SEÇÃO FAQ NA LANDING PAGE
   ============================================ */

.faq {
    background: #f8f9fa;
    padding: 80px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.faq-categoria {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.faq-categoria-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f5f5f5;
}

.faq-categoria-header i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.faq-categoria-header h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #2c2c2c;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s;
    background: #fff;
}

.faq-item[open] {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.15);
}

.faq-item summary {
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.92rem;
    color: #2c2c2c;
    list-style: none;
    transition: background 0.2s;
    user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover {
    background: #fafafa;
}

.faq-item summary i {
    color: var(--color-primary);
    font-size: 0.8rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item[open] summary i {
    transform: rotate(180deg);
}

.faq-resposta {
    padding: 0 16px 16px;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.65;
    animation: fadeInFaq 0.3s ease;
}

.faq-resposta p { margin: 0 0 10px; }
.faq-resposta p:last-child { margin-bottom: 0; }

.faq-resposta ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.faq-resposta li {
    padding: 4px 0 4px 20px;
    position: relative;
}

.faq-resposta li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.faq-resposta a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
}

@keyframes fadeInFaq {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.faq-horarios {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-horarios li {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 0.85rem;
    border-bottom: 1px solid #f5f5f5;
}

.faq-horarios li:last-child { border-bottom: none; }
.faq-horarios li span { color: #666; }
.faq-horarios li strong { color: #2c2c2c; }

.faq-horarios li::before { display: none; }

.faq-mapa {
    margin-top: 12px;
    border-radius: 10px;
    overflow: hidden;
    height: 220px;
}

.faq-mapa iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.faq-cta {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    color: #fff;
    border-radius: 20px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.faq-cta-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.faq-cta-text {
    flex: 1;
    min-width: 200px;
}

.faq-cta-text h3 {
    margin: 0 0 4px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.faq-cta-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.85;
}

.faq-cta-acoes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .faq { padding: 60px 0; }
    .faq-grid { gap: 20px; }
    .faq-categoria { padding: 20px; }
    .faq-cta {
        padding: 24px 20px;
        flex-direction: column;
        text-align: center;
    }
    .faq-cta-acoes {
        width: 100%;
        flex-direction: column;
    }
    .faq-cta-acoes .btn {
        width: 100%;
        justify-content: center;
    }
}