/* ============================================================
   WELLINGTON MELO ADVOCACIA — style.css
   Paleta: azul-marinho profundo + dourado (identidade do logo)
   ============================================================ */

:root {
  --navy-900: #1c1a33;
  --navy-800: #262347;
  --navy-700: #312d5a;
  --navy-600: #3d3870;
  --gold-300: #f0d896;
  --gold-400: #dcb95f;
  --gold-500: #c9a24b;
  --gold-600: #a8823a;
  --white: #ffffff;
  --off-white: #f7f5f0;
  --text-light: #cfcbe6;
  --text-dark: #2a2740;
  --whats: #25d366;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(28, 26, 51, 0.18);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, Segoe UI, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;          /* evita rolagem lateral em telas pequenas */
}

/* Evita que textos longos (e-mail, links) estourem a tela */
h1, h2, h3, p, a, li { overflow-wrap: break-word; }

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

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}
.container--narrow { width: min(860px, 92%); }

.gold {
  background: linear-gradient(120deg, var(--gold-600), var(--gold-400), var(--gold-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
}
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--gold {
  background: linear-gradient(120deg, var(--gold-600), var(--gold-400));
  color: var(--navy-900);
  box-shadow: 0 8px 24px rgba(201, 162, 75, 0.35);
}
.btn--gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(201, 162, 75, 0.5);
}
.btn--outline {
  border: 1.5px solid rgba(240, 216, 150, 0.55);
  color: var(--gold-300);
  background: transparent;
}
.btn--outline:hover { background: rgba(240, 216, 150, 0.1); transform: translateY(-3px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(28, 26, 51, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240, 216, 150, 0.12);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
  background: rgba(28, 26, 51, 0.95);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}
.header__brand { display: flex; align-items: center; }
/* LOGO DO MENU FIXO — ajuste a altura aqui se trocar a logo */
.header__logo {
  height: 58px;
  width: auto;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav__link {
  color: var(--text-light);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color 0.25s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold-400);
  transition: width 0.3s ease;
}
.nav__link:hover { color: var(--gold-300); }
.nav__link:hover::after { width: 100%; }
.nav__cta { padding: 11px 22px; font-size: 0.88rem; }

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.header__toggle span {
  width: 26px; height: 2.5px;
  background: var(--gold-300);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.header__toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.header__toggle.open span:nth-child(2) { opacity: 0; }
.header__toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 75% 20%, rgba(61, 56, 112, 0.65), transparent 60%),
    radial-gradient(ellipse 70% 50% at 15% 85%, rgba(201, 162, 75, 0.12), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
  color: var(--white);
  padding: 170px 0 110px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-block;
  border: 1px solid rgba(240, 216, 150, 0.4);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 26px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 22px;
}
.hero__text {
  color: var(--text-light);
  font-size: clamp(0.98rem, 1.1vw + 0.8rem, 1.12rem);
  max-width: 56ch;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 38px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.hero__badges li {
  position: relative;
  padding-left: 22px;
  color: var(--text-light);
  font-size: 0.88rem;
}
.hero__badges li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold-400);
}
/* IMAGEM DO HERO — para trocar, veja o comentário no index.html */
.hero__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(240, 216, 150, 0.25);
}

