/* =========================================================
   MURILO OLIVEIRA | PSICÓLOGO
   Identidade visual Rede Afeto
   ========================================================= */

:root {
    --navy: #003366;
    --blue: #1E3A8A;
    --olive: #556B2F;
    --purple: #5B2A6F;
    --red: #A32A2A;
    --orange: #FFA500;
    --peach: #FFDAB9;
    --sand: #EBCDA4;
    --olive-light: #808000;

    --cream: #FFF9F1;
    --soft: #F7F1E8;
    --white: #FFFFFF;
    --text: #24313D;
    --text-light: #5F6872;

    --max-width: 1180px;
    --radius: 18px;
}

/* =========================================================
   RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(100% - 48px, var(--max-width));
    margin: 0 auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}

.logo span {
    font-size: 25px;
    font-weight: 900;
    color: var(--navy);
    letter-spacing: -0.8px;
}

.logo small {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav > a:not(.nav-cta) {
    position: relative;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.nav > a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.25s ease;
}

.nav > a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--red);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.nav-cta:hover {
    background: var(--navy);
    transform: translateY(-2px);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    padding: 150px 0 100px;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 218, 185, 0.72) 0, rgba(255, 218, 185, 0) 27%),
        radial-gradient(circle at 5% 88%, rgba(85, 107, 47, 0.08) 0, rgba(85, 107, 47, 0) 25%),
        var(--sand);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 48% 52% 63% 37% / 45% 38% 62% 55%;
    background: rgba(255, 218, 185, 0.45);
    right: -90px;
    top: 90px;
    transform: rotate(18deg);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 80px;
}

.hero-content {
    max-width: 620px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 600px;
    margin-bottom: 20px;
    color: var(--navy);
    font-size: clamp(48px, 6vw, 76px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -2.5px;
}

.hero-subtitle {
    max-width: 560px;
    margin-bottom: 20px;
    color: var(--navy);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.hero-text {
    max-width: 560px;
    margin-bottom: 32px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 42px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--navy);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1.5px solid rgba(0, 51, 102, 0.35);
    color: var(--navy);
    background: rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
    background: var(--white);
    border-color: var(--navy);
}

.hero-info {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
}

.hero-info > div {
    position: relative;
    padding-left: 16px;
    border-left: 3px solid var(--red);
}

.hero-info strong {
    display: block;
    margin-bottom: 3px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 900;
}

.hero-info span {
    display: block;
    color: var(--text-light);
    font-size: 13px;
}

/* =========================================================
   FOTO DO HERO
   ========================================================= */

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: min(100%, 500px);
    padding: 18px;
}

.image-frame {
    position: relative;
    width: 100%;
    min-height: 590px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 46% 54% 48% 52% / 38% 42% 58% 62%;
    background: var(--cream);
    box-shadow: 0 24px 60px rgba(0, 51, 102, 0.13);
}

/*
   CORREÇÃO PRINCIPAL DA FOTO:
   contain mantém a imagem inteira dentro da moldura.
*/

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

/* Elemento orgânico decorativo atrás da foto */

.image-wrapper::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -30px;
    bottom: -30px;
    border-radius: 48% 52% 62% 38% / 40% 42% 58% 60%;
    background: var(--olive);
    opacity: 0.9;
    z-index: -1;
}

/* Segundo elemento decorativo */

.image-wrapper::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    left: -20px;
    top: -20px;
    border-radius: 55% 45% 38% 62% / 45% 55% 45% 55%;
    background: var(--peach);
    z-index: -1;
}

.image-badge {
    position: absolute;
    left: 24px;
    bottom: 24px;
    max-width: 245px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 12px 30px rgba(0, 51, 102, 0.18);
}

.image-badge strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    line-height: 1.35;
}

.image-badge span {
    display: block;
    font-size: 11px;
    opacity: 0.8;
}

/* =========================================================
   QUOTE
   ========================================================= */

.quote-section {
    position: relative;
    padding: 82px 0;
    background: var(--red);
    overflow: hidden;
}

.quote-section::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -90px;
    top: -100px;
    border-radius: 50%;
    background: rgba(255, 218, 185, 0.15);
}

