/* Carvalho Moura — design tokens */
:root {
  --navy-950: #071629;
  --navy-900: #0b203c;
  --navy-800: #13304f;
  --navy-700: #1e4066;
  --gold-500: #c5a159;
  --gold-400: #d4b676;
  --gold-100: #f1e6cf;
  --cream-50: #fbf8f3;
  --cream-100: #f5efe5;
  --cream-200: #ebe2d3;
  --ink: #0b203c;
  --ink-soft: #3d4b5e;
  --ink-mute: #6a7586;
  --line: rgba(11, 32, 60, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-serif: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --shadow-navy: 0 24px 60px -24px rgba(7, 22, 41, 0.45);
  --shadow-soft: 0 10px 30px -14px rgba(11, 32, 60, 0.22);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1220px;

  --z-header: 40;
  --z-float: 50;
  --z-skip: 60;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: var(--z-skip);
  background: var(--gold-500);
  color: var(--navy-950);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #9a7a3a;
}
.hero .eyebrow, .portal .eyebrow, .area-panel .eyebrow, .login-aside .eyebrow { color: var(--gold-400); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--gold-500);
  --btn-fg: var(--navy-950);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { --btn-bg: var(--gold-400); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(197, 161, 89, 0.7); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: var(--line-light);
}
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.35); box-shadow: none; }

.btn--navy { --btn-bg: var(--navy-900); --btn-fg: #fff; }
.btn--navy:hover { --btn-bg: var(--navy-700); box-shadow: var(--shadow-soft); }

.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.link-arrow:hover { gap: 0.75rem; }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(11, 32, 60, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-light);
  color: #fff;
  transition: background-color 0.3s var(--ease);
}
.site-header.is-scrolled { background: rgba(7, 22, 41, 0.94); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 78px;
}

.brand img { height: 46px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.main-nav a[aria-current="true"] { color: var(--gold-400); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.btn-client {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(197, 161, 89, 0.55);
  color: var(--gold-400);
  font-weight: 600;
  font-size: 0.925rem;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-client:hover { background: var(--gold-500); color: var(--navy-950); border-color: var(--gold-500); }
.btn-client svg { width: 17px; height: 17px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-light);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    inset: 78px 0 auto 0;
    background: var(--navy-950);
    border-bottom: 1px solid var(--line-light);
    padding: 0.75rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.15rem; }
  .main-nav a { padding: 0.85rem 0.25rem; border-radius: 0; font-size: 1.05rem; border-bottom: 1px solid var(--line-light); }
  .header-actions .btn-whats { display: none; }
}
@media (max-width: 520px) {
  .brand img { height: 38px; }
  .btn-client span { display: none; }
  .btn-client { padding: 0; width: 44px; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 520px at 78% 0%, rgba(197, 161, 89, 0.10), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, #0d2546 100%);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding-top: clamp(4.5rem, 10vw, 8rem);
}
.hero-inner { max-width: 860px; padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.8rem);
  font-weight: 400;
  margin-block: 1rem 1.4rem;
}
.hero-lede {
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  color: rgba(255, 255, 255, 0.78);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }

.hero-photo {
  position: relative;
  margin: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-photo .frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 600px;
  width: 100%;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
}
.hero-photo .frame::before {
  /* fio dourado discreto, deslocado */
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(212, 182, 118, 0.45);
  z-index: 2;
  pointer-events: none;
}
.hero-photo .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 32, 60, 0.55) 100%);
  z-index: 1;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.92) contrast(1.02);
}
.hero-photo figcaption {
  position: absolute;
  left: 2rem;
  bottom: 1.75rem;
  z-index: 3;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}
.hero-photo figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  color: #fff;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-inner { padding-bottom: 2.5rem; }
  .hero-photo { max-width: 440px; }
  .hero-photo .frame { border-radius: 4px; margin-bottom: 2.5rem; }
  .hero-photo figcaption { bottom: calc(2.5rem + 1.75rem); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem) clamp(5rem, 10vw, 8.5rem); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); margin-top: 1rem; }
