/* ============================================================
   Dr. Paulo Henrique Pinto de Castro - Site Institucional
   Identidade Visual: Bege-Rosada Sofisticada
   ============================================================ */

/* --- Variáveis de Cores --- */
:root {
    --bg-light: #faf5f0;
    --bg-sand: #f0e8dd;
    --primary-blue: #003d4d;
    --accent-gold: #b8964e;
    --bg-rose: #f2e0e3;
    --bg-rose-light: #f8eeef;
    --text-main: #3d2e28;
    --text-muted: #6b5249;
    --text-light: #faf5f0;
    --white: #ffffff;
    --shadow: rgba(61, 46, 40, 0.1);
    --shadow-strong: rgba(61, 46, 40, 0.2);
}

/* --- Reset e Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: Georgia, 'Times New Roman', serif; color: var(--text-main); background-color: var(--bg-light); line-height: 1.7; min-height: 100vh; -webkit-text-size-adjust: 100%; }

/* --- Tipografia --- */
h1, h2, h3, h4, h5, h6 { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; color: var(--primary-blue); line-height: 1.3; }
h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.5rem; } h4 { font-size: 1.25rem; }
.site-title {
    font-family: 'Playfair Display', 'Great Vibes', 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(0.85rem, 1.7vw, 1.35rem);
    color: var(--primary-blue);
    margin-bottom: 0.2rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.15;
}
.site-subtitle { font-size: 0.8rem; color: var(--text-muted); font-style: italic; letter-spacing: 0.02em; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.crp-badge { background-color: var(--accent-gold); color: var(--white); padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; font-family: Georgia, 'Times New Roman', serif; letter-spacing: 1px; display: inline-block; margin-left: 5px; }
p { margin-bottom: 1rem; color: var(--text-main); }
a { text-decoration: none; color: var(--primary-blue); transition: color 0.3s ease; }
a:hover { color: var(--accent-gold); }
strong { font-weight: 600; color: var(--primary-blue); }
em { font-style: italic; color: var(--text-muted); }
img { max-width: 100%; height: auto; display: block; }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* --- Cabeçalho --- */
.site-header { background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-rose-light) 50%, var(--bg-rose) 100%); border-bottom: 3px solid var(--accent-gold); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px var(--shadow); }
.header-top { max-width: 1200px; margin: 0 auto; padding: 0.8rem 1rem; display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; justify-content: space-between; align-items: center; gap: 0.8rem; position: relative; }

