/* =========================================================
   Dra. Márcia Cristina Mapeli, Advogada
   Tokens: ver DESIGN.md
   ========================================================= */

:root {
  /* Cor */
  --navy: #16283F;
  --navy-2: #22405F;
  --brass: #A9803E;
  --brass-light: #C9A461;
  --brass-text: #8A6628; /* brass escurecido: passa 4.5:1 em texto pequeno sobre fundo claro, --brass puro não passa */
  --warm-white: #FAF8F4;
  --sand: #F1ECE2;
  --ink: #1C2430;
  --ink-muted: #5B6472;
  --border: #E3DCCF;
  --white: #FFFFFF;

  /* Tipografia */
  --font-display: "Fraunces", Georgia, serif;
  --font-text: "Source Sans 3", -apple-system, sans-serif;
  --font-utility: "Work Sans", -apple-system, sans-serif;

  /* Espaçamento base 8px */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-12: 96px;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow-card: 0 8px 24px rgba(22, 40, 63, 0.08);
  --shadow-lift: 0 16px 40px rgba(22, 40, 63, 0.14);
  --header-h: 84px;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--navy);
}

p { margin: 0 0 var(--sp-2); }

address { font-style: normal; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: var(--sp-1) var(--sp-2);
  z-index: 999;
}
.skip-link:focus {
  left: var(--sp-2);
  top: var(--sp-2);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
  max-width: 100%;
}
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }
.btn--lg { padding: 16px 32px; font-size: 1rem; }

.btn--primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-card);
}
.btn--primary:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { border-color: var(--brass); color: var(--brass); }

.section--escura .btn--ghost { color: var(--warm-white); border-color: rgba(250,248,244,0.3); }

/* ---------------- Header ---------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header__row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-right: auto;
  color: var(--navy);
}
.brand__mono { color: var(--brass); flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}
.brand__name span { color: var(--brass-text); font-weight: 500; }

.nav {
  display: flex;
  gap: var(--sp-4);
  font-family: var(--font-utility);
  font-weight: 500;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav a { position: relative; padding: 6px 0; color: var(--navy); }
.nav a:hover { color: var(--brass-text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------------- Eyebrow / rule / section head ---------------- */
.eyebrow {
  font-family: var(--font-utility);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin: 0 0 var(--sp-2);
}
.eyebrow--clara { color: var(--brass-light); }

.rule {
  width: 64px;
  height: 2px;
  background: var(--brass);
  margin: 0 0 var(--sp-3);
}
.rule--draw {
  transform-origin: left;
  animation: draw-rule 0.9s ease forwards;
  animation-play-state: paused;
}
.is-visible .rule--draw,
.rule--draw.is-visible { animation-play-state: running; }

@keyframes draw-rule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.section { padding: var(--sp-12) 0; }
.section--areia { background: var(--sand); }
.section--escura { background: var(--navy); background: linear-gradient(160deg, var(--navy), var(--navy-2)); }
.section--escura h2, .section--escura h3 { color: var(--warm-white); }
.section--escura p { color: rgba(250, 248, 244, 0.78); }

.section__head { max-width: 680px; margin: 0 auto var(--sp-8); text-align: left; }
.section__title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: var(--sp-2); }
.section__title--clara { color: var(--warm-white); }
.section__lede { color: var(--ink-muted); font-size: 1.05rem; }
.section__foot { margin-top: var(--sp-4); text-align: center; }
.section__foot a { color: var(--brass-text); font-weight: 600; }
.section__foot a:hover { text-decoration: underline; }

/* ---------------- Hero ---------------- */
.hero { padding: var(--sp-8) 0 var(--sp-12); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-8);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  margin-bottom: var(--sp-3);
}
.hero__title em { font-style: italic; color: var(--brass); }
.hero__lede { font-size: 1.12rem; color: var(--ink-muted); max-width: 46ch; margin-bottom: var(--sp-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.hero__trust {
  font-family: var(--font-utility);
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.9;
}
.hero__trust .stars { margin-right: var(--sp-1); }
.stars { color: var(--brass-text); letter-spacing: 2px; font-size: 0.95rem; }

.hero__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 900 / 909;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}

/* ---------------- Sobre ---------------- */
.sobre__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--sp-8);
  align-items: center;
}
.sobre__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1000 / 748;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding: 0;
  margin: var(--sp-4) 0 0;
  font-family: var(--font-utility);
  font-size: 0.9rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-3);
}
.facts__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  font-weight: 600;
}

