/* ============================================================
   Sunaly Moura — Sections
   ============================================================ */

/* ---------- Manifesto ---------- */
.manifesto {
  background: var(--paper);
  color: var(--ink);
  position: relative;
}
.manifesto .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .manifesto .container { grid-template-columns: 1fr 2fr; gap: 96px; }
}
.manifesto-quote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--ink);
  position: relative;
}
.manifesto-quote .accent { color: var(--gold-deep); font-style: italic; font-weight: 400; }
.manifesto-quote::before {
  content: "“";
  position: absolute;
  font-family: var(--serif);
  font-size: 6em;
  line-height: 1;
  top: -0.3em;
  left: -0.45em;
  color: var(--gold);
  opacity: 0.4;
  font-style: italic;
  pointer-events: none;
}
.manifesto-sig {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.manifesto-sig .line { width: 32px; height: 1px; background: var(--gold); }

/* ---------- Numbers ---------- */
.stats {
  background: var(--paper-2);
  padding: clamp(40px, 5vw, 80px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (min-width: 900px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 48px; }
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-num .suffix { color: var(--gold-deep); font-style: italic; font-weight: 300; }
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 8px;
}

/* ---------- Áreas (practice areas) ---------- */
.areas {
  background: var(--ink);
  color: var(--paper);
  position: relative;
}
.areas-list {
  display: flex;
  flex-direction: column;
}
.area {
  position: relative;
  border-top: 1px solid var(--line-dark);
  padding: clamp(28px, 3.5vw, 48px) 0;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 32px;
  align-items: center;
  cursor: pointer;
  transition: padding 0.5s var(--ease);
}
.area:last-child { border-bottom: 1px solid var(--line-dark); }
.area-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted-dark);
}
.area-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
  transition: color 0.4s var(--ease), letter-spacing 0.4s var(--ease);
}
.area-title .italic { font-style: italic; color: var(--gold); }
.area-cta {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.area-cta svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.area:hover .area-title { color: var(--gold); }
.area:hover .area-cta {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.area:hover .area-cta svg { transform: rotate(45deg); color: var(--ink); }

/* Hover image reveal */
.area-preview {
  position: fixed;
  pointer-events: none;
  width: 280px;
  height: 360px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: var(--ink-2);
  overflow: hidden;
  transform: translate(-50%, -50%) scale(0.95);
}
.area-preview.is-visible { opacity: 1; }
.area-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
}
.area-preview::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,10,8,0.5) 100%);
}
.area-preview .label {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  z-index: 2;
}

/* Area expand panel */
.area-detail {
  display: none;
  grid-column: 2 / 4;
  padding-top: 24px;
  font-family: var(--sans);
  color: var(--paper-2);
  max-width: 720px;
}
.area.is-open { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 56px); }
.area.is-open .area-detail { display: block; animation: fadeUp 0.5s var(--ease-out); }
.area.is-open .area-cta { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.area.is-open .area-cta svg { transform: rotate(135deg); color: var(--ink); }
.area-detail p { margin: 0 0 16px; line-height: 1.6; font-size: 16px; }
.area-detail .tags {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px;
}
.area-detail .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line-dark);
  color: var(--paper-2);
}

