/* ============================================================
   GABRIEL SILVEIRA ADVOCACIA — Landing page institucional
   Estética: DOURADO + PRETO/GRAFITE sobre branco/off-white. Sem azul.
   HTML/CSS puro. Mobile-first.
   ============================================================ */

/* -------------------- Design tokens -------------------- */
:root {
  /* Paleta */
  --dourado:        #C9A227;
  --dourado-grad:   linear-gradient(135deg, #9B720D 0%, #C9A227 100%);
  --dourado-soft:   rgba(201, 162, 39, 0.35);
  --grafite:        #1A1A1A;
  --preto:          #0D0D0D;
  --branco:         #FFFFFF;
  --offwhite:       #FAFAF8;
  --cinza-texto:    #4A4A4A;
  --cinza-claro:    #C9C9C9;
  --borda-card:     #E6E2D6;
  --verde-wa:       #25D366;

  /* Espaçamento */
  --container:      1120px;
  --pad-lateral:    24px;
  --sec-y:          72px;
  --sec-y-mobile:   60px;
  --gap:            20px;

  /* Bordas / sombras / transições */
  --r-btn:          4px;
  --r-card:         10px;
  --shadow-card:    0 6px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover:   0 14px 34px rgba(0, 0, 0, 0.14);
  --t:              0.3s ease;

  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--cinza-texto);
  background: var(--branco);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

h1, h2, h3 { margin: 0; line-height: 1.15; color: var(--grafite); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--dourado);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-btn) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Foco visível e acessível */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--dourado);
  outline-offset: 2px;
}

/* -------------------- Layout base -------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-lateral);
}

/* -------------------- Ícones -------------------- */
.icon {
  fill: none;
  stroke: var(--dourado);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon--fill { fill: var(--dourado); stroke: none; }
.icon--56 { width: 56px; height: 56px; }
.icon--48 { width: 48px; height: 48px; }
.icon--24 { width: 24px; height: 24px; }
.icon--18 { width: 18px; height: 18px; }

.icon-wa {
  width: 18px; height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* -------------------- Botão CTA dourado -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--dourado-grad);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--r-btn);
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t);
  line-height: 1.2;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(155, 114, 13, 0.35);
}
.btn:active { transform: translateY(0); }
.btn--lg { padding: 16px 44px; font-size: 15px; }
.btn--full { width: 100%; }

/* -------------------- Header -------------------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  padding: 20px 0;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo__img {
  display: block;
  height: 60px;
  width: auto;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--dourado);
  border-radius: 6px;
  color: var(--dourado);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.logo__text {
  display: flex;
  flex-direction: column;
  color: var(--dourado);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: 0.3px;
}
.logo__text small {
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Nav */
.site-nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}
.site-nav a {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
  transition: color var(--t);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--dourado);
  transition: width var(--t);
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--dourado); }
.site-nav a:hover::after,
.site-nav a.is-active::after { width: 100%; }

.btn--header { flex-shrink: 0; }

/* Hamburguer (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--dourado-soft);
  border-radius: 6px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--dourado);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  /* [PLACEHOLDER] Fundo do hero: para usar imagem escura de temática jurídica,
     acrescente ao background abaixo:  url('assets/hero-bg.jpg') center/cover
     antes dos gradientes (mantendo os gradientes como overlay). */
  background:
    radial-gradient(120% 80% at 85% 15%, rgba(201, 162, 39, 0.18) 0%, rgba(201, 162, 39, 0) 55%),
    linear-gradient(135deg, #0F0F0F 0%, #1A1A1A 100%);
  color: #fff;
  overflow: hidden;
  padding-top: 132px;
  padding-bottom: 72px;
}
.hero::before {
  /* filete dourado inferior */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--dourado-grad);
}
.hero__inner {
  display: flex;
  align-items: center;
  gap: 48px;
  min-height: 520px;
}
.hero__content { flex: 1 1 55%; max-width: 620px; }
.hero h1 {
  color: #fff;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
}
.hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 22px;
  background: var(--dourado-grad);
  border-radius: 2px;
}
.hero__subtitle {
  color: var(--cinza-claro);
  font-weight: 400;
  font-size: 19px;
  line-height: 30px;
  margin-top: 24px;
  max-width: 34ch;
}
.hero .btn { margin-top: 32px; }
.hero__legal {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.3px;
}

