/* =========================================================
   AR Soluções Jurídicas — Landing page
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --green-950: #06120c;
  --green-900: #0a1c13;
  --green-800: #0f2a1d;
  --green-700: #173b29;
  --gold-300: #e6cf8e;
  --gold-400: #d6b764;
  --gold-500: #c4a04a;
  --gold-600: #a4822f;
  --gold-700: #7d6121;
  --ivory-50: #fbf9f4;
  --ivory-100: #f4efe4;
  --ivory-200: #e8e0cf;

  /* Semântica */
  --bg-dark: var(--green-900);
  --bg-darker: var(--green-950);
  --bg-light: var(--ivory-50);
  --text-on-dark: #f4efe4;
  --muted-on-dark: rgba(244, 239, 228, 0.72);
  --line-on-dark: rgba(214, 183, 100, 0.22);
  --text-on-light: #10201a;
  --muted-on-light: #4b5a52;
  --line-on-light: rgba(16, 32, 26, 0.12);
  --accent: var(--gold-400);
  --accent-strong: var(--gold-700); /* dourado legível sobre fundo claro */

  /* Tipografia */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-h1: clamp(2.5rem, 1.5rem + 4.2vw, 5rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.3vw, 3.25rem);
  --fs-h3: 1.3rem;
  --fs-lead: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);

  /* Espaço e forma */
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 10vw, 144px);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --header-h: 76px;
  --shadow-card: 0 1px 2px rgba(10, 28, 19, 0.04), 0 12px 32px -12px rgba(10, 28, 19, 0.14);
  --shadow-card-hover: 0 2px 4px rgba(10, 28, 19, 0.05), 0 24px 48px -16px rgba(10, 28, 19, 0.22);

  /* Movimento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 120ms;
  --dur-hover: 200ms;
  --dur-ui: 240ms;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 1px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-on-dark);
  background: var(--bg-darker);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-locked {
  overflow: hidden;
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
ul,
ol {
  list-style: none;
  padding: 0;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  font-optical-sizing: auto;
}
p {
  text-wrap: pretty;
}
:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--gold-400);
  color: var(--green-950);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--gold-400);
  color: var(--green-950);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--dur-ui) var(--ease-out);
}
.skip-link:focus {
  transform: none;
}

/* ---------- Tipos recorrentes ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-dark {
  color: var(--accent-strong);
}
.eyebrow-line {
  width: 32px;
  height: 1px;
  background: currentColor;
}

.section {
  padding-block: var(--section-y);
  position: relative;
}
.section-light {
  background: var(--bg-light);
  color: var(--text-on-light);
}
.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-title {
  font-size: var(--fs-h2);
  margin-top: 18px;
}
.section-lead {
  margin-top: 20px;
  font-size: var(--fs-lead);
  color: var(--muted-on-light);
  max-width: 60ch;
}
.section-dark .section-lead {
  color: var(--muted-on-dark);
}

/* ---------- Botões ---------- */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    background-color var(--dur-hover) ease,
    border-color var(--dur-hover) ease,
    color var(--dur-hover) ease,
    box-shadow var(--dur-hover) ease,
    transform var(--dur-press) var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
}
.btn-sm {
  --btn-h: 42px;
  padding: 0 18px;
  font-size: 0.9rem;
}
.btn-lg {
  --btn-h: 56px;
  padding: 0 28px;
  font-size: 1rem;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  color: var(--green-950);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 24px -10px rgba(196, 160, 74, 0.6);
}
.btn-ghost {
  color: var(--text-on-dark);
  border-color: rgba(244, 239, 228, 0.28);
  background: rgba(244, 239, 228, 0.04);
}
.btn-outline-dark {
  color: var(--text-on-light);
  border-color: var(--line-on-light);
}
.icon-arrow {
  transition: transform var(--dur-hover) var(--ease-out);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-on-light);
  color: var(--text-on-light);
  transition:
    background-color var(--dur-hover) ease,
    border-color var(--dur-hover) ease,
    color var(--dur-hover) ease,
    transform var(--dur-press) var(--ease-out);
}
.icon-btn:active {
  transform: scale(0.94);
}
.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover {
    background: linear-gradient(180deg, var(--gold-300), var(--gold-400));
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 12px 28px -10px rgba(196, 160, 74, 0.75);
  }
  .btn-ghost:hover {
    border-color: var(--gold-400);
    background: rgba(214, 183, 100, 0.08);
  }
  .btn-ghost:hover .icon-arrow {
    transform: translateX(3px);
  }
  .btn-outline-dark:hover {
    border-color: var(--text-on-light);
  }
  .icon-btn:not(:disabled):hover {
    background: var(--green-900);
    border-color: var(--green-900);
    color: var(--gold-300);
  }
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--text-on-dark);
}
/* O vidro fica num pseudo-elemento: backdrop-filter no próprio header
   viraria o bloco de contenção do menu mobile (position: fixed). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 18, 12, 0.86);
  border-bottom: 1px solid var(--line-on-dark);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  opacity: 0;
  transition: opacity var(--dur-ui) ease;
}
.site-header.is-scrolled::before,
.site-header.is-open::before {
  opacity: 1;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-mark {
  width: auto;
  height: 42px;
}
.brand {
  gap: 12px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-tag {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.nav-list {
  display: flex;
  gap: 4px;
}
.nav-list a:not(.btn) {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 0.93rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--muted-on-dark);
  transition: color var(--dur-hover) ease;
}
.nav-list a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-ui) var(--ease-out);
}
.nav-list a[aria-current="true"] {
  color: var(--text-on-dark);
}
.nav-list a[aria-current="true"]::after {
  transform: scaleX(1);
}
@media (hover: hover) and (pointer: fine) {
  .nav-list a:not(.btn):hover {
    color: var(--text-on-dark);
  }
  .nav-list a:not(.btn):hover::after {
    transform: scaleX(1);
  }
}
.nav-cta-mobile,
.menu-toggle {
  display: none;
}

/* Menu mobile */
@media (max-width: 1179px) {
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: inline-grid;
    place-content: center;
    gap: 7px;
    width: 48px;
    height: 48px;
    margin-right: -10px;
    border-radius: 50%;
  }
  .menu-bar {
    display: block;
    width: 24px;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--dur-ui) var(--ease-out);
  }
  .is-open .menu-bar:first-child {
    transform: translateY(4.25px) rotate(45deg);
  }
  .is-open .menu-bar:last-child {
    transform: translateY(-4.25px) rotate(-45deg);
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: var(--green-950);
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity var(--dur-ui) var(--ease-out),
      transform var(--dur-ui) var(--ease-out),
      visibility 0s linear var(--dur-ui);
  }
  .is-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 300ms var(--ease-out),
      transform 300ms var(--ease-out),
      visibility 0s;
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
  }
  .nav-list li {
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 200ms var(--ease-out),
      transform 200ms var(--ease-out);
  }
  .is-open .nav-list li {
    opacity: 1;
    transform: none;
    transition-duration: 400ms;
    transition-delay: calc(60ms + var(--i) * 45ms);
  }
  .nav-list a:not(.btn) {
    padding: 18px 0;
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--text-on-dark);
    border-bottom: 1px solid var(--line-on-dark);
  }
  .nav-list a::after {
    display: none;
  }
  .nav-cta-mobile {
    display: block;
    margin-top: 32px;
  }
  .nav-cta-mobile .btn {
    width: 100%;
    min-height: 56px;
    font-family: var(--font-body);
    font-size: 1rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 120px;
  overflow: hidden;
  isolation: isolate;
  background: var(--green-950);
}
.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 18, 12, 0.96) 0%, rgba(6, 18, 12, 0.86) 38%, rgba(6, 18, 12, 0.35) 75%, rgba(6, 18, 12, 0.25) 100%),
    linear-gradient(0deg, rgba(6, 18, 12, 0.9) 0%, rgba(6, 18, 12, 0) 35%);
}
.hero-inner {
  position: relative;
}
.hero-title {
  font-size: var(--fs-h1);
  font-weight: 350;
  max-width: 14ch;
  margin-top: 24px;
  letter-spacing: -0.025em;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-300);
}
.hero-lead {
  max-width: 54ch;
  margin-top: 28px;
  font-size: var(--fs-lead);
  color: var(--muted-on-dark);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line-on-dark);
  max-width: 620px;
}
.hero-stats dt {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-300);
  line-height: 1.2;
}
.hero-stats dd {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1px solid rgba(244, 239, 228, 0.35);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold-400);
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  70% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* Entrada do hero — acontece uma vez por visita */
.hero-bg img {
  animation: hero-bg 1800ms var(--ease-out) both;
}
.hero-item {
  animation: rise 900ms var(--ease-out) both;
  animation-delay: calc(150ms + var(--i, 0) * 90ms);
}
.site-header {
  animation: fade 700ms var(--ease-out) 100ms both;
}
@keyframes hero-bg {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 720px) {
  .hero .eyebrow {
    letter-spacing: 0.12em;
    font-size: 0.72rem;
  }
  .hero {
    align-items: flex-end;
    padding-bottom: 96px;
  }
  .hero-bg img {
    object-position: 70% center;
  }
  .hero-overlay {
    background: linear-gradient(0deg, rgba(6, 18, 12, 0.98) 0%, rgba(6, 18, 12, 0.9) 50%, rgba(6, 18, 12, 0.55) 100%);
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .hero-stats {
    gap: 20px 28px;
    margin-top: 44px;
  }
  .hero-stats dt {
    font-size: 1.3rem;
  }
  .scroll-cue {
    display: none;
  }
}

/* ---------- Áreas ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.area-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  background: #fff;
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    transform var(--dur-hover) ease,
    box-shadow var(--dur-hover) ease,
    border-color var(--dur-hover) ease;
}
.area-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-out);
}
.area-num {
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--muted-on-light);
  opacity: 0.6;
}
.area-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--green-900);
  color: var(--gold-300);
  flex: none;
}
.area-icon svg {
  width: 26px;
  height: 26px;
}
.area-card h3 {
  margin-top: 28px;
  font-size: 1.45rem;
}
.area-card p {
  margin-top: 12px;
  font-size: 0.97rem;
  color: var(--muted-on-light);
  flex: 1;
}
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 44px;
  margin-top: 20px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--green-800);
}
.link-more .icon {
  color: var(--gold-600);
  transition: transform var(--dur-hover) var(--ease-out);
}
/* card inteiro clicável */
.link-more::after {
  content: "";
  position: absolute;
  inset: 0;
}
.link-more:focus-visible {
  outline: none;
}
.area-card:has(.link-more:focus-visible) {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .area-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(196, 160, 74, 0.45);
  }
  .area-card:hover::before {
    transform: scaleX(1);
  }
  .area-card:hover .link-more .icon {
    transform: translateX(4px);
  }
}
@media (max-width: 1100px) {
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .areas-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .area-card {
    padding: 26px 22px 20px;
  }
  .area-card h3 {
    margin-top: 20px;
  }
}