/* ---------- Seções (base) ---------- */
.section { padding: 96px 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 12px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section__sub { color: #5c5877; font-size: 1.02rem; }

/* ---------- Áreas ---------- */
.areas { background: var(--off-white); }
.areas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 26px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  border: 1px solid #e9e5da;
  border-top: 3px solid var(--gold-400);
  box-shadow: 0 4px 18px rgba(28, 26, 51, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card__icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--gold-300);
  margin-bottom: 20px;
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
}
.card__list { flex: 1; margin-bottom: 20px; }
.card__list li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: 0.93rem;
  color: #4c4866;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--gold-600), var(--gold-300));
}
.card__link {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy-700);
  transition: color 0.25s ease;
}
.card__link:hover { color: var(--gold-600); }
.card__link--urgent { color: #b0413e; }
.card__link--urgent:hover { color: #8c2f2c; }

/* ---------- Sobre ---------- */
.sobre { background: var(--navy-900); color: var(--white); }
.sobre__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
/* IMAGENS DA SEÇÃO "O ESCRITÓRIO" — para trocar, veja o index.html */
.sobre__media { position: relative; }
.sobre__frame {
  border: 1px solid rgba(240, 216, 150, 0.3);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.sobre__frame img {
  border-radius: 10px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* Foto secundária sobreposta no canto inferior direito */
.sobre__frame--small {
  position: absolute;
  right: -26px;
  bottom: -36px;
  width: 46%;
  background: var(--navy-900);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}
.sobre__frame--small img { aspect-ratio: 1 / 1; }
.sobre .section__title { color: var(--white); }
.sobre__mission {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--gold-300);
  border-left: 3px solid var(--gold-500);
  padding-left: 20px;
  margin: 20px 0 22px;
  line-height: 1.5;
}
.sobre__content > p { color: var(--text-light); margin-bottom: 24px; }
.sobre__points { margin-bottom: 32px; }
.sobre__points li {
  position: relative;
  padding: 7px 0 7px 30px;
  color: var(--text-light);
  font-size: 0.97rem;
}
.sobre__points li strong { color: var(--white); }
.sobre__points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-400);
  font-weight: 700;
}

/* ---------- Passos ---------- */
.steps { background: var(--off-white); }
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 54px;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #e9e5da;
  padding: 40px 30px 34px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 18px rgba(28, 26, 51, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step__num {
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 18px;
  border: 2px solid var(--gold-400);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.step p { color: #5c5877; font-size: 0.95rem; }
.steps__cta { text-align: center; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); }
.faq__item {
  border: 1px solid #e9e5da;
  border-radius: 12px;
  margin-bottom: 14px;
  background: var(--off-white);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq__item[open] { border-color: var(--gold-400); background: var(--white); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 54px 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  color: var(--navy-800);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold-600);
  transition: transform 0.3s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p {
  padding: 0 24px 22px;
  color: #4c4866;
  font-size: 0.95rem;
}

/* ---------- Contato ---------- */
/* SEÇÃO CONTATO — usa foto de colunas de tribunal (Unsplash) como
   fundo, escurecida pelos gradientes por cima.
   Para trocar: substitua a URL na última linha do background abaixo
   por outra URL ou arquivo local, ex.: url("../img/fundo.jpg") */
.contato {
  background:
    radial-gradient(ellipse 70% 60% at 20% 10%, rgba(61, 56, 112, 0.75), transparent 60%),
    linear-gradient(150deg, rgba(28, 26, 51, 0.94), rgba(38, 35, 71, 0.92)),
    url("https://images.unsplash.com/photo-1505664194779-8beaceb93744?w=1600&q=70&auto=format&fit=crop") center/cover no-repeat;
  color: var(--white);
}
.contato__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.contato .section__title { color: var(--white); }
.contato__content p {
  color: var(--text-light);
  margin: 16px 0 30px;
  font-size: 1.05rem;
  max-width: 48ch;
}
.contato__info {
  display: grid;
  gap: 24px;
}
.info {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(240, 216, 150, 0.18);
  border-radius: 12px;
  padding: 22px 26px;
}
.info h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-300);
  margin-bottom: 8px;
}
.info p, .info a { color: var(--text-light); font-size: 0.97rem; }
.info a:hover { color: var(--gold-300); }

/* ---------- Footer ---------- */
.footer {
  background: #141226;
  color: var(--text-light);
  padding: 44px 0;
  text-align: center;
}
.footer__logo {
  max-width: 300px;
  margin: 0 auto 20px;
}
.footer__legal { font-size: 0.85rem; line-height: 1.9; opacity: 0.8; }
.footer__credit { color: var(--gold-300); transition: color 0.25s ease; }
.footer__credit:hover { color: var(--gold-400); text-decoration: underline; }

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--whats);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  animation: pulse 2.4s infinite;
  transition: transform 0.25s ease;
}
.whats-float:hover { transform: scale(1.1); }
@keyframes pulse {
  0%   { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70%  { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Reveal (scroll) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

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

/* ---------- Responsivo ---------- */
@media (max-width: 992px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__image { max-width: 420px; }
  .sobre__inner, .contato__inner { grid-template-columns: 1fr; gap: 44px; }
  .sobre__media { margin-bottom: 40px; }
  .sobre__frame--small { right: 0; bottom: -30px; }
  .steps__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 74px; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: min(320px, 84vw);
    height: calc(100vh - 74px);
    height: calc(100dvh - 74px);  /* altura correta em celulares (barra do navegador) */
    overflow-y: auto;             /* menu rolável em telas baixas/paisagem */
    background: var(--navy-900);
    border-left: 1px solid rgba(240, 216, 150, 0.15);
    padding: 28px 26px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav.open { transform: translateX(0); }
  .nav__link { padding: 14px 0; font-size: 1.05rem; width: 100%; }
  .nav__cta { margin-top: 20px; }
  .header__toggle { display: flex; }
  .hero { padding: 140px 0 80px; }
  .section { padding: 70px 0; }
}

/* ---------- Telas grandes (monitores largos / 4K) ---------- */
@media (min-width: 1600px) {
  .container { width: min(1320px, 90%); }
  html { font-size: 17px; }
  .hero { padding: 190px 0 130px; }
}

/* ---------- Tablets em pé / celulares grandes ---------- */
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .section__head { margin-bottom: 40px; }
  .hero { padding: 120px 0 64px; }
  .hero__image img { aspect-ratio: 16 / 11; }   /* foto mais baixa no celular */
  .card { padding: 28px 22px; }
  .faq__item summary { padding: 16px 46px 16px 18px; font-size: 0.95rem; }
  .faq__item p { padding: 0 18px 18px; }
  .info { padding: 18px 20px; }
  .contato__inner, .sobre__inner { gap: 36px; }
  .footer__logo { max-width: 230px; }
}

/* ---------- Celulares pequenos ---------- */
@media (max-width: 480px) {
  .btn--lg { width: 100%; justify-content: center; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .header__logo { height: 44px; }
  .whats-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .hero__badges { gap: 8px 18px; }
  .sobre__frame { padding: 10px; }
  .sobre__frame--small { width: 52%; bottom: -24px; }
}

/* ---------- Telas muito pequenas (até 360px) ---------- */
@media (max-width: 360px) {
  html { font-size: 14.5px; }
  .container { width: 94%; }
  .header__logo { height: 38px; }
  .btn { padding: 12px 20px; font-size: 0.92rem; }
  .btn--lg { padding: 14px 22px; font-size: 0.98rem; }
  .hero__eyebrow { letter-spacing: 0.14em; padding: 5px 12px; }
  .card__title { font-size: 1.22rem; }
}

/* ---------- Celular na horizontal (paisagem, tela baixa) ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding: 110px 0 60px; }
  .nav { padding-bottom: 60px; }
}