.hero__photo {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: stretch;
}
.hero__photo img {
  max-height: 560px;
  width: auto;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* -------------------- Faixa de diferenciais -------------------- */
.diferenciais {
  background: var(--preto);
  border-top: 4px solid var(--dourado);
  border-bottom: 4px solid var(--dourado);
  padding: 56px 0;
}
.diferenciais__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.diferencial {
  text-align: center;
  padding: 12px 32px;
  position: relative;
}
.diferencial + .diferencial::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--dourado-soft);
}
.diferencial .icon { margin: 0 auto 18px; }
.diferencial h3 {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
}
.diferencial p {
  color: var(--cinza-claro);
  font-size: 15px;
  line-height: 1.55;
  max-width: 30ch;
  margin-inline: auto;
}

/* -------------------- O Profissional -------------------- */
.profissional {
  background: var(--grafite);
  padding: var(--sec-y) 0;
}
.profissional__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.profissional__foto {
  position: relative;
  min-height: 440px;
  border-radius: 0 140px 140px 0;
  overflow: hidden;
  /* Fundo gráfico usado enquanto não houver foto ([PLACEHOLDER]) */
  background:
    radial-gradient(90% 70% at 30% 20%, rgba(201, 162, 39, 0.22) 0%, rgba(201, 162, 39, 0) 60%),
    linear-gradient(160deg, #232323 0%, #0F0F0F 100%);
  display: grid;
  place-items: center;
}
.profissional__foto::after {
  /* monograma dourado de placeholder */
  content: "GS";
  font-weight: 800;
  font-size: 84px;
  letter-spacing: 4px;
  color: rgba(201, 162, 39, 0.35);
}
.profissional__foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.profissional__texto h2 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
}
.profissional__texto h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 18px;
  background: var(--dourado-grad);
  border-radius: 2px;
}
.profissional__intro {
  color: var(--cinza-claro);
  font-size: 18px;
  line-height: 1.6;
  margin-top: 26px;
}
.credenciais {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}
.credenciais li {
  position: relative;
  padding-left: 30px;
  color: #EDEDED;
  font-size: 15.5px;
  line-height: 1.5;
}
.credenciais li::before {
  content: "◆";
  position: absolute;
  left: 0; top: 1px;
  color: var(--dourado);
  font-size: 13px;
}
.profissional__texto .btn { margin-top: 32px; }

/* -------------------- Seção heading genérico -------------------- */
.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-heading h2 {
  font-weight: 800;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
}
.section-heading h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 18px auto 0;
  background: var(--dourado-grad);
  border-radius: 2px;
}
.section-heading p {
  margin-top: 20px;
  font-size: 18px;
  color: var(--cinza-texto);
}
.section-heading--dark h2 { color: #fff; }
.section-heading--dark p { color: var(--cinza-claro); }

/* -------------------- Áreas de atuação -------------------- */
.areas {
  background: var(--offwhite);
  padding: var(--sec-y) 0;
}
.areas__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card-area {
  background: var(--branco);
  border: 1px solid var(--borda-card);
  border-left: 4px solid var(--dourado);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 30px;
  transition: transform var(--t), box-shadow var(--t);
}
.card-area:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card-area .icon { margin-bottom: 18px; }
.card-area h3 {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--grafite);
}
.card-area ul { display: grid; gap: 9px; }
.card-area li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cinza-texto);
}
.card-area li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 7px; height: 7px;
  background: var(--dourado);
  border-radius: 50%;
}
.card-area--full { grid-column: 1 / -1; }

/* -------------------- Serviços -------------------- */
.servicos {
  position: relative;
  /* [PLACEHOLDER] fundo escuro (tribunal/estátua): acrescente
     url('assets/servicos-bg.jpg') center/cover antes do gradiente. */
  background:
    radial-gradient(100% 90% at 50% 0%, rgba(201, 162, 39, 0.10) 0%, rgba(201, 162, 39, 0) 55%),
    linear-gradient(160deg, #141414 0%, #0D0D0D 100%);
  padding: var(--sec-y) 0;
}
.servicos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card-servico {
  background: #141414;
  border: 1px solid var(--dourado-soft);
  border-radius: var(--r-card);
  padding: 34px 22px;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card-servico:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  border-color: var(--dourado);
}
.card-servico .icon { margin: 0 auto 18px; }
.card-servico h3 {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}
.card-servico p {
  color: var(--cinza-claro);
  font-size: 14.5px;
  line-height: 1.6;
}

/* -------------------- Contato -------------------- */
.contato {
  background: var(--branco);
  padding: var(--sec-y) 0;
}
.contato__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contato__info h2 {
  font-weight: 800;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.1;
}
.contato__info h2::after {
  content: "";
  display: block;
  width: 64px; height: 4px;
  margin-top: 18px;
  background: var(--dourado-grad);
  border-radius: 2px;
}
.contato__apoio {
  margin-top: 22px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--cinza-texto);
}
.contato__lista {
  margin-top: 30px;
  display: grid;
  gap: 18px;
}
.contato__lista li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15.5px;
  color: var(--grafite);
}
.contato__lista a { transition: color var(--t); }
.contato__lista a:hover { color: var(--dourado); }