/* ---------------- Cards ---------------- */
.cards { display: grid; gap: var(--sp-3); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--brass);
  margin-bottom: var(--sp-3);
}
.card h3 { font-size: 1.2rem; margin-bottom: var(--sp-1); }
.card p { color: var(--ink-muted); margin-bottom: var(--sp-2); }
.card__link { font-family: var(--font-utility); font-weight: 600; font-size: 0.88rem; color: var(--brass-text); }
.card__link:hover { text-decoration: underline; }

.feature { color: var(--warm-white); }
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(201, 164, 97, 0.4);
  color: var(--brass-light);
  margin-bottom: var(--sp-2);
}
.feature h3 { font-size: 1.05rem; margin-bottom: var(--sp-1); }
.feature p { font-size: 0.92rem; }

/* ---------------- Depoimentos ---------------- */
.rating {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.rating__num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--navy);
}
.rating__meta { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-utility); color: var(--ink-muted); font-size: 0.9rem; }

.testimonial {
  margin: 0;
  background: var(--sand);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  border-left: 3px solid var(--brass);
}
.testimonial p { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--ink); margin: var(--sp-2) 0; }
.testimonial cite { font-family: var(--font-utility); font-size: 0.82rem; font-style: normal; color: var(--ink-muted); }

/* ---------------- Localização ---------------- */
.local__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.local__content address {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: var(--sp-3);
  line-height: 1.7;
}
.horario { border-collapse: collapse; width: 100%; max-width: 360px; margin-bottom: var(--sp-4); font-family: var(--font-utility); font-size: 0.92rem; }
.horario th, .horario td { text-align: left; padding: var(--sp-1) 0; border-bottom: 1px solid var(--border); font-weight: 500; }
.horario th { color: var(--ink-muted); font-weight: 500; }
.horario td { color: var(--navy); font-weight: 600; text-align: right; }
.local__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.local__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}
.local__map iframe { width: 100%; height: 100%; border: 0; }

/* ---------------- Footer ---------------- */
.footer {
  background: var(--navy);
  color: rgba(250, 248, 244, 0.85);
  padding: var(--sp-8) 0 var(--sp-4);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--sp-4);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(250, 248, 244, 0.14);
}
.brand__mono--footer { color: var(--brass-light); margin-bottom: var(--sp-2); }
.footer__nome { font-family: var(--font-display); font-size: 1.1rem; color: var(--warm-white); margin-bottom: 2px; }
.footer__oab { font-family: var(--font-utility); font-size: 0.82rem; color: var(--brass-light); }
.footer__col h3 {
  font-family: var(--font-utility);
  color: var(--brass-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-2);
}
.footer__col p { margin-bottom: var(--sp-1); font-size: 0.92rem; }
.footer__col a:hover { color: var(--brass-light); }

.footer__bottom { padding-top: var(--sp-4); font-size: 0.8rem; color: rgba(250, 248, 244, 0.55); }
.footer__bottom p { max-width: 70ch; margin-bottom: var(--sp-1); }

/* ---------------- WhatsApp flutuante ---------------- */
.whatsapp-float {
  position: fixed;
  right: var(--sp-3);
  bottom: var(--sp-3);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lift);
  z-index: 90;
  transition: transform 0.2s ease, background 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.06); background: var(--navy-2); }

/* ---------------- Scroll reveal ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------------- Responsivo ---------------- */
@media (max-width: 960px) {
  .hero__grid, .sobre__grid, .local__grid { grid-template-columns: 1fr; }
  .sobre__media { order: -1; max-width: 320px; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }

  .header__cta { display: none; }
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-3);
    gap: var(--sp-2);
    text-align: left;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .cards--3, .cards--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .whatsapp-float { width: 52px; height: 52px; right: var(--sp-2); bottom: var(--sp-2); }
}