/* ---------- Sobre ---------- */
.about {
  overflow: hidden;
}
.about::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(214, 183, 100, 0.08), transparent 65%);
  pointer-events: none;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
}
.about-media {
  position: relative;
  margin: 0;
  isolation: isolate;
}
.about-media > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 60%;
  border-radius: var(--radius-lg);
}
.about-media::after {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.about-seal {
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 42%;
  max-width: 200px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-950);
  border: 1px solid var(--line-on-dark);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
  padding: 10px;
}
.about-copy > p {
  margin-top: 20px;
  color: var(--muted-on-dark);
}
.about-copy > p.eyebrow {
  margin-top: 0;
  color: var(--accent);
}
.about-copy .section-title {
  margin-bottom: 8px;
}
.pillars {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}
.pillars li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.pillar-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-on-dark);
  color: var(--gold-300);
  flex: none;
}
.pillar-icon svg {
  width: 20px;
  height: 20px;
}
.pillars h3 {
  font-size: 1.2rem;
}
.pillars p {
  margin-top: 4px;
  color: var(--muted-on-dark);
  font-size: 0.97rem;
}
.about-quote {
  margin-top: 44px;
  padding-left: 22px;
  border-left: 2px solid var(--gold-500);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  line-height: 1.35;
  color: var(--gold-300);
}
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-media {
    max-width: 520px;
    margin-right: 16px;
  }
  .about-media > img {
    aspect-ratio: 5 / 4;
  }
  .about-seal {
    right: -12px;
    width: 32%;
  }
}

