/* ==============================================================
   TERAPIAS INTEGRADAS RJ - Design System
   Paleta derivada da identidade da clinica (teal profundo + coral suave)
   Tipografia: Fraunces (display, serifada com carater) + Outfit (texto)
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Cores - base teal da marca */
    --teal-900: #0f3d3e;
    --teal-700: #1a5e60;
    --teal-600: #1f7a7c;
    --teal-500: #2a9d9f;
    --teal-400: #4fb8ba;
    --teal-100: #d4ecec;
    --teal-50:  #eef7f7;

    /* Coral / pessego da marca */
    --coral-600: #e8775f;
    --coral-500: #f08a72;
    --coral-400: #f4a896;
    --coral-200: #f9d4ca;
    --coral-100: #fce8e1;

    /* Neutros quentes */
    --cream:    #fdf8f3;
    --sand:     #f5ede3;
    --ink-900:  #1c2526;
    --ink-700:  #3a4748;
    --ink-500:  #647072;
    --ink-300:  #9aa4a5;
    --white:    #ffffff;

    /* Semanticos */
    --bg:        var(--cream);
    --surface:   var(--white);
    --text:      var(--ink-900);
    --text-soft: var(--ink-500);
    --primary:   var(--teal-600);
    --primary-dark: var(--teal-900);
    --accent:    var(--coral-500);

    /* Tipografia */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Outfit', system-ui, sans-serif;

    /* Espacamento e raios */
    --radius-sm: 10px;
    --radius:    18px;
    --radius-lg: 28px;
    --radius-full: 999px;

    /* Sombras suaves */
    --shadow-sm: 0 2px 8px rgba(15, 61, 62, 0.06);
    --shadow:    0 8px 30px rgba(15, 61, 62, 0.10);
    --shadow-lg: 0 24px 60px rgba(15, 61, 62, 0.16);

    --maxw: 1180px;
    --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-weight: 400;
    overflow-x: hidden;
    font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--primary-dark);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
.eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.eyebrow::before {
    content: '';
    width: 28px; height: 2px;
    background: var(--accent);
    display: inline-block;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* ---------- Botoes ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.8rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: var(--shadow); }
.btn--accent { background: var(--accent); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--coral-600); transform: translateY(-3px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--primary-dark); border: 1.5px solid var(--teal-100); }
.btn--ghost:hover { border-color: var(--primary); background: var(--teal-50); }
.btn--lg { padding: 1.15rem 2.3rem; font-size: 1.08rem; }

/* ==============================================================
   HEADER
   ============================================================== */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
    padding-block: 1.2rem;
}
.site-header.scrolled {
    background: rgba(253, 248, 243, 0.85);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
    padding-block: 0.7rem;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: -0.01em;
}
.brand-text span { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-weight: 500; font-size: 0.97rem; color: var(--ink-700); transition: color var(--transition); position: relative; }
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -6px;
    width: 0; height: 2px; background: var(--accent); transition: width var(--transition);
}
.nav-links a:hover { color: var(--primary-dark); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--primary-dark); }
.nav-toggle svg { width: 28px; height: 28px; }

/* ==============================================================
   HERO
   ============================================================== */
.hero { position: relative; padding-top: 11rem; padding-bottom: 5rem; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; top: -20%; right: -10%;
    width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
    background: radial-gradient(circle, var(--teal-100) 0%, transparent 68%);
    z-index: 0; opacity: 0.7;
}
.hero::after {
    content: ''; position: absolute; bottom: -30%; left: -15%;
    width: 50vw; height: 50vw; max-width: 620px; max-height: 620px;
    background: radial-gradient(circle, var(--coral-100) 0%, transparent 70%);
    z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: center; }
.hero-content h1 { margin-block: 1.2rem 1.4rem; }
.hero-content h1 em { font-style: italic; color: var(--accent); }
.hero-content p.lead { font-size: 1.22rem; color: var(--text-soft); max-width: 33ch; margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual .photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
    background: var(--teal-100);
    position: relative;
}
.hero-visual .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
    position: absolute; bottom: -28px; left: -28px;
    background: var(--surface); border-radius: var(--radius);
    padding: 1.1rem 1.4rem; box-shadow: var(--shadow); display: flex; gap: 0.9rem; align-items: center;
    max-width: 240px;
}
.hero-badge .icon-circle { background: var(--teal-50); color: var(--primary); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.hero-badge .icon-circle svg { width: 24px; height: 24px; }
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--primary-dark); }
.hero-badge span { font-size: 0.85rem; color: var(--text-soft); }

/* trust bar */
.trust-bar { position: relative; z-index: 1; margin-top: 4.5rem; display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: center; padding-top: 2.5rem; border-top: 1px solid var(--sand); }
.trust-item { display: flex; align-items: center; gap: 0.7rem; color: var(--text-soft); font-weight: 500; font-size: 0.98rem; }
.trust-item svg { width: 22px; height: 22px; color: var(--teal-500); }

