/* Costa Neto Feitosa Advocacia — design system */

:root {
  /* Paleta da marca: azul profundo + ouro + marfim */
  --navy: #071b3a;
  --navy-deep: #041126;
  --navy-soft: #12315a;
  --gold: #a77b1f;
  --gold-soft: #c09a45;
  --gold-deep: #7f5c16;
  --white: #ffffff;
  --off-white: #f7f2eb;
  --cream: #f7f2eb;
  --brand-surface: #fef8f3;
  --gray: #635f59;
  --gray-soft: #918a80;
  --gray-line: #ded5c8;
  --text: #071b3a;
  --text-muted: #3d4a63;
  --shadow: 0 18px 50px rgba(7, 27, 58, 0.12);
  --shadow-soft: 0 8px 28px rgba(7, 27, 58, 0.08);
  --radius: 14px;
  --header-h: 112px;
  --space-1: 0.5rem;
  --space-2: 0.85rem;
  --space-3: 1.25rem;
  --space-4: 1.75rem;
  --space-5: 2.25rem;
  --space-6: 3.5rem;
  --space-section: clamp(4.25rem, 7vw, 6.5rem);
  --space-section-tight: clamp(3.25rem, 5.5vw, 4.75rem);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-arrive: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--gold-deep);
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1rem;
  z-index: 10000;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

h1, h2, h3, h4,
.display-font {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
}

.section {
  padding: var(--space-section) 0;
}

.section-convert {
  padding-top: var(--space-section-tight);
  padding-bottom: var(--space-section-tight);
}

.section-alt {
  background: var(--off-white);
}

.section-intro {
  margin-bottom: var(--space-5);
  max-width: 46rem;
}

.section-intro-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-4) var(--space-6);
  align-items: end;
  max-width: none;
}

.section-intro-center {
  margin-inline: auto;
  text-align: center;
}

.section-intro-center .section-eyebrow-line {
  margin-inline: auto;
}

.section-intro-center .section-lead {
  margin-inline: auto;
}

.section-lead-spaced {
  margin-bottom: var(--space-4);
}

.section-dark {
  background:
    radial-gradient(ellipse at top right, rgba(139, 101, 58, 0.12), transparent 45%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-eyebrow-line {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 0 var(--space-3);
  border: 0;
}

.section-title {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  margin: 0 0 var(--space-2);
  max-width: 18ch;
}

.section-title-wide {
  max-width: 22ch;
}

.section-dark .section-title {
  color: #fff;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 62ch;
  margin: 0;
}

.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.78);
}

/* Buttons */
.btn {
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.9rem 1.65rem;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn:disabled,
.btn[aria-busy="true"] {
  opacity: 0.9;
  cursor: wait;
  transform: none;
  pointer-events: none;
}

.btn-gold[aria-busy="true"] {
  position: relative;
  overflow: hidden;
  color: var(--navy-deep);
  box-shadow: 0 8px 22px rgba(155, 128, 72, 0.22);
}

.btn-gold .btn-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  margin-right: 0.55rem;
  border: 2px solid rgba(4, 17, 38, 0.25);
  border-top-color: var(--navy-deep);
  border-radius: 50%;
  vertical-align: -0.15em;
  animation: contactSpin 0.7s linear infinite;
}

.btn-gold[aria-busy="true"] .btn-spinner {
  display: inline-block;
}

.btn-gold[aria-busy="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: chamberWait 1.1s var(--ease) infinite;
}

@keyframes chamberWait {
  to { transform: translateX(120%); }
}

@keyframes contactSpin {
  to { transform: rotate(360deg); }
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(155, 128, 72, 0.28);
}

.btn-gold:hover,
.btn-gold:focus {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--navy-deep);
  transform: translateY(-2px);
}

.btn-outline-light-gold {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-light-gold:hover,
.btn-outline-light-gold:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: rgba(0, 0, 0, 0.25);
}

.btn-outline-navy:hover {
  border-color: var(--gold);
  color: var(--navy);
  background: rgba(139, 101, 58, 0.08);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
  color: #fff;
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
}

/* Header — marfim da marca, texto azul, acentos ouro */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1040;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  background: var(--brand-surface);
  border-bottom: 1px solid rgba(167, 123, 31, 0.28);
}