.section-head p { color: var(--ink-soft); max-width: 52ch; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Áreas (explorer) ---------- */
.areas { background: var(--cream-50); }

.areas-explorer {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.areas-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.area-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 56px;
  padding: 0.95rem 0.25rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s, padding 0.3s var(--ease);
}
.area-tab .num {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--ink-mute);
  width: 2rem;
  flex: none;
  font-variant-numeric: tabular-nums;
}
.area-tab .label { flex: 1; }
.area-tab svg { width: 18px; height: 18px; opacity: 0; transform: translateX(-6px); transition: opacity 0.25s, transform 0.25s var(--ease); color: var(--gold-500); }
.area-tab:hover { color: var(--ink); padding-left: 0.6rem; }
.area-tab[aria-selected="true"] { color: var(--ink); font-weight: 600; padding-left: 0.6rem; }
.area-tab[aria-selected="true"] .num { color: var(--gold-500); }
.area-tab[aria-selected="true"] svg { opacity: 1; transform: none; }

.area-panel {
  position: sticky;
  top: 110px;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-navy);
  overflow: hidden;
  isolation: isolate;
}
.area-panel::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: -160px; top: -180px;
  background: radial-gradient(circle, rgba(197, 161, 89, 0.22), transparent 65%);
  z-index: -1;
}
.area-panel[hidden] { display: none; }
.area-panel .eyebrow { color: var(--gold-400); }
.area-panel h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin: 1rem 0 1rem; }
.area-panel > p { color: rgba(255, 255, 255, 0.78); max-width: 52ch; }

.area-panel h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin: 2rem 0 0.9rem;
}
.situations { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.situations li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.88);
}
.situations svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--gold-400); }
.area-panel .panel-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }
.area-panel .panel-cta small { color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; }

.fade-swap { animation: fadeSwap 0.45s var(--ease); }
@keyframes fadeSwap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .areas-explorer { grid-template-columns: 1fr; }
  .area-panel { position: relative; top: 0; }
}

/* ---------- Escritório / sobre ---------- */
.about { background: var(--cream-100); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about-photo { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.about-copy h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin: 1rem 0 1.5rem; }
.about-copy > p { color: var(--ink-soft); max-width: 58ch; }
.about-copy > p + p { margin-top: 1rem; }

.pillars { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillars li {
  display: grid;
  grid-template-columns: 3rem 7.5rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.pillars .num { font-family: var(--font-display); color: var(--gold-500); font-size: 0.95rem; }
.pillars strong { font-family: var(--font-serif); font-weight: 400; font-size: 1.2rem; }
.pillars p { color: var(--ink-soft); font-size: 0.98rem; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 480px; }
}
@media (max-width: 560px) {
  .pillars li { grid-template-columns: 2.2rem 1fr; }
  .pillars p { grid-column: 2; }
}

/* ---------- Como trabalhamos ---------- */
.process { background: var(--cream-50); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-500), var(--line) 85%);
}
.steps li { position: relative; padding-right: 1.75rem; }
.step-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--cream-50);
  border: 1px solid var(--gold-500);
  color: var(--navy-900);
  margin-bottom: 1.5rem;
}
.step-icon svg { width: 24px; height: 24px; }
.steps li:first-child .step-icon { background: var(--navy-900); color: var(--gold-400); border-color: var(--navy-900); }
.steps h3 { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 0.6rem; }
.steps p { color: var(--ink-soft); font-size: 0.98rem; }
.steps .step-num { display: block; font-size: 0.9rem; font-weight: 600; color: #9a7a3a; margin-bottom: 0.4rem; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.75rem; }
  .steps::before { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Área do cliente (promo) ---------- */
.portal {
  background: var(--navy-950);
  color: #fff;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.portal::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 30%;
  height: 520px;
  background: radial-gradient(closest-side, rgba(197, 161, 89, 0.18), transparent);
  z-index: -1;
}
.portal-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.portal h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin: 1rem 0 1.25rem; }
.portal-copy > p { color: rgba(255, 255, 255, 0.72); max-width: 50ch; }
.portal-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.portal-features li { display: block; padding: 1.25rem 0; border-bottom: 1px solid var(--line-light); color: rgba(255, 255, 255, 0.72); }
.portal-features li strong { color: #fff; font-weight: 600; }
.portal-copy .btn { margin-top: 2rem; }

@media (max-width: 900px) {
  .portal-grid { grid-template-columns: 1fr; }
}

/* ---------- Contato ---------- */
.contact { background: var(--cream-100); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin: 1rem 0 1.25rem; }
.contact-intro { color: var(--ink-soft); max-width: 46ch; }

.direct { display: grid; gap: 0.75rem; margin: 2rem 0; }
.direct a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.direct a:hover { border-color: var(--gold-500); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.direct .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy-900); color: var(--gold-400); flex: none; }
.direct .ico svg { width: 20px; height: 20px; }
.direct small { display: block; color: var(--ink-mute); font-size: 0.82rem; }
.direct strong { font-weight: 600; font-variant-numeric: tabular-nums; }

.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.office { padding: 1.25rem 0 0; border-top: 1px solid var(--line); font-style: normal; }
.office h3 { font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 0.5rem; }
.office p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }
.office a { display: inline-block; margin-top: 0.75rem; font-size: 0.9rem; }
@media (max-width: 520px) { .offices { grid-template-columns: 1fr; } }