/* ==============================================================
   SECTION HEADINGS
   ============================================================== */
.section-head { max-width: 640px; margin-bottom: 3.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-block: 1rem 1.1rem; }
.section-head p { color: var(--text-soft); font-size: 1.12rem; }

/* ==============================================================
   SERVICES GRID
   ============================================================== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.service-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    border: 1px solid var(--sand);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: ''; position: absolute; inset: auto auto -40px -40px;
    width: 120px; height: 120px; border-radius: 50%;
    background: var(--teal-50); opacity: 0; transition: opacity var(--transition); z-index: 0;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--teal-100); }
.service-card:hover::after { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.service-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
    color: var(--white); display: grid; place-items: center; margin-bottom: 1.3rem;
    transition: transform var(--transition);
}
.service-card:nth-child(even) .service-icon { background: linear-gradient(135deg, var(--coral-400), var(--coral-600)); }
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--text-soft); font-size: 0.97rem; margin-bottom: 1.2rem; }
.service-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--primary); font-weight: 600; font-size: 0.92rem; transition: gap var(--transition); }
.service-link svg { width: 18px; height: 18px; }
.service-card:hover .service-link { gap: 0.7rem; }

/* ==============================================================
   ABOUT / FEATURE
   ============================================================== */
.about { background: var(--teal-900); color: var(--teal-50); position: relative; overflow: hidden; }
.about::before {
    content: ''; position: absolute; top: -10%; right: -5%; width: 40vw; height: 40vw;
    max-width: 500px; max-height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(79,184,186,0.25), transparent 70%);
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.about h2 { color: var(--white); }
.about .eyebrow { color: var(--coral-400); }
.about .eyebrow::before { background: var(--coral-400); }
.about p { color: rgba(238, 247, 247, 0.82); font-size: 1.1rem; margin-block: 1.2rem; }
.about-features { display: grid; gap: 1.3rem; margin-top: 2rem; }
.about-feature { display: flex; gap: 1rem; align-items: flex-start; }
.about-feature .check { width: 40px; height: 40px; border-radius: 12px; background: rgba(79,184,186,0.18); color: var(--teal-400); display: grid; place-items: center; flex-shrink: 0; }
.about-feature .check svg { width: 22px; height: 22px; }
.about-feature strong { display: block; color: var(--white); font-size: 1.05rem; font-weight: 600; }
.about-feature span { color: rgba(238,247,247,0.7); font-size: 0.95rem; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-photos .photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow-lg); background: var(--teal-700); }
.about-photos .photo:first-child { margin-top: 2.5rem; }
.about-photos .photo img { width: 100%; height: 100%; object-fit: cover; }

/* ==============================================================
   CONTACT / FORM
   ============================================================== */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; align-items: start; }
.contact-info-card { background: var(--surface); border-radius: var(--radius-lg); padding: 2.6rem; box-shadow: var(--shadow); border: 1px solid var(--sand); }
.contact-detail { display: flex; gap: 1.1rem; align-items: flex-start; padding-block: 1.3rem; border-bottom: 1px solid var(--sand); }
.contact-detail:last-child { border-bottom: none; padding-bottom: 0; }
.contact-detail:first-child { padding-top: 0; }
.contact-detail .icon-box { width: 48px; height: 48px; border-radius: 14px; background: var(--teal-50); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.contact-detail .icon-box svg { width: 24px; height: 24px; }
.contact-detail .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-300); font-weight: 600; }
.contact-detail .value { font-size: 1.08rem; color: var(--text); font-weight: 500; }
.contact-detail a.value:hover { color: var(--primary); }

/* formulário */
.form-card { background: var(--surface); border-radius: var(--radius-lg); padding: 2.8rem; box-shadow: var(--shadow); border: 1px solid var(--sand); }
.form-card h3 { margin-bottom: 0.5rem; }
.form-card > p { color: var(--text-soft); margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { margin-bottom: 1.3rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--ink-700); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm);
    border: 1.5px solid var(--sand); background: var(--cream);
    font-family: inherit; font-size: 1rem; color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--teal-400); background: var(--white);
    box-shadow: 0 0 0 4px var(--teal-50);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.85rem; color: var(--ink-300); margin-top: 1rem; display: flex; gap: 0.5rem; align-items: flex-start; }
.form-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--teal-500); }

/* ==============================================================
   FOOTER
   ============================================================== */
