/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.5rem;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 0.95rem; font-weight: 500; text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn--primary { background: var(--c-terracotta-deep); color: #fff; }
.btn--primary:hover { background: #7E4426; }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(251, 247, 240, 0.12); }
.btn--outline { border-color: var(--c-terracotta-deep); color: var(--c-terracotta-deep); }
.btn--outline:hover { background: var(--c-terracotta-deep); color: #fff; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-whatsapp); color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.06); }
.menu-open .whatsapp-float { display: none; }

/* ---------- Aviso de conteúdo ilustrativo ---------- */
.illustrative-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border-radius: 999px;
  border: 1px dashed currentColor;
}

.btn--large { min-height: 56px; padding-inline: 2rem; font-size: 1.05rem; }

/* ---------- Cartões de serviço ---------- */
.service-card {
  background: var(--c-cream);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  border-top: 3px solid var(--c-terracotta);
  box-shadow: var(--shadow);
}
.service-icon { width: 44px; height: 44px; color: var(--c-olive); margin-bottom: var(--space-2); }
.service-card p { margin-bottom: 0; }
.service-note {
  margin-top: var(--space-2) !important;
  font-weight: 500; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-terracotta);
}

/* ---------- Fotos em destaque ---------- */
.featured-item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--c-sand); }
.featured-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.featured-item:hover img { transform: scale(1.04); }
.featured-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1rem 0.8rem;
  background: linear-gradient(0deg, rgba(52, 41, 32, 0.8), rgba(52, 41, 32, 0));
  color: var(--c-white); font-size: 0.9rem;
}
@media (prefers-reduced-motion: reduce) { .featured-item:hover img { transform: none; } }

/* ---------- Passos ---------- */
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--c-terracotta-deep); color: #fff;
  font-family: var(--f-display); font-size: 1.3rem;
  margin-bottom: var(--space-2);
}
.step h3 { font-size: 1.3rem; }
.step p { margin: 0; }

/* ---------- Depoimentos ---------- */
.testimonial {
  margin: 0;
  background: var(--c-white);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3) var(--space-3);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
.testimonial::before {
  content: '“'; position: absolute; top: 0.2rem; left: 1.4rem;
  font-family: var(--f-display); font-size: 4rem; line-height: 1; color: var(--c-gold);
}
.testimonial blockquote { margin: 0 0 var(--space-3); font-size: 1.02rem; }
.testimonial figcaption { display: flex; flex-direction: column; font-size: 0.9rem; }
.testimonial figcaption strong { font-weight: 500; }
.testimonial figcaption span { opacity: 0.7; }

/* ---------- Contatos do rodapé ---------- */
.contact-line { margin: 0 0 0.3rem; opacity: 0.85; }

/* ---------- Antes e depois ---------- */
.before-after {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  touch-action: pan-y;
  user-select: none;
  cursor: ew-resize;
  background: var(--c-sand);
}
.before-after img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-label {
  position: absolute; top: 1rem;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  background: rgba(52, 41, 32, 0.7); color: var(--c-white);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
}
.ba-label--before { left: 1rem; }
.ba-label--after { right: 1rem; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; margin-left: -1.5px;
  background: var(--c-white);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
}
.ba-handle:focus-visible { outline: none; }
.ba-handle:focus-visible .ba-knob { outline: 3px solid var(--c-terracotta); outline-offset: 3px; }
.ba-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-white); color: var(--c-coffee);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.ba-knob svg { width: 22px; height: 22px; }
@media (max-width: 559px) { .before-after { aspect-ratio: 4 / 3; } }

/* ---------- Página Projetos ---------- */
.gallery-section { padding-top: var(--space-5); }
.page-title { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--space-2); }
.filter {
  min-height: 44px; padding: 0.5rem 1.2rem;
  border-radius: 999px; border: 1px solid var(--c-terracotta-deep);
  background: transparent; color: var(--c-terracotta-deep);
  font-size: 0.92rem; font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.filter:hover { background: rgba(181, 104, 60, 0.1); }
.filter[aria-pressed="true"] { background: var(--c-terracotta-deep); color: #fff; }
.gallery-note { font-size: 0.85rem; margin-bottom: var(--space-4); display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
@media (max-width: 899px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 559px) { .gallery { grid-template-columns: 1fr; } }
.gallery-empty { grid-column: 1 / -1; text-align: center; padding: var(--space-5) 0; opacity: 0.75; }

.project-card {
  position: relative; display: block; padding: 0; border: 0;
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--c-sand);
  text-align: left; cursor: zoom-in;
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover img, .project-card:focus-visible img { transform: scale(1.04); }
.project-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  padding: 2.4rem 1rem 0.9rem;
  background: linear-gradient(0deg, rgba(52, 41, 32, 0.85), rgba(52, 41, 32, 0));
  color: var(--c-white); font-size: 0.88rem;
}
.project-info strong { font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; }
@media (prefers-reduced-motion: reduce) { .project-card:hover img, .project-card:focus-visible img { transform: none; } }

/* ---------- Tela cheia ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(30, 24, 18, 0.94); color: var(--c-white);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(30, 24, 18, 0.6); }
.lightbox-figure { margin: 0; max-width: min(1200px, 86vw); display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.lightbox-img { max-height: 80vh; width: auto; border-radius: 6px; }
.lightbox-figure figcaption { font-size: 0.95rem; text-align: center; }
.lightbox-counter { opacity: 0.65; margin-left: 0.6rem; }
.lightbox-nav, .lightbox-close {
  position: absolute; background: rgba(251, 247, 240, 0.12); border: 0; color: var(--c-white);
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(251, 247, 240, 0.25); }
.lightbox-nav svg, .lightbox-close svg { width: 26px; height: 26px; }
.lightbox-nav--prev { left: 2vw; top: 50%; transform: translateY(-50%); }
.lightbox-nav--next { right: 2vw; top: 50%; transform: translateY(-50%); }
.lightbox-close { top: 2vh; right: 2vw; }
@media (max-width: 559px) {
  .lightbox-nav { top: auto; bottom: 3vh; transform: none; }
  .lightbox-figure { max-width: 94vw; }
}

/* ---------- Entrada suave ao rolar ---------- */
.reveal-on .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on .reveal { opacity: 1; transform: none; transition: none; }
}
