:root {
  --gold: #f4b400;
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --text: #101010;
  --text-soft: #3d3d3d;
  --card: #ffffff;
  --border: #dadada;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

html.dark,
html[data-theme="dark"] {
  --bg: #111111;
  --bg-soft: #181818;
  --text: #f7f7f7;
  --text-soft: #d1d1d1;
  --card: #111111;
  --border: #262626;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--gold);
  color: #000;
  padding: 8px 10px;
  border-radius: 8px;
  z-index: 20000;
  outline: 3px solid #000;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff;
}

/* Estilização do Plano de Fundo Hero */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-bg picture, 
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Alternância instantânea da imagem de fundo Hero via tema do site */
.hero-bg .hero-img-dark {
  display: none;
}
.hero-bg .hero-img-light {
  display: block;
}

html[data-theme="dark"] .hero-bg .hero-img-light {
  display: none;
}
html[data-theme="dark"] .hero-bg .hero-img-dark {
  display: block;
}

/* Degradê sutil à esquerda sobre a imagem do Hero (Light e Dark mode) */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.5) 35%, rgba(255, 255, 255, 0) 75%);
  transition: background 0.4s ease;
}

html[data-theme="dark"] .hero-bg::after {
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.55) 40%, rgba(10, 10, 10, 0) 80%);
}

.container {
  width: min(100% - 2rem, 1100px);
  margin-inline: auto;
}

.hero {
  height: calc(100vh - 72px);
  height: calc(100svh - 72px);
  min-height: 500px;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1rem;
  z-index: 2;
}

.hero-supertitulo {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: #F5A623;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero-headline {
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-underline {
  color: #F5A623;
  text-decoration: none;
  border-bottom: 6px solid #F5A623;
  text-decoration-thickness: 0.15em;
  text-underline-offset: 0.1em;
}

.hero-subtitle {
  max-width: 460px;
  margin: 0 0 1.75rem;
  color: var(--text-soft);
  font-size: 1.1rem;
  line-height: 1.5;
}

.hero-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-check-list svg,
.hero-check-list img {
  color: var(--border);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #F5A623;
  color: #000;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-hero-secondary:hover {
  border-color: #F5A623;
  color: #F5A623;
}

/* Hero Dropdown */
.hero-dropdown {
  position: relative;
}

.btn-hero-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 0.95rem;
}

.btn-hero-dropdown:hover {
  border-color: #F5A623;
  color: #F5A623;
}

.hero-dropdown-content {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 100;
  padding: 8px;
  transition: all 0.2s ease;
  transform: translateY(10px);
}

.hero-dropdown:hover .hero-dropdown-content,
.hero-dropdown:focus-within .hero-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-dropdown-content a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-dropdown-content a:hover {
  background: var(--bg-soft);
  color: #F5A623;
}

.hero-scroll-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-scroll-link:hover {
  color: #F5A623;
}

.hero-differentials {
  background: var(--bg-soft);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.differential-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.differential-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 3rem;
  border-radius: 999px;
  background: var(--gold);
  color: #121212;
  font-size: 1.2rem;
}

.differential-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.differential-card p {
  margin: 0;
  color: var(--text-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0 0.78rem;
  gap: 1rem;
}

.brand {
  flex-shrink: 0;
  min-width: 140px; /* Garante que o logo não seja espremido */
}

.brand img.brand-logo {
  width: 128px;
  height: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 128px;
  height: auto;
}

.brand-logo-dark {
  display: none;
}

/* Toggle de tema no mobile: fora do menu, ao lado da marca (controlado em layout.js) */
.header-mobile-tools {
  display: none;
  align-items: center;
  flex-shrink: 0;
}

html.dark .brand-logo-light,
html[data-theme="dark"] .brand-logo-light {
  display: none;
}

html.dark .brand-logo-dark,
html[data-theme="dark"] .brand-logo-dark {
  display: inline-block;
}

.desktop-nav {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: 1.5rem;
}

.btn-header-cta {
  background: var(--gold);
  color: #121212;
  padding: 0.58rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid color-mix(in srgb, var(--gold) 80%, black);
  white-space: nowrap;
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 180, 0, 0.25);
  background: color-mix(in srgb, var(--gold) 92%, black);
}