.quote-inner {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.quote-mark {
    margin-bottom: -12px;
    color: var(--sand);
    font-family: Georgia, serif;
    font-size: 86px;
    line-height: 1;
}

.quote-inner blockquote {
    color: var(--white);
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.8px;
}

.quote-inner cite {
    display: block;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-style: normal;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    padding: 110px 0;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 55px;
}

.section-heading.centered {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.section-heading h2 {
    margin-bottom: 18px;
    color: var(--navy);
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1.4px;
}

.section-heading p {
    max-width: 720px;
    color: var(--text-light);
    font-size: 17px;
}

/* =========================================================
   SOBRE
   ========================================================= */

.about-section {
    background: var(--cream);
}

.about-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.about-intro {
    position: relative;
    padding: 35px;
    border-radius: 30px;
    background: var(--white);
    overflow: hidden;
}

.about-intro::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(
        90deg,
        var(--red),
        var(--sand),
        var(--olive)
    );
}

.about-intro p {
    color: var(--navy);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.5;
}

.about-intro p + p {
    margin-top: 22px;
    color: var(--red);
    font-size: 17px;
}

.about-text {
    max-width: 700px;
}

.about-text p {
    color: var(--text-light);
    font-size: 17px;
}

.about-text p + p {
    margin-top: 22px;
}

/* =========================================================
   TERAPIA
   ========================================================= */

.therapy-section {
    position: relative;
    background: var(--soft);
    overflow: hidden;
}

.therapy-section::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -120px;
    top: 80px;
    border-radius: 50%;
    background: rgba(91, 42, 111, 0.06);
}

.cards-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    position: relative;
    padding: 34px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 10px 35px rgba(0, 51, 102, 0.06);
    overflow: hidden;
}

.card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: var(--red);
}

.card:nth-child(2)::after {
    background: var(--purple);
}

.card:nth-child(3)::after {
    background: var(--olive);
}

.card-number {
    display: block;
    margin-bottom: 30px;
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
}

.card h3 {
    margin-bottom: 14px;
    color: var(--navy);
    font-size: 24px;
    font-weight: 900;
}

.card p {
    color: var(--text-light);
    font-size: 15px;
}

.therapy-note {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 30px auto 0;
    padding: 30px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 51, 102, 0.08);
}

.therapy-note strong {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 900;
}

.therapy-note p {
    color: var(--text-light);
    font-size: 14px;
}

/* =========================================================
   PERSPECTIVA
   ========================================================= */

.perspective-section {
    background: var(--sand);
}

.perspective-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.perspective-item {
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 249, 241, 0.78);
    border-top: 4px solid var(--red);
}

.perspective-item:nth-child(2) {
    border-top-color: var(--olive);
}

.perspective-item:nth-child(3) {
    border-top-color: var(--purple);
}

.perspective-item:nth-child(4) {
    border-top-color: var(--blue);
}

.perspective-item:nth-child(5) {
    border-top-color: var(--orange);
}

.perspective-item:nth-child(6) {
    border-top-color: var(--navy);
}

.perspective-item h3 {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 19px;
    font-weight: 900;
}

.perspective-item p {
    color: var(--text-light);
    font-size: 14px;
}

/* =========================================================
   ÁREAS DE ATUAÇÃO
   ========================================================= */

.areas-section {
    background: var(--white);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.area-item {
    position: relative;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--cream);
    overflow: hidden;
}

.area-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 5px;
    background: var(--red);
}

.area-item:nth-child(2)::before {
    background: var(--olive);
}

.area-item:nth-child(3)::before {
    background: var(--purple);
}

.area-item:nth-child(4)::before {
    background: var(--orange);
}

.area-item:nth-child(5)::before {
    background: var(--red);
}

.area-item:nth-child(6)::before {
    background: var(--olive);
}

.area-item:nth-child(7)::before {
    background: var(--purple);
}

.area-item:nth-child(8)::before {
    background: var(--orange);
}

.area-item:nth-child(9)::before {
    background: var(--navy);
}

.area-item span {
    position: absolute;
    top: 22px;
    right: 24px;
    color: rgba(0, 51, 102, 0.25);
    font-size: 12px;
    font-weight: 900;
}

.area-item h3 {
    max-width: 230px;
    color: var(--navy);
    font-size: 19px;
    font-weight: 900;
    line-height: 1.25;
}

/* =========================================================
   EXPERIÊNCIA
   ========================================================= */

.experience-section {
    background: var(--peach);
}

.experience-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.experience-content {
    padding: 35px;
    border-radius: 25px;
    background: rgba(255, 249, 241, 0.7);
}

.experience-content p {
    color: var(--text);
    font-size: 16px;
}

.experience-content p + p {
    margin-top: 20px;
}

/* =========================================================
   PROCESSO
   ========================================================= */

