/* =========================================================================
   Kenneda Andrade — Advocacia
   Paleta: azul-petróleo profundo + dourado sóbrio + areia
   Sem dependências externas (fontes do sistema = carregamento instantâneo).
   ========================================================================= */

:root {
  --navy-900: #0d1b26;
  --navy-800: #12212f;
  --navy-700: #1c3243;
  --navy-600: #2a4a61;
  --gold:     #b08d4f;
  --gold-dk:  #8f7038;
  --sand:     #f6f2ea;
  --paper:    #ffffff;
  --ink:      #1a2530;
  --ink-soft: #4d5b68;
  --line:     #e2ddd2;
  --whats:    #25d366;

  --wrap: 1140px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 38, .06), 0 4px 12px rgba(13, 27, 38, .05);
  --shadow-md: 0 8px 30px rgba(13, 27, 38, .10);

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; color: var(--navy-900); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1.1em; }
a  { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 780px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy-800); color: #fff; padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

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

/* ---------------------------------- header -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  background: var(--navy-800); color: var(--sand);
  font-family: var(--font-serif); font-size: .95rem; letter-spacing: .06em;
  border-radius: 8px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.08rem; font-weight: 600; letter-spacing: .01em; }
.brand-text small { font-size: .72rem; color: var(--ink-soft); letter-spacing: .06em; text-transform: uppercase; }

.nav ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav a { font-size: .93rem; color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--navy-900); }
.nav .nav-cta {
  background: var(--navy-800); color: #fff;
  padding: .6rem 1.1rem; border-radius: 999px; font-weight: 500;
}
.nav .nav-cta:hover { background: var(--navy-700); color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; flex: none;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: var(--navy-800);
  margin-inline: auto; content: ""; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after  { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(1px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-1px) rotate(-45deg); }

/* ----------------------------------- hero --------------------------------- */
.hero {
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(176, 141, 79, .13), transparent 60%),
    linear-gradient(180deg, var(--sand), #fff 88%);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.eyebrow {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-dk); font-weight: 600; margin: 0 0 .9rem;
}
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 56ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.8rem 0 1.6rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-size: .96rem; font-weight: 500; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-700); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--navy-600); }
.btn-ghost:hover { background: rgba(28, 50, 67, .06); }
.btn-block { width: 100%; margin-top: .6rem; }
.btn .icon { width: 20px; height: 20px; fill: currentColor; }

.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; margin: 0; padding: 0; font-size: .87rem; color: var(--ink-soft); }
.hero-badges li { position: relative; padding-left: 1.1rem; }
.hero-badges li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}

.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.hero-photo figcaption { margin-top: .7rem; font-size: .82rem; color: var(--ink-soft); text-align: center; }

/* ---------------------------------- strip --------------------------------- */
.strip { background: var(--navy-800); color: #dfe6ec; }
.strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 2.2rem 0; }
.strip-item strong { display: block; font-family: var(--font-serif); font-size: 1.5rem; color: #fff; margin-bottom: .2rem; }
.strip-item span { font-size: .9rem; color: #a9bccb; }

/* --------------------------------- sections ------------------------------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 62ch; margin-bottom: 2.8rem; }
.section-sub { color: var(--ink-soft); margin: 0; }

/* ---------------------------------- cards --------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.2rem; }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.6rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d3cbb9; }
.card h3 { margin-bottom: .55rem; }
.card h3::before {
  content: ""; display: block; width: 32px; height: 3px;
  background: var(--gold); border-radius: 2px; margin-bottom: .9rem;
}
.card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------------------------------- sobre --------------------------------- */
#sobre p { color: var(--ink-soft); }
#sobre strong { color: var(--ink); }

/* ---------------------------------- steps --------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.8rem 2rem; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.steps li { padding-top: .5rem; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--sand); border: 1px solid var(--line);
  font-family: var(--font-serif); font-size: 1.15rem; color: var(--gold-dk);
  margin-bottom: 1rem;
}
.steps p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

.atendimento-cta {
  margin-top: 2.6rem; padding: 2rem 2.2rem;
  background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center;
}
.atendimento-cta h3 { margin-bottom: .5rem; }
.atendimento-cta p { color: var(--ink-soft); max-width: 56ch; margin: 0 auto 1.4rem; }

/* ----------------------------------- faq ---------------------------------- */
.faq details {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: .7rem; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 3rem 1.05rem 1.3rem;
  font-weight: 500; position: relative; color: var(--navy-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.3rem; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--gold-dk); border-bottom: 2px solid var(--gold-dk);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--ink-soft); font-size: .96rem; }

/* --------------------------------- contato -------------------------------- */
.section-dark { background: var(--navy-900); color: #cfd9e2; }
.section-dark h2 { color: #fff; }
.section-dark .lead { color: #a9bccb; }
.section-dark .eyebrow { color: var(--gold); }

.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.contato-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.contato-list li { display: flex; flex-direction: column; padding: .85rem 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.ci-label { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #8ba1b3; margin-bottom: .15rem; }
.contato-list a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--gold); width: fit-content; }
.contato-list a:hover { color: var(--gold); }

.form { background: var(--paper); border-radius: var(--radius); padding: 1.9rem 1.7rem; box-shadow: var(--shadow-md); }
.form h3 { margin-bottom: 1.2rem; }
.form label { display: block; font-size: .84rem; font-weight: 500; color: var(--ink); margin: .9rem 0 .35rem; }
.form label:first-of-type { margin-top: 0; }
.form .opt { color: var(--ink-soft); font-weight: 400; }
.form input, .form select, .form textarea {
  width: 100%; padding: .7rem .85rem;
  font: inherit; font-size: .95rem; color: var(--ink);
  background: #fbfaf7; border: 1px solid var(--line); border-radius: 9px;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--navy-600); background: #fff;
}
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: #b4423a; background: #fdf5f4; }
.form-note { font-size: .78rem; color: var(--ink-soft); margin: .9rem 0 0; text-align: center; }

/* ---------------------------------- footer -------------------------------- */
.site-footer { background: var(--navy-800); color: #93a8b8; padding: 2.5rem 0; font-size: .88rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem 2rem; align-items: center; }
.footer-brand { font-family: var(--font-serif); font-size: 1.05rem; color: #fff; margin: 0 0 .2rem; }
.footer-small { margin: 0; font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: #93a8b8; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-legal {
  grid-column: 1 / -1; margin: .5rem 0 0; padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .76rem; line-height: 1.6; color: #7f95a6;
}

/* ------------------------------ botão flutuante --------------------------- */
.whats-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: grid; place-items: center; width: 56px; height: 56px;
  background: var(--whats); border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  transition: transform .18s ease;
}
.whats-float:hover { transform: scale(1.06); }
.whats-float svg { width: 30px; height: 30px; fill: #fff; }

/* -------------------------------- responsivo ------------------------------ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 360px; margin-inline: auto; }
  .contato-grid { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr; gap: 1.3rem; }
  .strip-item { display: flex; align-items: baseline; gap: .7rem; }
  .strip-item strong { font-size: 1.15rem; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav li:last-child { border-bottom: 0; }
  .nav a { display: block; padding: .9rem 0; font-size: 1rem; }
  .nav .nav-cta { text-align: center; margin-top: .8rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

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

/* --------------------------------- impressão ------------------------------ */
@media print {
  .site-header, .whats-float, .form, .hero-actions { display: none; }
  body { font-size: 12pt; }
  .section-dark, .strip { background: #fff; color: #000; }
}
