/* =========================================================
   VALÉRIA ROSA | ADVOCACIA E ASSESSORIA JURÍDICA
   ========================================================= */

:root {
  --off-white: #FFFCF5;
  --bege: #D8D5CA;
  --taupe: #AAA59B;
  --marrom: #4B3329;
  --marrom-avermelhado: #7A3B2E;
  --texto: #3F3D3A;
  --branco: #FFFFFF;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  --radius-s: 2px;
  --transition: 220ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--texto);
  background: var(--off-white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; color: var(--marrom); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
section { position: relative; }

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

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

.eyebrow-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--marrom-avermelhado);
  font-weight: 600;
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.18;
  max-width: 18ch;
}

.section-lede {
  font-size: 1.05rem;
  max-width: 62ch;
  line-height: 1.7;
  color: var(--texto);
}

.section-pad {
  padding: clamp(56px, 9vw, 108px) 0;
}

.bg-off-white { background: var(--off-white); }
.bg-bege { background: var(--bege); }
.bg-marrom { background: var(--marrom); color: var(--off-white); }
.bg-marrom h2, .bg-marrom h3, .bg-marrom h4 { color: var(--off-white); }
.bg-marrom .section-lede { color: #E7DFD6; }

.divider {
  width: 56px;
  height: 1px;
  background: var(--marrom-avermelhado);
  border: 0;
  margin: 22px 0;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: normal;
  text-align: center;
}
.btn-primary {
  background: var(--marrom);
  color: var(--off-white);
}
.btn-primary:hover { background: var(--marrom-avermelhado); }
.btn-outline {
  background: transparent;
  color: var(--marrom);
  border-color: var(--marrom);
}
.btn-outline:hover { background: var(--marrom); color: var(--off-white); }
.btn-ghost {
  background: transparent;
  color: var(--texto);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  padding: 8px 2px;
}
.bg-marrom .btn-outline { color: var(--off-white); border-color: var(--off-white); }
.bg-marrom .btn-outline:hover { background: var(--off-white); color: var(--marrom); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cta-row > * { margin: 4px 14px 4px 0; }
.cta-row > *:last-child { margin-right: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 252, 245, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(75, 51, 41, 0.1);
}
.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__name {
  font-family: var(--serif);
  font-size: 1.32rem;
  color: var(--marrom);
}
.brand__tag {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: var(--texto);
  margin-top: 2px;
}
.main-nav { display: none; }
.main-nav ul { display: flex; }
.main-nav ul li + li { margin-left: 28px; }
.main-nav a {
  font-size: 0.92rem;
  color: var(--texto);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--marrom);
  transition: right var(--transition);
}
.main-nav a:hover::after { right: 0; }

.header-cta { display: none; }

.menu-toggle {
  border: 1px solid var(--marrom);
  background: transparent;
  width: 44px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-s);
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: var(--marrom);
  position: relative;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--off-white);
  z-index: 70;
  padding: 24px var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform 320ms ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav__close {
  border: 1px solid var(--marrom);
  background: none;
  width: 44px; height: 40px;
  border-radius: var(--radius-s);
  font-size: 1.1rem;
  color: var(--marrom);
}
.mobile-nav ul {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav a {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--marrom);
  padding: 12px 0;
  border-bottom: 1px solid rgba(75,51,41,0.12);
  display: block;
}
.mobile-nav__cta { margin-top: 32px; }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 7vw, 76px) 0 clamp(56px, 8vw, 96px);
}
.hero__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero__eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--marrom-avermelhado);
  margin-bottom: 14px;
}
.hero__title {
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  line-height: 1.12;
  max-width: 14ch;
}
.hero__lede {
  margin-top: 22px;
  font-size: 1.12rem;
  max-width: 46ch;
  color: var(--texto);
}
.hero__ctas {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.hero__ctas .btn { width: 100%; }
.hero__secondary {
  margin-top: 4px;
}
.hero__figure {
  position: relative;
}
.hero__figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-s);
  object-fit: cover;
  object-position: center 15%;
}
.hero__figure-caption {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--off-white);
  border: 1px solid rgba(75,51,41,0.18);
  padding: 14px 20px;
  max-width: 240px;
  font-size: 0.82rem;
  display: none;
}

@media (min-width: 860px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
  .hero__ctas { flex-direction: row; flex-wrap: wrap; }
  .hero__ctas .btn { width: auto; }
  .hero__figure-caption { display: block; }
}

/* ---------- Duas frentes ---------- */
.frentes-grid {
  margin-top: 44px;
  display: grid;
  gap: 22px;
}
@media (min-width: 780px) {
  .frentes-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.frente-card {
  border: 1px solid rgba(75,51,41,0.16);
  background: var(--branco);
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.frente-card__label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--marrom-avermelhado);
  font-weight: 700;
}
.frente-card h3 {
  font-size: 1.5rem;
  margin-top: 8px;
}
.frente-card p {
  margin-top: 14px;
  color: var(--texto);
  font-size: 0.98rem;
}
.frente-card__list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.frente-card__list li {
  font-size: 0.92rem;
  padding-left: 18px;
  position: relative;
  color: var(--texto);
}
.frente-card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 6px; height: 1px;
  background: var(--marrom-avermelhado);
}
.frente-card .btn { margin-top: 26px; align-self: flex-start; }

