/* Clínicas de Recuperação SP - Identidade Clean
   Azul sóbrio + branco
   Fundo quase branco / cinza-azul suave
   Menos gradientes, sombras leves, botões sólidos, tipografia limpa
*/

:root {
    --verde: #1B4F9C;
    --verde-escuro: #143A75;
    --verde-claro: #E8F1FB;
    --verde-suave: #F4F7FC;
    --cinza: #3D4A5C;
    --cinza-claro: #6B7A8F;
    --fundo: #FAFBFD;
    --branco: #FFFFFF;
    --borda: #E2E8F0;
    --sombra: 0 2px 8px rgba(27, 79, 156, 0.08);
    --sombra-hover: 0 4px 16px rgba(27, 79, 156, 0.14);
    --radius: 8px;
    --fonte: 'Source Sans 3', system-ui, -apple-system, sans-serif;
    --fonte-titulo: 'Cormorant Garamond', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--fonte);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--cinza);
    background: var(--fundo);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--verde); text-decoration: none; transition: color .2s; }
a:hover { color: var(--verde-escuro); }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--branco);
    border-bottom: 1px solid var(--borda);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--sombra);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--verde);
    font-weight: 700;
    font-size: 1.15rem;
}

.logo-link img { height: 48px; width: auto; max-width: 200px; }

.logo-text { font-family: var(--fonte-titulo); font-size: 1.2rem; letter-spacing: -0.02em; white-space: nowrap; line-height: 1.15; }

.nav-main {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-main a {
    display: block;
    padding: 0.5rem 0.9rem;
    color: var(--cinza);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: background .2s, color .2s;
}

.nav-main a:hover,
.nav-main a.active {
    background: var(--verde-claro);
    color: var(--verde);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .15s;
    text-decoration: none;
    line-height: 1.3;
}

.btn-primary {
    background: var(--verde);
    color: var(--branco) !important;
    box-shadow: var(--sombra);
}

.btn-primary:hover {
    background: var(--verde-escuro);
    box-shadow: var(--sombra-hover);
    color: var(--branco) !important;
}

.btn-outline {
    background: transparent;
    color: var(--verde) !important;
    border: 2px solid var(--verde);
}

.btn-outline:hover {
    background: var(--verde);
    color: var(--branco) !important;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff !important;
}

.btn-whatsapp:hover { background: #1da851; color: #fff !important; }

.header-cta { display: flex; gap: 0.6rem; align-items: center; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--cinza);
}

.menu-toggle svg { width: 28px; height: 28px; }

/* ===== HERO ===== */
.hero {
    background: var(--verde-suave);
    padding: 3.5rem 0 3rem;
    border-bottom: 1px solid var(--borda);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

.hero h1 {
    font-family: var(--fonte-titulo);
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.2;
    color: var(--verde-escuro);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--cinza-claro);
    margin-bottom: 1.5rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--cinza-claro);
}

.hero-badges span {
    background: var(--branco);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    border: 1px solid var(--borda);
}

.hero-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sombra);
}

.hero-image img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

/* ===== SECTIONS ===== */
.section {
    padding: 3.5rem 0;
}

.section-alt {
    background: var(--branco);
    border-top: 1px solid var(--borda);
    border-bottom: 1px solid var(--borda);
}

.section-title {
    font-family: var(--fonte-titulo);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--verde-escuro);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.section-sub {
    color: var(--cinza-claro);
    margin-bottom: 2rem;
    max-width: 640px;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header .section-sub {
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--branco);
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--sombra);
    transition: box-shadow .2s, transform .15s;
}

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

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--verde-claro);
    color: var(--verde);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.15rem;
    color: var(--verde-escuro);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card p { font-size: 0.95rem; color: var(--cinza-claro); }

/* Content pages */
.page-hero {
    background: var(--verde-suave);
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid var(--borda);
}

.page-hero h1 {
    font-family: var(--fonte-titulo);
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    color: var(--verde-escuro);
    margin-bottom: 0.6rem;
}

.page-hero p {
    color: var(--cinza-claro);
    max-width: 700px;
}

.content-wrap {
    padding: 2.5rem 0 3.5rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
}

.content-main {
    background: var(--branco);
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--sombra);
}

.content-main h2 {
    font-family: var(--fonte-titulo);
    font-size: 1.55rem;
    color: var(--verde-escuro);
    margin: 1.75rem 0 0.75rem;
}

.content-main h2:first-child { margin-top: 0; }

.content-main h3 {
    font-size: 1.2rem;
    color: var(--verde);
    margin: 1.4rem 0 0.6rem;
}

.content-main p { margin-bottom: 1rem; }

.content-main ul, .content-main ol {
    margin: 0 0 1.25rem 1.4rem;
}

.content-main li { margin-bottom: 0.4rem; }

.content-main img {
    border-radius: var(--radius);
    margin: 1.25rem 0;
    box-shadow: var(--sombra);
}

.sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background: var(--branco);
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--sombra);
    margin-bottom: 1.25rem;
}

.sidebar-card h4 {
    font-size: 1.05rem;
    color: var(--verde-escuro);
    margin-bottom: 0.85rem;
    font-weight: 600;
}

.sidebar-card ul { list-style: none; }

