/* ==========================================================================
   Perito Brendon Leivas - Design System & Layout
   Editorial jurídico claro (#FFFFFF / #F5F4F3) + Hero escuro (#090909)
   Acento principal: #1BAE70
   ========================================================================== */

:root {
  --bg-page: #FFFFFF;
  --bg-light: #F9F9F9;
  --bg-surface: #F5F4F3;
  --bg-surface-hover: #ECEAE8;
  --bg-dark: #090909;
  --bg-pill: #F2F1F0;
  --border-hairline: #E3E3E3;
  --border-subtle: #EAEAEA;

  --text-primary: #090909;
  --text-strong: #1E1E1E;
  --text-body: #29292B;
  --text-muted: #5C5A57;
  --text-on-dark: #F9F9F9;
  --text-on-dark-muted: rgba(249, 249, 249, 0.78);

  --accent: #1BAE70;
  --accent-hover: #0E7047;
  --accent-btn: #0E7047;
  --accent-soft: rgba(27, 174, 112, 0.12);
  --dot-inactive: #D4D3D1;

  --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1340px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius-card: 16px;
  --radius-sm: 10px;
  --radius-pill: 9999px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 12px 32px -8px rgba(9, 9, 9, 0.08);
  --shadow-floating: 0 14px 36px -6px rgba(9, 9, 9, 0.18);
}

/* Browser Surface Theming */
::selection {
  background-color: var(--accent);
  color: #FFFFFF;
}

::-webkit-scrollbar {
  width: 15px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
  background: #C4C2BF;
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-surface);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: 1.55;
  caret-color: var(--accent);
}

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

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* Accessibility Helpers */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-dark);
  color: #FFFFFF;
  padding: 12px 20px;
  z-index: 9999;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

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

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Top Reading Progress Bar */
.top-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(27, 174, 112, 0.2);
  z-index: 1000;
}

.top-progress-fill {
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0.15);
  transition: transform 0.12s linear;
}

/* Floating Navigation Header */
.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 900;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: var(--radius-pill);
  background: rgba(9, 9, 9, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled .header-nav {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--border-hairline);
  box-shadow: var(--shadow-soft);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.site-header.is-scrolled .nav-brand {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 7px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.84);
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
}

.site-header.is-scrolled .nav-links a {
  color: var(--text-muted);
}

.site-header.is-scrolled .nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.header-cta {
  pointer-events: auto;
}

.mobile-menu-toggle {
  display: none;
  pointer-events: auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 9, 9, 0.8);
  color: #FFFFFF;
}

.site-header.is-scrolled .mobile-menu-toggle {
  background: #FFFFFF;
  color: var(--text-primary);
  border-color: var(--border-hairline);
}

/* Reusable Editorial Components */
.green-bullet {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background-color: var(--accent);
  flex-shrink: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

.crosshair-divider {
  position: relative;
  width: 100%;
  height: 1px;
  background-color: var(--border-hairline);
  margin: 0;
}

.crosshair-divider::after {
  content: '+';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background-color: var(--divider-bg, var(--bg-page));
  color: #7A7874;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
}

.section-surface-gray .crosshair-divider::after,
.divider-gray::after {
  --divider-bg: var(--bg-surface);
}

/* Pill CTA Button with Dual-Text Vertical Slide Animation */
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 20px 6px 6px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-pill);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid rgba(9, 9, 9, 0.06);
  transition: transform 0.25s var(--ease-out-expo), background-color 0.25s ease, box-shadow 0.25s ease;
}

.cta-pill--on-dark {
  background-color: #FFFFFF;
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.cta-pill:hover {
  transform: translateY(-2px);
  background-color: #E7E6E4;
  box-shadow: var(--shadow-soft);
}

.cta-pill--on-dark:hover {
  background-color: #F4F4F4;
}

.cta-pill__circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-expo), background-color 0.25s ease;
}

.cta-pill:hover .cta-pill__circle {
  background-color: var(--accent-hover);
  transform: translateX(2px);
}

.cta-pill__text-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.3em;
  line-height: 1.3em;
}

