/* ============================================================
   Clínica Vida Plena — CSS
   ============================================================ */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: rgba(37, 99, 235, 0.08);
    --accent: #10b981;
    --accent-hover: #059669;
    --whatsapp: #25D366;

    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;

    --text: #1e293b;
    --text-dim: #64748b;
    --text-bright: #ffffff;

    --border: #e2e8f0;
    --border-strong: #cbd5e1;

    --font-head: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 8px 30px rgba(37, 99, 235, 0.25);

    --t: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Top bar ---------- */
.top-bar {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 0;
    font-size: 13px;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.top-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.top-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-info svg { color: var(--accent); }
.top-social {
    display: flex;
    gap: 8px;
}
.top-social a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--t);
}
.top-social a:hover {
    color: var(--accent);
    background: rgba(16, 185, 129, 0.15);
}

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-mark {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-text strong {
    display: block;
    font-family: var(--font-head);
    font-size: 18px;
    color: var(--text);
    letter-spacing: -0.01em;
}
.logo-text span {
    display: block;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 32px;
    font-size: 14px;
    font-weight: 500;
}
.nav a {
    color: var(--text-dim);
    position: relative;
}
.nav a:hover { color: var(--primary); }
.nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--t);
}
.nav a:hover::after { width: 100%; }

.menu-toggle { display: none; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--t);
    white-space: nowrap;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    border-color: var(--whatsapp);
}
.btn-whatsapp:hover {
    background: #1da851;
    border-color: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
}
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 60px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}
.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero-title em {
    font-style: normal;
    color: var(--primary);
    position: relative;
}
.hero-title em::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(37, 99, 235, 0.12);
    z-index: -1;
    border-radius: 4px;
}
.hero-desc {
    font-size: 1.05rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.hero-trust {
    display: flex;
    gap: 50px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.trust-item strong {
    display: block;
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}
.trust-item span {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.3;
}

/* ---------- Hero image ---------- */
.hero-image {
    position: relative;
}
.hero-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}
.hero-card {
    position: absolute;
    background: #fff;
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    animation: float 3s ease-in-out infinite;
}
.hero-card-1 {
    top: 8%;
    left: -30px;
    animation-delay: 0s;
}
.hero-card-2 {
    bottom: 8%;
    right: -30px;
    animation-delay: 1.5s;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.hero-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.hero-card strong {
    display: block;
    font-family: var(--font-head);
    font-size: 14px;
    color: var(--text);
    margin-bottom: 2px;
}
.hero-card span {
    font-size: 12px;
    color: var(--text-dim);
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}
.section-header .eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
}
.section-header h2 em {
    font-style: normal;
    color: var(--primary);
}
.section-header p {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-top: 12px;
}

/* ---------- Sobre ---------- */
.sobre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.sobre-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--t);
}
.sobre-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.sobre-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all var(--t);
}
.sobre-card:hover .sobre-icon {
    background: var(--primary);
    color: #fff;
}
.sobre-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text);
}
.sobre-card p {
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.6;
}

/* ---------- Especialidades ---------- */
.especialidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.especialidade {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    transition: all var(--t);
}
.especialidade:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}
.especialidade-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t);
}
.especialidade:hover .especialidade-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    transform: rotate(-5deg) scale(1.05);
}
.especialidade h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text);
}
.especialidade p {
    color: var(--text-dim);
    font-size: 13px;
}

/* ---------- Equipe ---------- */
.equipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}
.medico {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--t);
    border: 1px solid var(--border);
}
.medico:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.medico-foto {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
}
.medico-info {
    padding: 24px 22px;
}
.medico-info h3 {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 4px;
}
.medico-info > span {
    display: block;
    font-size: 12.5px;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.medico-info p {
    font-size: 13.5px;
    color: var(--text-dim);
}

/* ---------- Convênios ---------- */
.convenios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}
.convenio {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 16px;
    text-align: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dim);
    transition: all var(--t);
    letter-spacing: -0.01em;
}
.convenio:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-4px);
}

