/* Juliana Spessot - Site multipáginas - TCC (sem Arteterapia) */
:root {
    --bg: #FDF6F0;
    --surface: #FFFCF9;
    --card: #FFFFFF;
    --primary: #9B7B6B;
    --primary-soft: #B89585;
    --accent: #8B9A8A;
    --blush: #E8D4CC;
    --secondary: #F5EFE9;
    --text: #5C5353;
    --text-light: #7A7272;
    --white: #FFFFFF;
    --shadow: 0 12px 36px rgba(155, 123, 107, 0.12);
    --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--primary); line-height: 1.2; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }

/* Header */
header {
    padding: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--blush);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(155,123,107,0.08);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
    gap: 1.5rem;
}
.logo-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #b8860b;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-link:hover { color: #b8860b; }
.logo-brand { display: flex; align-items: center; gap: 0.35rem; line-height: 1.2; }
.logo-psi {
    font-size: 1.5rem;
    font-weight: 700;
    color: #b8860b;
    letter-spacing: -0.02em;
    line-height: 1;
}
.logo-link:hover .logo-psi { color: #b8860b; }
.logo-crp {
    font-size: 0.75rem;
    font-weight: 500;
    color: #b8860b;
    letter-spacing: 0.02em;
    font-family: 'Inter', sans-serif;
}
.logo-link:hover .logo-crp { color: #b8860b; }

/* Nav desktop */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}
.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 0.85rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.nav-menu a:hover {
    color: var(--primary);
    background: var(--secondary);
}
.nav-menu a.ativa {
    color: var(--primary);
    font-weight: 600;
    background: var(--blush);
}
.nav-menu .nav-cta {
    margin-left: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--white) !important;
    font-size: 0.85rem;
}
.nav-menu .nav-cta:hover {
    background: var(--primary-soft);
    color: var(--white) !important;
}
.nav-menu .nav-cta.ativa {
    background: var(--primary-soft);
    color: var(--white) !important;
}

/* Submenu Serviços */
.nav-dropdown-wrap {
    position: relative;
}
.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 0.85rem;
    font: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-light);
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}
.nav-dropdown-trigger:hover {
    color: var(--primary);
    background: var(--secondary);
}
.nav-dropdown-trigger::after {
    content: '';
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 0.2rem;
    opacity: 0.8;
}
.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap.is-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
}
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    min-width: 200px;
    padding: 0.5rem 0;
    background: var(--surface);
    border: 1px solid var(--blush);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 50;
}
.nav-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}
.nav-dropdown a:hover {
    background: var(--secondary);
    color: var(--primary);
}

/* Hamburger (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: var(--secondary);
    border: 1px solid var(--blush);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    z-index: 102;
}
.nav-toggle:hover {
    background: var(--blush);
    border-color: var(--primary);
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle span:nth-child(1) { width: 20px; }
.nav-toggle span:nth-child(2) { width: 16px; margin-left: 4px; }
.nav-toggle span:nth-child(3) { width: 20px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    width: 20px; margin-left: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 20px; margin-left: 0;
}

/* Overlay quando menu aberto */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(92, 83, 83, 0.4);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s;
}
.nav-overlay.is-open {
    display: block;
    opacity: 1;
}