.cta-pill__text {
  display: block;
  transition: transform 0.35s var(--ease-out-expo);
}

.cta-pill__text--clone {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
}

.cta-pill:hover .cta-pill__text--primary {
  transform: translateY(-100%);
}

.cta-pill:hover .cta-pill__text--clone {
  transform: translateY(-100%);
}

/* ==========================================================================
   Section 1: Hero (Full-Bleed Dark Viewport)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92svh;
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 120px 24px 140px;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0.9;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9, 9, 9, 0.42) 0%,
    rgba(9, 9, 9, 0.22) 38%,
    rgba(9, 9, 9, 0.72) 76%,
    rgba(9, 9, 9, 0.92) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: clamp(32px, 5vw, 64px);
}

.hero__year {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6.6vw, 5.75rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: #FFFFFF;
}

.hero__asterisk {
  color: var(--accent);
}

.hero__subtitle-seo {
  margin: 14px 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(249, 249, 249, 0.84);
  letter-spacing: 0.01em;
}

.hero__right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 470px;
  justify-self: end;
}

.hero__globe {
  width: 56px;
  height: 56px;
  color: rgba(255, 255, 255, 0.9);
}

.hero__lead {
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.55;
  color: var(--text-on-dark);
}

/* Stepped Architectural Transition Mask at Hero Bottom (Framer Signature) */
.hero__stepped-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(56px, 8vw, 96px);
  z-index: 3;
  display: grid;
  grid-template-columns: 20% 20% 20% 20% 20%;
  align-items: end;
  pointer-events: none;
}

.step-block {
  background-color: var(--bg-page);
  width: 100%;
}

.step-block--1 { height: 42%; }
.step-block--2 { height: 26%; }
.step-block--3 { height: 78%; }
.step-block--4 { height: 46%; }
.step-block--5 { height: 18%; }

/* ==========================================================================
   Section 2: Value Proposition & Pillars
   ========================================================================== */
.value-prop {
  position: relative;
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(64px, 8vw, 112px);
  overflow: hidden;
}

.bg-watermark {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.48;
}

.bg-watermark--left {
  left: -120px;
  top: 80px;
  width: 340px;
  height: 460px;
}

.bg-watermark--right {
  right: -120px;
  top: 120px;
  width: 320px;
  height: 440px;
}

.editorial-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 32% 68%;
  gap: 32px;
  align-items: start;
}

.value-prop__headline {
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.1vw, 2.75rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  max-width: 28ch;
  text-wrap: balance;
}

.pillars-grid {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 32px;
  border-top: 1px solid var(--border-hairline);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.pillar-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.pillar-text {
  margin: 0;
  font-size: 0.96875rem;
  color: var(--text-muted);
  max-width: 48ch;
}

/* ==========================================================================
   Section 3: Client / Institution Marquee
   ========================================================================== */
.marquee-section {
  padding-block: clamp(44px, 5vw, 72px);
}

.marquee-header {
  margin-bottom: 28px;
}

.marquee-viewport {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-page);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 22s linear infinite;
  will-change: transform;
}

.marquee-viewport:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
}

.marquee-tile {
  width: 240px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-subtle);
  background: #FFFFFF;
  padding: 20px 28px;
  flex-shrink: 0;
}

.marquee-tile img {
  width: 145px;
  height: 55px;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.05);
  opacity: 0.82;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.marquee-tile:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.04);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Section 4: Services (Serviços)
   ========================================================================== */
.services-section {
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(56px, 7vw, 88px);
}

.services-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 28px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.25s ease, background-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hairline);
  background-color: #EFEFED;
}

.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.service-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--dot-inactive);
}

.service-dot.is-active {
  background-color: var(--accent);
}

.service-card__body {
  margin-top: 48px;
}

.service-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.service-card__desc {
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-hover);
  transition: gap 0.2s ease;
}

.service-card:hover .service-card__link {
  gap: 10px;
}

.services-bottom-bar {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 32% 68%;
  align-items: center;
  gap: 32px;
}

.perfect-assist-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  font-weight: 500;
  color: var(--text-strong);
}