/* ---------- Equipe ---------- */
.equipe { background: var(--paper); color: var(--ink); }
.equipe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}
@media (min-width: 900px) {
  .equipe-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.member {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.member-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  background: var(--ink-3);
}
.member-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(8%) contrast(1.02);
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}
.member-photo:hover img { transform: scale(1.03); filter: grayscale(0%) contrast(1); }
.member-photo .frame-num {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--paper);
  background: rgba(11,10,8,0.5);
  padding: 6px 10px;
  backdrop-filter: blur(8px);
}
.member-body { display: flex; flex-direction: column; gap: 16px; }
.member-name {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.member-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.member-bio {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 480px;
}
.member-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.member-meta .item {
  display: flex; flex-direction: column; gap: 4px;
}
.member-meta .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.member-meta .v {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
}

/* ---------- Processo ---------- */
.processo { background: var(--paper-2); }
.processo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(40px, 5vw, 80px);
}
@media (min-width: 900px) {
  .processo-grid { grid-template-columns: repeat(4, 1fr); }
}
.step {
  border-top: 1px solid var(--line);
  padding: 32px 0 32px;
  padding-right: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 900px) {
  .step { border-top: 1px solid var(--line); padding: 32px 24px 32px 0; border-right: none; }
  .step:not(:last-child) { border-right: 1px dashed var(--line); padding-left: 0; }
  .step + .step { padding-left: 24px; }
}
.step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
}
.step-title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
  font-weight: 400;
}
.step-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Testimonial / quotes carousel ---------- */
.voices { background: var(--ink); color: var(--paper); }
.voice {
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
  padding: clamp(24px, 3vw, 48px) 0;
}
.voice-quote {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.25;
  font-weight: 400;
  color: var(--paper);
  font-style: italic;
}
.voice-quote .accent { color: var(--gold); font-style: normal; }
.voice-attr {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.voice-attr .line { width: 32px; height: 1px; background: var(--gold); }
.voice-attr .name { color: var(--paper); }
.voice-controls {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
}
.voice-counter {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted-dark);
}
.voice-counter .now { color: var(--gold); }
.voice-nav { display: flex; gap: 12px; }
.voice-btn {
  width: 48px; height: 48px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  color: var(--paper);
}
.voice-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq-list { display: flex; flex-direction: column; }
.qa {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa-q {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.2;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.qa-q:hover { color: var(--gold-deep); }
.qa-toggle {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  position: relative;
  margin-top: 6px;
}
.qa-toggle::before, .qa-toggle::after {
  content: ""; position: absolute;
  background: var(--ink);
  transition: transform 0.4s var(--ease);
}
.qa-toggle::before { width: 14px; height: 1px; }
.qa-toggle::after { width: 1px; height: 14px; }
.qa.is-open .qa-toggle::after { transform: scaleY(0); }
.qa-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease), padding 0.4s var(--ease);
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 720px;
}
.qa.is-open .qa-a { max-height: 400px; padding-top: 16px; }

/* ---------- Contato ---------- */
.contato {
  background: var(--ink);
  color: var(--paper);
  padding-bottom: 0;
}
.contato-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}
@media (min-width: 980px) {
  .contato-grid { grid-template-columns: 1.2fr 1fr; gap: 96px; }
}
.contato-title {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.contato-title .italic { font-style: italic; color: var(--gold); }
.contato-sub {
  margin-top: 32px;
  font-family: var(--serif);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--paper-2);
  max-width: 480px;
}
.contato-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }

.contato-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 24px;
}
.info-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-dark);
  align-items: baseline;
}
.info-row:last-child { border-bottom: 1px solid var(--line-dark); }
.info-row .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.info-row .v {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.3;
  color: var(--paper);
}
.info-row .v.small { font-size: 15px; }
.info-row .v a { transition: color 0.3s var(--ease); }
.info-row .v a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px var(--gutter) 32px;
  border-top: 1px solid var(--line-dark);
  margin-top: 80px;
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand { max-width: 320px; }
.footer-brand .name {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 12px;
}
.footer-brand .desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-dark);
}
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin: 0 0 16px;
  font-weight: 400;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--paper);
  transition: color 0.3s var(--ease);
}
.footer a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.footer-bottom .legal { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Reveal on scroll ---------- */
/* Content stays VISIBLE if JS or IO doesn't fire (defensive default) */
[data-reveal] {
  opacity: 1;
  transform: none;
}
/* If JS adds the .reveal-ready class, hide initial state for the entrance animation */
html.reveal-ready [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

/* ---------- Custom cursor (desktop only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .cursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold);
    transform: translate(-50%, -50%);
    transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease), opacity 0.25s var(--ease);
    mix-blend-mode: difference;
    opacity: 0.9;
  }
  .cursor.is-hover {
    width: 56px; height: 56px;
    background: transparent;
    border: 1px solid var(--gold);
  }
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 12px 32px rgba(11,10,8,0.4), 0 0 0 0 rgba(201,162,74,0.6);
  animation: pulse 2.4s var(--ease) infinite;
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 32px rgba(11,10,8,0.4), 0 0 0 0 rgba(201,162,74,0.5); }
  50% { box-shadow: 0 12px 32px rgba(11,10,8,0.4), 0 0 0 16px rgba(201,162,74,0); }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 100px var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu .nav-link {
  font-family: var(--serif);
  font-size: 40px;
  letter-spacing: -0.01em;
  text-transform: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
  display: block;
}
.mobile-menu .nav-link .num { font-family: var(--mono); font-size: 12px; }
.mobile-menu-close {
  position: absolute;
  top: 20px; right: var(--gutter);
  width: 44px; height: 44px;
  border: 1px solid var(--paper);
  border-radius: 50%;
  display: grid; place-items: center;
}
