/* ============================================================
   Viana & Melo Advogados — folha de estilos
   Paleta extraída da identidade visual (logo.png + Instagram):
   marrom-café profundo + caramelo #8e5125 + dourado champanhe
   ============================================================ */

:root {
  --brown-900: #2b150a;
  --brown-800: #3a1e0e;
  --brown-700: #4f2a13;
  --caramel: #8e5125;  /* fundo da logo — acento com contraste AA sobre fundos claros */
  --gold-500: #d9a85c; /* dourado do monograma */
  --gold-400: #e6be7c;
  --gold-300: #f0d6a8;
  --ivory: #faf3ea;
  --ivory-soft: #f3e7d6;
  --white: #fffcf8;
  --text-900: #2e1d12;
  --text-600: #6c523e;
  --text-300: #e3cdb6;

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

  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(43, 21, 10, 0.08);
  --shadow-md: 0 10px 34px rgba(43, 21, 10, 0.14);
  --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow { max-width: 820px; }

/* ---------- Tipografia ---------- */

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

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

p + p { margin-top: 0.9rem; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 0.9rem;
}

/* Sobre fundo escuro o dourado claro já passa no contraste AA */
.hero .eyebrow,
.section-dark .eyebrow { color: var(--gold-500); }

.eyebrow.eyebrow-light { color: var(--gold-300); }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--brown-900);
  box-shadow: 0 6px 22px rgba(217, 168, 92, 0.35);
}

.btn-gold:hover { box-shadow: 0 10px 30px rgba(217, 168, 92, 0.5); }

.btn-ghost {
  border: 1.5px solid rgba(250, 243, 234, 0.45);
  color: var(--ivory);
}

.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-300); }

.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.05rem; }

/* ---------- Cabeçalho ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(43, 21, 10, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(250, 243, 234, 0.08);
  transition: background 0.3s ease;
}

.site-header.scrolled { background: rgba(43, 21, 10, 0.92); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ivory);
}

.brand-mark { display: grid; place-items: center; }

.brand-mark img {
  width: 44px;
  height: auto;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(43, 21, 10, 0.35);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text small {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-300);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav a {
  color: var(--ivory);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.site-nav a:hover { opacity: 1; color: var(--gold-300); }

.site-nav .nav-cta {
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--brown-900);
  font-weight: 600;
  opacity: 1;
}

.site-nav .nav-cta:hover { background: var(--gold-400); color: var(--brown-900); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ivory);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--brown-900) 0%, var(--brown-800) 55%, var(--brown-700) 100%);
  overflow: hidden;
}

/* Foto de fundo opcional: salve a imagem em img/hero-bg.jpg (veja o README).
   O blend "luminosity" tinge qualquer foto com o marrom do gradiente do hero;
   se o arquivo não existir, nada é exibido e o gradiente permanece. */
.hero-photo {
  position: absolute;
  inset: 0;
  background: url("../img/hero-bg.jpg") center 30% / cover no-repeat;
  mix-blend-mode: luminosity;
  opacity: 0.38;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(43, 21, 10, 0.85) 0%, rgba(43, 21, 10, 0.5) 45%, rgba(43, 21, 10, 0) 72%),
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(217, 168, 92, 0.13), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(142, 81, 37, 0.4), transparent 65%);
}


.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(250, 243, 234, 0.025) 0px,
    rgba(250, 243, 234, 0.025) 1px,
    transparent 1px,
    transparent 90px
  );
}

.hero-inner {
  position: relative;
  width: 100%; /* sem isto, o flex encolhe o container e o texto perde o alinhamento à esquerda */
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-content { max-width: 700px; }

.hero h1 { color: var(--ivory); margin-bottom: 1.2rem; }

.hero h1 em {
  font-style: italic;
  color: var(--gold-300);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-300);
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.6rem;
}

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.2rem;
}

.hero-badges li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ivory);
  opacity: 0.85;
}

.hero-badges svg { color: var(--gold-400); flex-shrink: 0; }

/* ---------- Seções ---------- */

.section { padding: 5.5rem 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-sub { color: var(--text-600); font-size: 1.05rem; }

.section-dark {
  background: linear-gradient(170deg, var(--brown-800), var(--brown-900));
}

.section-dark h2, .section-dark h3 { color: var(--ivory); }
.section-dark .section-sub { color: var(--text-300); }

.section-soft { background: var(--ivory); }

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.grid-2 p { color: var(--text-600); }
.grid-2 p strong { color: var(--text-900); }

/* Mantém o acento dourado nos rótulos dentro de .grid-2 (vence .grid-2 p) */
.grid-2 .eyebrow,
.grid-2 .lawyer-role { color: var(--caramel); }

/* ---------- Sobre ---------- */

.about-panel {
  display: grid;
  gap: 1.1rem;
}

.about-card {
  background: var(--ivory);
  border: 1px solid rgba(217, 168, 92, 0.25);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.about-card svg { color: var(--gold-500); flex-shrink: 0; }

.about-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-500);
  line-height: 1;
}

.about-label {
  font-size: 0.95rem;
  color: var(--text-600);
  font-weight: 500;
}

