/**
 * PsicoCMS — Folha de Estilos Pública
 * Baseada em CSS Custom Properties geradas pelo Theme Engine
 */
:root {
    --theme-primary: #849B8A;
    --theme-secondary: #344F46;
    --theme-accent: #A68A68;
    --theme-bg-main: #F7F4EE;
    --theme-bg-alt: #EFECE4;
    --theme-text-main: #29332E;
    --theme-text-muted: #607268;
    --theme-font-heading: 'DM Serif Display', Georgia, serif;
    --theme-font-body: 'Inter', -apple-system, sans-serif;
    --theme-radius: 14px;
    --theme-max-width: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body.site-body {
    background-color: var(--theme-bg-main);
    color: var(--theme-text-main);
    font-family: var(--theme-font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.skip-to-content {
    position: absolute; top: -999px; left: 1rem;
    background: #000; color: #fff; padding: 0.5rem 1rem;
    border-radius: 4px; z-index: 9999;
}
.skip-to-content:focus { top: 1rem; }

.site-container {
    width: 100%;
    max-width: var(--theme-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(247, 244, 238, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    height: 80px; display: flex; align-items: center;
}
.header-container {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand-link {
    display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--theme-secondary);
}
.brand-icon {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--theme-primary);
    display: flex; align-items: center; justify-content: center; color: var(--theme-secondary);
}
.brand-name { font-family: var(--theme-font-heading); font-size: 1.25rem; display: block; line-height: 1.1; }
.brand-crp { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--theme-text-muted); display: block; }

.site-nav .nav-list { display: flex; list-style: none; gap: 1.75rem; }
.nav-link {
    text-decoration: none; font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.08em; font-weight: 500; color: var(--theme-text-main);
    transition: color 0.2s;
}
.nav-link:hover { color: var(--theme-secondary); }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
.mobile-toggle .bar { display: block; width: 22px; height: 2px; background: var(--theme-secondary); margin: 4px 0; }

/* Buttons */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--theme-secondary); color: #fff;
    padding: 0.75rem 1.75rem; border-radius: 999px;
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
    font-weight: 600; text-decoration: none; border: none; cursor: pointer;
    box-shadow: 0 4px 12px rgba(52, 79, 70, 0.15); transition: all 0.2s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-whatsapp {
    display: inline-flex; align-items: center; justify-content: center;
    background: #15803d; color: #fff; padding: 0.9rem 2rem;
    border-radius: 999px; text-decoration: none; font-size: 0.8rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
    box-shadow: 0 4px 14px rgba(21, 128, 61, 0.2);
}

.btn-outline {
    display: inline-flex; align-items: center; padding: 0.65rem 1.5rem;
    border-radius: 999px; border: 1px solid rgba(0,0,0,0.15);
    text-decoration: none; font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; color: var(--theme-text-main);
}

/* Hero Section */
.hero-section {
    padding: 4.5rem 0 6rem;
}
.hero-container {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center;
}
.hero-kicker, .section-kicker {
    display: inline-block; font-family: var(--theme-font-heading); font-style: italic;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--theme-text-muted); margin-bottom: 0.75rem;
}
.hero-title {
    font-family: var(--theme-font-heading); font-size: 3.5rem; line-height: 1.1;
    margin-bottom: 1.5rem; color: var(--theme-text-main);
}
.hero-title .highlight { font-style: italic; color: var(--theme-secondary); }
.hero-subtitle { font-size: 1.1rem; color: var(--theme-text-muted); margin-bottom: 2rem; max-width: 540px; }
.hero-disclaimer { display: block; font-size: 0.75rem; font-style: italic; font-family: var(--theme-font-heading); color: var(--theme-text-muted); margin-top: 0.75rem; }

.arch-frame {
    width: 100%; max-width: 380px; aspect-ratio: 3/4;
    border-top-left-radius: 999px; border-top-right-radius: 999px;
    border-bottom-left-radius: 24px; border-bottom-right-radius: 24px;
    overflow: hidden; border: 4px solid #fff; box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem; background: #fff;
    padding: 0.6rem 1.2rem; border-radius: 999px; font-size: 0.8rem;
    margin-top: -1.2rem; position: relative; left: 50%; transform: translateX(-50%);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08); white-space: nowrap;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--theme-primary); }
