/* =========================================================
   Marcenaria Muraro — Landing Page Institucional
   Design system: clean, editorial, premium, minimalista
   ========================================================= */

/* ---------- 1. Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body,
h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin: 0;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, textarea, select {
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 2. Design tokens ---------- */
:root {
  /* Paleta — derivada da identidade visual da Muraro (off-white, areia, taupe, grafite) */
  --color-bg: #faf8f5;
  --color-bg-alt: #f2ece2;
  --color-sand: #e8dfd0;
  --color-white: #ffffff;
  --color-taupe: #6b5d4c;
  --color-taupe-light: #8a7a66;
  --color-text: #211e1a;
  --color-text-soft: #4a443c;
  --color-graphite: #262320;
  --color-graphite-alt: #322e29;
  --color-border: rgba(33, 30, 26, 0.12);
  --color-border-light: rgba(255, 255, 255, 0.16);
  --color-whatsapp: #2f5c47;

  /* Tipografia — pilha de fontes de sistema, sem dependências externas */
  --font-heading: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Espaçamento */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 7.5rem;

  /* Layout */
  --container-max: 1240px;
  --container-wide: 1440px;
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Transições */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 3. Base body ---------- */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.2;
}

p {
  max-width: 62ch;
}

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

.container--wide {
  max-width: var(--container-wide);
}

@media (min-width: 768px) {
  .container {
    padding-inline: 40px;
  }
}

@media (min-width: 1280px) {
  .container {
    padding-inline: 56px;
  }
}

/* ---------- 4. Acessibilidade ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--color-graphite);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s var(--ease);
  font-size: 0.9rem;
}

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

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

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

/* ---------- 5. Elementos de texto reutilizáveis ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-taupe);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(1.7rem, 1.35rem + 1.6vw, 2.6rem);
  letter-spacing: -0.01em;
  max-width: 20ch;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--color-text-soft);
  max-width: 58ch;
  margin-top: var(--space-sm);
}

.section-head {
  margin-bottom: var(--space-lg);
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

.section-head--center .section-title,
.section-head--center .section-lead {
  margin-inline: auto;
}

/* ---------- 6. Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
  min-height: 48px;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--color-graphite);
  color: var(--color-white);
  border: 1px solid var(--color-graphite);
}

.btn--primary:hover {
  background: var(--color-taupe);
  border-color: var(--color-taupe);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-text);
  background: var(--color-white);
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  border: 1px solid var(--color-whatsapp);
}

.btn--whatsapp:hover {
  background: #244838;
  border-color: #244838;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.85rem;
  min-height: 40px;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- 7. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 24px rgba(33, 30, 26, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 92px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__logo {
  /* Rodada 3: usa a versão da logo com a margem vazia recortada
     (assets/logo/logotipo-muraro-header.png), o que já aumenta muito a
     presença visual da marca sem precisar de uma altura exagerada. */
  height: 42px;
  width: auto;
  display: block;
}

.brand__text {
  display: none;
}

.main-nav {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions .btn--whatsapp span {
  display: none;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.nav-toggle__box {
  position: relative;
  width: 20px;
  height: 14px;
}

.nav-toggle__box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), top 0.25s var(--ease);
}

.nav-toggle__box span:nth-child(1) { top: 0; }
.nav-toggle__box span:nth-child(2) { top: 6px; }
.nav-toggle__box span:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* Menu mobile (painel) */
.mobile-nav {
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--color-bg);
  z-index: 600;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 32px;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  visibility: hidden;
}

.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.mobile-nav__close {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.mobile-nav__list {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
}

.mobile-nav__list li {
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav__list a {
  display: block;
  padding: 18px 4px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
}

.mobile-nav__footer {
  margin-top: auto;
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-nav__contact {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav__social {
  display: flex;
  gap: 14px;
}

.mobile-nav__social a {
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav__social svg {
  width: 18px;
  height: 18px;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

/* Corrige uma inconsistência de renderização (position:sticky + backdrop-filter
   do header, em alguns navegadores/engines) em que, com a página no topo, o
   header podia permanecer visível por cima do fundo escurecido do lightbox.
   Ocultar o header apenas enquanto o lightbox está aberto (sem remover o
   espaço que ele ocupa, evitando qualquer salto de layout) garante que o
   fundo escurecido cubra toda a tela corretamente. */
body.lightbox-open .site-header {
  visibility: hidden;
}

@media (min-width: 768px) {
  .brand__logo {
    height: 48px;
  }
}

@media (min-width: 1024px) {
  .brand__logo {
    height: 54px;
  }

  .main-nav {
    display: block;
  }

  .main-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(16px, 1.6vw, 34px);
    flex-wrap: nowrap;
  }

  .main-nav__list a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
  }

  .main-nav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--color-text);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s var(--ease);
  }

  .main-nav__list a:hover::after,
  .main-nav__list a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .main-nav__list .link-muted {
    color: var(--color-text-soft);
    font-size: 0.85rem;
  }

  .header-actions .btn--whatsapp span {
    display: inline;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none;
  }
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 92svh;
  color: var(--color-white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--color-graphite); /* evita "flash" claro antes do poster/vídeo pintar */
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* hero-desktop.jpg/webp: recorte paisagem (~16:9) independente, próprio para telas maiores */
  object-position: center 45%;
}

/* hero-mobile.jpg/webp: recorte retrato próprio da foto do Hero para celular — não é o
   desktop reduzido nem esticado, é um arquivo à parte servido via <picture> acima. */
@media (max-width: 767px) {
  .hero__media img {
    object-position: center 30%;
  }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 18, 15, 0.55) 0%,
    rgba(20, 18, 15, 0.18) 32%,
    rgba(20, 18, 15, 0.35) 68%,
    rgba(20, 18, 15, 0.78) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--space-2xl) var(--space-xl);
}