.perfect-assist-pct {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Section 4.5: SEO Specialties (Especialidades Técnicas para Advogados)
   ========================================================================== */
.specialties-section {
  background-color: var(--bg-surface);
  padding: 84px 20px;
}

.specialties-header {
  display: grid;
  grid-template-columns: 32% 68%;
  gap: 32px;
  margin-bottom: 44px;
  align-items: start;
}

.specialties-heading {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-wrap: balance;
}

.specialties-intro {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 65ch;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.specialty-panel {
  background-color: #FFFFFF;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.specialty-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-hover);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.specialty-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.specialty-panel__desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.specialty-list {
  margin: 4px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border-subtle);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.specialty-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-body);
}

.specialty-list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

/* ==========================================================================
   Section 5: Results / Animated Stats (Resultado)
   ========================================================================== */
.results-section {
  padding-block: clamp(64px, 8vw, 104px);
}

.results-statement {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  max-width: 30ch;
  text-wrap: balance;
}

.stats-grid {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.stat-item {
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 24px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}

.stat-label {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-sub {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section 6: Testimonials (Depoimentos)
   ========================================================================== */
.testimonials-section {
  position: relative;
  padding-block: clamp(64px, 8vw, 108px);
  overflow: hidden;
}

.testimonials-top {
  position: relative;
  z-index: 1;
  margin-bottom: 48px;
}

.testimonials-center {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-top: 20px;
}

.testimonials-heading {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

.testimonials-sub {
  margin: 0 0 28px;
  font-size: 1rem;
  color: var(--text-muted);
}

.testimonials-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.testimonial-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(9, 9, 9, 0.04);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 14px;
}

.stars-row {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  margin-bottom: 14px;
}

.testimonial-quote {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-body);
}

.testimonial-quote p {
  margin: 0 0 10px;
}

.testimonial-quote p:last-child {
  margin-bottom: 0;
}

.testimonial-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.testimonial-footer .dot-mark {
  color: var(--text-primary);
  margin-left: 4px;
}

/* ==========================================================================
   Section 7: About (Quem é seu Assistente Técnico?)
   ========================================================================== */
.about-section {
  background-color: var(--bg-surface);
  padding: 88px 20px;
}

.about-label-row {
  margin-bottom: 36px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.about-photo-wrap {
  max-width: 500px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #141414;
}

.about-photo {
  width: 100%;
  height: auto;
  max-height: 530px;
  object-fit: cover;
  object-position: center top;
}

.about-heading {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  text-wrap: balance;
}

.about-intro {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.about-copy {
  margin: 0 0 16px;
  font-size: 0.9875rem;
  color: var(--text-muted);
  max-width: 60ch;
}

.about-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-strong);
}

.about-badge svg {
  color: var(--accent);
}

/* ==========================================================================
   Section 8: FAQ (Perguntas Frequentes)
   ========================================================================== */
.faq-section {
  padding-block: clamp(64px, 8vw, 108px);
}

.faq-layout {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 32px;
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border-hairline);
}

.faq-item:first-child {
  border-top: 1px solid var(--border-hairline);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 22px 0;
  display: grid;
  grid-template-columns: 52px 1fr 28px;
  align-items: center;
  gap: 16px;
  text-align: left;
  color: var(--text-primary);
}

.faq-trigger:hover .faq-question {
  color: var(--accent-hover);
}

.faq-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.faq-question {
  font-family: var(--font-display);
  font-size: 1.075rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: color 0.2s ease;
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--text-primary);
  transition: transform 0.25s var(--ease-out-expo);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.35s var(--ease-out-expo), opacity 0.25s ease;
}

.faq-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-panel__clip {
  overflow: hidden;
  min-height: 0;
}

.faq-panel__inner {
  padding: 0 0 24px 68px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-bullet-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.faq-check-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background-color: var(--accent-soft);
  color: var(--accent-hover);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 3px;
}

