/* ==========================================================================
   Francielly Sepúlvida | Advogada
   Identidade: folha de estilo v1.0 (aprovada em 17/11/2026)
   Para trocar cores ou fontes, altere apenas as variáveis em :root.
   ========================================================================== */

/* Fontes locais (SIL Open Font License 1.1, ver assets/fonts/OFL-*.txt).
   Para usar a Advercase nos títulos: adquirir a licença WEBFONT,
   colocar o .woff2 em assets/fonts e trocar --font-display abaixo. */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta (v1.0) */
  --c-bg: #F7F4EF;          /* off-white */
  --c-greige: #EAE4DB;      /* greige */
  --c-sand: #E2D9CE;        /* areia */
  --c-text: #2A2522;
  --c-muted: #5F5650;
  --c-accent: #7A6455;      /* mocha: destaque único */
  --c-accent-dark: #5E4B3F;
  --c-on-accent: #FBF9F6;
  --c-line: rgba(42, 37, 34, .12);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;
  --header-h: 4.5rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h1 em, h2 em {
  font-style: italic;
  color: var(--c-accent);
}
h1 { font-size: clamp(2.35rem, 5.4vw, 4.4rem); font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(1.95rem, 3.6vw, 3rem); font-variation-settings: "opsz" 120; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.45rem); font-variation-settings: "opsz" 36; line-height: 1.25; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-accent-dark); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-text); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--c-text);
  color: var(--c-bg);
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--c-bg); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container.narrow { max-width: 50rem; }

.eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--c-text);
  max-width: 38rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .8rem 1.5rem;
  border: 1px solid var(--c-accent);
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-on-accent);
  font: 600 1rem/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); color: var(--c-on-accent); }
.btn-ghost { background: transparent; color: var(--c-text); border-color: rgba(42, 37, 34, .35); }
.btn-ghost:hover { background: var(--c-greige); color: var(--c-text); border-color: var(--c-text); }
.btn-small { min-height: 2.5rem; padding: .55rem 1.1rem; font-size: .9375rem; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 239, .94);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(247, 244, 239, .82); backdrop-filter: blur(10px); }
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--c-text);
  line-height: 1.1;
}
.brand-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; letter-spacing: -0.01em; }
.brand-role { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); margin-top: .2rem; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav a:not(.btn) {
  display: inline-block;
  padding: .6rem .7rem;
  color: var(--c-text);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  border-radius: var(--radius);
}
.site-nav a:not(.btn):hover { color: var(--c-accent-dark); text-decoration: underline; }
.nav-cta { margin-left: .5rem; }

.menu-toggle { display: none; }

/* Menu móvel: só recolhe quando o JavaScript está ativo */
@media (max-width: 959px) {
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 2.75rem;
    padding: .5rem .9rem;
    background: transparent;
    border: 1px solid rgba(42, 37, 34, .3);
    border-radius: 999px;
    color: var(--c-text);
    font: 600 .9375rem/1 var(--font-body);
    cursor: pointer;
  }
  .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
    display: block; width: 18px; height: 1.5px; background: currentColor; position: relative;
    transition: transform .2s ease, background-color .2s ease;
  }
  .menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-bars::before { top: -6px; }
  .menu-toggle-bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .js .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 18px 30px -24px rgba(42, 37, 34, .35);
    padding: .5rem var(--gutter) 1.5rem;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .js .site-nav:not(.is-open) { display: none; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav a:not(.btn) { display: block; padding: .9rem .25rem; font-size: 1.0625rem; border-bottom: 1px solid var(--c-line); border-radius: 0; }
  .js .nav-cta { margin: 1.25rem 0 0; }
  .js .nav-cta .btn { width: 100%; min-height: 3rem; font-size: 1rem; }

  /* Sem JavaScript: navegação visível e quebrando linha */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: .75rem; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}

