/* ============================================================
   style.css — Cuidador 24 Horas | Home Care
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ── Variáveis Globais ────────────────────────────────────── */
:root {
    --primary:       #8c0000;
    --primary-light: #fdf2f2;
    --secondary:     #262626;
    --text-main:     #333333;
    --text-muted:    #666666;
    --bg-light:      #f8f9fa;
    --white:         #ffffff;
    --shadow:        0 15px 35px rgba(0, 0, 0, 0.05);
    --radius:        30px;
}

/* ── Reset ────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Animação de Entrada (scroll reveal) ─────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── Header / Navegação ───────────────────────────────────── */
header {
    background: rgba(255, 255, 255, 0.98);
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-box {
    font-weight: 800;
    color: var(--primary);
    font-size: 18px;
    letter-spacing: -0.5px;
}

nav ul { display: flex; list-style: none; gap: 25px; align-items: center; }
nav a  { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 13px; transition: 0.3s; }
nav a:hover { color: var(--primary); }

.menu-toggle:focus,
.menu-toggle:focus-visible { outline: none; }

.btn-cta-header {
    background: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    background: var(--primary);
    padding: 130px 30px 80px;
    color: white;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 17px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 480px;
}

.hero-image-box img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Onda decorativa na base do hero */
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.wave svg { fill: var(--white); }

/* ── Estrutura Geral de Seções ────────────────────────────── */
section { padding: 60px 30px; }
.container { max-width: 1200px; margin: 0 auto; }

.overline {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* ── Sobre ────────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-content p { margin-bottom: 20px; color: var(--text-muted); font-size: 15px; }

.quote-small {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    font-style: italic;
    font-weight: 600;
    color: var(--primary);
    margin-top: 25px;
}

/* ── Serviços ─────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.s-card {
    background: white;
    padding: 35px 25px;
    border-radius: 20px;
    border: 1px solid #f2f2f2;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
}

.s-card:hover { transform: translateY(-10px); }

.s-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    font-size: 22px;
}

/* ── Equipe ───────────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
    text-align: center;
    margin-top: 30px;
}

.team-item i       { font-size: 24px; color: var(--primary); margin-bottom: 10px; display: block; }
.team-item h4      { font-size: 13px; font-weight: 700; }

/* ── Banner Hospital ──────────────────────────────────────── */
.hospital-banner {
    background: var(--primary);
    border-radius: var(--radius);
    padding: 50px;
    color: white;
    text-align: center;
}

.hospital-banner h2 { font-size: 26px; margin-bottom: 10px; }

/* ── Missão, Visão e Valores (MVV) ───────────────────────── */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.mvv-card {
    background: var(--bg-light);
    padding: 35px;
    border-radius: 20px;
    border-bottom: 4px solid var(--primary);
}

.mvv-card i { font-size: 28px; color: var(--primary); margin-bottom: 15px; }

/* Ícone da Missão: coração pulsando */
.mvv-card:nth-child(1) i { animation: heartbeat 1.4s ease-in-out infinite; }
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    30%       { transform: scale(1.25); }
    50%       { transform: scale(1); }
    70%       { transform: scale(1.15); }
}

/* Ícone da Visão: olho piscando */
.mvv-card:nth-child(2) i { animation: blink 3s ease-in-out infinite; }
@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95%           { transform: scaleY(0.1); }
}

/* Ícone dos Valores: estrela saltando e girando */
.mvv-card:nth-child(3) i { animation: starjump 4s ease-in-out infinite; }
@keyframes starjump {
    0%, 40%, 100% { transform: translateY(0) rotate(0deg); }
    20%           { transform: translateY(-8px) rotate(360deg); }
}

/* ── Área de Atuação (Mapa) ───────────────────────────────── */
.atuacao-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.map-card-wrapper { position: relative; border-radius: 12px; }

.map-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 420px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border: 3px solid #8c0000;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.city-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.city-item {
    background: white;
    padding: 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
}

.city-item:hover { color: var(--primary); }

.city-item.active {
    font-weight: 700;
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
    animation: cityPop 0.4s ease-out forwards;
}

@keyframes cityPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* ── Contato / WhatsApp ───────────────────────────────────── */
.contact-hub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

.wa-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    text-align: center;
    border: 2px solid transparent;
    transition: 0.3s;
}

.wa-card:hover { border-color: #25d366; transform: scale(1.02); }
.wa-card i     { font-size: 40px; color: #25d366; margin-bottom: 20px; }

.btn-wa {
    background: #25d366;
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    margin-top: 20px;
    width: 100%;
    display: block;
}

/* ── Rodapé ───────────────────────────────────────────────── */
footer {
    background: var(--secondary);
    color: white;
    padding: 40px;
    text-align: center;
    font-size: 12px;
    opacity: 0.8;
}

/* ── Responsividade (mobile) ──────────────────────────────── */
@media (max-width: 768px) {
    .hero-container,
    .about-grid,
    .atuacao-layout,
    .contact-hub { grid-template-columns: 1fr; text-align: center; }

    .city-list { grid-template-columns: 1fr; }

    /* Hamburguer */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
    }

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--primary);
        border-radius: 2px;
        transition: 0.3s;
    }

    nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        padding: 20px 30px;
        z-index: 999;
    }

    nav.open { display: block; }
    nav ul   { flex-direction: column; gap: 15px; }
}

/* ── Botão WhatsApp Flutuante ─────────────────────────── */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    color: #fff;
}

/* Tooltip (balão de texto ao lado) */
.tooltip-wa {
    position: absolute;
    right: 75px;
    background-color: #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.whatsapp-float:hover .tooltip-wa {
    opacity: 1;
    visibility: visible;
}

/* Animação de pulso */
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsividade para Mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
    
    /* Esconde o tooltip em telas pequenas para não atrapalhar a visão */
    .tooltip-wa {
        display: none;
    }
}