/* ---------- Equipe ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 30px;
  background: #fff;
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.team-photo {
  position: relative;
  aspect-ratio: 1;
  margin: -8px auto 8px;
  width: min(100%, 280px);
}
.team-photo img {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: auto;
  transition: transform 500ms var(--ease-out);
  transform-origin: 50% 100%;
}
.team-role {
  margin-top: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.team-name {
  margin-top: 8px;
  font-size: 1.55rem;
}
.team-bio {
  margin-top: 14px;
  font-size: 0.97rem;
  color: var(--muted-on-light);
  flex: 1;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.tags li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ivory-100);
  border: 1px solid var(--ivory-200);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-800);
}
@media (hover: hover) and (pointer: fine) {
  .team-card:hover .team-photo img {
    transform: scale(1.03);
  }
}
@media (max-width: 1000px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-photo {
    width: min(100%, 240px);
  }
}

/* ---------- Como funciona ---------- */
.process {
  background: var(--green-950);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--line-on-dark);
}
.step {
  position: relative;
  padding: 36px 28px 8px 0;
}
.step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 5px var(--green-950);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-400);
}
.step h3 {
  margin-top: 20px;
  font-size: 1.35rem;
}
.step p {
  margin-top: 10px;
  color: var(--muted-on-dark);
  font-size: 0.97rem;
  max-width: 32ch;
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    row-gap: 24px;
    border-top: 0;
  }
  .step {
    border-top: 1px solid var(--line-on-dark);
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
    row-gap: 0;
    border-top: 0;
    border-left: 1px solid var(--line-on-dark);
    margin-left: 4px;
  }
  .step {
    border-top: 0;
    padding: 0 0 36px 28px;
  }
  .step::before {
    top: 6px;
    left: -5px;
  }
  .step-num {
    font-size: 2rem;
  }
  .step h3 {
    margin-top: 10px;
  }
}