.site-header.is-scrolled,
.site-header.is-solid,
.site-header.is-menu-open,
body.page-404 .site-header,
body.page-privacy .site-header {
  background: var(--brand-surface);
  border-color: rgba(167, 123, 31, 0.55);
  box-shadow: 0 8px 28px rgba(7, 27, 58, 0.12);
}

.site-header .navbar {
  min-height: var(--header-h);
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.brand-logo {
  width: auto;
  height: 94px;
  max-width: min(360px, 58vw);
  object-fit: contain;
  object-position: left center;
  display: block;
}

@media (max-width: 991.98px) {
  :root {
    --header-h: 88px;
  }

  .brand-logo {
    height: 72px;
    max-width: min(68vw, 300px);
  }
}

@media (max-width: 575.98px) {
  :root {
    --header-h: 74px;
  }

  .brand-logo {
    height: 60px;
    max-width: min(66vw, 240px);
  }
}

.site-header .nav-link {
  color: var(--navy) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.55rem 0.85rem !important;
  position: relative;
}

.site-header .nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-header .nav-link:hover,
.site-header .nav-link:focus,
.site-header .nav-link.active {
  color: var(--gold-deep) !important;
}

.site-header .nav-link:hover::after,
.site-header .nav-link:focus::after,
.site-header .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border-color: rgba(7, 27, 58, 0.3);
  width: 44px;
  height: 44px;
  padding: 0.4rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%287, 27, 58, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(155, 123, 78, 0.35);
}

@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    background: var(--brand-surface);
    border: 1px solid rgba(167, 123, 31, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.75rem;
    box-shadow: var(--shadow-soft);
    max-height: calc(100svh - var(--header-h) - 1rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-header .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .btn-nav-cta {
    margin-top: 0.5rem;
    width: 100%;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--navy-deep);
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
}

.motion .hero.is-settling .hero-bg-img {
  will-change: transform;
  animation: photoSettle 1s var(--ease-arrive) both;
}

@keyframes photoSettle {
  from { transform: scale(1.08); }
  to { transform: scale(1.04); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(15, 15, 16, 0.88) 0%, rgba(26, 26, 27, 0.72) 48%, rgba(26, 26, 27, 0.55) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(139, 101, 58, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
  opacity: 1;
}

.motion .hero.is-settling .hero-overlay {
  animation: veilSettle 0.85s var(--ease-arrive) both;
}

@keyframes veilSettle {
  from { opacity: 0.72; }
  to { opacity: 1; }
}

.hero-content {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 4rem;
  max-width: 760px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.35rem, 5.5vw, 4.1rem);
  max-width: 14ch;
  margin: 0 0 1.35rem;
  text-wrap: balance;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
  margin: 0 0 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.hero-scroll.is-active i {
  animation: bob 2s var(--ease) infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/*
  Focal motion — "Chamber settle":
  photo/veil settle, gold hairline draws, headline unmasks, then sub/CTAs.
  No page-wide scroll reveals.
*/
.hero-enter {
  position: relative;
}

.hero-enter::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.25rem;
  transform-origin: left center;
}

.motion .hero-enter::before {
  transform: scaleX(0);
  animation: hairlineDraw 0.5s var(--ease-arrive) 0.1s forwards;
}

.motion .hero-enter h1 {
  opacity: 0;
  transform: translateY(10px);
  clip-path: inset(0 0 100% 0);
  animation: chamberHeadline 0.7s var(--ease-arrive) 0.18s forwards;
}

.motion .hero-enter .hero-sub,
.motion .hero-enter .hero-actions {
  opacity: 0;
  transform: translateY(10px);
  animation: chamberIn 0.55s var(--ease-arrive) forwards;
}

.motion .hero-enter .hero-sub {
  animation-delay: 0.34s;
}

.motion .hero-enter .hero-actions {
  animation-delay: 0.46s;
}

@keyframes hairlineDraw {
  to { transform: scaleX(1); }
}

@keyframes chamberHeadline {
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes chamberIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Inner pages: quieter chamber settle (continuity, not a second spectacle) */
.motion .page-hero .container > * {
  opacity: 0;
  transform: translateY(8px);
  animation: chamberIn 0.5s var(--ease-arrive) forwards;
}

.motion .page-hero h1 {
  animation-delay: 0.05s;
}

.motion .page-hero p {
  animation-delay: 0.14s;
}

/* Failsafe / settled: content never stays opacity-hidden */
.motion-done .hero-enter::before,
.motion-done .hero-enter h1,
.motion-done .hero-enter .hero-sub,
.motion-done .hero-enter .hero-actions,
.motion-done .page-hero .container > * {
  opacity: 1;
  transform: none;
  clip-path: none;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .motion .hero-enter::before,
  .motion .hero-enter h1,
  .motion .hero-enter .hero-sub,
  .motion .hero-enter .hero-actions,
  .motion .page-hero .container > *,
  .motion .hero.is-settling .hero-bg-img,
  .motion .hero.is-settling .hero-overlay {
    animation: none !important;
    opacity: 1;
    transform: none;
    clip-path: none;
    will-change: auto;
  }

  .hero-bg-img {
    transform: none;
  }

  .hero-scroll.is-active i,
  .float-whatsapp.is-pulsing {
    animation: none !important;
  }

  .btn:hover,
  .btn:active,
  .lawyer-card:hover,
  .float-btn:hover,
  .was-validated .form-control:invalid {
    transform: none !important;
    animation: none !important;
  }

  .btn-gold[aria-busy="true"]::after,
  .btn-gold[aria-busy="true"] .btn-spinner,
  .contact-sending-spinner,
  .contact-receipt-ring,
  .js .contact-panel.is-receipt .contact-receipt,
  .area-row::before {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1;
  }

  .btn-gold[aria-busy="true"] .btn-spinner,
  .contact-sending-spinner {
    border-top-color: currentColor;
    opacity: 0.7;
  }

  .area-row::before {
    display: none;
  }
}

/* About / features — editorial checklist, not marketing cards */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--gray-line);
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--gray-line);
}

.feature-item .check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 101, 58, 0.15);
  color: var(--gold-deep);
  flex-shrink: 0;
}

