/* =====================================================================
   szdadv.com.br — Silva, Zermiani & Dutra Advogados
   Identidade visual: monograma SZD, navy institucional, General Sans
   ===================================================================== */

@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-Regular.otf') format('opentype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-Medium.otf') format('opentype');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-Semibold.otf') format('opentype');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-Bold.otf') format('opentype');
  font-weight: 700; font-display: swap;
}

:root {
  --navy-950: #0e2230;
  --navy-900: #14293a;
  --navy: #1c3a4e;
  --navy-600: #2e5570;
  --navy-100: #dde7ee;
  --paper: #f6f5f2;
  --paper-2: #fbfaf8;
  --card: #ffffff;
  --ink: #1c3a4e;
  --ink-soft: #5b6f7e;
  --line: #e3e0da;
  --brass: #a98b52;

  --sans: 'General Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;

  --wrap: 1140px;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(20, 41, 58, .07), 0 12px 32px rgba(20, 41, 58, .07);
}

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

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

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-950); color: #fff; padding: 12px 20px;
}
.skip:focus { left: 0; }

/* ----------------------------- tipografia --------------------------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); letter-spacing: -.005em; }
h3 { font-size: 1.35rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ''; width: 34px; height: 1px; background: var(--brass); flex: none;
}
.eyebrow.dark { color: var(--navy-600); }

.lead { font-size: 1.16rem; color: rgba(255, 255, 255, .78); max-width: 56ch; }
.lead-sm { font-size: 1.05rem; color: rgba(255, 255, 255, .74); max-width: 48ch; margin-top: 18px; }

/* ------------------------------ marca ------------------------------- */

.mark {
  width: 42px; height: 30px; flex: none;
  background-color: var(--navy);
  -webkit-mask: url('assets/simbolo.png') no-repeat center / contain;
  mask: url('assets/simbolo.png') no-repeat center / contain;
}

.foot-logo {
  display: block; width: 230px; height: 84px;
  background-color: #fff;
  -webkit-mask: url('assets/logo-completa.png') no-repeat left center / contain;
  mask: url('assets/logo-completa.png') no-repeat left center / contain;
}

/* ------------------------------ topbar ------------------------------ */

.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 245, 242, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.topbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(20, 41, 58, .05); }

.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup-txt { display: flex; flex-direction: column; line-height: 1.1; }
.lockup-txt strong {
  font-family: var(--serif); font-weight: 600; font-size: 1.28rem;
  color: var(--navy-950); letter-spacing: .005em;
}
.lockup-txt em {
  font-style: normal; font-size: .62rem; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; color: var(--ink-soft);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--navy);
  position: relative; padding: 4px 0;
}
/* o botão dentro do menu precisa vencer cor e espaçamento de `.nav a` (especificidade maior) */
.nav a.btn { color: #fff; padding: 13px 30px; }
.nav a.btn:hover { color: #fff; }

.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--brass); transition: width .25s ease;
}
.nav a:not(.btn):hover::after { width: 100%; }

.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ------------------------------ botões ------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border: 1px solid var(--navy-950);
  background: var(--navy-950); color: #fff;
  font-family: var(--sans); font-size: .92rem; font-weight: 600;
  letter-spacing: .04em; text-decoration: none; cursor: pointer;
  border-radius: var(--radius); transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--navy-600); border-color: var(--navy-600); transform: translateY(-1px); }
.btn-sm { padding: 13px 30px; font-size: .86rem; line-height: 1.2; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* sobre fundo escuro, o botão principal inverte para papel/navy */
.hero .btn:not(.btn-ghost),
.sec-dark .btn:not(.btn-ghost):not(.btn-block) {
  background: #fff; color: var(--navy-950); border-color: #fff;
}
.hero .btn:not(.btn-ghost):hover,
.sec-dark .btn:not(.btn-ghost):not(.btn-block):hover {
  background: var(--brass); border-color: var(--brass); color: #fff;
}
.btn-block { width: 100%; margin-top: 8px; }

/* ------------------------------- hero ------------------------------- */

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 62%, #0a1b26 100%);
  color: #fff;
  padding: clamp(90px, 14vw, 170px) 0 clamp(80px, 12vw, 140px);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(closest-side at 82% 28%, rgba(169, 139, 82, .16), transparent 70%);
  pointer-events: none;
}
.hero-mark {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(640px, 62vw); aspect-ratio: 1667 / 1197;
  background-color: rgba(255, 255, 255, .05);
  -webkit-mask: url('assets/simbolo.png') no-repeat center / contain;
  mask: url('assets/simbolo.png') no-repeat center / contain;
}
.hero-in { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* ------------------------------ strip ------------------------------- */

.strip { background: var(--navy-950); color: #fff; border-top: 1px solid rgba(255, 255, 255, .08); }
.strip-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .08); }
.strip-item { background: var(--navy-950); padding: 34px 30px 34px 0; }
.strip-item:not(:first-child) { padding-left: 30px; }
.strip-item strong { display: block; font-size: .98rem; font-weight: 600; margin-bottom: 6px; }
.strip-item span { font-size: .9rem; color: rgba(255, 255, 255, .6); line-height: 1.55; }