/* ---------- Pilares (família) ---------- */
.pilares-grid {
  margin-top: 44px;
  display: grid;
  gap: 1px;
  background: rgba(75,51,41,0.16);
  border: 1px solid rgba(75,51,41,0.16);
}
@media (min-width: 780px) {
  .pilares-grid { grid-template-columns: 1fr 1fr; }
}
.pilar {
  background: var(--off-white);
  padding: clamp(26px, 3.4vw, 36px);
}
.pilar h3 {
  font-size: 1.28rem;
}
.pilar p {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--texto);
}

/* ---------- Timeline (como funciona) ---------- */
.timeline {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}
.timeline__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid rgba(75,51,41,0.18);
}
.timeline__item:last-child { border-bottom: 1px solid rgba(75,51,41,0.18); }
.timeline__num {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--marrom-avermelhado);
}
.timeline__body h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.timeline__body p {
  font-size: 0.96rem;
  color: var(--texto);
  max-width: 62ch;
}
.timeline--light .timeline__item { border-color: rgba(255,252,245,0.28); }
.timeline--light .timeline__num { color: var(--bege); }
.timeline--light .timeline__body p { color: #E7DFD6; }
.timeline--light .timeline__item--highlight .timeline__body { border-left-color: var(--bege); }

.timeline__item--highlight .timeline__body {
  border-left: 2px solid var(--marrom-avermelhado);
  padding-left: 18px;
}

/* ---------- Consulta ---------- */
.consulta {
  display: grid;
  gap: 36px;
}
@media (min-width: 860px) {
  .consulta { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
}
.consulta__highlight {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--marrom);
}
.consulta__quote {
  margin-top: 30px;
  padding: 24px 26px;
  background: var(--bege);
  border-left: 3px solid var(--marrom-avermelhado);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--marrom);
}
.consulta p + p { margin-top: 16px; }

/* ---------- Assessoria layout ---------- */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .split--reverse { grid-template-columns: 1.1fr 0.9fr; }
  .split--reverse .split__figure { order: 2; }
}
.split__figure img {
  width: 100%;
  border-radius: var(--radius-s);
  object-fit: cover;
}
.assessoria-list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
@media (min-width: 620px) {
  .assessoria-list { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
}
.assessoria-list li {
  font-size: 0.95rem;
  padding-left: 18px;
  position: relative;
  color: var(--texto);
}
.assessoria-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 6px; height: 1px;
  background: var(--marrom-avermelhado);
}
.assessoria-note {
  margin-top: 22px;
  font-size: 0.98rem;
  color: var(--texto);
  border-top: 1px solid rgba(75,51,41,0.18);
  padding-top: 18px;
}

/* ---------- Depoimentos ---------- */
.depoimentos-track {
  margin-top: 44px;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.depoimento {
  scroll-snap-align: start;
  flex: 0 0 84%;
  background: var(--branco);
  border: 1px solid rgba(75,51,41,0.16);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 700px) {
  .depoimento { flex-basis: 46%; }
}
@media (min-width: 1040px) {
  .depoimento { flex-basis: 31%; }
}
.depoimento__mark {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--marrom-avermelhado);
  line-height: 1;
}
.depoimento p {
  margin-top: 10px;
  font-size: 0.96rem;
  color: var(--texto);
  line-height: 1.65;
  flex: 1;
}
.depoimento__autor {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--marrom);
}

/* ---------- Sobre ---------- */
.sobre-info {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.sobre-info span {
  font-size: 0.86rem;
  color: var(--marrom-avermelhado);
  font-weight: 600;
  margin-right: 28px;
  display: inline-block;
}

/* ---------- Contato ---------- */
.contato-inner {
  text-align: left;
}
.contato .cta-row { margin-top: 30px; }
.contato-meta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 34px;
  font-size: 0.92rem;
  color: #E7DFD6;
}
.contato-meta span {
  margin-right: 34px;
  display: inline-block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--taupe);
  color: var(--marrom);
  padding: clamp(40px, 6vw, 60px) 0 26px;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 780px) {
  .footer-grid { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.footer-brand__name { font-family: var(--serif); font-size: 1.3rem; }
.footer-brand__sub { margin-top: 4px; font-size: 0.86rem; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.footer-links a { text-decoration: underline; text-underline-offset: 3px; }
.footer-note {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(75,51,41,0.28);
  font-size: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--marrom);
  color: var(--off-white);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(75,51,41,0.28);
  transition: width var(--transition), border-radius var(--transition), background var(--transition);
  overflow: hidden;
  white-space: nowrap;
}
.whatsapp-float svg { flex: 0 0 22px; width: 22px; height: 22px; }
.whatsapp-float__label {
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity var(--transition), max-width var(--transition);
}
@media (hover: hover) {
  .whatsapp-float:hover {
    width: auto;
    border-radius: 30px;
    padding: 0 20px 0 16px;
    background: var(--marrom-avermelhado);
  }
  .whatsapp-float:hover .whatsapp-float__label {
    opacity: 1;
    max-width: 160px;
    margin-left: 2px;
  }
}

/* ---------- Reveal (um único momento orquestrado no hero) ---------- */
.hero__eyebrow, .hero__title, .hero__lede, .hero__ctas {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal 700ms ease forwards;
}
.hero__title { animation-delay: 90ms; }
.hero__lede { animation-delay: 180ms; }
.hero__ctas { animation-delay: 270ms; }
.hero__figure { opacity: 0; animation: reveal-fig 900ms ease forwards; animation-delay: 140ms; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes reveal-fig { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow, .hero__title, .hero__lede, .hero__ctas, .hero__figure {
    opacity: 1; transform: none; animation: none;
  }
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.section-head { max-width: 720px; }
.section-head + * { margin-top: 0; }