.hero__title {
  font-size: clamp(2.1rem, 1.5rem + 3.2vw, 3.8rem);
  max-width: 15ch;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.hero__subtitle {
  margin-top: var(--space-md);
  font-size: clamp(1rem, 0.94rem + 0.4vw, 1.15rem);
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__actions .btn--outline {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero__actions .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
}

@media (min-width: 768px) {
  .hero {
    min-height: 94svh;
  }
}

@media (min-width: 1280px) {
  .hero {
    min-height: 96svh;
  }
}

@media (min-width: 1024px) {
  .hero__content {
    padding-block: var(--space-2xl) var(--space-xl);
  }
}

/* ---------- 9. Seções gerais ---------- */
.section {
  padding-block: var(--space-xl);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-graphite);
  color: var(--color-white);
}

.section--dark .section-title,
.section--dark h3 {
  color: var(--color-white);
}

.section--dark .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

.section--dark .eyebrow {
  /* Tom mais claro do que o taupe padrão para manter contraste AA sobre fundo escuro */
  color: #b8a891;
}

@media (min-width: 1024px) {
  .section {
    padding-block: var(--space-2xl);
  }
}

/* ---------- 10. Sobre ---------- */
.about {
  display: grid;
  gap: var(--space-lg);
}

.about__text p + p {
  margin-top: var(--space-md);
}

.about__text p {
  font-size: 1.05rem;
  color: var(--color-text-soft);
}

.about__highlight {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  display: grid;
  gap: var(--space-md);
}

.about__highlight-item h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.about__highlight-item p {
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

@media (min-width: 768px) {
  .about__highlight {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .about {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: var(--space-2xl);
  }

  .about__highlight {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
  }
}

/* ---------- 11. Solução completa (Como trabalhamos) ---------- */
.solution-grid {
  display: grid;
  gap: var(--space-lg);
}

.solution-card {
  display: flex;
  flex-direction: column;
}

.solution-card__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-sand);
}

.solution-card__media picture,
.solution-card__media img {
  display: block;
  width: 100%;
}

.solution-card__media img {
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.solution-card__body {
  padding-top: var(--space-md);
}

.solution-card__body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.solution-card__body p {
  font-size: 0.98rem;
  color: var(--color-text-soft);
}

@media (min-width: 640px) {
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg) var(--space-md);
  }
}

@media (min-width: 1280px) {
  .solution-grid {
    gap: var(--space-2xl) var(--space-lg);
  }
}

/* ---------- 12. Projetos — amostra na Home ---------- */
.projects-sample-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
  gap: var(--space-sm);
}

.projects-sample-item {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-sand);
}

.projects-sample-item picture {
  display: block;
  width: 100%;
}

.projects-sample-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

/* O comportamento "wide" (ocupar 2 colunas) é exclusivo do desktop — ver regra em
   @media (min-width: 640px) mais abaixo. No mobile, TODOS os 6 cards ficam com o
   mesmo tamanho, em grade fixa de 2 colunas x 3 linhas, sem nenhum item "solto". */

.projects-sample-item:hover img,
.projects-sample-item:focus-visible img {
  transform: scale(1.04);
}

.projects-sample-item:focus-visible {
  outline: 2px solid var(--color-taupe);
  outline-offset: -3px;
}

.projects-sample-item__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-white);
  background: linear-gradient(180deg, rgba(20, 18, 15, 0) 0%, rgba(20, 18, 15, 0.65) 100%);
  pointer-events: none;
}

.projects-sample-cta {
  margin-top: var(--space-lg);
  text-align: center;
}

@media (min-width: 640px) {
  .projects-sample-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Os 6 cards ficam com o mesmo tamanho também no desktop (grade 3x2 uniforme).
     Um card "wide" (2 colunas) deixava uma linha desbalanceada (5 cards normais +
     1 duplo, em uma grade de 6) e um espaço vazio no fim da seção — por isso o
     recurso não é usado aqui nesta rodada. */
}

@media (min-width: 1024px) {
  .projects-sample-grid {
    gap: var(--space-md);
  }
}

/* ---------- 12b. Cabeçalho da página Projetos ---------- */
.projects-hero {
  padding-bottom: var(--space-md);
}

.projects-hero__title {
  max-width: 24ch;
}

/* ---------- 13. Galeria ---------- */
.gallery-section .section-lead {
  max-width: 62ch;
}

/* Filtros */
.filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 6px;
  margin-bottom: var(--space-lg);
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-height: 42px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.filter-pill:hover {
  border-color: var(--color-text);
}