.site-footer { background: var(--primary-dark); color: rgba(238,247,247,0.7); padding-block: 4rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.3rem; }
.footer-brand img { width: 44px; height: 44px; object-fit: contain; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); }
.site-footer p { font-size: 0.95rem; max-width: 38ch; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 1.2rem; font-family: var(--font-body); font-weight: 600; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul li a { font-size: 0.95rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--coral-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.88rem; }

/* ==============================================================
   FLOATING WHATSAPP
   ============================================================== */
.wa-float {
    position: fixed; bottom: 26px; right: 26px; z-index: 90;
    width: 60px; height: 60px; border-radius: 50%;
    background: #25d366; color: var(--white);
    display: grid; place-items: center;
    box-shadow: 0 10px 30px rgba(37,211,102,0.4);
    transition: transform var(--transition);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.1); }
.wa-float::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid #25d366; animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.7); opacity: 0; } }

/* ==============================================================
   SERVICE DETAIL PAGE
   ============================================================== */
.service-hero { padding-top: 10rem; padding-bottom: 3rem; background: var(--teal-50); position: relative; overflow: hidden; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; color: var(--text-soft); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb svg { width: 16px; height: 16px; }
.service-hero .big-icon { width: 78px; height: 78px; border-radius: 20px; background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); color: var(--white); display: grid; place-items: center; margin-bottom: 1.5rem; }
.service-hero .big-icon svg { width: 40px; height: 40px; }
.service-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3.5rem; }
.service-content p { margin-bottom: 1.3rem; color: var(--ink-700); font-size: 1.1rem; }
.service-sidebar { position: sticky; top: 100px; }
.sidebar-card { background: var(--surface); border: 1px solid var(--sand); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.sidebar-card h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.sidebar-card p { color: var(--text-soft); margin-bottom: 1.5rem; font-size: 0.98rem; }

/* ==============================================================
   ANIMATIONS (reveal on scroll)
   ============================================================== */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22,1,0.36,1); }
[data-reveal].visible { opacity: 1; transform: translateY(0); }

/* ==============================================================
   RESPONSIVE
   ============================================================== */
@media (max-width: 980px) {
    .hero-grid, .about-grid, .contact-grid, .service-body { grid-template-columns: 1fr; gap: 3rem; }
    .hero-visual { max-width: 460px; margin-inline: auto; }
    .about-photos { max-width: 460px; }
    .service-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 720px) {
    body { font-size: 16px; }
    .nav-links { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); background: var(--surface); flex-direction: column; justify-content: center; gap: 2rem; transform: translateX(100%); transition: transform var(--transition); box-shadow: var(--shadow-lg); padding: 2rem; }
    .nav-links.open { transform: translateX(0); }
    .nav-toggle { display: flex; z-index: 110; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-badge { left: 50%; transform: translateX(-50%); bottom: -32px; }
}

/* ==============================================================
   BANNER LGPD
   ============================================================== */
.lgpd-banner {
    position: fixed; inset: auto 1rem 1rem 1rem; z-index: 200;
    max-width: 920px; margin-inline: auto;
    background: var(--surface); border: 1px solid var(--sand);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    transform: translateY(140%); opacity: 0;
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), opacity 0.5s ease;
}
.lgpd-banner.show { transform: translateY(0); opacity: 1; }
.lgpd-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center; padding: 1.5rem 1.8rem; }
.lgpd-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--teal-50); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.lgpd-icon svg { width: 28px; height: 28px; }
.lgpd-text strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--primary-dark); margin-bottom: 0.3rem; }
.lgpd-text p { font-size: 0.92rem; color: var(--text-soft); line-height: 1.55; margin: 0; }
.lgpd-actions { display: flex; gap: 0.8rem; flex-shrink: 0; }
.lgpd-actions .btn { padding: 0.8rem 1.4rem; font-size: 0.95rem; }
@media (max-width: 860px) {
    .lgpd-inner { grid-template-columns: 1fr; text-align: center; gap: 1.1rem; }
    .lgpd-icon { margin-inline: auto; }
    .lgpd-actions { flex-direction: column; }
    .lgpd-actions .btn { width: 100%; justify-content: center; }
}
/* ==============================================================
   CORRECAO DE OVERFLOW HORIZONTAL NO MOBILE
   ============================================================== */
html, body {
    max-width: 100%;
    overflow-x: clip; /* mais robusto que hidden para conter filhos */
}

@media (max-width: 720px) {
    /* Contem os circulos decorativos que estouram a largura no celular */
    .hero::before, .hero::after, .about::before {
        max-width: 90vw;
        max-height: 90vw;
    }
    .hero::before { right: -30%; }
    .hero::after { left: -40%; }

    /* Garante que nenhuma secao ultrapasse a largura da tela */
    .hero, .about, .section, .site-footer, .contact-grid, .hero-grid {
        max-width: 100%;
        overflow-x: clip;
    }

    /* O badge do hero as vezes vaza pela margem negativa */
    .hero-badge { max-width: calc(100vw - 3rem); }
}