.badge-crp { color: var(--theme-text-muted); border-left: 1px solid #ddd; padding-left: 0.5rem; font-size: 0.75rem; }

/* Grid Sections */
.site-section { padding: 5rem 0; }
.bg-alt { background-color: var(--theme-bg-alt); }
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
.section-header { margin-bottom: 3rem; }
.section-title { font-family: var(--theme-font-heading); font-size: 2.2rem; color: var(--theme-text-main); margin-bottom: 0.75rem; }
.section-desc { font-size: 0.95rem; color: var(--theme-text-muted); }
.rounded-img { width: 100%; border-radius: var(--theme-radius); box-shadow: 0 10px 25px rgba(0,0,0,0.06); }

/* Services Grid */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem;
}
.service-card {
    background: #fff; padding: 2rem; border-radius: var(--theme-radius);
    border: 1px solid rgba(0,0,0,0.06); display: flex; flex-direction: column; justify-content: space-between;
}
.service-title { font-family: var(--theme-font-heading); font-size: 1.25rem; margin-bottom: 0.25rem; }
.service-subtitle { font-size: 0.75rem; color: var(--theme-secondary); font-weight: 600; margin-bottom: 0.75rem; }
.service-desc { font-size: 0.85rem; color: var(--theme-text-muted); margin-bottom: 1.25rem; }
.service-meta { list-style: none; font-size: 0.75rem; color: var(--theme-text-muted); border-top: 1px solid #f1f1f1; padding-top: 0.75rem; margin-bottom: 1rem; }
.service-link { font-size: 0.75rem; font-weight: 600; color: var(--theme-secondary); text-decoration: none; }

/* Posts Grid */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.post-card { background: #fff; border-radius: var(--theme-radius); border: 1px solid rgba(0,0,0,0.06); padding: 1.75rem; }
.post-meta { font-size: 0.75rem; color: var(--theme-text-muted); margin-bottom: 0.5rem; }
.post-meta .sep { margin: 0 0.35rem; }
.post-title { font-family: var(--theme-font-heading); font-size: 1.35rem; line-height: 1.25; margin-bottom: 0.75rem; }
.post-title a { text-decoration: none; color: var(--theme-text-main); }
.post-excerpt { font-size: 0.85rem; color: var(--theme-text-muted); margin-bottom: 1rem; }
.read-more { font-size: 0.75rem; font-weight: 600; color: var(--theme-secondary); text-decoration: none; }

/* Forms */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.35rem; }
.form-control {
    width: 100%; padding: 0.75rem 1rem; border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.15); font-family: inherit; font-size: 0.85rem;
}
.form-checkbox { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.75rem; color: var(--theme-text-muted); margin-bottom: 1.25rem; }

/* Footer */
.site-footer { background: #212925; color: #ECE7DF; padding: 4rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { font-family: var(--theme-font-heading); font-size: 1.6rem; margin-bottom: 0.3rem; }
.footer-crp { font-size: 0.8rem; color: #A8B2AC; margin-bottom: 0.75rem; }
.footer-desc { font-size: 0.8rem; color: #8E9B93; max-width: 380px; }
.footer-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; color: #fff; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; font-size: 0.8rem; }
.footer-links a { color: #A8B2AC; text-decoration: none; }
.footer-ethics-box { background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.08); padding: 1rem 1.25rem; border-radius: 10px; font-size: 0.75rem; color: #A8B2AC; margin-bottom: 2rem; line-height: 1.5; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; font-size: 0.75rem; color: #808D86; }
.footer-legal-links a { color: #808D86; text-decoration: none; margin-left: 1rem; }

@media (max-width: 900px) {
    .hero-container, .grid-2col, .footer-grid { grid-template-columns: 1fr; }
    .site-nav, .header-cta { display: none; }
    .mobile-toggle { display: block; }
    .hero-title { font-size: 2.5rem; }
}
