/* ============================================================
   MB LAW — Folha de estilos
   Paleta extraída da identidade visual (logo cobre sobre preto)
   Tipografia: Cormorant Garamond (títulos) + Montserrat (corpo)
   Abordagem: Mobile First
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Cores da marca */
  --c-black:        #0d0d0d;   /* fundo do logo */
  --c-graphite:     #161616;   /* superfícies escuras */
  --c-graphite-2:   #1e1d1b;   /* cards sobre fundo escuro */
  --c-copper:       #c08b5c;   /* cobre do monograma */
  --c-copper-light: #d9a878;   /* hover / detalhes */
  --c-copper-deep:  #9a6b41;   /* sombras do cobre */
  --c-ivory:        #f5f0ea;   /* fundo claro / texto sobre escuro */
  --c-ivory-2:      #efe8df;   /* superfícies claras alternativas */
  --c-ink:          #23201d;   /* texto sobre claro */
  --c-ink-soft:     #55504a;   /* texto secundário sobre claro */
  --c-mist:         #b9b2a9;   /* texto secundário sobre escuro */

  /* Tipografia */
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-sans:  "Montserrat", "Segoe UI", sans-serif;

  /* Ritmo */
  --space-section: clamp(4.5rem, 10vw, 8rem);
  --container: 72rem;
  --radius: 2px;

  /* Animação */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-ink);
  background: var(--c-ivory);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ---------- 3. Utilitários ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--space-section); }

.section--dark {
  background: var(--c-black);
  color: var(--c-ivory);
}

/* Eyebrow — pequeno rótulo acima dos títulos */
.section__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--c-copper);
  margin-bottom: 1rem;
}
.section__eyebrow--center { text-align: center; }

.section__title {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15;
  margin-bottom: 1.75rem;
}
.section__title em {
  font-style: italic;
  color: var(--c-copper);
}
.section__title--center { text-align: center; margin-bottom: 3.5rem; }

/* Animação de entrada no scroll (ativada via JS) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Escalonamento sutil entre irmãos revelados juntos */
.reveal.is-visible:nth-child(2) { transition-delay: 0.08s; }
.reveal.is-visible:nth-child(3) { transition-delay: 0.16s; }
.reveal.is-visible:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 4. Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  font-family: var(--f-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--c-copper);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn--primary {
  background: var(--c-copper);
  color: var(--c-black);
}
.btn--primary:hover {
  background: var(--c-copper-light);
  border-color: var(--c-copper-light);
}

.btn--ghost {
  background: transparent;
  color: var(--c-ivory);
  border-color: rgba(245, 240, 234, 0.35);
}
.btn--ghost:hover {
  border-color: var(--c-copper);
  color: var(--c-copper-light);
}

.btn--whatsapp {
  background: transparent;
  color: var(--c-copper-light);
  margin-top: 2rem;
}
.btn--whatsapp:hover {
  background: var(--c-copper);
  color: var(--c-black);
}

.btn--full { width: 100%; }

/* ---------- 5. Header ---------- */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: 1.1rem;
  background: linear-gradient(rgba(13, 13, 13, 0.85), rgba(13, 13, 13, 0));
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.header.is-scrolled {
  padding-block: 0.65rem;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(192, 139, 92, 0.25);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Marca tipográfica — reproduz o logo em HTML/CSS */
.header__brand {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  color: var(--c-copper);
}
.brand__monogram {
  font-family: var(--f-serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-copper);
  transform: translateY(-2px);
}
.brand__law {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--c-copper-light);
}