/* ---------- Depoimentos ---------- */
.slider-controls {
  display: none;
  gap: 10px;
}
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonials:focus-visible {
  outline-offset: 8px;
}
.testimonial {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: 8px;
  right: 26px;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--ivory-200);
  pointer-events: none;
}
.stars {
  display: flex;
  gap: 3px;
  color: var(--gold-500);
}
.stars svg {
  width: 18px;
  height: 18px;
}
.testimonial blockquote {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text-on-light);
  flex: 1;
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line-on-light);
}
.testimonial figcaption img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--gold-400);
}
.testimonial figcaption span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.testimonial figcaption small {
  font-size: 0.82rem;
  color: var(--muted-on-light);
}
.slider-dots {
  display: none;
}

@media (max-width: 900px) {
  .slider-controls {
    display: flex;
  }
  .testimonials {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 24px;
    scrollbar-width: none;
  }
  .testimonials::-webkit-scrollbar {
    display: none;
  }
  .testimonial {
    flex: 0 0 min(86%, 420px);
    scroll-snap-align: start;
    padding: 26px;
  }
  .slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
  }
  .slider-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--ivory-200);
    transition:
      transform var(--dur-ui) var(--ease-out),
      background-color var(--dur-ui) ease;
  }
  .slider-dots span.is-active {
    background: var(--gold-600);
    transform: scale(1.25);
  }
}
@media (max-width: 560px) {
  .section-head-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .slider-controls {
    display: none;
  }
}

/* ---------- CTA ---------- */
.cta {
  padding: clamp(56px, 8vw, 96px) 0;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(214, 183, 100, 0.16), transparent 50%),
    var(--green-800);
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
}
.cta-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.cta-seal {
  width: 140px;
}
.cta h2 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
}
.cta p {
  margin-top: 10px;
  color: var(--muted-on-dark);
  max-width: 48ch;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 960px) {
  .cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .cta-seal {
    width: 120px;
  }
  .cta p {
    margin-inline: auto;
  }
  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}
@media (max-width: 520px) {
  .cta-actions {
    width: 100%;
  }
  .cta-actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Rodapé ---------- */
.footer {
  background: var(--green-950);
  padding-top: clamp(64px, 8vw, 96px);
  color: var(--muted-on-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.1fr 1fr;
  gap: 40px;
}
.footer-brand img {
  width: 220px;
  margin: -24px 0 0 -20px;
}
.footer-title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-block: 6px;
}
.contact-list .icon {
  margin-top: 4px;
  color: var(--gold-400);
}
.contact-list address {
  font-style: normal;
}
.contact-list a,
.footer-links a,
.footer-links button {
  display: inline-block;
  padding-block: 4px;
  color: var(--text-on-dark);
  text-align: left;
  transition: color var(--dur-hover) ease;
  overflow-wrap: anywhere;
}
.footer-links li + li {
  margin-top: 6px;
}
@media (hover: hover) and (pointer: fine) {
  .contact-list a:hover,
  .footer-links a:hover,
  .footer-links button:hover {
    color: var(--gold-300);
  }
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 56px;
  padding-block: 28px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-on-dark);
  font-size: 0.85rem;
}
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

