/* ==========================================================================
   Nelson Nolasco — Psicologia / Análise do Comportamento
   ========================================================================== */

:root {
  --ink: #2E1620;
  --ink-soft: #5B3A47;
  --ink-faint: #8A7381;
  --paper: #FBF9F5;
  --sand: #F0E8DB;
  --sand-deep: #E3D8C6;
  --taupe: #C7BBAC;
  --taupe-dark: #A99C8C;
  --white: #FFFFFF;
  --accent: #6E2E42;
  --shadow: 0 12px 30px -12px rgba(46, 22, 32, 0.25);
  --radius: 14px;
  --maxw: 1120px;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: #5a2434; color: var(--white); }

.btn-outline {
  background: transparent;
  border-color: var(--taupe-dark);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  background: var(--sand);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--sand-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--sand-deep);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.15rem; }
.brand-text small { font-size: 0.7rem; letter-spacing: 0.04em; color: var(--ink-faint); text-transform: uppercase; }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.site-nav ul a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav ul a:hover, .site-nav ul a.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
  text-decoration: none;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-cta.btn-primary {
  white-space: nowrap;
  color: var(--white) !important;
  border-bottom: none !important;
}
.nav-cta.btn-primary:hover { color: var(--white) !important; }

.nav-toggle { display: none; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 64px;
  background: linear-gradient(180deg, var(--sand) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--sand-deep);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.hero-lede { font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-figure {
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: 48px 32px;
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero-mark { width: 100px; height: 100px; margin: 0 auto 14px; }
.hero-wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-subwordmark {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.hero-crp {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* ---------- Profile (Sobre page) ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 48px;
  align-items: start;
}
.profile-intro {
  padding-top: 6px;
}
.profile-intro p {
  font-size: 1.1rem;
}
.profile-figure {
  margin: 0;
  max-width: 360px;
  justify-self: end;
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}
.profile-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: calc(var(--radius) - 6px);
  display: block;
}
.profile-caption {
  text-align: center;
  margin: 14px 2px 4px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}
.profile-caption small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 3px;
}
.profile-intro p:last-child { margin-bottom: 0; }

/* ---------- Sections ---------- */
section.block { padding: 64px 0; }
section.block.alt { background: var(--sand); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head p { font-size: 1.05rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

.pillar-number {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--taupe-dark);
  margin-bottom: 6px;
  display: block;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.cta-band h2, .cta-band p { color: var(--white); }
.cta-band p { color: #E7DCE0; max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: var(--white); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--sand); }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  padding: 56px 0 40px;
  background: var(--sand);
  border-bottom: 1px solid var(--sand-deep);
}
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero p { font-size: 1.05rem; max-width: 60ch; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--ink-faint); }

/* ---------- Content prose ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; color: var(--ink-soft); }
.prose li { margin-bottom: 0.5em; }

/* ---------- List / timeline items ---------- */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.info-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--sand-deep);
}
.info-list li:last-child { border-bottom: none; }
.info-list .tag {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}

/* ---------- Copy-to-clipboard ---------- */
.copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.copy-btn {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--sand);
  border: 1px solid var(--sand-deep);
  border-radius: 999px;
  padding: 3px 12px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.copy-btn:hover { background: var(--sand-deep); }
.copy-btn.is-copied { background: var(--accent); color: var(--white); border-color: var(--accent); }
.copy-btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.25);
  color: #F1E7EB;
}
.copy-btn-ghost:hover { background: rgba(255,255,255,0.1); }
.copy-btn-ghost.is-copied { background: var(--white); color: var(--ink); border-color: var(--white); }
.copy-hint {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 6px;
  margin-bottom: 0;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-card .icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-card h3 { margin-bottom: 4px; font-size: 1.05rem; }
.contact-card p { margin-bottom: 6px; }

.notice {
  background: var(--sand);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Publications ---------- */
.empty-state {
  border: 1px dashed var(--taupe-dark);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #E7DCE0;
  padding-top: 52px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--paper);
}
.footer-mark { width: 34px; height: 34px; object-fit: contain; }
.footer-brand p { color: #C9B9C2; font-size: 0.88rem; margin: 0; }
.site-footer h3 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #C9B9C2;
  margin-bottom: 14px;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-list a { color: #F1E7EB; }
.footer-list a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 24px;
  font-size: 0.8rem;
  color: #B7A3AE;
}

/* ---------- 404 ---------- */
.notfound { padding: 100px 0; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { max-width: 320px; margin: 0 auto; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: 1fr; gap: 28px; }
  .profile-figure { max-width: 300px; margin: 0 auto; justify-self: center; order: -1; }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--paper);
    border-bottom: 1px solid var(--sand-deep);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .28s ease, opacity .2s ease;
  }
  .site-nav ul { flex-direction: column; gap: 2px; width: 100%; padding-top: 12px; }
  .site-nav ul a { display: block; padding: 12px 4px; width: 100%; }
  .nav-cta { margin: 14px 0 22px; align-self: flex-start; }
  .nav-burger { display: flex; }
  .nav-toggle:checked ~ .site-nav {
    max-height: 80vh;
    opacity: 1;
    visibility: visible;
  }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .info-list li { grid-template-columns: 1fr; gap: 4px; }
}