/* ---------- Cards de áreas ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

.card {
  background: rgba(250, 243, 234, 0.045);
  border: 1px solid rgba(250, 243, 234, 0.1);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 168, 92, 0.5);
  background: rgba(250, 243, 234, 0.07);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(217, 168, 92, 0.14);
  color: var(--gold-400);
  margin-bottom: 1.1rem;
}

.card h3 { font-size: 1.22rem; }

.card p { font-size: 0.9rem; color: var(--text-300); line-height: 1.6; }

.section-cta {
  margin-top: 3rem;
  text-align: center;
}

.section-cta p {
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.3rem;
}

/* ---------- Retrato / Dra. Aline ---------- */

.grid-2-reverse { grid-template-columns: 0.85fr 1.15fr; }

/* Blocos consecutivos de advogados na seção de equipe */
.grid-2 + .grid-2 { margin-top: 4.5rem; }

.portrait {
  position: relative;
  max-width: 400px;
}

/* Foto no lado direito do bloco alinha com a margem direita do container */
.grid-2 > .portrait:last-child { justify-self: end; }

/* Fotos da equipe padronizadas em 4:5, um pouco menores;
   o crop preserva o topo (cabeça inteira) e corta a parte de baixo */
.portrait img {
  width: 100%;
  height: auto; /* anula o atributo height do HTML; sem isto a foto estica */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1.5px solid rgba(217, 168, 92, 0.35);
  border-radius: var(--radius);
  z-index: -1;
}

.lawyer-role {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--caramel);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.check-list {
  list-style: none;
  margin: 1.4rem 0 1.8rem;
  display: grid;
  gap: 0.65rem;
}

.check-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--text-600);
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(217, 168, 92, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e5125' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brown-800);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--gold-400);
  padding-bottom: 2px;
  transition: color 0.2s ease, gap 0.2s ease;
}

.link-arrow:hover { color: var(--gold-500); gap: 0.8rem; }

/* ---------- Passos ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
  counter-reset: passo;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold-400);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brown-800);
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h3 { font-size: 1.15rem; }

.step p { font-size: 0.92rem; color: var(--text-600); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0.9rem; }

.faq-item {
  background: var(--white);
  border: 1px solid rgba(46, 29, 18, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(217, 168, 92, 0.55);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  color: var(--brown-800);
  font-size: 1.02rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary svg {
  flex-shrink: 0;
  color: var(--gold-500);
  transition: transform 0.25s ease;
}

.faq-item[open] summary svg { transform: rotate(180deg); }

.faq-body { padding: 0 1.4rem 1.3rem; }

.faq-body p { color: var(--text-600); font-size: 0.96rem; }

/* ---------- CTA final ---------- */

.section-cta-final { padding-bottom: 5.5rem; }

.cta-panel {
  background:
    radial-gradient(ellipse 70% 90% at 90% 10%, rgba(217, 168, 92, 0.16), transparent 60%),
    linear-gradient(150deg, var(--brown-700), var(--brown-900));
  border-radius: 22px;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.cta-panel h2 { color: var(--ivory); }

.cta-sub { color: var(--text-300); max-width: 460px; }

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
}

.cta-social { display: grid; gap: 0.55rem; }

.cta-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-300);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.cta-social a:hover { color: var(--gold-300); }

.cta-place {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-300);
  font-size: 0.92rem;
}

.cta-place svg { color: var(--gold-400); flex-shrink: 0; }

/* ---------- Rodapé ---------- */

.site-footer {
  background: var(--brown-900);
  color: var(--text-300);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(250, 243, 234, 0.09);
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ivory);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p { font-size: 0.88rem; }

.footer-nav, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-nav a, .footer-social a {
  color: var(--text-300);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover, .footer-social a:hover { color: var(--gold-300); }

.footer-legal {
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer-legal p { font-size: 0.78rem; opacity: 0.75; max-width: 640px; }

/* ---------- WhatsApp flutuante ---------- */

.whats-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whats-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

.whats-float:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; }

/* ---------- Animações de entrada ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

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

/* Âncoras não ficam escondidas sob o cabeçalho fixo */
section[id] { scroll-margin-top: 90px; }

/* ============================================================
   Responsivo
   ============================================================ */

@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2-reverse { grid-template-columns: 1fr; gap: 2.6rem; }
  .portrait { max-width: 400px; order: -1; justify-self: start; } /* em coluna única, a foto vem antes do texto */
  .portrait::after { inset: 12px 0 -12px 12px; }
  .cta-panel { grid-template-columns: 1fr; padding: 2.6rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* O menu horizontal precisa de ~1100px; abaixo disso entra o menu hambúrguer */
@media (max-width: 1080px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(43, 21, 10, 0.98);
    border-bottom: 1px solid rgba(250, 243, 234, 0.08);
    padding: 0.6rem 1.25rem 1.2rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .site-nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid rgba(250, 243, 234, 0.07);
    font-size: 1rem;
  }

  .site-nav .nav-cta {
    margin-top: 0.9rem;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    border-bottom: 0;
  }

  /* Com o menu aberto, o botão flutuante não cobre o CTA do menu */
  body.menu-open .whats-float { visibility: hidden; }
}

@media (max-width: 720px) {
  .section { padding: 4rem 0; }

  .hero-inner { padding-top: 110px; padding-bottom: 64px; }

  .hero-badges { flex-direction: column; gap: 0.8rem; }

  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .cta-panel { padding: 2rem 1.5rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }

  .whats-float { width: 54px; height: 54px; right: 1rem; bottom: 1rem; }
}