.btn-header-cta:active {
  transform: translateY(0);
}

.icon-btn {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
}

.icon-btn span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: all 0.2s ease;
}

.mobile-nav {
  display: none;
  padding: 0 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
}

.mobile-nav.open {
  display: grid;
  gap: 0.65rem;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.mobile-nav a {
  display: block;
  color: var(--text);
  text-decoration: none;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 600;
  transition: all 0.2s ease;
}

.mobile-nav a:active,
.mobile-nav a:hover {
  background: var(--bg-soft);
  border-color: var(--gold);
  color: var(--gold);
}

/* Transforma o hambúrguer em X quando o menu está aberto */
#menuBtn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#menuBtn.open span:nth-child(2) {
  opacity: 0;
}
#menuBtn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.theme-toggle-text {
  font-size: 0.85rem;
  line-height: 1;
}

.theme-toggle-rail {
  position: relative;
  width: 66px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #dcdcdc;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
}

.theme-toggle-knob {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  left: 4px;
  top: 4px;
  transition: transform 0.2s ease;
}

.theme-toggle-icon {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  color: #111;
}

html.dark .theme-toggle-rail,
html[data-theme="dark"] .theme-toggle-rail {
  background: #030303;
}

html.dark .theme-toggle-knob,
html[data-theme="dark"] .theme-toggle-knob {
  transform: translateX(32px);
  background: #f4f4f4;
}

html.dark .theme-toggle-icon-sun,
html[data-theme="dark"] .theme-toggle-icon-sun {
  color: rgba(255, 255, 255, 0.5);
}

html.dark .theme-toggle-icon-moon,
html[data-theme="dark"] .theme-toggle-icon-moon {
  color: var(--gold);
}

.btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.78rem 1rem;
  font-weight: 700;
  border: 2px solid transparent;
}

.btn:focus-visible,
.icon-btn:focus-visible,
.theme-btn:focus-visible,
.theme-toggle-btn:focus-visible,
.mobile-nav a:focus-visible,
.desktop-nav-links a:focus-visible,
.social-icon:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--gold);
  color: #121212;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

html[data-theme="dark"] .btn-ghost {
  border-color: rgba(255, 255, 255, 0.48);
  color: #fafafa;
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline {
  background: transparent;
  border-color: color-mix(in srgb, var(--gold) 55%, var(--border));
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
}

html[data-theme="dark"] .btn-outline {
  border-color: rgba(244, 180, 0, 0.72);
  color: #fafafa;
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .btn-outline:hover {
  border-color: var(--gold);
  background: rgba(244, 180, 0, 0.14);
}

.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.trust-scroll {
  width: 100%;
}

.trust-grid {
  display: grid;
  gap: 1rem;
  padding: 1.3rem 0;
}

.trust .stat-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.05rem;
}

.trust h2,
.section h2 {
  margin: 0 0 0.5rem;
}

.section {
  padding: 2.3rem 0;
  scroll-margin-top: 88px;
}

.section-alt {
  background: var(--bg-soft);
}

.cta-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.35rem;
}

.cta-band-text {
  flex: 1 1 16rem;
  max-width: 40rem;
}

.cta-band .cta-band-text h2 {
  margin: 0 0 0.55rem;
}

.cta-band-lead {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 0.98rem;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.cards-scroll {
  width: 100%;
}

/* Faixa horizontal com scroll: no mobile, indicador visual em responsive.css (.h-scroll-rail) */
.h-scroll-rail {
  min-width: 0;
}

.cards {
  display: grid;
  gap: 0.9rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-body {
  padding: 1rem;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
}

.card-media picture {
  position: absolute;
  inset: 0;
  display: block;
}

.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--gold) 35%, var(--border));
}

