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

:root {
  --bg: #F6EFD2;
  --bg-alt: #f1eacd;
  --text: #2b2b2b;
  --muted: #7A7060;
  --accent: #E43636;
  --accent-hv: #A93226;
  --border: #CEC8B8;
  --white: #F9F6F0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: brandon-grotesque, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 5%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-name {
  font-family: barlow-condensed, sans-serif;
  font-size: 1.5rem;
  letter-spacing: .03em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ── LAYOUT ── */
section {
  padding: 7rem 5%;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── HELPERS ── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 2rem;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

h1 {
  font-family: barlow-condensed, sans-serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.18;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.5rem;
}

h2 {
  font-family: barlow-condensed, sans-serif;
  font-size: clamp(1.75rem, 2.8vw, 3rem);
  line-height: 1.22;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .85rem 2rem;
  transition: background .2s, transform .15s;
}

.btn:hover {
  background: var(--accent-hv);
  transform: translateY(-2px);
}

.placeholder-img {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
} 

.placeholder-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 16px,
      rgba(0, 0, 0, .025) 16px, rgba(0, 0, 0, .025) 17px);
}

/* ── HERO ── */
#hero {
  padding-top: 9rem;
  padding-bottom: 7rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 400px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-visual {
  aspect-ratio: 4/3;
}

/* ── CARROSSEL ── */
.carousel {
  position: relative;
  overflow: hidden;
  /* border: 1px solid var(--border); */
  aspect-ratio: 1/1;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-slide .placeholder-img {
  height: 150%;
  border: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s, color .2s;
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.carousel-prev {
  left: .75rem;
}

.carousel-next {
  right: .75rem;
}

.carousel-dots {
  position: absolute;
  bottom: .85rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .45rem;
  z-index: 2;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background .25s, transform .25s;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

/* ── SOBRE ── */
#sobre {
  background: var(--bg);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.foto-placeholder {
  aspect-ratio: 3/4;
}

.sobre-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sobre-text {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--muted);
}

/* ── SERVIÇOS ── */
#servicos {
  background: var(--bg-alt);
}

.servicos-header {
  margin-bottom: 3.5rem;
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.servico-card {
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}

.servico-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
}

.servico-img {
  aspect-ratio: 1/1;
  width: 100%;
  height: auto;
}

.servico-img img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  display: block;
}

.servico-body {
  padding: 1.5rem;
}

.servico-title {
  font-family: barlow-condensed, sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: .6rem;
}

.servico-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ── CREDIBILIDADE ── */
#credibilidade {
  background: var(--bg);
  text-align: center;
}

.cred-text {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 3rem;
}

.logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.logo-box {
  width: 148px;
  height: 50px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── PROCESSO ── */
#processo {
  background: var(--bg-alt);
}

.processo-header {
  margin-bottom: 3.5rem;
}

.processo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  list-style-type: none;
}

.passo-num {
  font-family: barlow-condensed, sans-serif;
  font-size: 6rem;
  font-weight: 400;
  line-height: 1;
  color: #a93126a2;
  margin-bottom: 1rem;
}

.passo-title {
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: .5rem;
}

.passo-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ── PORTFÓLIO ── */
#portfolio {
  background: var(--bg);
}

.portfolio-header {
  margin-bottom: 3rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-item {
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
}

.portfolio-img {
  width: 100%;
  aspect-ratio: 1/1;
  transition: transform .4s ease;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.portfolio-info {
  padding: .85rem 1rem .9rem;
}

.portfolio-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.portfolio-type {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .15rem;
}

/* ── LIGHTBOX ── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  z-index: 200;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 201;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.lightbox.open,
.lightbox-overlay.open {
  display: flex;
}

.lightbox-content {
  background: var(--bg);
  width: 100%;
  max-width: 700px;
  padding: 2.5rem 2.5rem 2rem;
  animation: slideUp .3s ease;
  position: relative;
}

/* Cabeçalho */
.lightbox-header {
  margin-bottom: 1.75rem;
}

.lightbox-type {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .4rem;
}

.lightbox-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .6rem;
}

.lightbox-desc {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--muted);
}

/* Imagem principal */
.lightbox-gallery {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.lb-img-wrap {
  flex: 1;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  aspect-ratio: 1/1;

}

.lb-img {
  width: 100%;
  display: block;
  max-height: auto;
  object-fit: cover;
  transition: opacity .25s ease;
}

.lb-img.transitioning {
  opacity: 0;
}

.lb-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}

.lb-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Counter + dots */
.lb-dots-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.lb-dots {
  display: flex;
  gap: .4rem;
}

.lb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.lb-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.lb-counter {
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .06em;
}

/* Thumbnails */
.lb-thumbs {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.lb-thumb {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: .6;
  transition: opacity .2s, border-color .2s;
}

.lb-thumb.active {
  border-color: var(--accent);
  opacity: 1;
}

.lb-thumb-placeholder {
  width: 72px;
  height: 52px;
  background: var(--bg-alt);
  border: 2px solid transparent;
  cursor: pointer;
  opacity: .6;
  transition: opacity .2s, border-color .2s;
}

.lb-thumb-placeholder.active {
  border-color: var(--accent);
  opacity: 1;
}

/* Fechar */
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .9rem;
  transition: background .2s, color .2s;
}

.lightbox-close:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 600px) {
  .lightbox-content {
    padding: 1.5rem 1rem;
  }

  .lb-img {
    max-height: 280px;
  }

  .lb-thumbs {
    gap: .4rem;
  }

  .lb-thumb,
  .lb-thumb-placeholder {
    width: 56px;
    height: 40px;
  }
}



/* ── CTA ── */
#contato {
  background: var(--bg-alt);
  text-align: center;
  padding: 8rem 5%;
}

#contato-titulo {
  font-size: clamp(2.6rem, 4vw, 5rem);
}

.cta-sub {
  font-size: clamp(1rem, 2vw, 2rem);
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.75rem 5%;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-name {
  font-size: .82rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: .82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

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

/* ── ANIMAÇÕES ── */
.fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}

.fade.show {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVO ── */
@media (max-width: 900px) {
  .processo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .hero-grid,
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

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