/* ========================================
   CAMILA TODDAI - SITE INSTITUCIONAL
   Psicóloga Clínica
   ======================================== */

/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de cores */
    --lilas-suave: #C8B6E2;
    --roxo-profundo: #5E4B8B;
    --branco-gelo: #F6F4F9;
    --azul-acinzentado: #6F7FA6;
    --branco: #FFFFFF;
    --texto-escuro: #2D2D2D;
    --texto-medio: #5A5A5A;
    
    /* Tipografia */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Outros */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(94, 75, 139, 0.08);
    --shadow-md: 0 4px 20px rgba(94, 75, 139, 0.12);
    --shadow-lg: 0 8px 30px rgba(94, 75, 139, 0.15);
    
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--texto-escuro);
    background-color: var(--branco-gelo);
    /* Textura suave simulada */
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(200, 182, 226, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(111, 127, 166, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(200, 182, 226, 0.04) 0%, transparent 45%);
    background-attachment: fixed;
}

/* ========== TIPOGRAFIA ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.3;
    color: var(--roxo-profundo);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
    color: var(--texto-medio);
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* ========== UTILITÁRIOS ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

.section-title {
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--lilas-suave), var(--roxo-profundo));
    margin-top: var(--spacing-sm);
    border-radius: 2px;
}

.section-title.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--lilas-suave), transparent);
    margin: var(--spacing-xl) 0;
}

/* ========== BOTÕES ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn:focus {
    outline: 3px solid var(--lilas-suave);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--roxo-profundo), #7B68A8);
    color: var(--branco);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #7B68A8, var(--roxo-profundo));
}

.btn-secondary {
    background: transparent;
    color: var(--roxo-profundo);
    border: 2px solid var(--roxo-profundo);
}

.btn-secondary:hover {
    background: var(--roxo-profundo);
    color: var(--branco);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(246, 244, 249, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(94, 75, 139, 0.05);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.logo-img {
    height: 75px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo:hover .logo-img {
    opacity: 0.85;
}

/* Fallback para logo de texto (usado no footer) */
.logo-symbol {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--roxo-profundo);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--roxo-profundo);
    letter-spacing: 2px;
}

.nav-menu {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--texto-medio);
    position: relative;
    padding: var(--spacing-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--lilas-suave);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--roxo-profundo);
}

.nav-link:hover::after {
    width: 100%;
}

.header-cta {
    display: none;
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--roxo-profundo);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(246, 244, 249, 0.98);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    padding: var(--spacing-xl);
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.mobile-nav-link {
    display: block;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--roxo-profundo);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(200, 182, 226, 0.3);
}