/* ---------- Botão flutuante WhatsApp ---------- */
.fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fab-in 500ms var(--ease-out) 1400ms both;
}
.fab-btn {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: transform var(--dur-press) var(--ease-out);
}
.fab-btn svg {
  width: 30px;
  height: 30px;
}
.fab:active .fab-btn {
  transform: scale(0.94);
}
.fab-label {
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--green-900);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateX(8px);
  transform-origin: right center;
  pointer-events: none;
  transition:
    opacity var(--dur-hover) var(--ease-out),
    transform var(--dur-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .fab:hover .fab-label {
    opacity: 1;
    transform: none;
  }
}
.fab:focus-visible {
  outline: none;
}
.fab:focus-visible .fab-btn {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
}
.fab:focus-visible .fab-label {
  opacity: 1;
  transform: none;
}
@keyframes fab-in {
  from { opacity: 0; transform: translateY(12px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

/* ---------- Modais ---------- */
.modal {
  width: min(760px, calc(100% - 32px));
  max-height: min(88dvh, 900px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--bg-light);
  color: var(--text-on-light);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.55);
  overflow: hidden;

  /* saída — mais rápida que a entrada */
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out),
    overlay 180ms allow-discrete,
    display 180ms allow-discrete;
}
.modal[open] {
  display: flex;
  opacity: 1;
  transform: none;
  transition-duration: 280ms;
}
@starting-style {
  .modal[open] {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}
.modal::backdrop {
  background: rgba(3, 10, 6, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition:
    opacity 180ms ease,
    overlay 180ms allow-discrete,
    display 180ms allow-discrete;
}
.modal[open]::backdrop {
  opacity: 1;
  transition-duration: 280ms;
}
@starting-style {
  .modal[open]::backdrop {
    opacity: 0;
  }
}
.modal-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: inherit;
}
.modal-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 24px 22px 32px;
  border-bottom: 1px solid var(--line-on-light);
  background: #fff;
}
.modal-head > div {
  flex: 1;
  min-width: 0;
}
.modal-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.modal-head h2 {
  margin-top: 4px;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
}
.modal-close {
  align-self: flex-start;
  flex: none;
}
.modal-body {
  padding: 28px 32px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--muted-on-light);
}
.modal-body:focus {
  outline: none;
}
.modal-body p + p {
  margin-top: 14px;
}
.modal-body strong {
  color: var(--text-on-light);
}
.modal-body h3 {
  margin: 32px 0 14px;
  font-size: 1.25rem;
  color: var(--text-on-light);
}
.modal-list {
  display: grid;
  gap: 12px;
}
.modal-list li {
  position: relative;
  padding: 16px 18px 16px 44px;
  background: #fff;
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
}
.modal-list li::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
}
.modal-list strong {
  display: block;
  margin-bottom: 2px;
}
.modal-closing {
  margin-top: 28px !important;
  padding: 18px 20px;
  border-left: 2px solid var(--gold-500);
  background: var(--ivory-100);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.modal-foot {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 18px 24px;
  border-top: 1px solid var(--line-on-light);
  background: #fff;
}

/* No celular o modal vira uma folha que sobe da base */
@media (max-width: 640px) {
  .modal {
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(100%);
    transition:
      opacity 220ms ease,
      transform 260ms var(--ease-drawer),
      overlay 260ms allow-discrete,
      display 260ms allow-discrete;
  }
  .modal[open] {
    transform: none;
    transition-duration: 200ms, 420ms, 420ms, 420ms;
  }
  @starting-style {
    .modal[open] {
      transform: translateY(100%);
    }
  }
  .modal-head {
    padding: 20px 16px 18px 20px;
    gap: 14px;
  }
  .modal-head .area-icon {
    display: none;
  }
  .modal-body {
    padding: 22px 20px 8px;
  }
  .modal-foot {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  }
  .modal-foot .btn {
    flex: 1;
  }
}

/* ---------- Revelação ao rolar ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Movimento reduzido: menos e mais suave, não zero ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-bg img,
  .hero-item,
  .site-header,
  .fab {
    animation-name: fade;
    animation-duration: 400ms;
  }
  .scroll-cue span {
    animation: none;
  }
  .js .reveal {
    transform: none;
    transition: opacity 400ms ease;
    transition-delay: 0ms;
  }
  .modal,
  .modal[open] {
    transform: none;
  }
  @starting-style {
    .modal[open] {
      transform: none;
    }
  }
  .nav,
  .nav-list li,
  .is-open .nav-list li {
    transform: none;
    transition-delay: 0ms;
  }
  .area-card,
  .team-photo img,
  .btn,
  .icon-btn,
  .fab-btn {
    transform: none !important;
  }
}
