/* ═══════════════════════════════════════════════
   PSICOSOCIAL · Design System Extras
   APENAS o que Tailwind não cobre.
   ═══════════════════════════════════════════════ */

/* ── Tokens (Manual da Marca) ── */
:root {
  --ink-900: #173029;
  --ink-700: #25473C;
  --gold-500: #C79A45;
  --gold-300: #EAD8AF;
  --clay-500: #B26A4A;
  --paper-50: #FBF8F2;
  --surface-0: #FFFFFF;
  --stone-200: #E4DFD3;
  --stone-500: #7A7469;
  --success: #3E7A4F;
  --error: #A93B2B;
  --whatsapp: #25D366;
  --whatsapp-hover: #1ebe5d;
  --brand: var(--ink-700);
  --brand-dark: var(--ink-900);
  --accent: var(--gold-500);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
}

/* ══ Navbar Brandmark & Scroll ══ */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 100;
  background: transparent; color: var(--paper-50); border-bottom: none;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
header.nav.scrolled {
  background: rgba(251,248,242,0.95); backdrop-filter: blur(10px);
  color: var(--ink-900); border-bottom: 1px solid var(--stone-200);
  box-shadow: 0 1px 2px rgba(23,48,41,0.08);
}
.nav-inner {
  max-width: 76rem; width: 100%; margin: 0 auto;
  padding: 16px var(--space-sm); display: flex;
  align-items: center; justify-content: space-between; gap: var(--space-lg);
}
@media (min-width: 768px) {
  .nav-inner { padding: 16px var(--space-md); }
}
.brandmark-rect {
  height: 36px; padding: 0 14px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 16px; letter-spacing: -0.5px;
  background: var(--paper-50); color: var(--ink-900); border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.3s, color 0.3s;
}
.brandmark-rect .dot { color: var(--gold-500); }
header.nav.scrolled .brandmark-rect {
  background: var(--ink-900); color: var(--paper-50); box-shadow: none;
}
nav.toc { display: flex; gap: var(--space-lg); }
nav.toc a {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; letter-spacing: 0.04em;
  text-transform: uppercase; opacity: 0.85; white-space: nowrap;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: opacity 120ms ease, border-color 120ms ease;
}
nav.toc a:hover, nav.toc a.active { opacity: 1; border-color: var(--gold-500); }
header.nav.scrolled nav.toc a { color: var(--stone-500); opacity: 1; }
header.nav.scrolled nav.toc a:hover, header.nav.scrolled nav.toc a.active { color: var(--ink-900); }

/* ══ Hero Fullscreen (PsicoSocial) ══ */
.hero-fullscreen {
  min-height: 100vh; width: 100%; margin: 0; padding: 120px var(--space-sm) 60px;
  background: var(--ink-900); color: var(--paper-50);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; text-align: center; overflow: hidden;
}
.hero-fullscreen .eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-300); margin-bottom: 1.5rem;
}
.hero-fullscreen h1 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: clamp(3rem, 8vw, 5.5rem); letter-spacing: -0.025em;
  line-height: 1.02; margin: 0 0 1.5rem;
}
.hero-fullscreen h1 .dot { color: var(--gold-500); }
.hero-fullscreen p.sub {
  font-family: 'Newsreader', Georgia, serif; font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem); color: var(--gold-300);
  max-width: 640px; margin: 0 auto 4rem;
}
.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-300); opacity: 0.75;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translate(-50%, 0);} 50%{transform:translate(-50%, 6px);} }

/* ══ Particles ══ */
.particle-field { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.float-particle { position: absolute; border-radius: 50%; pointer-events: none; }
.float-particle:nth-child(1){width:7px;height:7px;background:var(--gold-500);opacity:0.3;top:18%;left:12%;animation:float-a 18s ease-in-out infinite;}
.float-particle:nth-child(2){width:11px;height:11px;background:var(--gold-300);opacity:0.22;top:62%;left:82%;animation:float-a 22s ease-in-out infinite 2s;}
.float-particle:nth-child(3){width:5px;height:5px;background:var(--clay-500);opacity:0.35;top:32%;left:48%;animation:float-a 15s ease-in-out infinite 1s;}
.float-particle:nth-child(4){width:8px;height:8px;background:var(--paper-50);opacity:0.18;top:75%;left:22%;animation:float-a 20s ease-in-out infinite 4s;}
.float-particle:nth-child(5){width:6px;height:6px;background:var(--gold-500);opacity:0.28;top:25%;left:75%;animation:float-a 16s ease-in-out infinite 3s;}
.float-particle:nth-child(6){width:12px;height:12px;background:var(--gold-300);opacity:0.15;top:80%;left:55%;animation:float-a 24s ease-in-out infinite 5s;}
.float-particle:nth-child(7){width:4px;height:4px;background:var(--paper-50);opacity:0.4;top:45%;left:15%;animation:float-a 14s ease-in-out infinite 2.5s;}
.float-particle:nth-child(8){width:9px;height:9px;background:var(--clay-500);opacity:0.25;top:15%;left:60%;animation:float-a 19s ease-in-out infinite 1.5s;}
.float-particle:nth-child(9){width:6px;height:6px;background:var(--gold-500);opacity:0.3;top:68%;left:35%;animation:float-a 17s ease-in-out infinite 3.5s;}
.float-particle:nth-child(10){width:5px;height:5px;background:var(--gold-300);opacity:0.35;top:40%;left:88%;animation:float-a 21s ease-in-out infinite 4.5s;}
@keyframes float-a{
  0%,100%{transform:translate(0,0) scale(1);}
  25%{transform:translate(25px,-35px) scale(1.2);}
  50%{transform:translate(-18px,-70px) scale(0.85);}
  75%{transform:translate(-35px,-15px) scale(1.1);}
}

/* ══ Noise Texture ══ */
.noise-texture{position:relative;}
.noise-texture::before{
  content:''; position:absolute; inset:0; pointer-events:none; opacity:0.04; z-index:1;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='fineNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23fineNoise)'/%3E%3C/svg%3E");
}

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s var(--ease); text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
.whatsapp-float::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: var(--whatsapp);
  animation: pulse-ring 2s var(--ease) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ── Sticky Nav (perfil público) ── */
.sticky-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; gap: 0.25rem; overflow-x: auto;
  padding: 0.75rem 0; border-bottom: 1px solid #f0f0f0;
  scrollbar-width: none;
}
.sticky-nav::-webkit-scrollbar { display: none; }
.sticky-nav a {
  font-size: 0.8125rem; font-weight: 500; color: #888; white-space: nowrap;
  padding: 0.3rem 0.75rem; border-radius: var(--radius-pill);
  transition: all 0.2s var(--ease); text-decoration: none;
}
.sticky-nav a:hover, .sticky-nav a.active {
  color: var(--brand); background: #E8F0EC;
}

