/* ===================================================================
   DESIGN TOKENS
   Herdado da identidade "Tudo é Acessibilidade" (#240E20) + acentos
   quentes que remetem a peças de montar, sem copiar a marca LEGO.
   =================================================================== */
:root {
  --bg: #180814;
  --bg-raised: #2E1422;
  --bg-card: #452037;
  --line: #8C5069;

  --text: #FBF5F8;
  --text-muted: #DDBFD4;
  --text-faint: #B790A8;

  --accent-gold: #F2B705;
  --accent-gold-ink: #241206;
  --accent-teal: #5FC2B6;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --font-mono: 'Work Sans', system-ui, sans-serif;

  --wrap: 1120px;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
}

/* ===================================================================
   RESET & BASE
   =================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

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

/* Fotos .jpg com cantos quadrados e borda branca com respiro de 8px */
img[src*=".jpg"],
img[src*=".jpeg"],
img[src*=".JPG"],
img[src*=".JPEG"] {
  border-radius: 0;
  background-color: #ffffff;
  padding: 8px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--accent-gold);
  margin: 0 0 0.9em;
}

.center {
  text-align: center;
}

.eyebrow.center {
  display: block;
}

/* Accessibility helpers */
.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;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--accent-gold);
  color: var(--accent-gold-ink);
  padding: 10px 16px;
  border-radius: var(--radius-s);
  font-weight: 600;
  z-index: 100;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible,
:focus {
  outline: 2px dashed var(--accent-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(27, 9, 23, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  height: 68px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: height 0.2s ease;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-list a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--accent-gold);
  color: var(--accent-gold-ink) !important;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background-color: #D9A000;
}

.nav-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  cursor: pointer;
  z-index: 101;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus {
  border-color: var(--accent-gold);
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, top 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-toggle-bar::before {
  position: absolute;
  top: -6px;
}

.nav-toggle-bar::after {
  position: absolute;
  top: 6px;
}

/* Hamburger to X animation when open */
.nav-toggle.is-active .nav-toggle-bar {
  background: transparent;
}

.nav-toggle.is-active .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--accent-gold);
}

.nav-toggle.is-active .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--accent-gold);
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(242, 183, 5, 0.14), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(95, 194, 182, 0.12), transparent 65%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--wrap);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-title {
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  margin-bottom: 0.55em;
}

.hl {
  color: var(--accent-gold);
}

.hero-lede {
  font-size: 1.05rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.hero-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border-radius: var(--radius-m);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--accent-gold-ink);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

/* ===================================================================
   SECTIONS (general)
   =================================================================== */
.section {
  padding: 88px 0;
}

.section h2 {
  max-width: 640px;
}

.section.center,
.center {
  margin-left: auto;
  margin-right: auto;
}

/* Método */
.metodo-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.point {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.point-mark {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--accent-teal);
  transform: rotate(45deg);
}

.point h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.point p {
  margin: 0;
  font-size: 0.95rem;
}

.metodo-photos {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.metodo-photos figure {
  margin: 0;
}

.metodo-photos img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 0;
  background-color: #ffffff;
  padding: 8px;
  border: none;
}

/* Atuação */
.atuacao {
  background: var(--bg-raised);
}

.cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 34px;
}

.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-teal);
  border: 1px solid var(--accent-teal);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 16px;
}

.card-list {
  margin-top: 16px;
}

.card-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent-gold);
}

/* Processo */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step {
  border-top: 2px solid var(--accent-gold);
  padding-top: 18px;
}

.step-n {
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 10px;
}

.step h3 {
  margin-bottom: 6px;
}

.step p {
  font-size: 0.93rem;
  margin: 0;
}

/* Cases */
.case-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.case-block>* {
  min-width: 0;
}

.case-block:first-of-type {
  margin-top: 48px;
  padding-top: 0;
  border-top: none;
}

/* Inversão limpa de colunas alinhadas na mesma linha */
.case-block.reverse .case-gallery {
  grid-column: 2;
  grid-row: 1;
}

.case-block.reverse .case-copy {
  grid-column: 1;
  grid-row: 1;
}

.case-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.case-gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0;
  background-color: #ffffff;
  padding: 8px;
  border: none;
}

.case-gallery img:first-child {
  grid-column: 1 / -1;
  height: 220px;
}

/* Galeria com imagem única (Basepex / Senac) */
.case-gallery.single {
  display: block;
}

.case-gallery.single img {
  width: 100%;
  height: 320px;
  max-height: 320px;
  object-fit: cover;
  border-radius: 0;
  background-color: #ffffff;
  padding: 8px;
  border: none;
}

.case-copy h3 {
  margin-bottom: 10px;
}