.form-card {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-soft);
}
.form-card h3 { font-family: var(--font-serif); font-size: 1.45rem; margin-bottom: 0.4rem; }
.form-card > p { color: var(--ink-mute); font-size: 0.95rem; margin-bottom: 1.5rem; }

.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 1rem;
  background: #fff;
  border: 1px solid var(--cream-200);
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(30, 64, 102, 0.12); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #b4412f; }
.field-error { font-size: 0.85rem; color: #b4412f; min-height: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.form-note { font-size: 0.82rem; color: var(--ink-mute); margin-top: 0.9rem; }
.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(47, 158, 98, 0.1);
  color: #1d6b42;
  font-size: 0.92rem;
}
.form-status[hidden] { display: none; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.7); padding-block: 4rem 6rem; font-size: 0.95rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-light); }
.footer-top img { height: 48px; width: auto; margin-bottom: 1.25rem; }
.footer-top p { max-width: 40ch; }
.footer-top h4 { font-family: var(--font-body); font-size: 0.95rem; color: var(--gold-400); font-weight: 600; margin-bottom: 1rem; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-top a { text-decoration: none; transition: color 0.2s; }
.footer-top a:hover { color: #fff; }
.social { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-light); transition: border-color 0.2s, color 0.2s, background-color 0.2s; }
.social a:hover { border-color: var(--gold-500); color: var(--gold-400); }
.social svg { width: 19px; height: 19px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.75rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }
.footer-bottom a { color: rgba(255, 255, 255, 0.65); }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- WhatsApp float ---------- */
.whats-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: var(--z-float);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 56px;
  padding: 0 1.25rem 0 1rem;
  border-radius: 999px;
  background: #1f8f55;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 16px 36px -14px rgba(7, 22, 41, 0.6);
  transition: transform 0.25s var(--ease), background-color 0.25s;
}
.whats-float:hover { transform: translateY(-3px); background: #18784a; }
.whats-float svg { width: 26px; height: 26px; }
@media (max-width: 560px) {
  .whats-float { width: 56px; padding: 0; justify-content: center; }
  .whats-float span { display: none; }
}

/* ---------- Reveal on scroll ---------- */
/* entradas discretas: esmaecem e sobem poucos pixels */
.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.9s var(--ease-reveal), transform 0.9s var(--ease-reveal);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.no-js .reveal { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .reveal { transform: translate3d(0, 10px, 0); transition-duration: 0.7s; }
  .reveal[data-delay] { transition-delay: 0.06s; }
}

/* =========================================================
   Login page
   ========================================================= */
.login-page { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; background: var(--cream-50); }

.login-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(7, 22, 41, 0.55), rgba(7, 22, 41, 0.92)),
    url("img/leonardo-moura-sentado.jpg") center 30% / cover no-repeat,
    var(--navy-900);
  overflow: hidden;
}
.login-aside img.logo { height: 50px; width: auto; }
.login-aside h1 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 400; margin: 1rem 0 1rem; }
.login-aside h1 em { color: var(--gold-400); }
.login-aside p { color: rgba(255, 255, 255, 0.75); max-width: 42ch; }
.login-aside ul { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.login-aside li { display: flex; gap: 0.7rem; align-items: center; color: rgba(255, 255, 255, 0.85); font-size: 0.97rem; }
.login-aside li svg { width: 18px; height: 18px; color: var(--gold-400); flex: none; }
.login-aside .back { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.login-aside .back:hover { color: #fff; }
.login-aside .back svg { width: 16px; height: 16px; }
.aside-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

.login-main {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem);
}
.login-box { width: 100%; max-width: 420px; }
.login-box h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin: 0.9rem 0 0.5rem; }
.login-box > p { color: var(--ink-mute); margin-bottom: 2rem; }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 1.5rem;
}
.segmented button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink-mute);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.segmented button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -3px rgba(11, 32, 60, 0.25); }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 3.25rem; }
.toggle-pass {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; background: transparent;
  color: var(--ink-mute);
  cursor: pointer;
  border-radius: 10px;
}
.toggle-pass:hover { color: var(--ink); }
.toggle-pass svg { width: 20px; height: 20px; }