/* ------------------------------ seções ------------------------------ */

.sec { padding: clamp(70px, 10vw, 120px) 0; }
.sec-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-dark { background: var(--navy-900); color: #fff; }

.sec p { color: var(--ink-soft); margin-bottom: 18px; }
.sec-dark p { color: rgba(255, 255, 255, .74); }
.sec h2 { color: var(--navy-950); margin-bottom: 28px; }
.sec-dark h2 { color: #fff; margin-bottom: 4px; }

.sec-head { max-width: 62ch; margin-bottom: 54px; }
.sec-sub { font-size: 1.05rem; }

.note {
  font-size: .92rem; border-left: 2px solid var(--brass);
  padding-left: 18px; margin-top: 26px;
}

.grid-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 84px); align-items: start; }

/* ------------------------------ pilares ----------------------------- */

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { background: var(--card); padding: 30px 26px; }
.pillar h3 { font-size: 1.18rem; color: var(--navy-950); margin-bottom: 10px; }
.pillar p { font-size: .92rem; margin: 0; line-height: 1.6; }

/* ------------------------------- cards ------------------------------ */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::before {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--navy-100); }
.card:hover::before { transform: scaleX(1); }
.card h3 { color: var(--navy-950); margin-bottom: 12px; font-size: 1.24rem; }
.card p { font-size: .93rem; margin: 0; line-height: 1.6; }

/* ------------------------------- passos ----------------------------- */

.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 34px; }
.steps li { border-top: 1px solid var(--line); padding-top: 24px; }
.steps .num {
  font-family: var(--serif); font-size: 2.1rem; color: var(--brass);
  display: block; line-height: 1; margin-bottom: 14px;
}
.steps h3 { color: var(--navy-950); font-size: 1.2rem; margin-bottom: 10px; }
.steps p { font-size: .93rem; margin: 0; }

/* ------------------------------ contato ----------------------------- */

.contato { align-items: start; }

.contact-list { list-style: none; margin-top: 38px; }
.contact-list li {
  display: grid; grid-template-columns: 170px 1fr; gap: 18px;
  padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .98rem;
}
.contact-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.contact-list .lbl {
  font-size: .72rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255, 255, 255, .5); padding-top: 4px;
}
.contact-list a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(169, 139, 82, .7); }
.contact-list a:hover { border-bottom-color: #fff; }
.contact-list span:not(.lbl) { color: rgba(255, 255, 255, .82); }

/* ----------------------------- formulário --------------------------- */

.form { background: var(--card); border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow); }
.form h3 { color: var(--navy-950); margin-bottom: 24px; font-size: 1.4rem; }

.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block; font-size: .74rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: .97rem; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-600); background: #fff;
  box-shadow: 0 0 0 3px rgba(46, 85, 112, .1);
}

.form-alt { font-size: .92rem; color: var(--ink-soft); margin: 18px 0 0; text-align: center; }
.form-alt a { color: var(--navy); }
.form-note { font-size: .78rem; color: var(--ink-soft); margin: 14px 0 0; line-height: 1.5; }

/* ------------------------------ rodapé ------------------------------ */

.foot { background: var(--navy-950); color: rgba(255, 255, 255, .7); padding: 66px 0 30px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 40px; }
.foot-brand p { font-size: .92rem; line-height: 1.7; margin-top: 18px; }
.foot-nav { display: flex; flex-direction: column; gap: 12px; }
.foot-nav a { text-decoration: none; font-size: .93rem; color: rgba(255, 255, 255, .7); }
.foot-nav a:hover { color: #fff; }

.foot-legal { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 26px; }
.foot-legal p { font-size: .8rem; line-height: 1.65; color: rgba(255, 255, 255, .48); max-width: 76ch; }
.foot-legal p + p { margin-top: 12px; }

/* --------------------------- botão flutuante ------------------------ */

/* `bottom` alto o bastante para não cobrir o selo da hospedagem no canto inferior direito */
.wa {
  position: fixed; right: 20px; bottom: 92px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #1c8a4e; color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  transition: transform .2s, background .2s;
}
.wa:hover { transform: scale(1.06); background: #17753f; }

/* ------------------------------ reveal ------------------------------ */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* ---------------------------- responsivo ---------------------------- */

@media (max-width: 940px) {
  .grid-2 { grid-template-columns: 1fr; }
  .strip-in { grid-template-columns: 1fr; }
  .strip-item, .strip-item:not(:first-child) { padding: 24px 0; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 800px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-2); border-bottom: 1px solid var(--line);
    padding: 10px 24px 22px; box-shadow: 0 16px 30px rgba(20, 41, 58, .08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
  .topbar-in { position: relative; }
}

@media (max-width: 700px) {
  .hero-mark {
    width: min(420px, 80vw); right: -18%;
    background-color: rgba(255, 255, 255, .035);
  }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .lockup-txt strong { font-size: 1.08rem; }
  .mark { width: 34px; height: 25px; }
  .pillars { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form { padding: 28px 22px; }
  .hero-cta .btn { width: 100%; }
  .foot-logo { width: 190px; height: 70px; }
}