/* Navegação */
.nav__list {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}
.nav__link {
  position: relative;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ivory);
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--c-copper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover { color: var(--c-copper-light); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__link--cta {
  border: 1px solid var(--c-copper);
  padding: 0.55rem 1.3rem;
  color: var(--c-copper-light);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  background: var(--c-copper);
  color: var(--c-black);
}

/* Botão hamburguer (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--c-copper);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

@media (max-width: 47.9rem) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 13, 0.97);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }
  .nav.is-open { opacity: 1; pointer-events: auto; }

  .nav__list {
    flex-direction: column;
    gap: 2.4rem;
    text-align: center;
  }
  .nav__link { font-size: 1rem; }

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

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--c-ivory);
  overflow: hidden;
}

/* Fundo sem foto: preto da marca com brilho cobre sutil */
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 75% 30%, rgba(192, 139, 92, 0.14), transparent 65%),
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(192, 139, 92, 0.08), transparent 60%),
    linear-gradient(165deg, var(--c-graphite) 0%, var(--c-black) 55%, #090909 100%);
}

/* Vinheta leve para profundidade */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(9, 9, 9, 0.5) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 8rem 6rem;
  max-width: 46rem;
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--c-copper-light);
  margin-bottom: 1.4rem;
}

.hero__title {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 7.5vw, 4.6rem);
  line-height: 1.08;
  margin-bottom: 1.6rem;
}
.hero__title em {
  font-style: italic;
  color: var(--c-copper);
}

.hero__subtitle {
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  font-weight: 300;
  color: var(--c-mist);
  max-width: 34rem;
  margin-bottom: 2.6rem;
}
/* Ênfase nas áreas de atuação */
.hero__subtitle strong {
  font-weight: 500;
  color: var(--c-copper-light);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Indicador de scroll */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(var(--c-copper), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%      { transform: scaleY(0.55); opacity: 0.5; }
}

/* ---------- 7. Sobre ---------- */
.about__grid {
  display: grid;
  gap: 3rem;
}

.about__media {
  position: relative;
  max-width: 30rem;
}
.about__media img {
  border-radius: var(--radius);
  box-shadow: 24px 24px 60px rgba(35, 32, 29, 0.18);
}
/* Moldura cobre deslocada — detalhe de luxo discreto */
.about__media-frame {
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--c-copper);
  border-radius: var(--radius);
  z-index: -1;
}

.about__text p + p { margin-top: 1.1rem; }
.about__text strong { font-weight: 500; }

.about__quote {
  margin-block: 2rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--c-copper);
}
.about__quote p {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--c-ink);
}
.about__quote cite {
  display: block;
  margin-top: 0.7rem;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-copper-deep);
}

/* Números do escritório */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(35, 32, 29, 0.12);
}
.stats__number {
  display: block;
  font-family: var(--f-serif);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--c-copper-deep);
}
.stats__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}

@media (min-width: 60rem) {
  .about__grid {
    grid-template-columns: 5fr 6fr;
    gap: 5rem;
    align-items: center;
  }
}

/* ---------- 8. Especialidades ---------- */
.services__grid {
  display: grid;
  gap: 1.5rem;
}

.service-card {
  background: var(--c-graphite-2);
  border: 1px solid rgba(192, 139, 92, 0.18);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(192, 139, 92, 0.55);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--c-copper);
  margin-bottom: 1.6rem;
}
.service-card__icon svg { width: 100%; height: 100%; }

.service-card__title {
  font-family: var(--f-serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.9rem;
}

.service-card__text {
  font-size: 0.92rem;
  color: var(--c-mist);
  margin-bottom: 1.4rem;
}

.service-card__list li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.85rem;
  color: var(--c-ivory-2);
  line-height: 2;
}
.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 1px;
  background: var(--c-copper);
}

@media (min-width: 60rem) {
  .services__grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

/* ---------- 9. Liderança ---------- */
.bio {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 5rem;
}

.bio__media { max-width: 26rem; margin-inline: auto; width: 100%; }

.bio__photo-slot {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 20px 20px 50px rgba(35, 32, 29, 0.15);
}
.bio__photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* Placeholder elegante enquanto a foto individual da Mariana não existe */
.bio__photo-placeholder { display: none; }
.bio__photo-slot--empty {
  background: linear-gradient(160deg, var(--c-graphite) 0%, var(--c-black) 100%);
  border: 1px solid rgba(192, 139, 92, 0.35);
}
.bio__photo-slot--empty .bio__photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  height: 100%;
}
.bio__photo-monogram {
  font-family: var(--f-serif);
  font-size: 4rem;
  font-weight: 500;
  color: var(--c-copper);
  line-height: 1;
}
.bio__photo-hint {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-mist);
}