.login-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: -0.25rem 0 1.5rem; font-size: 0.9rem; }
.check { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--navy-900); }
.login-row a { color: var(--navy-700); font-weight: 600; text-decoration: none; }
.login-row a:hover { text-decoration: underline; }

.login-alt { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.93rem; color: var(--ink-soft); }
.login-alt a { color: var(--navy-700); font-weight: 600; }

.login-notice {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--gold-100);
  color: #5e4818;
  font-size: 0.92rem;
  line-height: 1.55;
}
.login-notice[hidden] { display: none; }
.login-notice a { color: inherit; font-weight: 700; }

.secure { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; font-size: 0.82rem; color: var(--ink-mute); }
.secure svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-aside { min-height: auto; gap: 2rem; }
  .login-aside .aside-body ul { display: none; }
}
.demo-hint { margin-top: 1rem; padding: 0.75rem 0.9rem; border-radius: 10px; background: var(--cream-100); font-size: 0.85rem; color: var(--ink-mute); }
.demo-hint a { color: var(--navy-700); font-weight: 600; }
.login-notice { background: #fbeeea; color: #8a3324; }

/* mapa da unidade Rolândia */
.office--map { grid-column: 1 / -1; }
.map {
  margin-top: 1rem;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream-200);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.85); }

.login-logo { height: 46px; width: auto; margin-bottom: 2rem; }

