/*
Theme Name: Psicores
Theme URI: https://psicores.com.br
Author: Tales Mendes
Author URI: https://psicores.com.br
Description: Tema personalizado para a clínica Psicores — psicologia online, atendimento familiar, abordagem TCC.
Version: 0.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: psicores
*/

/* ===== Base styles ===== */

:root {
    --color-navy: #1E3A8C;
    --color-navy-dark: #142668;
    --color-coral: #E94B6F;
    --color-orange: #F0A623;
    --color-teal: #1FB48E;
    --color-cream: #F8F5EF;
    --color-white: #FFFFFF;
    --color-text: #1F2937;
    --color-muted: #5B6470;
    --max-width: 1140px;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(30, 58, 140, 0.08);
    --shadow-strong: 0 20px 50px rgba(30, 58, 140, 0.18);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--color-text);
    background: var(--color-cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-navy); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-coral); }

h1, h2, h3, h4 {
    color: var(--color-navy);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 16px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--color-teal);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover {
    background: #189a78;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(31, 180, 142, 0.3);
}
.btn-coral { background: var(--color-coral); }
.btn-coral:hover { background: #d23f60; box-shadow: 0 10px 24px rgba(233, 75, 111, 0.3); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--color-navy);
    color: var(--color-navy);
}
.btn-outline:hover { background: var(--color-navy); color: #fff; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 245, 239, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(30, 58, 140, 0.08);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 16px;
}
.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-branding img { height: 44px; width: auto; }
.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
}
.site-nav a {
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
}
.site-nav a:hover { color: var(--color-coral); }
@media (max-width: 720px) {
    .site-nav { display: none; }
}

/* Hero */
.hero {
    padding: 70px 0 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(31, 180, 142, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}
.hero::after {
    content: "";
    position: absolute;
    bottom: -180px;
    left: -120px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(233, 75, 111, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}
.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: stretch;
}
.hero-text {
    text-align: left;
    align-self: center;
    padding-bottom: 90px;
}
.hero .eyebrow {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(30, 58, 140, 0.08);
    color: var(--color-navy);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    margin-bottom: 24px;
}
.hero h1 .accent { color: var(--color-coral); }
.hero p.lead {
    font-size: 1.15rem;
    color: var(--color-muted);
    max-width: 520px;
    margin: 0 0 36px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Hero image */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 620px;
    align-self: end;
}
.hero-visual .blob {
    position: absolute;
    z-index: 0;
}
.hero-visual .blob-teal {
    inset: 20px 10px 40px 20px;
    background: var(--color-teal);
    border-radius: 58% 42% 50% 50% / 55% 50% 50% 45%;
    transform: rotate(-6deg);
    opacity: 0.92;
}
.hero-visual .blob-coral {
    inset: 50px 40px 10px 50px;
    background: var(--color-coral);
    border-radius: 50% 50% 42% 58% / 50% 55% 45% 50%;
    transform: rotate(14deg);
    opacity: 0.45;
}
.hero-visual .photo {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.hero-visual .photo img {
    width: 165%;
    max-width: none;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(30, 58, 140, 0.25));
}
@media (max-width: 880px) {
    .hero { padding-top: 60px; }
    .hero .container { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .hero-text { text-align: center; padding-bottom: 0; }
    .hero p.lead { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { min-height: 440px; max-width: 460px; margin: 0 auto; align-self: stretch; }
    .hero-visual .photo img { width: 130%; }
}

/* Sections */
.section {
    padding: 90px 0;
    position: relative;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
.section-header .eyebrow {
    display: inline-block;
    color: var(--color-teal);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 16px;
}
.section-header p {
    color: var(--color-muted);
    font-size: 1.05rem;
    margin: 0;
}

/* About / clinic story */
.about-clinic {
    background: var(--color-white);
}
.about-clinic .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
.about-clinic .image-wrap {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    background: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.about-clinic .image-wrap img {
    width: 50%;
    height: auto;
}
.about-clinic h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.about-clinic p { color: var(--color-muted); font-size: 1.05rem; }
@media (max-width: 820px) {
    .about-clinic .container { grid-template-columns: 1fr; gap: 40px; }
}

/* Team */
.team {
    background: var(--color-cream);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.team-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}
.team-card .photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--color-cream);
}
.team-card .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.team-card .photo.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-coral) 100%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 4rem;
    font-weight: 700;
}
.team-card .body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.team-card h3 {
    font-size: 1.3rem;
    margin: 0 0 6px;
}
.team-card .crp {
    color: var(--color-teal);
    font-weight: 600;
    font-size: 0.88rem;
    margin: 0 0 16px;
    letter-spacing: 0.02em;
}
.team-card p { color: var(--color-muted); margin: 0 0 24px; flex: 1; }
.team-card .btn { width: 100%; justify-content: center; }

/* How it works */
.how {
    background: var(--color-navy);
    color: #fff;
}
.how h2 { color: #fff; }
.how .section-header p { color: rgba(255, 255, 255, 0.75); }
.how .section-header .eyebrow { color: var(--color-orange); }
.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}
.how-step {
    background: rgba(255, 255, 255, 0.06);
    padding: 32px 26px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.how-step .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-coral);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 18px;
}
.how-step h3 { color: #fff; margin: 0 0 10px; font-size: 1.15rem; }
.how-step p { margin: 0; color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }

/* FAQ */
.faq {
    background: var(--color-white);
}
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.faq-item {
    background: var(--color-cream);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 26px;
    font-weight: 600;
    color: var(--color-navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 1.6rem;
    color: var(--color-teal);
    font-weight: 400;
    transition: transform 0.2s ease;
    line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer {
    padding: 0 26px 24px;
    color: var(--color-muted);
}

/* Testimonials */
.testimonials {
    background: var(--color-cream);
}
.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.test-card {
    background: var(--color-white);
    padding: 32px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}
.test-card::before {
    content: """;
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: var(--color-orange);
    line-height: 1;
    font-family: Georgia, serif;
}
.test-card p {
    color: var(--color-text);
    font-size: 1rem;
    margin: 16px 0 20px;
    font-style: italic;
}
.test-card .author {
    font-weight: 600;
    color: var(--color-navy);
    font-size: 0.95rem;
    font-style: normal;
}

/* Final CTA */
.cta-final {
    background: linear-gradient(135deg, var(--color-coral) 0%, var(--color-orange) 100%);
    color: #fff;
    text-align: center;
    padding: 90px 0;
}
.cta-final h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.cta-final p { color: rgba(255, 255, 255, 0.95); font-size: 1.1rem; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-final .btn {
    background: var(--color-white);
    color: var(--color-coral);
    padding: 16px 36px;
    font-size: 1.05rem;
}
.cta-final .btn:hover { background: var(--color-cream); color: var(--color-coral); }

/* Footer */
.site-footer {
    background: var(--color-navy-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 50px 0 30px;
    font-size: 0.92rem;
}
.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.site-footer h4 {
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 16px;
}
.site-footer a { color: rgba(255, 255, 255, 0.75); }
.site-footer a:hover { color: var(--color-orange); }
.site-footer .brand-block img { height: 50px; margin-bottom: 16px; }
.site-footer .brand-block p { margin: 0; max-width: 320px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 720px) {
    .site-footer .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* Floating WhatsApp */
.whats-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: transform 0.2s ease;
}
.whats-float:hover { transform: scale(1.08); }
.whats-float svg { width: 32px; height: 32px; fill: #fff; }