/* Formulário */
.form-contato {
  background: var(--offwhite);
  border: 1px solid var(--borda-card);
  border-radius: var(--r-card);
  padding: 32px;
  display: grid;
  gap: 16px;
}
.form-row { display: grid; gap: 16px; }
.form-row--2col { grid-template-columns: 1fr 1fr; }
.form-field { display: grid; gap: 6px; }
.form-field label {
  font-weight: 600;
  font-size: 13px;
  color: var(--grafite);
}
.req { color: var(--dourado); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--grafite);
  background: var(--branco);
  border: 1px solid #DDD;
  border-radius: var(--r-btn);
  padding: 13px 14px;
  width: 100%;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--dourado);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}
.form-field input.invalid,
.form-field select.invalid,
.form-field textarea.invalid {
  border-color: #C0392B;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
.form-contato .btn { margin-top: 6px; }
.form-privacidade {
  font-size: 12.5px;
  color: #8A8A8A;
  text-align: center;
  line-height: 1.5;
}

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--grafite);
  color: #D8D8D8;
  padding: 56px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__col h3 {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
}
.footer__brand .logo { margin-bottom: 16px; }
.footer__brand .logo__img { height: 92px; }
.footer__brand p { color: var(--dourado); font-weight: 600; font-size: 14px; }
.footer__col ul { display: grid; gap: 12px; }
.footer__col a { transition: color var(--t); font-size: 15px; }
.footer__col a:hover { color: var(--dourado); }
.footer__contato li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
}
.copyright {
  background: var(--preto);
  padding: 20px 0;
  text-align: center;
}
.copyright p {
  color: #9A9A9A;
  font-size: 14px;
}

/* -------------------- Botão flutuante WhatsApp -------------------- */
.whatsapp-float {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 900;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: var(--verde-wa);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
  transition: transform var(--t), box-shadow var(--t);
}
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

/* Tablet / abaixo do desktop */
@media (max-width: 1024px) {
  .servicos__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ≤991px: menu vira hamburguer */
@media (max-width: 991px) {
  .hamburger { display: flex; }
  .btn--header { display: none; }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: var(--pad-lateral);
    left: var(--pad-lateral);
    background: rgba(13, 13, 13, 0.97);
    border: 1px solid var(--dourado-soft);
    border-radius: 10px;
    padding: 12px;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; align-items: stretch; }
  .site-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .site-nav li:last-child { border-bottom: none; }
  .site-nav a { display: block; padding: 14px 12px; }
  .site-nav a::after { display: none; }

  .profissional__grid { grid-template-columns: 1fr; gap: 36px; }
  .profissional__foto {
    min-height: 340px;
    border-radius: 0 0 90px 90px;
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }
  .contato__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Tablet ≤767px */
@media (max-width: 767px) {
  :root { --sec-y: var(--sec-y-mobile); }

  .hero { padding-top: 116px; padding-bottom: 56px; }
  .hero__inner { flex-direction: column; text-align: center; min-height: auto; gap: 32px; }
  .hero__content { max-width: 100%; }
  .hero h1::after { margin-inline: auto; }
  .hero__subtitle { margin-inline: auto; }
  .hero .btn { width: 100%; }
  .hero__photo { justify-content: center; width: 100%; } /* foto abaixo do texto no mobile */
  .hero__photo img { max-height: 440px; max-width: min(88%, 340px); }

  .diferenciais__grid { grid-template-columns: 1fr; gap: 8px; }
  .diferencial { padding: 24px 16px; }
  .diferencial + .diferencial::before {
    left: 12px; right: 12px; top: 0;
    width: auto; height: 1px; bottom: auto;
  }

  .areas__grid { grid-template-columns: 1fr; }
  .servicos__grid { grid-template-columns: 1fr; }

  .form-row--2col { grid-template-columns: 1fr; }
  .form-contato { padding: 24px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; text-align: left; }
}

/* Telefones pequenos ≤575px */
@media (max-width: 575px) {
  .btn--lg { padding: 15px 24px; }
  .logo__img { height: 50px; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}