.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chips li {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 0.46rem 0.8rem;
  font-weight: 600;
}

.list p {
  border-left: 3px solid var(--gold);
  padding-left: 0.75rem;
}

.social-icons {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.social-icons li {
  margin: 0;
  padding: 0;
}

.social-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.social-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.social-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.showcase-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.showcase-thumb {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  background: var(--bg-soft);
}

.showcase-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.case-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 0.28rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #121212;
  background: var(--gold);
  border-radius: 6px;
  line-height: 1.2;
  max-width: calc(100% - 20px);
}

.case-segment {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.showcase-content h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.case-lead {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.showcase-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.showcase-content .case-open-btn {
  margin-top: auto;
}

.showcase-card.is-hidden {
  display: none !important;
}

.cta {
  text-align: center;
}

/* ==========================================================================
   PORTFOLIO PERSPECTIVE SLIDER
   ========================================================================== */
.portfolio-section {
  padding: 5rem 0;
  background: var(--bg);
  overflow: hidden;
}

.portfolio-container {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  margin-top: 3rem;
}

.portfolio-stack {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 100%;
  transform-style: preserve-3d;
}

.portfolio-item {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateZ(-100px) scale(0.8);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Estados do Slider */
.portfolio-item.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateZ(0) scale(1);
  z-index: 10;
}

.portfolio-item.prev {
  opacity: 0.4;
  pointer-events: auto;
  transform: translateX(-40%) translateZ(-200px) rotateY(25deg) scale(0.9);
  filter: blur(2px);
  z-index: 5;
}

.portfolio-item.next {
  opacity: 0.4;
  pointer-events: auto;
  transform: translateX(40%) translateZ(-200px) rotateY(-25deg) scale(0.9);
  filter: blur(2px);
  z-index: 5;
}

/* Controles Customizados */
.portfolio-controls {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.port-nav-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.port-nav-btn:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .portfolio-container {
    height: 380px;
  }
  .portfolio-stack {
    max-width: 270px;
    height: 360px;
    margin: 0 auto;
  }
  .portfolio-item.prev, .portfolio-item.next {
    display: none; /* Simplifica no mobile para focar na imagem central */
  }
}

address {
  font-style: normal;
  line-height: 1.7;
}

address a {
  color: inherit;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-soft) 86%, var(--card));
  color: var(--text-soft);
}

.footer-main {
  display: grid;
  gap: 1rem;
  padding: 1rem 0 0.7rem;
}

.footer-col {
  min-width: 0;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.65rem;
}

.footer-logo {
  height: 42px;
  width: auto;
}

.footer-logo-dark {
  display: none;
}

html[data-theme="dark"] .footer-logo-light {
  display: none;
}

html[data-theme="dark"] .footer-logo-dark {
  display: block;
}

.footer-value,
.footer-area {
  margin: 0 0 0.4rem;
  line-height: 1.55;
}

.footer-area {
  margin-bottom: 0.55rem;
}

.footer-cta-btn {
  min-height: 44px;
  min-width: 44px;
}

.footer-title {
  margin: 0 0 0.45rem;
  color: var(--text);
  font-size: 0.98rem;
}

.footer-list,
.footer-contact-list,
.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.footer-list a,
.footer-contact-list a,
.footer-social a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  min-width: 44px;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.12rem 0.35rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-list a:hover,
.footer-contact-list a:hover,
.footer-social a:hover {
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  color: var(--text);
}

.footer-list a:focus-visible,
.footer-contact-list a:focus-visible,
.footer-social a:focus-visible,
.footer-legal a:focus-visible,
.footer-legal .footer-legal-action:focus-visible,
.footer-dpo a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.footer-contact-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.12rem 0.35rem;
}

.footer-address {
  margin: 0 0 0.2rem;
  line-height: 1.55;
}

.footer-social {
  grid-template-columns: repeat(3, minmax(0, 42px));
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 10px;
  padding: 0;
}