.process-section {
    position: relative;
    background: var(--soft);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.process-item {
    padding: 32px;
    border-radius: var(--radius);
    background: var(--white);
    border-top: 4px solid var(--red);
}

.process-item:nth-child(2) {
    border-top-color: var(--purple);
}

.process-item:nth-child(3) {
    border-top-color: var(--olive);
}

.process-number {
    display: block;
    margin-bottom: 26px;
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
}

.process-item h3 {
    margin-bottom: 12px;
    color: var(--navy);
    font-size: 21px;
    font-weight: 900;
}

.process-item p {
    color: var(--text-light);
    font-size: 15px;
}

/* =========================================================
   CTA
   ========================================================= */

.cta-section {
    position: relative;
    padding: 110px 0;
    background: var(--navy);
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    right: -130px;
    top: -160px;
    border-radius: 50%;
    background: rgba(235, 205, 164, 0.12);
}

.cta-section::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    left: -100px;
    bottom: -100px;
    border-radius: 48% 52% 38% 62%;
    background: rgba(255, 218, 185, 0.1);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.cta-content .section-label {
    color: var(--sand);
}

.cta-content h2 {
    margin-bottom: 20px;
    color: var(--white);
    font-size: clamp(35px, 5vw, 58px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.cta-content p {
    max-width: 620px;
    margin: 0 auto 32px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
}

.btn-light {
    background: var(--red);
    color: var(--white);
}

.btn-light:hover {
    background: var(--peach);
    color: var(--navy);
    transform: translateY(-2px);
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    padding: 70px 0 25px;
    background: #F5F0E8;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-light);
    font-size: 14px;
}

.footer-brand p + p {
    margin-top: 3px;
}

.footer-column h3 {
    margin-bottom: 18px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column p,
.footer-column a {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.footer-column a:hover {
    color: var(--red);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 51, 102, 0.1);
}

.footer-bottom p {
    color: #7A8085;
    font-size: 12px;
}

/* =========================================================
   WHATSAPP FLUTUANTE
   ========================================================= */

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 200;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
}

.whatsapp-float svg {
    width: 29px;
    height: 29px;
    fill: var(--white);
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 1000px) {

    .header {
        position: relative;
        background: var(--sand);
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px 22px;
    }

    .hero {
        min-height: auto;
        padding: 90px 0 80px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-content {
        max-width: 760px;
        margin: 0 auto;
        text-align: center;
    }

    .hero-text,
    .hero-subtitle {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-actions,
    .hero-info {
        justify-content: center;
    }

    .hero-image {
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }

    .image-frame {
        min-height: 600px;
    }

    .about-content,
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-heading {
        margin-bottom: 42px;
    }
}

@media (max-width: 760px) {

    .container {
        width: min(100% - 32px, var(--max-width));
    }

    .header {
        padding: 20px 0;
    }

    .logo span {
        font-size: 23px;
    }

    .nav {
        gap: 12px 16px;
    }

    .nav > a:not(.nav-cta) {
        font-size: 13px;
    }

    .nav-cta {
        padding: 10px 16px;
        font-size: 12px;
    }

    .hero {
        padding: 70px 0 70px;
    }

    .hero h1 {
        font-size: clamp(42px, 13vw, 62px);
        letter-spacing: -2px;
    }

    .hero-subtitle {
        font-size: 19px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-info {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .hero-info > div {
        text-align: left;
    }

    .image-wrapper {
        padding: 12px;
    }

    .image-frame {
        min-height: 500px;
    }

    .image-badge {
        left: 18px;
        bottom: 18px;
        max-width: 220px;
    }

    .section {
        padding: 80px 0;
    }

    .section-heading h2 {
        font-size: 34px;
    }

    .section-heading p {
        font-size: 16px;
    }

    .cards-grid,
    .perspective-grid,
    .areas-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .perspective-item,
    .area-item,
    .process-item {
        padding: 28px;
    }

    .experience-content,
    .about-intro {
        padding: 28px;
    }

    .cta-section {
        padding: 85px 0;
    }

    .cta-content h2 {
        font-size: 38px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .whatsapp-float {
        right: 18px;
        bottom: 18px;
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 480px) {

    .nav {
        gap: 10px 14px;
    }

    .nav > a:not(.nav-cta) {
        font-size: 12px;
    }

    .hero h1 {
        font-size: 43px;
    }

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

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

    .image-frame {
        min-height: 430px;
    }

    .image-badge {
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 14px;
        max-width: none;
    }

    .quote-section {
        padding: 65px 0;
    }

    .quote-inner blockquote {
        font-size: 27px;
    }

    .section-heading h2 {
        font-size: 31px;
    }

    .cta-content h2 {
        font-size: 34px;
    }
}
