/* ==========================================================
   Queila Andrade Advocacia — folha de estilo
   Paleta: preto quente + dourado (identidade do escritório)
   ========================================================== */
:root {
  color-scheme: dark;
  --bg: #0b0a09;
  --bg-2: #131110;
  --bg-3: #1b1815;
  --line: rgba(201, 162, 74, .28);
  --line-soft: rgba(241, 233, 218, .09);
  --gold: #c9a24a;
  --gold-2: #e6c97b;
  --gold-3: #b08a3f;
  --text: #f1e9da;
  --muted: #aba193;
  --wa: #25d366;
  --wa-ink: #06210f;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--gold-2); }

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

.wrap {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #161208; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- tipografia ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  color: var(--gold);
  font: 500 .76rem/1.2 var(--font-body);
  letter-spacing: .2em; text-transform: uppercase;
  margin: 0;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); flex: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.04; letter-spacing: -.012em; }
h2 { font-size: clamp(2.05rem, 3.7vw, 3.1rem); line-height: 1.1; }
h3 { font-size: 1.5rem; line-height: 1.15; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--gold-2); }

.lede { font-size: 1.125rem; color: var(--muted); max-width: 58ch; margin: 0; }
p { margin: 0; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 2px; border: 1px solid transparent;
  font: 500 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, filter .18s ease, background-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-gold { background: linear-gradient(135deg, #dcb75f 0%, #b48c3b 100%); color: #161208; }
.btn-outline { border-color: var(--gold); color: var(--gold-2); background: transparent; }
.btn-outline:hover { background: rgba(201, 162, 74, .08); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- cabeçalho ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(11, 10, 9, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex: none; }
.brand img { width: 38px; height: 38px; border-radius: 2px; }
.brand-name { font: 600 1.35rem/1 var(--font-display); letter-spacing: .01em; white-space: nowrap; }
.brand-sub { display: block; font: 500 .6rem/1 var(--font-body); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-top: 5px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav a {
  color: var(--muted); text-decoration: none; white-space: nowrap;
  font: 400 .8rem/1 var(--font-body); letter-spacing: .15em; text-transform: uppercase;
  padding-block: 8px; border-bottom: 1px solid transparent; transition: color .18s, border-color .18s;
}
.nav a:hover { color: var(--gold-2); border-color: var(--gold); }
.topbar .btn { padding: 12px 20px; }

.menu-btn {
  display: none; background: none; border: 1px solid var(--line-soft); color: var(--text);
  width: 44px; height: 44px; border-radius: 2px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 20px; height: 1.5px; background: var(--gold-2); position: relative; transition: transform .2s, opacity .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.nav-open .menu-btn span { background: transparent; }
.nav-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- abertura ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 112px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(201, 162, 74, .16), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(201, 162, 74, .06), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.hero h1 { margin: 24px 0 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta { margin-top: 28px; color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }

.hero-figure { position: relative; margin: 0; max-width: 470px; width: 100%; justify-self: end; isolation: isolate; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; border-radius: 2px; }
.hero-figure::before {
  content: ""; position: absolute; top: 18px; left: -18px; right: 18px; bottom: -18px;
  border: 1px solid var(--gold); border-radius: 2px; z-index: -1; opacity: .8;
}
.hero-tag {
  position: absolute; left: 20px; bottom: 20px;
  background: rgba(11, 10, 9, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); padding: 12px 16px; border-radius: 2px;
}
.hero-tag strong { display: block; font: 600 1.15rem/1.1 var(--font-display); }
.hero-tag small { display: block; font: 500 .66rem/1.2 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }

/* ---------- faixa de públicos ---------- */
.strip { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-item { padding: 30px clamp(20px, 3vw, 36px); border-left: 1px solid var(--line-soft); }
.strip-item:first-child { border-left: 0; padding-left: 0; }
.strip-item h2 { font-size: 1.35rem; line-height: 1.15; margin-bottom: 8px; }
.strip-item p { color: var(--muted); font-size: .95rem; }

/* ---------- seções ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 66ch; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { margin: 18px 0 16px; }

.why-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.why-grid h2 { margin-top: 18px; }
.why-copy { display: grid; gap: 20px; color: var(--muted); font-size: 1.05rem; padding-top: 6px; }
.why-copy strong { color: var(--text); font-weight: 500; }

/* cartões de atuação */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.card { background: var(--bg); padding: 34px 26px 28px; display: flex; flex-direction: column; gap: 14px; transition: background-color .2s; }
.card::before { content: ""; width: 30px; height: 1px; background: var(--gold); margin-bottom: 6px; }
.card:hover { background: var(--bg-3); }
.card h3 { font-size: 1.4rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card .ref {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft);
  font: 500 .72rem/1.5 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-3);
}

/* etapas */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 52px); }
.step { border-top: 1px solid var(--line); padding-top: 26px; display: grid; gap: 12px; }
.step-num { font: 500 italic 2.3rem/1 var(--font-display); color: var(--gold); }
.step p { color: var(--muted); }

/* sobre */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.about-figure { position: relative; margin: 0; }
.about-figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 15%; border-radius: 2px; }
.about-note {
  position: absolute; right: -22px; bottom: -26px; max-width: 300px;
  background: var(--bg-2); border: 1px solid var(--line); padding: 20px 24px; border-radius: 2px;
  display: grid; gap: 6px;
}
.about-note strong { font: 600 1.25rem/1.2 var(--font-display); color: var(--gold-2); }
.about-note span { color: var(--muted); font-size: .92rem; }
.about-copy { display: grid; gap: 18px; }
.about-copy h2 { margin-top: 18px; }
.about-role { font: 500 .78rem/1.5 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: -6px; }
.about-copy p { color: var(--muted); font-size: 1.05rem; }
.creds { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.creds li { display: flex; gap: 14px; align-items: baseline; }
.creds li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--gold); transform: translateY(-2px) rotate(45deg); }

/* contato */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.info-list { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.info { background: var(--bg-2); padding: 22px 24px; display: grid; gap: 6px; }
.info .label { font: 500 .74rem/1.2 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.info .value { font: 600 1.4rem/1.2 var(--font-display); color: var(--text); text-decoration: none; }
.info .value-email { font-size: 1.2rem; word-break: break-all; }
.info a.value:hover { color: var(--gold-2); }
.info small { color: var(--muted); font-size: .9rem; }
.info address { font-style: normal; color: var(--text); line-height: 1.5; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-required { grid-column: 1 / -1; color: var(--muted); font-size: .86rem; margin-bottom: -6px; }
.form-required b { color: var(--gold); font-weight: 500; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 500 .76rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field label b { color: var(--gold); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-soft); color: var(--text);
  padding: 14px 16px; font: 400 1rem/1.4 var(--font-body); border-radius: 2px; transition: border-color .18s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(171, 161, 147, .78); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 1px; }
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.form-foot { grid-column: 1 / -1; display: grid; gap: 16px; margin-top: 4px; justify-items: start; }
.form-note { color: var(--muted); font-size: .86rem; }
.form-done {
  grid-column: 1 / -1; background: var(--bg-2); border: 1px solid var(--line); padding: 22px 24px; border-radius: 2px; display: grid; gap: 14px; justify-items: start;
}
.form-done p { color: var(--muted); }
.form-done strong { color: var(--text); font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.map { margin-top: clamp(40px, 6vw, 64px); border: 1px solid var(--line-soft); border-radius: 2px; overflow: hidden; background: var(--bg-2); }
.map iframe { display: block; width: 100%; height: clamp(280px, 40vw, 440px); border: 0; }
.map-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding: 14px 18px; border-top: 1px solid var(--line-soft); font-size: .9rem; color: var(--muted); }
.map-foot a { color: var(--gold-2); text-decoration: none; font-weight: 400; letter-spacing: .04em; padding-block: 6px; }
.map-foot a:hover { text-decoration: underline; }

/* rodapé */
.footer { background: var(--bg-2); border-top: 1px solid var(--line-soft); padding-block: clamp(40px, 6vw, 64px) 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.footer-logo { width: min(240px, 60vw); mix-blend-mode: screen; }
.footer h3 { font: 500 .74rem/1.2 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.footer p, .footer address { font-style: normal; color: var(--muted); font-size: .95rem; line-height: 1.6; margin: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--gold-2); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px 28px; color: var(--muted); font-size: .84rem; }
.footer-bottom span { display: inline-flex; gap: 16px; flex-wrap: wrap; }

/* botão flutuante */
.wa-float {
  position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: var(--wa-ink);
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); text-decoration: none;
  transition: transform .18s, opacity .25s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float.is-hidden { opacity: 0; pointer-events: none; }
.wa-float svg { width: 30px; height: 30px; }

/* página de privacidade */
.prose { max-width: 70ch; display: grid; gap: 18px; color: var(--muted); font-size: 1.02rem; }
.prose h2 { font-size: 1.7rem; margin-top: 20px; color: var(--text); }
.prose h1 { margin: 18px 0 8px; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--text); }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.prose strong { color: var(--text); font-weight: 500; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .topbar .btn-hd { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line-soft); display: none; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .nav a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; white-space: normal; }
  .nav-open .nav { display: block; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { justify-self: start; max-width: 420px; margin-top: 12px; }
  .why-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 460px; }
  .about-note { right: 0; bottom: -18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .strip-grid { grid-template-columns: 1fr; }
  .strip-item { border-left: 0; padding-inline: 0; border-top: 1px solid var(--line-soft); padding-block: 22px; }
  .strip-item:first-child { border-top: 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn, .form-foot .btn, .form-done .btn { width: 100%; }
  .btn { white-space: normal; line-height: 1.3; text-align: center; }
  .about-note { position: static; max-width: none; margin-top: 16px; }
  .hero-figure::before { left: -10px; right: 10px; top: 10px; bottom: -10px; }
  .map-foot { padding-right: 84px; }
}

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