.footer-social a svg {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 0.85rem 0 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.legal-doc h2 {
  font-size: 1.12rem;
  margin: 1.65rem 0 0.5rem;
  font-weight: 700;
}

.legal-doc h2:first-of-type {
  margin-top: 1.1rem;
}

.legal-doc p,
.legal-doc li {
  line-height: 1.6;
  font-size: 0.95rem;
}

.legal-meta {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.footer-legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  row-gap: 0.35rem;
}

.footer-legal-list li {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.footer-legal-list li + li::before {
  content: "·";
  margin: 0 0.5rem;
  color: var(--text-soft);
  font-weight: 600;
  user-select: none;
  pointer-events: none;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.12rem 0.1rem;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal .footer-legal-action {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
  border-radius: 8px;
  padding: 0.12rem 0.1rem;
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}

.footer-legal .footer-legal-action:hover,
.footer-legal .footer-legal-action:focus-visible {
  text-decoration: underline;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.15rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.footer-dpo-label {
  font-weight: 700;
  margin-right: 0.2rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.86rem;
}

.footer-copy--merged {
  max-width: none;
  line-height: 1.45;
  color: var(--text-soft);
}

.footer-dpo {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.footer-dpo a {
  color: inherit;
  text-decoration: none;
}

.footer-dpo a:hover,
.footer-dpo a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 768px) {
  .footer-bottom {
    gap: 0.65rem;
  }

  .footer-meta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem 1.25rem;
    border-top: none;
    padding-top: 0;
  }

  .footer-dpo {
    flex: 0 1 auto;
    max-width: min(100%, 40ch);
  }

  .footer-copy--merged {
    flex: 0 1 min(100%, 36rem);
    text-align: right;
    margin-left: auto;
  }
}

.floating-whatsapp {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  z-index: 999;
  background: transparent;
  color: inherit;
  text-decoration: none;
  border-radius: 0;
  padding: 0;
  line-height: 0;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.whatsapp-icon {
  width: 58px;
  height: 58px;
  display: block;
}

.whatsapp-icon-dark {
  display: none;
}

html[data-theme="dark"] .whatsapp-icon-light {
  display: none;
}

html[data-theme="dark"] .whatsapp-icon-dark {
  display: block;
}

.desktop-nav-links a.is-active {
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.stat-number {
  color: var(--gold);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-ripple {
  position: absolute;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.4);
  animation: ripple 0.55s ease-out forwards;
}

@keyframes ripple {
  from {
    width: 0;
    height: 0;
    opacity: 0.8;
  }
  to {
    width: 320px;
    height: 320px;
    opacity: 0;
  }
}

.back-to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  z-index: 998;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  padding: 0.56rem 0.84rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.case-modal-instagram:hover {
  filter: brightness(1.05);
}

.case-modal-instagram:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.case-modal-instagram[hidden] {
  display: none;
}

.case-modal-close {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 0.42rem 0.7rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 0.7rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .showcase-viewport {
    scroll-behavior: auto;
  }

  .reveal,
  .card,
  .showcase-card,
  .floating-whatsapp,
  .back-to-top {
    transition: none;
    animation: none;
    transform: none;
    opacity: 1;
  }
} /* Fechamento do @media (prefers-reduced-motion: reduce) */

/* ==========================================================================
   SERVICES SECTION - AB DESIGNERS (PREMIUM & HIGH PERFORMANCE)
   ========================================================================== */
.ab-services {
  padding: 6rem 0;
  background: var(--bg-soft);
  color: var(--text);
  overflow: hidden;
  position: relative;
}

.ab-services-header {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.ab-services-supertitle {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.ab-services-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Wrapper principal dos serviços */
.ab-services-wrapper {
  width: 100%;
  max-width: min(100% - 2rem, 1200px);
  margin: 0 auto;
}

/* Grid de Serviços - Sempre em colunas e linhas */
.ab-services-track {
  display: grid;
  grid-template-columns: 1fr; /* 1 coluna no mobile */
  gap: 1.75rem;
  width: 100%;
  padding: 0;
}

/* 2 colunas em tablets e telas médias */
@media (min-width: 640px) {
  .ab-services-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3 colunas em notebooks e desktops */
@media (min-width: 1024px) {
  .ab-services-track {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Card Individual de Serviço */
.ab-service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
}

/* Sétimo card (Totens) centralizado na última linha para fechar com perfeição */
@media (min-width: 640px) and (max-width: 1023px) {
  .ab-service-card:last-child {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .ab-service-card:last-child {
    grid-column: 1 / -1;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
  }
}

.ab-service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: transform 0.4s ease;
}

.ab-service-icon img,
.ab-service-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.25;
}

.ab-service-badge {
  display: inline-block;
  background: color-mix(in srgb, var(--gold) 15%, transparent);
  color: var(--gold);
  padding: 0.4rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 99px;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
}

.ab-service-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.02em;
}

.ab-service-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 1.75rem 0;
  flex-grow: 1;
}

.ab-service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--gold) 25%, transparent);
  transition: all 0.3s ease;
  margin-top: auto;
}

.ab-service-link:hover {
  background: var(--gold);
  color: #000000;
  border-color: var(--gold);
}

/* Controles: Visíveis e otimizados apenas no Mobile (Carrossel Horizontal) */
.ab-services-controls {
  display: none !important;
}

/* Efeitos de Hover no Desktop */
@media (hover: hover) {
  .ab-service-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px -10px rgba(244, 180, 0, 0.15), var(--shadow);
  }

  .ab-service-card:hover .ab-service-icon {
    transform: scale(1.1);
  }
}

/* ==========================================================================
   CARROSSEL MOBILE & AJUSTES UX (AB SERVICES)
   Redução drástica de espaço vertical e experiência nativa mobile
   ========================================================================== */
@media (max-width: 767px) {
  .ab-services {
    padding: 3.5rem 0 !important;
  }

  .ab-services-header {
    margin-bottom: 2rem !important;
  }

  .ab-services-track {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    gap: 1.25rem !important;
    padding: 0.5rem 0.5rem 1.5rem 0.5rem !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    grid-template-columns: none !important;
  }

  .ab-services-track::-webkit-scrollbar {
    display: none !important;
  }

  .ab-service-card {
    flex: 0 0 85% !important;
    max-width: 85% !important;
    scroll-snap-align: center;
    padding: 1.75rem 1.5rem !important;
    height: auto !important;
    min-height: 340px;
  }

  .ab-service-icon {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 1rem !important;
  }

  .ab-service-title {
    font-size: 1.25rem !important;
  }

  .ab-service-desc {
    font-size: 0.9rem !important;
    margin-bottom: 1.25rem !important;
  }

  .ab-services-controls {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-top: 0.5rem;
  }

  .ab-services-prev,
  .ab-services-next {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .ab-services-prev:active,
  .ab-services-next:active {
    transform: scale(0.92);
    background: var(--gold);
    color: #000;
  }

  .ab-services-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .ab-services-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .ab-services-dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 99px;
  }
}

/* ==========================================================================
   OTIMIZAÇÃO DE MANIPULAÇÃO DE ÍCONES SVG NO DARK MODE
   Garante contraste, visibilidade e estética premium nas versões escuras via CSS Filter
   ========================================================================== */
html[data-theme="dark"] .ab-service-icon img,
html.dark .ab-service-icon img,
html[data-theme="dark"] .hero-check-list img,
html.dark .hero-check-list img {
  filter: invert(1) hue-rotate(180deg) brightness(1.1);
  transition: filter 0.3s ease;
}

/* ==========================================================================
   FAQ SECTION (AEO / GEO / ACESSIBILIDADE)
   ========================================================================== */
.faq-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.faq-item[open] {
  border-color: var(--gold);
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 1.15rem;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover,
.faq-item summary:focus-visible {
  color: var(--gold);
}

.faq-icon {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 1rem;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}