/* ---------- Abertura ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) var(--section-y); }
.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-text .lead { margin-top: 1.5rem; }
.hero-note {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--c-accent-dark);
}
.hero-note svg { width: 1.25rem; height: 1.25rem; flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

.hero-photo {
  margin: 0;
  position: relative;
  max-width: 26rem;
  justify-self: center;
  width: 100%;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 1.25rem -.75rem -.75rem 1.25rem;
  background: var(--c-sand);
  border-radius: var(--radius);
  z-index: -1;
}
.hero-photo img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .hero-photo { justify-self: end; }
}

/* ---------- Seções ---------- */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--c-greige); }
.section-tone { background: var(--c-sand); }
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-intro { color: var(--c-muted); font-size: 1.0625rem; }

/* Situações (lista numerada) */
.topics {
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: topic;
  display: grid;
  gap: 1rem;
}
.topic {
  counter-increment: topic;
  background: #FFFDFB;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.topic::before {
  content: counter(topic, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.75rem;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 1rem;
}
.topic h3 { margin-bottom: .6rem; }
.topic p { color: var(--c-muted); }

@media (min-width: 640px) { .topics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .topics:not(.topics--four) { grid-template-columns: repeat(6, 1fr); }
  .topics:not(.topics--four) .topic { grid-column: span 2; }
  .topics:not(.topics--four) .topic:nth-child(4) { grid-column: 2 / span 2; }
}
@media (min-width: 1100px) {
  .topics--four { grid-template-columns: repeat(4, 1fr); }
}

/* Sobre */
.about-grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.about-photo { margin: 0; max-width: 22rem; width: 100%; justify-self: center; }
.about-photo img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; width: 100%; }
.about-text .lead { margin-bottom: 1.25rem; }
.about-subtitle {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  margin: 2rem 0 .75rem;
}
.credentials { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.credentials li {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.35;
  padding-left: 1.25rem;
  position: relative;
}
.credentials li::before {
  content: "";
  position: absolute;
  left: 0; top: .6em;
  width: .45rem; height: .45rem;
  border-radius: 50%;
  background: var(--c-accent);
}
.tag {
  display: inline-block;
  margin-left: .35rem;
  padding: .1rem .55rem;
  border-radius: 999px;
  background: var(--c-bg);
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--c-muted);
  vertical-align: middle;
}
.oab-id { margin-top: 1.5rem; font-weight: 600; }

@media (min-width: 900px) {
  .about-grid { grid-template-columns: .8fr 1.2fr; }
}

/* Outras áreas */
.areas { display: grid; gap: 0; }
.area {
  padding-block: 1.75rem;
  border-top: 1px solid var(--c-line);
}
.area h3 { margin-bottom: .5rem; }
.area p { color: var(--c-muted); max-width: 34rem; }
@media (min-width: 760px) {
  .areas { grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 5vw, 4rem); }
}
@media (min-width: 1000px) {
  .areas--three { grid-template-columns: repeat(3, 1fr); }
}