/* avaliação Google */
.stars { display: inline-flex; gap: 2px; color: var(--gold-400); }
.stars svg { width: 15px; height: 15px; }

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-rating strong { color: #fff; font-weight: 600; }
.hero-rating span:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.25); padding-bottom: 1px; }
.hero-rating:hover { color: #fff; }

.google-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.google-rating:hover { border-color: var(--gold-500); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.g-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); flex: none; }
.g-logo svg { width: 22px; height: 22px; }
.g-text { flex: 1; display: grid; gap: 0.15rem; font-size: 0.92rem; color: var(--ink-soft); }
.g-score { display: inline-flex; align-items: center; gap: 0.5rem; }
.g-score strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--ink); line-height: 1; }
.google-rating .stars { color: #e3a82b; }
.g-cta { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; color: var(--navy-700); white-space: nowrap; }
.g-cta svg { width: 16px; height: 16px; }
@media (max-width: 560px) {
  .google-rating { flex-wrap: wrap; }
  .g-cta { width: 100%; padding-left: calc(44px + 1rem); }
}

/* ---------- Avaliações ---------- */
.reviews { background: var(--cream-50); }
.reviews-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.reviews-head h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); margin-top: 1rem; }
.reviews-head .google-rating { margin-top: 0; min-width: min(100%, 420px); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 1.25rem;
}
.review {
  grid-column: span 2;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.review:nth-child(4), .review:nth-child(5) { grid-column: span 3; }
.review:hover { border-color: rgba(197, 161, 89, 0.6); box-shadow: var(--shadow-soft); }
.review > * { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.review.is-swapping > * { opacity: 0; transform: translateY(6px); }
.review .stars { color: #e3a82b; }
.review blockquote {
  margin: 0;
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.45vw, 1.25rem);
  line-height: 1.45;
  color: var(--ink);
}
.review blockquote::before { content: "“"; }
.review blockquote::after { content: "”"; }
.review figcaption { display: flex; align-items: baseline; gap: 0.6rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.92rem; }
.review figcaption strong { font-weight: 600; }
.review figcaption span { color: var(--ink-mute); }
@media (max-width: 960px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(220px, auto); }
  .review, .review:nth-child(4), .review:nth-child(5) { grid-column: span 1; }
  .review:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .reviews-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .review:nth-child(5) { grid-column: auto; }
}

/* ---------- Linha do tempo do atendimento ---------- */
.timeline {
  --tl-progress: 0;
  position: relative;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1000px;
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
}
.timeline::before { background: var(--cream-200); }
.timeline::after {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  transform-origin: top;
  transform: scaleY(var(--tl-progress));
  transition: transform 0.15s linear;
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  column-gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}
.tl-item + .tl-item { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

.tl-node {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream-50);
  border: 1px solid var(--gold-500);
  color: var(--navy-900);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.tl-node svg { width: 22px; height: 22px; }
.tl-item.is-active .tl-node { background: var(--navy-900); color: var(--gold-400); border-color: var(--navy-900); }

.tl-card {
  grid-row: 1;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
}
.tl-item:nth-child(odd) .tl-card { grid-column: 1; text-align: right; }
.tl-item:nth-child(even) .tl-card { grid-column: 3; }
.tl-card h3 { font-family: var(--font-serif); font-size: 1.35rem; margin: 0.15rem 0 0.5rem; }
.tl-card p { color: var(--ink-soft); font-size: 0.98rem; }
.tl-card .step-num { display: block; font-size: 0.88rem; font-weight: 600; color: #9a7a3a; }
.tl-phase {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.88rem;
  color: var(--ink-mute);
}
.tl-item:nth-child(odd) .tl-phase { left: calc(100% + 56px + clamp(1.25rem, 3vw, 2.5rem) * 2); }
.tl-item:nth-child(even) .tl-phase { right: calc(100% + 56px + clamp(1.25rem, 3vw, 2.5rem) * 2); }

@media (max-width: 760px) {
  .timeline::before, .timeline::after { left: 28px; }
  .tl-item { grid-template-columns: 56px 1fr; column-gap: 1rem; align-items: start; }
  .tl-node { grid-column: 1; }
  .tl-item:nth-child(odd) .tl-card,
  .tl-item:nth-child(even) .tl-card { grid-column: 2; text-align: left; }
  .tl-phase { position: static; transform: none; display: block; margin-bottom: 0.35rem; }
  .tl-card .step-num { display: inline; }
  .tl-card .step-num::before { content: ""; }
}

/* ---------- Equipe ---------- */
.team {
  background:
    radial-gradient(800px 500px at 100% 0%, rgba(197, 161, 89, 0.08), transparent 60%),
    var(--navy-900);
  color: #fff;
}
.team .eyebrow { color: var(--gold-400); }
.team .section-head p { color: rgba(255, 255, 255, 0.72); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 1040px;
}
.member { display: flex; flex-direction: column; }
.member-photo {
  position: relative;
  margin: 0 0 1.75rem;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  background: var(--navy-800);
}
.member-photo::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(212, 182, 118, 0.45);
  z-index: 2;
  pointer-events: none;
  transition: inset 0.6s var(--ease), border-color 0.6s var(--ease);
}
.member-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11, 32, 60, 0.5) 100%);
  z-index: 1;
}
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.88) contrast(1.03);
}
.member-photo img { transition: transform 0.9s var(--ease); }
.member:hover .member-photo img { transform: scale(1.03); }
.member:hover .member-photo::before { inset: 10px; border-color: rgba(212, 182, 118, 0.7); }

.member-info h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.15; }
.member-oab {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-400);
  font-variant-numeric: tabular-nums;
}
.member-areas {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  font-size: 0.95rem;
  color: #fff;
}
.member-areas li { display: inline-flex; align-items: center; gap: 0.5rem; }
.member-areas li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500); flex: none; }
.member-bio { margin-top: 1rem; color: rgba(255, 255, 255, 0.72); font-size: 0.98rem; max-width: 52ch; }

@media (max-width: 760px) {
  .team-grid { grid-template-columns: 1fr; max-width: 460px; }
}

/* ---------- Rolagem ---------- */
section[id] { scroll-margin-top: 84px; }

/* menu do topo recolhe ao descer e volta ao subir */
.site-header { transition: transform 0.45s var(--ease-reveal), background-color 0.3s var(--ease); }
.site-header.is-hidden { transform: translate3d(0, -100%, 0); }

/* fio de progresso da leitura */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: var(--z-skip); pointer-events: none; }
.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .site-header.is-hidden { transform: none; }
}