/* ---------- Depoimentos ---------- */
.depoimentos {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
    color: #fff;
}
.depoimentos .section-header .eyebrow { color: var(--accent); }
.depoimentos .section-header h2 { color: #fff; }

.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.depoimento {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all var(--t);
}
.depoimento:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-4px);
}
.depoimento .stars {
    color: #fbbf24;
    font-size: 18px;
    letter-spacing: 4px;
    margin-bottom: 18px;
}
.depoimento p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}
.depoimento strong {
    font-family: var(--font-head);
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ---------- Agendar ---------- */
.agendar {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.agendar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.agendar-info .eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
}
.agendar-info h2 {
    color: var(--text);
    margin-bottom: 16px;
}
.agendar-info > p {
    color: var(--text-dim);
    margin-bottom: 32px;
    font-size: 1.02rem;
    line-height: 1.7;
}
.agendar-list {
    list-style: none;
    display: grid;
    gap: 18px;
    margin-bottom: 32px;
}
.agendar-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.agendar-list svg {
    color: var(--primary);
    background: var(--primary-soft);
    width: 42px;
    height: 42px;
    padding: 11px;
    border-radius: var(--radius);
    flex-shrink: 0;
}
.agendar-list strong {
    display: block;
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 3px;
}
.agendar-list span {
    font-size: 14.5px;
    color: var(--text);
}

/* ---------- Formulário ---------- */
.agendar-form {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}
.agendar-form h3 {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 8px;
}
.agendar-form > p {
    color: var(--text-dim);
    font-size: 14.5px;
    margin-bottom: 28px;
}

.form-field {
    margin-bottom: 18px;
}
.form-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--text);
    margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14.5px;
    color: var(--text);
    transition: all var(--t);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-field textarea {
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
}

.form-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-dim);
    margin-top: 16px;
    justify-content: center;
}
.form-privacy svg { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 70px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-desc {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
    color: rgba(255, 255, 255, 0.7);
}
.footer h4 {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
}
.footer ul { list-style: none; }
.footer li {
    padding: 5px 0;
    font-size: 14px;
}
.footer a:hover { color: var(--accent); }
.logo-footer .logo-mark {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
.logo-footer .logo-text strong { color: #fff; }
.logo-footer .logo-text span { color: rgba(255, 255, 255, 0.7); }
.footer-bottom {
    padding: 24px 0;
    font-size: 13px;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-bottom a { color: var(--accent); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--whatsapp);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    z-index: 90;
    transition: all var(--t);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

/* ---------- Demo banner ---------- */
.demo-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--bg-dark);
    color: #fff;
    padding: 12px 20px;
    border-radius: 100px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow);
    z-index: 90;
}
.demo-banner a {
    color: var(--accent);
    font-weight: 600;
}
.demo-banner a:hover { color: #fff; }

/* ---------- Responsivo ---------- */
@media (max-width: 991px) {
    .nav { display: none; }
    .menu-toggle { display: flex; }
    .header-actions { display: none; }

    .hero-grid { grid-template-columns: 1fr; gap: 50px; }
    .hero-image { max-width: 400px; margin: 0 auto; }
    .hero-card-1 { left: 10px; }
    .hero-card-2 { right: 10px; }

    .agendar-grid { grid-template-columns: 1fr; gap: 40px; }
    .depoimentos-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 575px) {
    .container { padding: 0 18px; }
    .section { padding: 60px 0; }
    .hero { padding: 40px 0 60px; }
    .hero-trust { gap: 24px; flex-wrap: wrap; }
    .trust-item strong { font-size: 1.5rem; }

    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }

    .hero-card { padding: 10px 14px; }
    .hero-card strong { font-size: 12.5px; }
    .hero-card span { font-size: 11px; }
    .hero-card-icon { width: 34px; height: 34px; }

    .agendar-form { padding: 32px 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }

    .demo-banner { bottom: 12px; left: 12px; right: 90px; font-size: 11.5px; }
    .whatsapp-float { bottom: 12px; right: 12px; width: 52px; height: 52px; }
}