.feature-label {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--navy);
  line-height: 1.35;
}

.about-visual {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 360px;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

/* Practice areas — editorial rows */
.areas-editorial {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--gray-line);
}

.area-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--gray-line);
  transition: background 0.3s var(--ease);
}

.area-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.35s var(--ease-arrive);
}

.area-row:nth-child(odd) {
  border-right: 1px solid var(--gray-line);
}

.area-row:hover,
.area-row:focus-within {
  background: rgba(139, 101, 58, 0.06);
}

.area-row:hover::before,
.area-row:focus-within::before {
  transform: scaleY(1);
}

.area-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(139, 101, 58, 0.18), rgba(0, 0, 0, 0.06));
  color: var(--navy);
  font-size: 1.35rem;
  border: 1px solid rgba(139, 101, 58, 0.35);
}

.area-copy h2,
.area-copy h3 {
  font-size: 1.3rem;
  margin: 0 0 0.45rem;
}

.area-copy p {
  margin: 0;
  color: var(--gray);
  font-size: 0.98rem;
  max-width: 42ch;
}

@media (max-width: 767.98px) {
  .areas-editorial {
    grid-template-columns: 1fr;
  }

  .area-row:nth-child(odd) {
    border-right: 0;
  }
}

/* Lawyers */
.lawyers-grid {
  margin-top: var(--space-2);
}

.lawyer-card {
  height: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 101, 58, 0.2);
  border-radius: 10px;
  padding: var(--space-4) var(--space-3) var(--space-5);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.lawyer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 101, 58, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.lawyer-avatar {
  width: min(180px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  margin: 0 auto var(--space-3);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(139, 101, 58, 0.35), transparent 45%),
    linear-gradient(160deg, var(--navy-soft), var(--navy-deep));
  border: 1px solid rgba(167, 123, 31, 0.75);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.lawyer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.lawyer-card h2,
.lawyer-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
  color: #fff;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.lawyer-oab {
  color: var(--gold);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}