/* Atendimento */
.service-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.75rem; }
.step { counter-increment: step; display: grid; grid-template-columns: 2.75rem 1fr; column-gap: 1rem; }
.step::before {
  content: counter(step);
  grid-row: span 2;
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-bg);
  color: var(--c-accent-dark);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
}
.step h3 { font-size: 1.2rem; margin: .35rem 0 .35rem; }
.step p { color: var(--c-muted); }
@media (min-width: 960px) {
  .service-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Perguntas frequentes */
.faq-group {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  margin: 0 0 .5rem;
}
.faq + .faq-group { margin-top: 3rem; }
.faq { border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-q {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  font-weight: 500;
  line-height: 1.3;
}
.faq summary::after {
  content: "";
  flex: none;
  width: .7rem; height: .7rem;
  margin-top: .45rem;
  border-right: 1.5px solid var(--c-accent);
  border-bottom: 1.5px solid var(--c-accent);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: .75rem; }
.faq summary:hover .faq-q { color: var(--c-accent-dark); }
.faq-body { padding: 0 0 1.5rem; color: var(--c-muted); max-width: 42rem; }

/* Contato */
.section-contact { background: var(--c-greige); }
.contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-items: center;
  height: 100%;
  padding: 1.5rem;
  background: var(--c-bg);
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--c-text);
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.contact-card:hover { border-color: var(--c-accent); color: var(--c-text); background: #FFFDFB; }
.contact-icon { grid-row: span 2; width: 2rem; height: 2rem; color: var(--c-accent); }
.contact-label { font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.contact-value { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.3; overflow-wrap: anywhere; }
.contact-email { font-size: 1.05rem; }
@media (min-width: 700px) { .contacts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--c-text);
  color: #E9E3DA;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .9375rem;
}
.site-footer a { color: #F3EDE4; }
.site-footer a:hover { color: #FFFFFF; }
.site-footer :focus-visible { outline-color: #E2D9CE; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-name { font-family: var(--font-display); font-size: 1.5rem; color: #FBF9F6; margin-bottom: .25rem; }
.footer-note { margin-top: 1.25rem; color: #CFC6BB; max-width: 26rem; }
.footer-title {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #FBF9F6;
  margin-bottom: .75rem;
}
.privacy p { color: #D8D0C6; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(233, 227, 218, .18);
  color: #CFC6BB;
}
.footer-bottom p { margin: 0; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1fr 1.3fr; gap: 4rem; } }

/* ---------- Botão flutuante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  width: 3.5rem; height: 3.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-on-accent);
  box-shadow: 0 10px 24px -10px rgba(42, 37, 34, .55);
  transition: opacity .25s ease, transform .25s ease, background-color .2s ease;
}
.whatsapp-float:hover { background: var(--c-accent-dark); color: var(--c-on-accent); }
.whatsapp-float svg { width: 1.7rem; height: 1.7rem; }
.whatsapp-float.is-hidden { opacity: 0; transform: translateY(1rem); pointer-events: none; visibility: hidden; }

/* Espaço extra no fim da página para o botão não cobrir textos no celular */
@media (max-width: 759px) {
  .footer-bottom { padding-bottom: 4.5rem; }
}

/* ---------- Animações discretas ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Página de links (bio do Instagram) ---------- */
.links-page { background: var(--c-greige); }
.links-wrap {
  max-width: 30rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 4rem) 1rem 2.5rem;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.links-head { text-align: center; margin-bottom: 2rem; }
.links-avatar {
  width: 7.5rem; height: 7.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 6px var(--c-bg);
}
.links-head h1 { font-size: clamp(2rem, 8vw, 2.5rem); margin-bottom: .5rem; }
.links-role { font-weight: 600; color: var(--c-text); margin-bottom: .25rem; }
.links-reach { color: var(--c-muted); font-size: .9375rem; }
.links-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.link-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
  padding: .9rem 1.25rem;
  border-radius: 999px;
  background: var(--c-bg);
  border: 1px solid transparent;
  color: var(--c-text);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.25;
  transition: border-color .2s ease, background-color .2s ease;
}
.link-btn:hover { border-color: var(--c-accent); background: #FFFDFB; color: var(--c-text); }
.link-btn svg { width: 1.6rem; height: 1.6rem; flex: none; color: var(--c-accent); }
.link-btn small { display: block; font-weight: 400; font-size: .8125rem; color: var(--c-muted); margin-top: .15rem; overflow-wrap: anywhere; }
.link-primary { background: var(--c-accent); color: var(--c-on-accent); }
.link-primary svg, .link-primary small { color: var(--c-on-accent); }
.link-primary:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); color: var(--c-on-accent); }
.links-foot { margin-top: auto; padding-top: 2.5rem; text-align: center; font-size: .875rem; color: var(--c-muted); }
.links-foot p { margin-bottom: .4rem; }

/* ---------- Impressão ---------- */
@media print {
  .site-header, .whatsapp-float, .hero-actions, .skip-link { display: none !important; }
  body { background: #fff; }
  .js .reveal { opacity: 1; transform: none; }
  .faq details > .faq-body { display: block; }
}