.case-result {
  color: var(--text);
  font-size: 0.95rem;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.case-result strong {
  color: var(--accent-gold);
}

.quote {
  margin: 56px auto 0;
  max-width: 640px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
}

.quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-faint);
  margin-top: 14px;
}

/* Clientes */
.clientes {
  background: var(--bg-raised);
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  margin-top: 40px;
  align-items: center;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.client-logo {
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* Contato */
.contato-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.contato-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
  border: none;
  padding: 0;
}

.contato-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 16px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.contato-line:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.contato-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.contato-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contato-icon {
  color: var(--accent-gold);
  flex-shrink: 0;
}

.btn-copy-email,
.btn-copy-phone {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-copy-email:hover,
.btn-copy-phone:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: var(--bg-card);
}

.btn-copy-email.copied,
.btn-copy-phone.copied {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  background: rgba(95, 194, 182, 0.12);
}

.contato-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.contato-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

/* ===================================================================
   GRID UTILITIES (Modelo Academia de Acessibilidade / Rodapé)
   =================================================================== */
.container {
  max-width: var(--wrap, 1160px);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.grid-container {
  display: flex;
  flex-wrap: wrap;
  margin-left: -16px;
  margin-right: -16px;
  align-items: center;
}

.grid-item {
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .large-span-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    width: 66.666667%;
  }

  .large-span-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    width: 33.333333%;
  }
}

@media (max-width: 768px) {
  .medium-span-12,
  .small-span-12 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .grid-container {
    row-gap: 24px;
  }

  .hide-mobile {
    display: none;
  }
}

.txt-center {
  text-align: center;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

/* ===================================================================
   FOOTER (bg-rodape - Modelo Tudo é Acessibilidade)
   =================================================================== */
.bg-rodape {
  background-color: #FFC438;
  color: #1B0917;
  padding: 44px 0;
  font-size: 0.96rem;
  line-height: 1.6;
}

.bg-rodape p {
  color: #1B0917;
  margin: 0 0 1rem 0;
  font-size: 0.96rem;
  line-height: 1.6;
}

.bg-rodape p:last-child {
  margin-bottom: 0;
}

.bg-rodape strong {
  font-weight: 700;
  color: #1B0917;
}

.bg-rodape a {
  color: #1B0917;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.bg-rodape a:hover {
  opacity: 0.8;
}

.bg-rodape .logo {
  display: inline-block;
  text-decoration: none;
}

.bg-rodape .logo img {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.bg-rodape .footer-legal {
  font-size: 0.82rem;
  opacity: 0.85;
  margin-top: 12px;
}

/* ===================================================================
   SCROLL REVEAL
   =================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

/* ===================================================================
   RESPONSIVE DESIGN SYSTEM (MOBILE OPTIMIZED)
   =================================================================== */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 32px 0;
  }

  .hero-media {
    display: none;
  }

  .metodo-grid,
  .contato-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .metodo-photos {
    grid-template-columns: 1fr;
  }

  .cards-2 {
    grid-template-columns: 1fr;
  }

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

  .case-block {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .case-block.reverse .case-gallery,
  .case-block.reverse .case-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-note {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 18px;
  }

  .section {
    padding: 44px 0;
  }

  .brand-logo {
    height: 48px;
  }

  .hero {
    padding: 72px 0 56px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.5rem);
  }

  .hero-title br {
    display: inline;
  }

  .hero-lede {
    font-size: 0.98rem;
    margin-bottom: 56px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-top: 48px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(46, 20, 34, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
  }

  .nav-list.open {
    max-height: 85vh;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list a {
    display: block;
    padding: 14px 20px;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
  }

  .nav-cta {
    margin: 14px 18px 20px;
    display: block !important;
    text-align: center;
    width: calc(100% - 36px) !important;
  }

  .metodo-photos img {
    height: 200px;
  }

  .card {
    padding: 20px 16px;
    border-radius: var(--radius-m);
  }

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

  .case-block {
    margin-top: 36px;
    padding-top: 36px;
    gap: 20px;
  }

  .case-gallery img {
    height: 110px;
  }

  .case-gallery img:first-child {
    height: 160px;
  }

  .case-gallery.single img {
    height: 200px;
  }

  .quote {
    font-size: 1.05rem;
    margin-top: 36px;
  }

  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
  }

  .contato-line {
    padding: 14px 16px;
    border-radius: var(--radius-m);
  }

  .contato-value {
    font-size: clamp(0.82rem, 3.8vw, 1rem);
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 400px) {
  .wrap {
    padding: 0 14px;
  }

  .brand-logo {
    height: 42px;
  }
}