/* Menu mobile */
@media (max-width: 1024px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 90vw);
        height: 100vh;
        height: 100dvh;
        background: var(--surface);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 90px 1.5rem 2rem;
        box-shadow: -8px 0 32px rgba(155,123,107,0.15);
        z-index: 101;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    .nav-menu.is-open { transform: translateX(0); }
    .nav-menu a {
        padding: 1rem 1rem;
        font-size: 1rem;
        border-radius: 8px;
        border-bottom: 1px solid var(--blush);
        white-space: normal;
    }
    .nav-menu a:last-of-type { border-bottom: none; }
    .nav-menu .nav-cta {
        margin: 1rem 0 0;
        margin-left: 0;
        text-align: center;
    }
    .nav-dropdown-wrap {
        border-bottom: 1px solid var(--blush);
    }
    .nav-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 1rem;
        font-size: 1rem;
        text-align: left;
    }
    .nav-dropdown-trigger[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
    .nav-dropdown {
        position: static;
        margin: 0;
        padding: 0;
        min-width: 0;
        background: rgba(0,0,0,0.04);
        border: none;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav-dropdown-wrap.is-open .nav-dropdown {
        max-height: 320px;
    }
    .nav-dropdown a {
        padding: 0.75rem 1rem 0.75rem 1.5rem;
        border-bottom: 1px solid var(--blush);
    }
}

/* Conteúdo das páginas – centralizado como na home */
.pagina { padding: 3rem 0 5rem; text-align: center; }
.pagina h1 { font-size: 2.2rem; margin-bottom: 1rem; }
.pagina .lead { color: var(--text-light); font-size: 1.1rem; margin-bottom: 2rem; max-width: 720px; margin-left: auto; margin-right: auto; }
.pagina .conteudo { max-width: 720px; margin-left: auto; margin-right: auto; text-align: left; }
.pagina .conteudo p { margin-bottom: 1.25rem; color: var(--text); }
.pagina .conteudo h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.pagina .conteudo ul { margin: 0 0 1.25rem 1.5rem; color: var(--text-light); }
.pagina .conteudo li { margin-bottom: 0.5rem; }
.pagina .consultorio-fotos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}
.pagina .consultorio-fotos img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}
@media (max-width: 640px) {
    .pagina .consultorio-fotos { grid-template-columns: 1fr; }
}
.pagina .sobre-foto-wrap { text-align: center; margin: 2rem 0 2.5rem; }
.pagina .sobre-foto { width: 220px; height: 220px; object-fit: cover; object-position: center top; border-radius: 50%; border: 3px solid var(--blush); display: inline-block; }
.pagina .aviso { font-size: 0.9rem; color: var(--text-light); margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--blush); }
.pagina > p { margin-top: 2rem; }

/* Botões */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.25s;
    border: 1px solid var(--primary);
}
.btn:hover { background: var(--primary-soft); color: var(--white); border-color: var(--primary-soft); }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--blush); color: var(--primary); }

/* Hero (só na home) */
.hero { padding: 2rem 0 5rem; }
.hero-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.hero-subtitle { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 2px; color: var(--primary); margin-bottom: 1rem; font-weight: 600; }
.hero-title { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1.5rem; font-weight: 500; }
.hero-description { font-size: 1.05rem; color: var(--text-light); margin-bottom: 2rem; max-width: 480px; }
.hero-image-wrapper { position: relative; width: 380px; height: 380px; border-radius: 50%; overflow: hidden; border: 4px solid var(--blush); flex-shrink: 0; margin-left: auto; }
.hero-image-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-meta { font-size: 0.85rem; color: var(--text-light); margin-top: 1rem; }

/* Links para serviços (home) */
.servicos-links { padding: 4rem 0; background: var(--surface); }
.servicos-links .section-title { text-align: center; font-size: 2rem; margin-bottom: 2rem; }
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}
/* 3 cards em cima ocupando 2 colunas cada */
.servico-link:nth-child(1) { grid-column: 1 / 3; }
.servico-link:nth-child(2) { grid-column: 3 / 5; }
.servico-link:nth-child(3) { grid-column: 5 / 7; }
/* 2 cards embaixo centralizados (colunas 2–4 e 4–6, sobrando 1 coluna de cada lado) */
.servico-link:nth-child(4) { grid-column: 2 / 4; }
.servico-link:nth-child(5) { grid-column: 4 / 6; }
.servico-link {
    display: block;
    padding: 2rem;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--blush);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s;
}
.servico-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.servico-link h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--primary); }
.servico-link p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.footer-brand h3 { color: var(--white); margin-bottom: 0.25rem; font-size: 1.2rem; }
.footer-brand .footer-subtitle { font-size: 0.85rem; opacity: 0.9; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.9rem; opacity: 0.9; max-width: 320px; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.85rem; opacity: 0.85; }

/* WhatsApp fixo */
.wa-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    z-index: 999;
    text-decoration: none;
}
.wa-float:hover { color: white; transform: scale(1.05); }
.wa-float svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
    .hero-layout { grid-template-columns: 1fr; gap: 2rem; }
    .hero-image-wrapper { order: -1; width: 280px; height: 280px; margin-left: auto; margin-right: auto; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { max-width: none; }
    .servicos-grid { grid-template-columns: 1fr; }
    .servico-link:nth-child(1), .servico-link:nth-child(2), .servico-link:nth-child(3),
    .servico-link:nth-child(4), .servico-link:nth-child(5) { grid-column: auto; }
}
@media (max-width: 640px) {
    .container { padding: 0 1.25rem; }
}
