/* ===========================================================
   Fabiane Davet · Advocacia
   Minimalista · off-white + #739BD0 · tipografia em destaque
   =========================================================== */

:root {
  --bg:           #F5F3ED;
  --bg-alt:       #EDEAE1;
  --ink:          #1B2230;
  --ink-deep:     #161C28;
  --muted:        #5C6573;
  --accent:       #739BD0;
  --accent-ink:   #3E6BAA;   /* tom mais escuro p/ contraste em texto/botão */
  --accent-soft:  rgba(115, 155, 208, 0.14);
  --accent-on-dark:#9DBDE6;
  --line:         rgba(27, 34, 48, 0.12);
  --line-strong:  rgba(27, 34, 48, 0.24);

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1140px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4.5rem, 11vw, 8.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(245, 243, 237, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  transition: height 0.4s var(--ease);
}
.site-header.scrolled .header-inner { height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  flex: none;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0;
}
.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 0.25rem 0;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--accent-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-menu a:hover { color: var(--accent-ink); }
.nav-menu a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.97rem;
  padding: 0.92em 1.7em;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.btn-primary {
  background: var(--accent-ink);
  color: #fff;
  box-shadow: 0 6px 18px rgba(62, 107, 170, 0.22);
}
.btn-primary:hover {
  background: #345C95;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(62, 107, 170, 0.30);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 78px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -12%;
  right: -8%;
  width: min(60vw, 640px);
  aspect-ratio: 1;
  background: radial-gradient(circle at center, rgba(115,155,208,0.40), rgba(115,155,208,0) 68%);
  filter: blur(20px);
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(2rem, 8vh, 5rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 1.6rem;
}
.eyebrow-rule {
  display: inline-block;
  width: 40px; height: 1.5px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 16ch;
}
.hero-title em {
  font-style: italic;
  color: var(--accent-ink);
}
.hero-lead {
  margin-top: 1.7rem;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--muted);
  line-height: 1.6;
}
.hero-creds {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
}
.hero-creds li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.hero-creds li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  translate: -50% 0;
  width: 26px; height: 42px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  z-index: 1;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 3px; height: 8px;
  border-radius: 3px;
  background: var(--accent-ink);
  animation: cue 1.8s var(--ease) infinite;
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { text-align: center; margin-inline: auto; max-width: 38ch; }
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 1.3rem + 2.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
@media (min-width: 880px) {
  .grid-2 { grid-template-columns: 0.95fr 1.05fr; align-items: start; }
  .grid-2 .section-head { position: sticky; top: 110px; margin-bottom: 0; }
}
.section-body > p + p { margin-top: 1.2rem; color: var(--muted); }
.section-body > p:first-child { font-size: 1.1rem; }

/* Facts */
.facts {
  list-style: none;
  padding: 0;
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.facts li { display: flex; flex-direction: column; }
.facts strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent-ink);
}
.facts span {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 14ch;
}

/* ---------- Áreas ---------- */
.areas {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
@media (min-width: 620px)  { .areas { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px)  { .areas { grid-template-columns: 1fr 1fr 1fr; } }

.area {
  background: var(--bg-alt);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.section-alt .area { background: var(--bg); }
.area-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.area h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--ink);
}
.area p { color: var(--muted); font-size: 0.96rem; }
.area:hover { background: #fff; }
.section-alt .area:hover { background: #fff; }

/* ---------- Trajetória ---------- */
.timeline {
  list-style: none;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 1.5px;
  background: var(--line);
}
.t-item {
  position: relative;
  padding-left: 2.4rem;
  padding-bottom: 2.6rem;
}
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.t-period {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.t-item h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  margin-top: 0.5rem;
  color: var(--ink);
}
.t-org { color: var(--ink); font-weight: 500; margin-top: 0.15rem; }
.t-item > p:last-child { color: var(--muted); margin-top: 0.5rem; }

/* ---------- Contato (bloco escuro) ---------- */
.section-contact {
  background: var(--ink);
  color: var(--bg);
}
.section-contact .section-label { color: var(--accent-on-dark); }
.section-contact .section-title { color: #fff; }

.contact-intro {
  text-align: center;
  max-width: 48ch;
  margin: -1.6rem auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.02rem, 1rem + 0.3vw, 1.18rem);
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 1rem;
}
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  background: var(--ink);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.4s var(--ease);
}
a.contact-card:hover { background: #232C3D; }
.contact-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.contact-value {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  color: #fff;
}
.contact-cta { text-align: center; margin-top: 2.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-deep);
  color: rgba(255,255,255,0.7);
  padding-block: 3rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-end;
}
.site-footer .brand-mark { margin-bottom: 0.8rem; }
.footer-name { color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.footer-oab { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer-meta { text-align: right; font-size: 0.85rem; max-width: 44ch; }
.footer-note { margin-top: 0.6rem; color: rgba(255,255,255,0.45); line-height: 1.5; }
@media (max-width: 620px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

/* ===========================================================
   Animações
   =========================================================== */
.reveal-load {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 110ms + 120ms);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger dentro de grupos */
.areas .area:nth-child(2) { transition-delay: 0.06s; }
.areas .area:nth-child(3) { transition-delay: 0.12s; }
.areas .area:nth-child(4) { transition-delay: 0.18s; }
.areas .area:nth-child(5) { transition-delay: 0.24s; }
.areas .area:nth-child(6) { transition-delay: 0.30s; }
.timeline .t-item:nth-child(2) { transition-delay: 0.10s; }
.timeline .t-item:nth-child(3) { transition-delay: 0.20s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 30px) scale(1.12); }
}
@keyframes cue {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  71%  { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    right: var(--pad);
    left: var(--pad);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.75rem;
    box-shadow: 0 18px 40px rgba(27, 34, 48, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav-menu.open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; width: 100%; padding: 0.7rem 0.6rem; }
  .nav-menu a::after { display: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .reveal-load { opacity: 1 !important; transform: none !important; }
  .hero-glow { animation: none; }
}