.lawyer-phone {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: var(--space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.lawyer-phone:hover {
  color: var(--gold);
}

.lawyer-actions {
  margin-top: auto;
}

/* Differentials */
.diff-item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--gray-line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
}

.diff-item:last-child {
  border-bottom: 0;
}

.diff-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  background: rgba(139, 101, 58, 0.14);
  border: 1px solid rgba(139, 101, 58, 0.35);
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.diff-item h3 {
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
}

.diff-item p {
  margin: 0;
  color: var(--gray);
  max-width: 48ch;
}

/* Contact */
.form-label {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}

.form-control {
  border-radius: 6px;
  border: 1px solid rgba(139, 101, 58, 0.28);
  padding: 0.9rem 1rem;
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(139, 101, 58, 0.22);
  background: var(--navy-deep);
  color: #fff;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: #ffb4b4;
  background-image: none;
  animation: fieldAttention 0.28s var(--ease);
}

.invalid-feedback {
  color: #ffd0d0;
  font-size: 0.875rem;
}

@keyframes fieldAttention {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-3px); }
  60% { transform: translateX(3px); }
}

.contact-layout {
  align-items: start;
}

.contact-primary {
  min-width: 0;
}

.contact-aside {
  min-width: 0;
  padding-top: 0.15rem;
}

.contact-aside-title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin: 0 0 var(--space-3);
}

.contact-panel {
  position: relative;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: 1px solid rgba(139, 101, 58, 0.28);
  border-radius: 10px;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  box-shadow: var(--shadow);
  height: 100%;
}

.contact-panel.is-sending {
  min-height: 22rem;
}

.contact-panel.is-sending #form-contato > :not(.contact-sending):not(input[type="hidden"]):not(.hp-field) {
  opacity: 0.28;
  pointer-events: none;
  user-select: none;
}

.contact-sending {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(4, 17, 38, 0.72);
  border-radius: inherit;
  backdrop-filter: blur(2px);
}

.contact-sending[hidden] {
  display: none !important;
}

.contact-sending-inner {
  text-align: center;
  max-width: 18rem;
}

.contact-sending-spinner {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  border: 2px solid rgba(167, 123, 31, 0.28);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: contactSpin 0.75s linear infinite;
}

.contact-sending-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  line-height: 1.25;
}

.contact-sending-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.contact-panel.is-receipt {
  display: grid;
  align-content: center;
  min-height: 22rem;
}

.contact-receipt {
  text-align: left;
  max-width: 34rem;
}

.contact-receipt-mark {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 0 var(--space-4);
  display: grid;
  place-items: center;
  color: var(--navy-deep);
  background: var(--gold);
  border-radius: 50%;
  font-size: 1.4rem;
  box-shadow: 0 10px 28px rgba(167, 123, 31, 0.28);
}

.contact-receipt-ring {
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(167, 123, 31, 0.55);
  border-radius: 50%;
  animation: receiptRing 0.7s var(--ease-arrive) both;
}

.contact-receipt-title {
  color: #fff;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  margin: 0 0 var(--space-2);
}

.contact-receipt-text {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 var(--space-4);
  max-width: 42ch;
}

.contact-receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-alert {
  margin-bottom: var(--space-3);
}

.contact-alert-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.contact-alert-row i {
  font-size: 1.15rem;
  margin-top: 0.15rem;
}

.contact-alert strong {
  display: block;
  margin-bottom: 0.2rem;
}

.contact-submit-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-reassure {
  margin: 0 0 var(--space-4);
  padding: 0 0 0.15rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  max-width: 48ch;
}

.contact-reassure strong {
  color: #fff;
  font-weight: 600;
}

.contact-form-note {
  margin: 0;
  color: rgba(245, 233, 196, 0.92);
  font-size: 0.85rem;
  max-width: 42ch;
}

@keyframes receiptRing {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.js .contact-panel.is-receipt .contact-receipt {
  animation: chamberIn 0.65s var(--ease-arrive) both;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

.alert-brand {
  border-radius: 8px;
  border: 0;
}

.alert-success {
  background: rgba(139, 101, 58, 0.16);
  color: #f5e9c4;
}

.alert-danger {
  background: rgba(220, 80, 80, 0.18);
  color: #ffd0d0;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
}

.contact-info-list li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  margin-bottom: var(--space-2);
}

.contact-info-list i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(139, 101, 58, 0.15);
  color: var(--gold-deep);
  flex-shrink: 0;
}