/* ── Flash Messages ── */
.flash {
  padding: 0.75rem 1rem; border-radius: 0.75rem;
  font-size: 0.875rem; font-weight: 500;
  margin-bottom: 0.75rem; border: 1px solid;
}
.flash-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.flash-error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.flash-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.flash-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }

/* ── Timeline (currículo) ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0.5rem; top: 0.25rem; bottom: 0;
  width: 1.5px; background: #e5e5e5;
}
.timeline-item { position: relative; padding-bottom: 1.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -1.65rem; top: 0.35rem;
  width: 0.75rem; height: 0.75rem; border-radius: 50%;
  border: 2px solid var(--brand); background: #fff;
}

/* ── Gallery ── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  aspect-ratio: 4/3; border-radius: 0.5rem; overflow: hidden;
  background: #f5f5f5; cursor: pointer; position: relative;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.88);
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.lightbox.active { display: flex; }
.lightbox-img { width: 100%; max-width: min(90vw, 48rem); border-radius: 1rem; max-height: 80vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: -2.5rem; right: 0; background: none; border: none;
  color: white; font-size: 1.75rem; cursor: pointer; opacity: 0.7;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-legenda { color: white; text-align: center; margin-top: 0.75rem; font-size: 0.875rem; opacity: 0.8; }

/* ── Accordion ── */
.accordion { border-bottom: 1px solid #f0f0f0; }
.accordion-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1rem 0; background: none; border: none;
  font-family: inherit; font-size: 1rem; font-weight: 500;
  color: inherit; cursor: pointer; text-align: left;
}
.accordion-trigger:hover { color: var(--brand); }
.accordion-trigger .icon {
  width: 1.25rem; height: 1.25rem;
  transition: transform 0.3s var(--ease); flex-shrink: 0;
}
.accordion-trigger[aria-expanded="true"] .icon { transform: rotate(45deg); }
.accordion-content {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.accordion-content[aria-hidden="false"] { grid-template-rows: 1fr; }
.accordion-content-inner { overflow: hidden; }
.accordion-panel { padding-bottom: 1rem; line-height: 1.7; }

/* ── Hero (profile) ── */
.hero-crp {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.3rem 0.85rem; border-radius: var(--radius-pill);
  background: var(--brand); color: white;
  font-size: 0.75rem; font-weight: 600; margin-bottom: 0.75rem;
}
.hero-photo-wrapper {
  width: clamp(14rem, 20vw, 20rem); height: clamp(14rem, 20vw, 20rem);
  border-radius: 50%; overflow: hidden; position: relative;
  border: 3px solid #f0f0f0; box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.hero-photo-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #E8F0EC, #C4D8CE);
  color: var(--brand); position: relative;
}

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── Card resultados (busca) ── */
.card-resultado { position: relative; }
.card-resultado:hover { z-index: 2; }
.card-resultado .card-photo { width: 5rem; height: 5rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* ── Profile Tabs (landing page preview) ── */
.profile-tabs {
  display: flex; gap: 0; overflow-x: auto;
  border-bottom: 1px solid #E4DFD3; background: #F4F2EF;
  scrollbar-width: none;
}
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tab {
  font-size: 0.8125rem; font-weight: 500; color: #7A7469;
  padding: 0.625rem 1rem; background: none; border: none;
  cursor: pointer; white-space: nowrap; font-family: inherit;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.profile-tab:hover { color: var(--brand); }
.profile-tab.active { color: var(--brand); border-bottom-color: var(--brand); }

.profile-panel { display: none; }
.profile-panel.active { display: block; }

/* ── Scroll reveal (landing) ── */
.reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── Diferencial card hover ── */
.card-diferencial { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.card-diferencial:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover, 0 10px 25px rgba(23,48,41,0.08)); }

/* ── Sticky CTA mobile ── */
.sticky-cta-mobile {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: #FFFFFF; border-top: 1px solid #E4DFD3;
  padding: 0.75rem 1rem; display: none;
}
.sticky-cta-mobile a {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 0.75rem 1.5rem; border-radius: 12px;
  font-size: 0.9375rem; font-weight: 600;
  background: #C79A45; color: #173029; text-decoration: none;
  transition: background 0.2s var(--ease);
}
.sticky-cta-mobile a:hover { background: #EAD8AF; }
@media (max-width: 767px) { .sticky-cta-mobile { display: block; } }

/* ── Accordion refinements ── */
.accordion-trigger { font-family: inherit; }

/* ── Favicon fallback ── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