.mobile-nav-link.btn {
    margin-top: var(--spacing-md);
    text-align: center;
    border-bottom: none;
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    padding-bottom: var(--spacing-2xl);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-content {
    order: 2;
}

.hero-card {
    background: var(--branco);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.hero-title {
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.5;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    color: var(--azul-acinzentado);
}

.hero-image {
    order: 1;
    display: flex;
    justify-content: center;
}

.hero-photo {
    max-width: 350px;
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* ========== SOBRE MIM ========== */
.sobre {
    padding: var(--spacing-3xl) 0;
}

.sobre-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.sobre-image {
    display: flex;
    justify-content: center;
}

.sobre-photo {
    max-width: 300px;
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.sobre-content {
    text-align: center;
}

.sobre-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.crp-card {
    background: var(--branco);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.crp-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.crp-symbol {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--roxo-profundo);
}

.crp-number {
    font-weight: 600;
    color: var(--roxo-profundo);
    letter-spacing: 1px;
}

/* ========== ATENDIMENTOS ========== */
.atendimentos {
    padding: var(--spacing-3xl) 0;
    background: var(--branco);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.service-card {
    background: var(--branco-gelo);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(200, 182, 226, 0.2);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--lilas-suave);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    color: var(--roxo-profundo);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    margin-bottom: var(--spacing-sm);
}

.service-description {
    font-size: 0.9375rem;
    color: var(--azul-acinzentado);
    margin-bottom: 0;
}

/* ========== CONTEÚDOS ========== */
.conteudos {
    padding: var(--spacing-3xl) 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.post-card {
    background: var(--branco);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.post-image {
    height: 160px;
    display: flex;
    align-items: flex-start;
    padding: var(--spacing-sm);
}

.post-category {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--roxo-profundo);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content {
    padding: var(--spacing-md);
}

.post-title {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
}

.post-excerpt {
    font-size: 0.875rem;
    color: var(--azul-acinzentado);
    margin-bottom: var(--spacing-sm);
}

.post-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--roxo-profundo);
}

.post-link:hover {
    color: var(--lilas-suave);
}

/* ========== CONTATO ========== */
.contato {
    padding: var(--spacing-3xl) 0;
    background: var(--branco);
}

.contato-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

.contato-info {
    text-align: center;
}

.contato-info-title {
    margin-bottom: var(--spacing-sm);
}

.contato-info-text {
    margin-bottom: var(--spacing-lg);
}

.contato-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contato-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    text-align: left;
    padding: var(--spacing-md);
    background: var(--branco-gelo);
    border-radius: var(--border-radius-sm);
}

.contato-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--roxo-profundo);
}

.contato-icon svg {
    width: 100%;
    height: 100%;
}

.contato-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contato-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--azul-acinzentado);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contato-value {
    font-size: 0.9375rem;
    color: var(--texto-escuro);
    line-height: 1.5;
}

a.contato-value:hover {
    color: var(--roxo-profundo);
}

/* Formulário */
.contato-form-wrapper {
    background: var(--branco-gelo);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
}

.contato-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--texto-escuro);
}

.form-input,
.form-textarea {
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--texto-escuro);
    background: var(--branco);
    border: 2px solid rgba(200, 182, 226, 0.3);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--lilas-suave);
    box-shadow: 0 0 0 4px rgba(200, 182, 226, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--azul-acinzentado);
    opacity: 0.6;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    font-size: 0.8125rem;
    color: #D64545;
    display: none;
}

.form-error.visible {
    display: block;
}

.form-input.error,
.form-textarea.error {
    border-color: #D64545;
}

.form-success {
    display: none;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(200, 182, 226, 0.2);
    border-radius: var(--border-radius-sm);
    color: var(--roxo-profundo);
    font-weight: 500;
}

.form-success.visible {
    display: flex;
}

.form-success svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--roxo-profundo);
    color: var(--branco);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    text-align: center;
}

.footer-logo .logo-symbol,
.footer-logo .logo-text {
    color: var(--branco);
}

.footer-tagline {
    color: var(--lilas-suave);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    margin-bottom: 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm) var(--spacing-md);
}

.footer-link {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-link:hover {
    color: var(--lilas-suave);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--lilas-suave);
    color: var(--roxo-profundo);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    text-align: center;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

/* ========== RESPONSIVO - TABLET ========== */
@media (min-width: 640px) {
    .services-grid,
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .crp-card {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .sobre-content {
        text-align: left;
    }
    
    .sobre-content .section-title::after {
        margin-left: 0;
    }
}

/* ========== RESPONSIVO - DESKTOP ========== */
@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-menu {
        display: block;
    }
    
    .header-cta {
        display: inline-flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero-photo {
        max-width: 450px;
    }
    
    .sobre-container {
        grid-template-columns: 1fr 1.5fr;
        gap: var(--spacing-2xl);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contato-container {
        grid-template-columns: 1fr 1.2fr;
        gap: var(--spacing-2xl);
    }
    
    .contato-info {
        text-align: left;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-brand {
        text-align: left;
    }
}

/* ========== ACESSIBILIDADE ========== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible para navegação por teclado */
:focus-visible {
    outline: 3px solid var(--lilas-suave);
    outline-offset: 2px;
}
