/* ============================================
   Landing Advocacia — Visual 2026 Editorial
   Tipografia forte, paleta reduzida, muito espaço
   ============================================ */

:root {
  /* Paleta refinada – editorial jurídico */
  --bg: #faf9f7;
  --bg-alt: #f2f0eb;
  --bg-card: #ffffff;
  --text: #1c1c1c;
  --text-muted: #5c5c5c;
  --text-soft: #787878;
  --accent: #1a365d;
  --accent-hover: #2c5282;
  --accent-soft: rgba(26, 54, 93, 0.08);
  --gold: #b45309;
  --gold-soft: rgba(180, 83, 9, 0.12);
  --border: #e8e6e1;
  --border-strong: #d4d1c9;
  --shadow: 0 4px 24px rgba(28, 28, 28, 0.06);
  --shadow-hover: 0 12px 40px rgba(28, 28, 28, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --container: 1100px;
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* Compensa a altura do header fixo ao clicar em links âncora */
  scroll-padding-top: 220px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ----- Topbar ----- */
.topbar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.topbar__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem;
  gap: 1rem;
}

.topbar__hours {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar__hours::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.topbar__address {
  display: none;
}

@media (min-width: 768px) {
  .topbar__address {
    display: inline;
  }
}

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

.header__content {
  display: flex;
  height: 150px;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  gap: 1rem;
}

.header__menu {
  justify-items: center;
  padding: 1rem;
  gap: 1rem;
}

.header__brand {
  display: flex;
  align-items: flex-end;
  gap: 0;
}

/* Wrapper para cortar o "padding" transparente do PNG e deixar o logo preencher */
.logo-wrap {
  flex-shrink: 0;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrap--small {
  height: 48px;
  width: 48px;
}

.logo {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  /* Aumenta o desenho do logo para preencher; corta a borda transparente do PNG */
  transform: scale(2.1);
}

.logo-wrap--small .logo {
  transform: scale(1.8);
}

.logo--small {
  height: 100%;
  width: auto;
  max-width: none;
}

/* Linha diagonal entre logo e texto (mesmo estilo da linha do header) */
.brand__separator {
  width: 1px;
  height: 4rem;
  margin: 0 1rem 0.35rem;
  background: var(--border);
  transform: skewY(-12deg);
  flex-shrink: 0;
  align-self: flex-end;
}

.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0.15em;
}

.brand__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.7rem;
  color: #1a365d;
}

.brand__tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav__link {
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.nav__link:hover {
  color: var(--text);
}

.nav__button {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav__button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.header__menu-toggle {
  background: none;
  border: none;
  padding: 0;
  width: 28px;
  height: 20px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.header__menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
  .header__menu-toggle {
    display: none;
  }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}

.btn--ghost:hover {
  border-color: var(--text-muted);
  background: var(--accent-soft);
}

.btn--whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: var(--shadow);
}

.btn--whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

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

.btn--small {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

/* ----- Hero ----- */
.hero {
  padding: 4rem 0 3rem;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.hero__text {
  max-width: 36rem;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4vw + 1.5rem, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  box-shadow: var(--shadow);
}

.badge__number {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--accent);
}

.badge__text {
  color: var(--text-muted);
}

/* Hero card (form) */
.hero__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}

.hero__card-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.hero__card-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
}

.field span {
  font-weight: 500;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

textarea {
  border-radius: var(--radius-sm);
  resize: vertical;
  min-height: 88px;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-soft);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero-form__note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

@media (min-width: 960px) {
  .hero {
    padding: 5rem 0 4rem;
  }
  .hero__content {
    grid-template-columns: 1.35fr 1fr;
    align-items: center;
    gap: 3rem;
  }
  .hero__card {
    padding: 2.25rem 2rem;
  }
}

/* ----- Sections ----- */
.section {
  padding: 4rem 0;
  /* Garante que links âncora não fiquem escondidos atrás do header */
  scroll-margin-top: 220px;
}

.section--alt {
  background: var(--bg-alt);
}

.section--highlight {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
}

.section__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw + 1rem, 2rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section__text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 42rem;
}

.section__text--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__two-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.section__two-columns--center {
  align-items: center;
}

@media (min-width: 900px) {
  .section__two-columns {
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
  }
}

/* ----- Highlight box ----- */
.highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.highlight-box__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.highlight-box__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.highlight-box__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.highlight-box__list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ----- Cards grid (serviços) ----- */
.cards-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.service-card__actions {
  margin-top: 1rem;
}

/* ----- CTA box ----- */
.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}

.cta-box__title {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.cta-box__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

/* ----- Stats ----- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow);
}

.stat__number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.stat__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ----- Steps ----- */
.steps {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.step:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.step__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.step__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ----- Testimonials ----- */
.testimonials {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .testimonials {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}

.testimonial__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1rem;
  font-style: italic;
}

.testimonial__author {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  margin: 0;
}

.testimonial__meta {
  font-size: 0.8125rem;
  color: var(--text-soft);
  margin: 0.2rem 0 0;
}

/* ----- Contact ----- */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ----- Mapa (Google Maps) ----- */
.section--map {
  padding-top: 2rem;
}

.section--map .section__text {
  margin-bottom: 1.25rem;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-alt);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  min-height: 280px;
}

@media (min-width: 640px) {
  .map-wrap iframe {
    min-height: 320px;
  }
}

/* ----- Footer ----- */
.footer {
  margin-top: 3rem;
  padding-top: 2.5rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer__block {
  font-size: 0.9375rem;
}

.footer__text {
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer__title {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
  color: var(--text);
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--text-muted);
}

.footer__list a:hover {
  color: var(--text);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

.footer__bottom-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  color: var(--text-muted);
  font-weight: 500;
}

.footer__social a:hover {
  color: var(--text);
}

@media (min-width: 880px) {
  .footer__content {
    grid-template-columns: 1.4fr 0.9fr 0.9fr 1fr;
  }
}

/* ----- Animações suaves (scroll) ----- */
@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow,
  .hero__title,
  .hero__subtitle,
  .hero__actions,
  .hero__badges,
  .hero__card,
  .section__eyebrow,
  .section__title,
  .section__text,
  .service-card,
  .step,
  .testimonial {
    opacity: 1;
    animation: fadeUp 0.6s var(--ease) backwards;
  }

  .hero__card {
    animation-delay: 0.1s;
  }

  .service-card:nth-child(1) {
    animation-delay: 0.05s;
  }
  .service-card:nth-child(2) {
    animation-delay: 0.1s;
  }
  .service-card:nth-child(3) {
    animation-delay: 0.15s;
  }
  .service-card:nth-child(4) {
    animation-delay: 0.2s;
  }
  .service-card:nth-child(5) {
    animation-delay: 0.25s;
  }
  .service-card:nth-child(6) {
    animation-delay: 0.3s;
  }
  .service-card:nth-child(7) {
    animation-delay: 0.35s;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