.contact-email {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.map-frame {
  border: 0;
  border-radius: 10px;
  width: 100%;
  min-height: 180px;
  max-height: 220px;
  box-shadow: none;
  filter: grayscale(0.2) contrast(1.04);
}

.map-note {
  margin: var(--space-2) 0 0;
  color: var(--gray);
  font-size: 0.9rem;
  max-width: 36ch;
  overflow-wrap: anywhere;
}

.location-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2);
  align-items: start;
  padding: var(--space-3);
  border: 1px solid var(--gray-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
}

.location-card i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(139, 101, 58, 0.15);
  color: var(--gold-deep);
}

.location-card strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.location-card p {
  margin: 0;
  color: var(--gray);
  font-size: 0.95rem;
  max-width: 36ch;
}

.empty-state {
  margin: 0;
  padding: var(--space-4) 0;
  color: var(--gray);
  max-width: 46ch;
}

.empty-state-light {
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  margin-inline: auto;
}

.req-mark {
  color: var(--gold-soft);
  font-weight: 700;
}

.section-title,
.area-copy h3,
.hero h1,
.btn,
.nav-link {
  overflow-wrap: anywhere;
}

.area-copy,
.feature-label,
.diff-item p,
.section-lead {
  min-width: 0;
  overflow-wrap: break-word;
}

/* Footer — marfim da marca, texto azul, acentos ouro */
.site-footer {
  background: var(--brand-surface);
  color: var(--navy);
  padding: var(--space-6) 0 calc(var(--space-5) + 4.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(167, 123, 31, 0.42);
}

.footer-logo {
  height: auto;
  width: min(280px, 100%);
  max-height: 120px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border: 0;
}

.footer-lead {
  color: var(--text-muted);
  max-width: 32ch;
}

.footer-title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1rem;
  font-weight: 600;
}

.footer-links a,
.footer-bottom a {
  color: var(--text-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--gold-deep);
}

.footer-links li + li {
  margin-top: 0.45rem;
}

.footer-links i {
  margin-right: 0.35rem;
  color: var(--gold);
}

.footer-lawyers li + li {
  margin-top: 0.85rem;
}

.footer-lawyers strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.footer-lawyers span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167, 123, 31, 0.45);
  color: var(--gold) !important;
  background: rgba(167, 123, 31, 0.06);
}

.social-btn:hover {
  background: var(--gold);
  color: var(--navy-deep) !important;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(7, 27, 58, 0.12);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.lgpd-note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Floating buttons */
.float-btn {
  position: fixed;
  z-index: 1050;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.float-btn i {
  font-size: 1.55rem;
  line-height: 1;
}

.float-btn:hover {
  transform: translateY(-4px) scale(1.05);
  color: #fff !important;
}

.float-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 12px);
  white-space: nowrap;
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  border: 1px solid rgba(139, 101, 58, 0.35);
}

.float-btn:hover::before,
.float-btn:focus-visible::before {
  opacity: 1;
  transform: none;
}

.float-wa {
  position: fixed;
  z-index: 1050;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.float-wa .float-whatsapp {
  position: relative;
  right: auto;
  bottom: auto;
}

.float-whatsapp {
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  background: #25d366;
}

.float-whatsapp.is-pulsing {
  animation: pulse-wa 2.4s ease-out infinite;
}

.float-wa-icon-close {
  display: none;
}

.float-wa.is-open .float-wa-icon-open {
  display: none;
}

.float-wa.is-open .float-wa-icon-close {
  display: block;
}

.float-wa.is-open .float-whatsapp {
  background: var(--navy);
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  animation: none;
}

.float-wa-panel {
  width: min(20.5rem, calc(100vw - 2rem));
  background: var(--brand-surface);
  border: 1px solid rgba(167, 123, 31, 0.4);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(7, 27, 58, 0.18);
  padding: 0.85rem 0.75rem 0.75rem;
  color: var(--navy);
}

.float-wa-panel[hidden] {
  display: none !important;
}

.float-wa-title {
  margin: 0 0 0.65rem;
  padding: 0 0.35rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.float-wa-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.float-wa-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
  min-height: 52px;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--navy) !important;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.float-wa-option:hover,
.float-wa-option:focus-visible {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.35);
  color: var(--navy) !important;
}