.sidebar-card li { margin-bottom: 0.5rem; }

.sidebar-card a {
    color: var(--cinza);
    font-size: 0.95rem;
}

.sidebar-card a:hover { color: var(--verde); }

/* FAQ */
.faq-list { margin-top: 1.5rem; }

.faq-item {
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    background: var(--branco);
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--verde-escuro);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--verde);
    font-weight: 400;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
    padding: 0 1.25rem 1.15rem;
    color: var(--cinza-claro);
    font-size: 0.98rem;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.blog-card {
    background: var(--branco);
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: box-shadow .2s, transform .15s;
}

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

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-card-body { padding: 1.25rem; }

.blog-card h3 {
    font-size: 1.15rem;
    color: var(--verde-escuro);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.blog-card p {
    font-size: 0.92rem;
    color: var(--cinza-claro);
    margin-bottom: 0.85rem;
}

.blog-meta {
    font-size: 0.82rem;
    color: var(--cinza-claro);
}

/* Form */
.form-group { margin-bottom: 1.15rem; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
    color: var(--cinza);
}

.form-control {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background: var(--branco);
    transition: border-color .2s, box-shadow .2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--verde);
    box-shadow: 0 0 0 3px rgba(26, 122, 92, 0.15);
}

textarea.form-control { min-height: 120px; resize: vertical; }

/* Footer */
.site-footer {
    background: #FFFFFF;
    color: var(--cinza);
    padding: 2.75rem 0 1.25rem;
    margin-top: 2rem;
    border-top: 1px solid var(--borda);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2rem;
    margin-bottom: 1.75rem;
}

.site-footer h4 {
    color: var(--verde-escuro);
    font-size: 1.02rem;
    margin-bottom: 0.9rem;
    font-weight: 600;
}

.site-footer p { font-size: 0.92rem; line-height: 1.6; margin-bottom: 0.55rem; color: var(--cinza-claro); }

.site-footer a { color: var(--cinza); }
.site-footer a:hover { color: var(--verde); }

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; font-size: 0.92rem; }

.footer-bottom {
    border-top: 1px solid var(--borda);
    padding-top: 1.15rem;
    text-align: center;
    font-size: 0.86rem;
    color: var(--cinza-claro);
}

.footer-bottom a { color: var(--cinza); }
.footer-bottom a:hover { color: var(--verde); }

/* WhatsApp float — retangular, esquerda, piscante */
.wa-float {
    position: fixed;
    bottom: 22px;
    left: 18px;
    right: auto;
    width: auto;
    height: auto;
    min-height: 52px;
    padding: 0.7rem 1.1rem 0.7rem 0.95rem;
    background: #25D366;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
    z-index: 999;
    transition: transform .2s, box-shadow .2s;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    animation: wa-pulse 0.7s ease-in-out infinite;
}

.wa-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
    color: #fff !important;
    animation: none;
}

.wa-float svg {
    width: 26px;
    height: 26px;
    fill: #fff;
    flex-shrink: 0;
}

.wa-float-text {
    white-space: nowrap;
    line-height: 1.2;
}

@keyframes wa-pulse {
    0%, 100% {
        box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 6px 28px rgba(37, 211, 102, 0.7);
        transform: scale(1.08);
        filter: brightness(1.25);
    }
}

@media (max-width: 480px) {
    .wa-float {
        left: 12px;
        bottom: 16px;
        padding: 0.6rem 0.9rem;
        font-size: 0.88rem;
        min-height: 48px;
    }
    .wa-float svg { width: 22px; height: 22px; }
}

/* CTA banner */
.cta-banner {
    background: var(--verde);
    color: #fff;
    padding: 2.5rem 0;
    text-align: center;
}

.cta-banner h2 {
    font-family: var(--fonte-titulo);
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
    color: #fff;
}

.cta-banner p {
    opacity: 0.9;
    margin-bottom: 1.25rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .btn-primary {
    background: #fff;
    color: var(--verde) !important;
}

.cta-banner .btn-primary:hover {
    background: var(--verde-claro);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--sombra);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.88rem;
    color: var(--cinza-claro);
    margin-bottom: 1rem;
}

.breadcrumb a { color: var(--cinza-claro); }
.breadcrumb a:hover { color: var(--verde); }

/* City page specific - no strong CTAs on main, but content full */
.city-content .cta-soft {
    background: var(--verde-claro);
    border-left: 4px solid var(--verde);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-image { order: -1; }
    .hero-image img { height: 240px; }
    .content-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .logo-text { font-size: 0.95rem; white-space: nowrap; }
    .logo-link { gap: 0.45rem; flex-shrink: 1; min-width: 0; }
    .logo-link img { height: 34px; flex-shrink: 0; }
    .header-inner { padding: 0.6rem 0; gap: 0.4rem; }
    .header-cta { flex-shrink: 0; }
    .nav-main {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--branco);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--borda);
        box-shadow: var(--sombra);
    }
    .nav-main.open { display: flex; }
    .menu-toggle { display: block; }
    .header-cta .btn-outline { display: none; }
    .btn-whatsapp { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 2rem 0 1.5rem; }
    .hero h1 { font-size: 1.65rem; }
    .hero-image img { height: 220px; }
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