/* --- Navegação (uma linha só) --- */
.main-nav { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.nav-list { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; list-style: none; gap: 0.15rem; align-items: center; }
.nav-link { display: inline-block; padding: 0.4rem 0.7rem; font-family: Georgia, 'Times New Roman', serif; font-size: 0.82rem; color: var(--primary-blue); border-radius: 4px; transition: all 0.3s ease; font-weight: 500; white-space: nowrap; }
.nav-link:hover, .nav-link.active { background-color: var(--primary-blue); color: var(--white); }
.nav-link.partner { line-height: 1.2; padding: 0.25rem 0.6rem; text-align: center; }
.nav-link.partner .partner-tag { font-size: 0.65rem; display: block; opacity: 0.8; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; width: 40px; height: 40px; }
.hamburger { display: block; width: 24px; height: 3px; background-color: var(--primary-blue); position: relative; transition: all 0.3s ease; margin: auto; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 24px; height: 3px; background-color: var(--primary-blue); left: 0; transition: all 0.3s ease; }
.hamburger::before { top: -8px; } .hamburger::after { top: 8px; }

/* --- Hero (página inicial) --- */
.hero { background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-rose-light) 50%, var(--bg-rose) 100%); padding: 5rem 0; min-height: 80vh; display: flex; align-items: center; }
.hero-content { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-title { font-size: 2.2rem; color: var(--primary-blue); margin-bottom: 1.5rem; line-height: 1.4; font-weight: 700; }
.hero-description { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.8; }
.hero-actions { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 0.7rem; margin-top: 2rem; align-items: center; justify-content: flex-start; width: 100%; max-width: 100%; }
.hero-actions .btn { white-space: nowrap !important; flex: 1 1 0 !important; min-width: 0 !important; padding: 0.75rem 1.1rem; font-size: 0.9rem; }
.hero-img { width: 320px; height: 320px; max-width: 100%; border-radius: 50%; object-fit: cover; border: 6px solid var(--accent-gold); box-shadow: 0 15px 40px var(--shadow-strong); background-color: var(--bg-rose); }
.hero-image { display: flex; justify-content: center; }

/* --- Botões --- */
.btn { display: inline-block; padding: 0.8rem 1.8rem; font-family: Georgia, 'Times New Roman', serif; font-size: 0.95rem; font-weight: 600; border-radius: 6px; text-align: center; transition: all 0.3s ease; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background-color: var(--primary-blue); color: var(--white); border-color: var(--primary-blue); }
.btn-primary:hover { background-color: #002a35; border-color: #002a35; color: var(--white); transform: translateY(-2px); box-shadow: 0 5px 15px var(--shadow-strong); }
.btn-secondary { background-color: transparent; color: var(--primary-blue); border-color: var(--accent-gold); }
.btn-secondary:hover { background-color: var(--accent-gold); color: var(--white); border-color: var(--accent-gold); transform: translateY(-2px); }
.btn-link { color: var(--accent-gold); font-weight: 600; }

/* --- Seções Gerais --- */
section { padding: 5rem 0; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 1rem; position: relative; }
.section-title::after { content: ''; display: block; width: 80px; height: 3px; background: linear-gradient(to right, var(--accent-gold), #e8c9a0); margin: 1rem auto 0; border-radius: 2px; }
.section-subtitle { text-align: center; margin-bottom: 3rem; color: var(--text-muted); }

/* --- Rodapé Expandido (5 colunas + linha de copyright) --- */
.site-footer { background-color: #001f28; color: var(--text-light); padding: 2.5rem 0 0; }
.footer-top { max-width: 1200px; margin: 0 auto; padding: 0 2rem 2rem; display: grid !important; grid-template-columns: 1.2fr 1fr 1fr 1fr 1.6fr; gap: 1.5rem; align-items: start; }
.footer-col { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-title { color: var(--accent-gold); font-family: Georgia, 'Times New Roman', serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; line-height: 1.3; }
.footer-subtitle { color: var(--accent-gold); font-family: Georgia, 'Times New Roman', serif; font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; letter-spacing: 0.02em; }
.footer-meta { color: var(--text-light); font-size: 0.85rem; line-height: 1.5; margin: 0; }
.footer-meta a { color: var(--text-light); }
.footer-meta a:hover { color: var(--accent-gold); }
.footer-col-social { align-items: flex-start; }
.footer-col-social .footer-subtitle { margin-bottom: 0.7rem; }
.footer-social { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 0.3rem; align-items: center; }
.footer-app { display: inline-flex !important; align-items: center; justify-content: center; color: var(--accent-gold); padding: 0.35rem; border: 1px solid rgba(184, 150, 78, 0.4); border-radius: 6px; background-color: rgba(184, 150, 78, 0.08); transition: all 0.3s ease; line-height: 0; }
.footer-app:hover { background-color: rgba(184, 150, 78, 0.2); border-color: var(--accent-gold); color: var(--white); transform: translateY(-2px); }
.footer-app-icon { display: inline-flex; color: inherit; line-height: 0; }
.footer-app-icon svg { width: 18px; height: 18px; display: block; }
.footer-bottom { border-top: 1px solid rgba(184, 150, 78, 0.25); padding: 1rem 2rem; text-align: center; max-width: 1200px; margin: 0 auto; }
.footer-copy { color: var(--text-light); font-size: 0.82rem; opacity: 0.85; letter-spacing: 0.02em; }

/* --- Páginas Internas --- */
.page-header { background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-rose-light) 50%, var(--bg-rose) 100%); padding: 4rem 0 3rem; text-align: center; border-bottom: 3px solid var(--accent-gold); }
.page-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-header p { color: var(--text-muted); }
.page-content { padding: 4rem 0; background-color: var(--bg-light); }
.page-section { max-width: 900px; margin: 0 auto 2rem; padding: 2rem; background-color: var(--white); border-radius: 12px; box-shadow: 0 5px 20px var(--shadow); }
.page-section.highlight { border-left: 5px solid var(--accent-gold); background-color: var(--bg-rose-light); }
.page-section h2 { color: var(--primary-blue); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--bg-rose-light); }
.page-section ul { list-style: none; margin: 1rem 0; padding: 0; }
.page-section ul li { padding: 0.5rem 0 0.5rem 1.5rem; position: relative; font-size: 1rem; line-height: 1.7; color: var(--text-main); }
.page-section ul li::before { content: '\25C6'; color: var(--accent-gold); position: absolute; left: 0; font-size: 0.7rem; top: 0.85rem; }

/* --- Página Sobre --- */
.about-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
.profile-photo-container { position: sticky; top: 120px; text-align: center; }
.about-img { width: 100%; border-radius: 12px; border: 4px solid var(--accent-gold); box-shadow: 0 10px 30px var(--shadow-strong); background-color: var(--bg-rose); aspect-ratio: 3/4; object-fit: cover; }
.quote-box { background-color: var(--bg-rose-light); border-left: 5px solid var(--accent-gold); padding: 1.5rem; margin: 2rem 0; font-style: italic; color: var(--primary-blue); border-radius: 0 8px 8px 0; }
.quote-box strong { display: block; margin-top: 0.5rem; font-style: normal; }
.timeline-section { margin-top: 3rem; }
.timeline-item { padding: 1.5rem; margin-bottom: 2rem; border-left: 3px solid var(--accent-gold); background-color: var(--bg-light); border-radius: 0 8px 8px 0; }
.timeline-item h3 { color: var(--primary-blue); margin-bottom: 0.5rem; }
.timeline-year { display: inline-block; background-color: var(--primary-blue); color: var(--white); padding: 0.2rem 0.8rem; border-radius: 4px; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; }
.timeline-item p { margin-bottom: 0; }

/* --- Página ORBE (Pilares) --- */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.pillar-card { background-color: var(--white); padding: 2rem; border-radius: 12px; box-shadow: 0 5px 20px var(--shadow); text-align: center; border-top: 4px solid var(--accent-gold); transition: transform 0.3s ease; }
.pillar-card:hover { transform: translateY(-5px); }
.pillar-icon { font-size: 2.5rem; color: var(--accent-gold); margin-bottom: 1rem; display: block; line-height: 1; }
.pillar-title { font-family: Georgia, 'Times New Roman', serif; font-size: 1.5rem; color: var(--primary-blue); margin-bottom: 1rem; }

/* --- Carrossel de Publicações --- */
.publications-carousel { background-color: var(--bg-rose-light); padding: 5rem 0; overflow: hidden; }
.carousel-container { position: relative; max-width: 800px; margin: 0 auto; }
.carousel-slide { display: none; text-align: center; padding: 2rem; background: var(--white); border-radius: 12px; box-shadow: 0 5px 15px var(--shadow); animation: fadeEffect 1s; }
@keyframes fadeEffect { from { opacity: 0.4; } to { opacity: 1; } }
.carousel-title { color: var(--primary-blue); font-size: 1.5rem; margin-bottom: 1rem; }
.carousel-text { color: var(--text-main); margin-bottom: 1.5rem; }
.carousel-nav { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.dot { height: 12px; width: 12px; background-color: var(--bg-sand); border-radius: 50%; display: inline-block; cursor: pointer; transition: background-color 0.3s ease; border: none; padding: 0; }
.dot.active { background-color: var(--accent-gold); }

/* --- Página de Contato --- */
.contato-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.contato-card { background: var(--bg-light); padding: 2rem; border-radius: 10px; text-align: center; border: 1px solid var(--bg-rose-light); }
.contato-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.contato-card p { margin-bottom: 0.5rem; }


/* --- Área de Atuação --- */
.areas-section { background-color: var(--bg-light); padding: 5rem 0; }
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.area-card { background-color: var(--white); padding: 2.2rem 1.8rem; border-radius: 12px; box-shadow: 0 5px 20px var(--shadow); text-align: center; border-top: 4px solid var(--accent-gold); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.area-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px var(--shadow-strong); }
.area-icon { font-size: 2.5rem; display: block; line-height: 1; margin-bottom: 1rem; }
.area-title { font-family: Georgia, 'Times New Roman', serif; font-size: 1.35rem; color: var(--primary-blue); margin-bottom: 0.8rem; }
.area-text { color: var(--text-main); font-size: 0.98rem; line-height: 1.7; margin-bottom: 0; }

/* --- Responsividade --- */
@media (max-width: 1200px) {
    .site-title { font-size: 1.1rem !important; }
    .nav-link { padding: 0.4rem 0.6rem; font-size: 0.82rem; }
    .footer-title { font-size: 0.95rem !important; }
    .footer-meta, .footer-contact { font-size: 0.8rem !important; }
}
@media (max-width: 992px) {
    .hero-content, .pillars-grid, .about-layout, .areas-grid { grid-template-columns: 1fr; }
    .areas-grid { padding: 0 1.5rem; gap: 1.5rem; }
    .hero-image { order: -1; }
    .hero-img { width: 250px; height: 250px; }
    .hero-actions { justify-content: center; text-align: center; flex-wrap: nowrap !important; gap: 0.5rem; max-width: 100%; }
    .hero-actions .btn { padding: 0.6rem 0.85rem; font-size: 0.8rem; flex: 1 1 0 !important; min-width: 0 !important; }
    .profile-photo-container { position: static; max-width: 400px; margin: 0 auto 2rem; }
    .site-title { font-size: 0.95rem !important; }
    .nav-link { padding: 0.35rem 0.5rem; font-size: 0.75rem; }
    .header-top { padding: 0.8rem 1rem; gap: 0.5rem; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 1.8rem; padding: 0 1.5rem 1.8rem; }
    .footer-col-brand { grid-column: 1 / -1; }
    .footer-title { font-size: 1rem !important; }
    .footer-subtitle { font-size: 0.9rem !important; }
    .footer-meta { font-size: 0.82rem !important; }
    .footer-app-icon svg { width: 22px !important; height: 22px !important; }
}
@media (max-width: 768px) {
    .site-title { font-size: 0.78rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50vw; display: block; }
    .header-top { flex-direction: row !important; flex-wrap: nowrap !important; align-items: center; padding: 0.5rem 0.6rem; gap: 0.3rem; }
    .nav-toggle { display: none !important; }
    .nav-list { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; width: auto; padding: 0; gap: 0.1rem; background: transparent; border-top: none; margin-top: 0; }
    .nav-link { width: auto; text-align: center; padding: 0.25rem 0.35rem; font-size: 0.62rem; }
    .nav-link.partner { display: none; }
    .hero { padding: 3rem 0; min-height: auto; }
    section { padding: 3rem 0; }
    .page-content { padding: 2.5rem 0; }
    .page-section { padding: 1.5rem; }
    .hero-actions { flex-wrap: nowrap !important; gap: 0.4rem; }
    .hero-actions .btn { padding: 0.5rem 0.6rem; font-size: 0.7rem; flex: 1 1 0 !important; min-width: 0 !important; }
    .footer-top { grid-template-columns: 1fr; gap: 1.5rem; padding: 0 1rem 1.5rem; text-align: left; }
    .footer-col-brand, .footer-col-address, .footer-col-contact, .footer-col-hours { text-align: left; }
    .footer-app-icon svg { width: 22px !important; height: 22px !important; }
    .footer-copy { font-size: 0.75rem !important; }
}


/* Imagens das seções da página Sobre */
.section-figure {
    margin: 0 0 1.75rem 0;
    text-align: center;
}
.section-img {
    width: 100%;
    max-width: 720px;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(199, 162, 79, 0.45);
    box-shadow: 0 4px 18px rgba(35, 60, 75, 0.12);
    display: block;
    margin: 0 auto;
}
.section-figure figcaption {
    margin-top: 0.65rem;
    font-size: 0.92rem;
    font-style: italic;
    color: var(--text-muted, #6a6a6a);
}
.about-text ul {
    margin: 0.5rem 0 1.25rem 1.25rem;
    padding-left: 0.5rem;
}
.about-text ul li {
    margin-bottom: 0.35rem;
    line-height: 1.65;
    color: var(--text-color, #2b2b2b);
}