.float-wa-option-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.float-wa-option-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.float-wa-option-copy strong {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.float-wa-option-copy span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.float-lgpd {
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: calc(max(1.25rem, env(safe-area-inset-bottom)) + 4.1rem);
  background: var(--navy);
  border: 1px solid var(--gold);
  color: var(--gold) !important;
}

.float-lgpd:hover {
  background: var(--navy-soft);
  color: var(--gold) !important;
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 575.98px) {
  .float-btn {
    width: 48px;
    height: 48px;
  }

  .float-wa,
  .float-whatsapp {
    right: max(0.9rem, env(safe-area-inset-right));
    bottom: max(0.9rem, env(safe-area-inset-bottom));
  }

  .float-wa .float-whatsapp {
    right: auto;
    bottom: auto;
  }

  .float-lgpd {
    right: calc(max(0.9rem, env(safe-area-inset-right)) + 3.6rem);
    bottom: max(0.9rem, env(safe-area-inset-bottom));
  }

  .float-btn::before {
    display: none;
  }

  .float-wa-panel {
    width: min(18.5rem, calc(100vw - 1.5rem));
  }
}

/* Inner pages */
.page-hero {
  background:
    linear-gradient(160deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.88)),
    url("../img/escritorio.jpg") center / cover no-repeat;
  color: #fff;
  padding: calc(var(--header-h) + 3.5rem) 0 3.5rem;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 56ch;
  margin: 0;
}

.inner-cta {
  background: var(--navy);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid rgba(167, 123, 31, 0.4);
}

.inner-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.inner-cta h2 {
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  margin: 0 0 0.4rem;
}

.inner-cta p {
  color: rgba(255, 255, 255, 0.76);
  margin: 0;
}

@media (max-width: 767.98px) {
  .inner-cta .container {
    align-items: flex-start;
    flex-direction: column;
  }
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  font-size: 1.55rem;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
}

.prose p,
.prose li {
  color: var(--gray);
}

.prose ul {
  padding-left: 1.15rem;
}

/* 404 */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Contextual adaptation: touch, narrow screens and zoom */
@media (pointer: coarse) {
  .btn,
  .nav-link,
  .footer-links a,
  .lawyer-phone,
  .contact-info-list a,
  .social-btn {
    min-height: 44px;
  }

  .footer-links a,
  .lawyer-phone,
  .contact-info-list a {
    display: inline-flex;
    align-items: center;
  }
}

@media (hover: hover) and (pointer: fine) {
  .lawyer-card:hover {
    transform: translateY(-4px);
  }
}

@media (hover: none) {
  .lawyer-card:hover,
  .float-btn:hover,
  .btn:hover {
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .section-intro-split {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    align-items: start;
  }
}

@media (max-width: 767.98px) {
  :root {
    --space-section: clamp(3.25rem, 12vw, 4.75rem);
    --space-section-tight: clamp(2.75rem, 10vw, 3.75rem);
  }

  .hero {
    min-height: 100svh;
    align-items: flex-start;
  }

  .hero-content {
    padding-top: calc(var(--header-h) + clamp(3rem, 10vh, 5rem));
    padding-bottom: 5.5rem;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.15rem);
    max-width: 12ch;
  }

  .hero-sub {
    font-size: 1rem;
    max-width: 34ch;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 25rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-scroll {
    display: none;
  }

  .about-visual,
  .about-visual img {
    min-height: 260px;
  }

  .area-row {
    padding: var(--space-3) 0;
  }

  .section-intro {
    margin-bottom: var(--space-4);
  }

  .contact-panel {
    padding: var(--space-3) var(--space-3);
  }

  .form-control {
    min-height: 48px;
    font-size: 1rem;
  }

  textarea.form-control {
    min-height: 9rem;
  }

  #form-contato .btn[type="submit"] {
    width: 100%;
    min-height: 50px;
  }

  .footer-logo {
    width: min(240px, 100%);
    max-height: 100px;
  }
}

@media (max-width: 359.98px) {
  :root {
    --header-h: 68px;
  }

  .site-header .container {
    padding-inline: 0.75rem;
  }

  .brand-logo {
    height: 54px;
    max-width: 64vw;
  }

  .navbar-toggler {
    width: 42px;
    height: 42px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .area-row {
    grid-template-columns: 42px 1fr;
    gap: 0.8rem;
  }

  .area-icon {
    width: 42px;
    height: 42px;
  }
}