.bio__name {
  font-family: var(--f-serif);
  font-size: 2.1rem;
  font-weight: 500;
  line-height: 1.1;
}
.bio__role {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-copper-deep);
  margin-block: 0.6rem 1.4rem;
}
.bio__text p + p { margin-top: 1.1rem; }
.bio__text strong { font-weight: 500; }
.bio__text em { color: var(--c-copper-deep); }

.team__note {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  font-size: 1.05rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(35, 32, 29, 0.12);
}
.team__note strong { font-weight: 500; color: var(--c-copper-deep); }

@media (min-width: 60rem) {
  .bio {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: 4.5rem;
  }
  .bio--reverse .bio__media { order: 2; }
  .bio--reverse .bio__text { order: 1; }
}

/* ---------- 10. Contato ---------- */
.contact__grid {
  display: grid;
  gap: 3.5rem;
}

.contact__info > p { color: var(--c-mist); max-width: 30rem; }

.contact__channels {
  margin-top: 2.4rem;
  display: grid;
  gap: 1.5rem;
}
.contact__channel-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-copper);
  margin-bottom: 0.25rem;
}
.contact__channels a,
.contact__channels address {
  font-size: 1.02rem;
  color: var(--c-ivory);
  transition: color 0.3s var(--ease);
}
.contact__channels a:hover { color: var(--c-copper-light); }

/* Formulário */
.contact__form {
  background: var(--c-graphite-2);
  border: 1px solid rgba(192, 139, 92, 0.18);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  display: grid;
  gap: 1.4rem;
}

.form__field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-copper-light);
  margin-bottom: 0.5rem;
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--f-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--c-ivory);
  background: rgba(245, 240, 234, 0.04);
  border: 1px solid rgba(245, 240, 234, 0.15);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease);
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--c-copper);
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: rgba(185, 178, 169, 0.55); }

.form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c08b5c'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.form__field select option { background: var(--c-graphite); }

.form__field textarea { resize: vertical; min-height: 8rem; }

.form__feedback {
  font-size: 0.85rem;
  color: var(--c-copper-light);
  min-height: 1.2em;
}

/* Estado de sucesso do formulário */
.form__success {
  text-align: center;
  padding-block: 2rem;
}
.form__success-icon {
  display: block;
  font-size: 2rem;
  color: var(--c-copper);
  margin-bottom: 1rem;
}
.form__success h3 {
  font-family: var(--f-serif);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--c-ivory);
  margin-bottom: 0.6rem;
}
.form__success p {
  font-size: 0.92rem;
  color: var(--c-mist);
  max-width: 22rem;
  margin-inline: auto;
}

/* Botão flutuante de WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

@media (min-width: 60rem) {
  .contact__grid {
    grid-template-columns: 6fr 5fr;
    gap: 5rem;
    align-items: start;
  }
  .contact__form { padding: 3rem 2.5rem; }
}

/* ---------- 11. Footer ---------- */
.footer {
  background: var(--c-black);
  color: var(--c-mist);
  border-top: 1px solid rgba(192, 139, 92, 0.25);
  padding-top: 4rem;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer__logo {
  width: 110px;
  border-radius: var(--radius);
}
.footer__tagline {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--c-copper-light);
  margin-top: 1rem;
  max-width: 16rem;
}

.footer__nav h4,
.footer__legal h4 {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-ivory);
  margin-bottom: 1.1rem;
}

.footer__nav a,
.footer__legal li {
  font-size: 0.88rem;
  line-height: 2.1;
  transition: color 0.3s var(--ease);
}
.footer__nav a:hover { color: var(--c-copper-light); }

.footer__bottom {
  padding-block: 1.4rem;
  border-top: 1px solid rgba(245, 240, 234, 0.08);
  font-size: 0.78rem;
  text-align: center;
}

@media (min-width: 48rem) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}