.filter-pill.is-active {
  background: var(--color-graphite);
  color: var(--color-white);
  border-color: var(--color-graphite);
}

/* Grid editorial */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-flow: dense;
  gap: var(--space-sm);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-sand);
  margin: 0;
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item__trigger {
  display: block;
  width: 100%;
  padding: 0;
  cursor: zoom-in;
  line-height: 0;
}

.gallery-item picture {
  display: block;
  width: 100%;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  transition: transform 0.5s var(--ease);
}

.gallery-item--wide img {
  aspect-ratio: 4 / 3;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item__trigger:focus-visible {
  outline: 2px solid var(--color-taupe);
  outline-offset: -3px;
}

.gallery-item__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px;
  font-size: 0.88rem;
  color: var(--color-white);
  background: linear-gradient(180deg, rgba(20, 18, 15, 0) 0%, rgba(20, 18, 15, 0.62) 100%);
  pointer-events: none;
}

.gallery-note {
  margin-top: var(--space-md);
  font-size: 0.85rem;
  color: var(--color-text-soft);
  font-style: italic;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item--wide {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

@media (min-width: 1440px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- 13b. Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 16, 14, 0.94);
}

.lightbox__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 76px 20px 40px;
}

.lightbox__figure {
  position: relative;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.lightbox__figure picture {
  display: flex;
  max-width: 100%;
  max-height: 74svh;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: 74svh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  background: var(--color-graphite-alt);
}

.lightbox__caption {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  text-align: center;
  max-width: 60ch;
  padding-inline: 12px;
}

.lightbox__counter {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.lightbox__control {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  transition: background-color 0.2s var(--ease);
}

.lightbox__control:hover,
.lightbox__control:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox__control svg {
  width: 20px;
  height: 20px;
}

.lightbox__close {
  top: 18px;
  right: 18px;
}

.lightbox__nav--prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

@media (min-width: 768px) {
  .lightbox__close {
    top: 24px;
    right: 24px;
  }

  .lightbox__nav--prev {
    left: 24px;
  }

  .lightbox__nav--next {
    right: 24px;
  }

  .lightbox__control {
    width: 52px;
    height: 52px;
  }
}

/* ---------- 14. Contato ---------- */
.contact {
  display: grid;
  gap: var(--space-lg);
}

.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
}

.contact-card__whatsapp {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-card__whatsapp .btn {
  width: 100%;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-list__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-list__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-taupe);
  margin-top: 3px;
}

.contact-list__icon svg {
  width: 100%;
  height: 100%;
}

.contact-list__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-soft);
  margin-bottom: 3px;
}

.contact-list__value {
  font-size: 1.02rem;
  word-break: break-word;
}

.contact-list__value a:hover {
  text-decoration: underline;
}

.contact-social {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-social span {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.social-links a:hover {
  border-color: var(--color-text);
  background: var(--color-bg-alt);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 1024px) {
  .contact {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

/* ---------- 15. Footer ---------- */
.site-footer {
  background: var(--color-graphite);
  color: rgba(255, 255, 255, 0.82);
  padding-block: var(--space-xl) var(--space-lg);
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-brand__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-white);
}

.footer-desc {
  margin-top: var(--space-sm);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 42ch;
}

.footer-heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-sm);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}

.footer-list a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-legal {
  border-top: 1px solid var(--color-border-light);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.footer-legal__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }

  .footer-legal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- 16. Botão flutuante WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 400;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(24, 43, 34, 0.35);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  background: #244838;
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
}

@supports (bottom: env(safe-area-inset-bottom)) {
  .whatsapp-float {
    bottom: calc(18px + env(safe-area-inset-bottom));
    right: calc(18px + env(safe-area-inset-right));
  }
}

@media (min-width: 1024px) {
  .whatsapp-float {
    right: 32px;
    bottom: 32px;
    width: 60px;
    height: 60px;
  }
}

/* ---------- 17. Página Política de Privacidade ---------- */
.policy {
  padding-block: var(--space-xl) var(--space-2xl);
}

.policy__header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.policy__header .section-title {
  max-width: none;
}

.policy__updated {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.policy__body {
  max-width: 72ch;
}

.policy__body h2 {
  font-size: 1.35rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.policy__body h2:first-child {
  margin-top: 0;
}

.policy__body p {
  color: var(--color-text-soft);
  margin-bottom: var(--space-sm);
  max-width: 68ch;
}

.policy__body ul {
  color: var(--color-text-soft);
  margin-bottom: var(--space-sm);
  padding-left: 1.2rem;
  list-style: disc;
}

.policy__body li {
  margin-bottom: 6px;
}

.policy__body a {
  color: var(--color-taupe);
  text-decoration: underline;
}

.policy__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.policy__back:hover {
  color: var(--color-text);
}

.policy__back svg {
  width: 16px;
  height: 16px;
}

/* ---------- 18. Utilidades ---------- */
.mt-0 { margin-top: 0; }

@media (min-width: 1440px) {
  html {
    font-size: 17px;
  }

  .brand__logo {
    height: 60px;
  }
}