.faq-step-num {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background-color: var(--accent-btn);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Section 4.7: Technical Guides (Topic Cluster SEO) & Satellite Articles
   ========================================================================== */
.guides-section {
  padding-block: clamp(64px, 8vw, 96px);
}

.guides-header {
  display: grid;
  grid-template-columns: 32% 68%;
  gap: 32px;
  margin-bottom: 36px;
  align-items: start;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.guide-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.25s ease, background-color 0.25s ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background-color: #FFFFFF;
  box-shadow: var(--shadow-soft);
}

.guide-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.guide-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.guide-card__excerpt {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.guide-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-hover);
}

/* Satellite Article Pages */
.article-hero {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 120px 24px 72px;
}

.breadcrumb-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 24px;
}

.breadcrumb-nav a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.article-hero__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 24ch;
}

.article-hero__lead {
  margin: 0;
  font-size: 1.08rem;
  color: var(--text-on-dark-muted);
  max-width: 65ch;
}

.article-layout {
  padding: 64px 20px 80px;
}

.article-content {
  max-width: 78ch;
  margin-inline: auto;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-body);
}

.article-content h2 {
  margin: 40px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.article-content h3 {
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.article-content ul,
.article-content ol {
  padding-left: 22px;
  margin: 14px 0 22px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-cta-box {
  margin-top: 44px;
  padding: 36px;
  border-radius: var(--radius-card);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
}

.article-cta-box h2 {
  margin-top: 0;
}

/* ==========================================================================
   Section 9: Footer + Modal LGPD + Floating WhatsApp
   ========================================================================== */
.site-footer {
  padding-bottom: 64px;
}

.footer-card {
  background-color: var(--bg-surface);
  border-radius: 20px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: start;
}

.footer-eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.02em;
}

.footer-email {
  display: inline-block;
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.7vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  word-break: break-word;
}

.footer-email:hover {
  color: var(--accent-hover);
}

.footer-desc {
  margin: 0 0 28px;
  font-size: 0.96875rem;
  color: var(--text-muted);
  max-width: 48ch;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.footer-link-btn {
  background: transparent;
  border: 0;
  padding: 6px 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  border-bottom: 1px solid var(--border-hairline);
}

.footer-link-btn:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 22px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  font-weight: 600;
  color: var(--text-strong);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.back-to-top:hover {
  background-color: var(--accent-btn);
  border-color: var(--accent-btn);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Floating WhatsApp Button (Bottom-Left to keep Back-to-Top clear on Right) */
.floating-whatsapp {
  position: fixed;
  left: 22px;
  right: auto;
  bottom: 22px;
  z-index: 850;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-btn);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-floating);
  transition: transform 0.25s var(--ease-out-expo), background-color 0.2s ease;
}

.floating-whatsapp:hover {
  background-color: #095435;
  transform: translateY(-3px);
}

/* Privacy / LGPD Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 9, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-hairline);
}

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: grid;
  place-items: center;
}

.modal-body {
  font-size: 0.9375rem;
  color: var(--text-body);
}

.modal-body h4 {
  margin: 18px 0 6px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid,
  .specialties-grid,
  .guides-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial-split,
  .specialties-header,
  .guides-header,
  .services-bottom-bar,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
    padding: 14px;
  }

  .header-nav.is-mobile-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero__right {
    justify-self: start;
  }

  .pillars-grid,
  .services-grid,
  .specialties-grid,
  .guides-grid,
  .stats-grid,
  .testimonials-grid,
  .footer-card {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-bottom: 92px;
  }

  .footer-card {
    padding: 28px 22px;
  }

  .footer-email {
    font-size: 1.15rem;
  }

  .cta-pill {
    font-size: 0.85rem;
    gap: 10px;
    padding: 5px 14px 5px 5px;
    white-space: nowrap;
  }

  .footer-right {
    align-items: flex-start;
  }

  .faq-trigger {
    grid-template-columns: 36px 1fr 24px;
    gap: 10px;
  }

  .faq-panel__inner {
    padding-left: 0;
  }

  .floating-whatsapp__label {
    display: none;
  }

  .floating-whatsapp {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cta-pill,
  .service-card,
  .guide-card,
  .faq-panel,
  .top-progress-fill {
    transition: none;
  }
}
