:root {
  --bg: #F5F3F0;
  --bg-alt: #E5D4C6;
  --accent: #A2503A;
  --text: #5C3A2D;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */

header {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
  border-bottom: 1px solid rgba(92, 58, 45, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.nav .logo img {
  width: 48px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a {
  transition: color 0.2s ease;
}

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

.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 24px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 64px 0 96px;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin-bottom: 24px;
}

.hero-text .script {
  font-family: 'Caveat', cursive;
  font-size: 28px;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.hero-text p {
  font-size: 16px;
  max-width: 540px;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 14px 32px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.85;
}

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

.hero-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
}

/* Section headings */

.section {
  padding: 96px 0;
  scroll-margin-top: 80px;
}

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

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .script {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Projetos grid */

.projetos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.projeto-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
}

.projeto-card img {
  transition: transform 0.4s ease;
}

.projeto-card:hover img {
  transform: scale(1.05);
}

.projeto-card .label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(92,58,45,0.75), transparent);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tour-card-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(245, 243, 240, 0.95);
  color: var(--text);
  border: none;
  padding: 14px 28px;
  font-size: 13px;
  font-family: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tour-card:hover .tour-card-btn {
  opacity: 1;
}

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

.tour-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(92, 58, 45, 0);
  transition: background 0.2s ease;
}

.tour-card:hover::after {
  background: rgba(92, 58, 45, 0.25);
}

/* Modal Tour 3D */

.tour-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.tour-modal.open {
  display: flex;
}

.tour-modal-content {
  position: relative;
  width: 90vw;
  height: 85vh;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.tour-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

/* Sobre */

.sobre {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.sobre-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
}

.sobre-text h2 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.sobre-text .script {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.sobre-text p {
  margin-bottom: 16px;
  max-width: 560px;
}

.processo {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

.processo-item {
  flex: 1;
}

.processo-item .num {
  font-family: 'Caveat', cursive;
  font-size: 32px;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.processo-item h3 {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.processo-item p {
  font-size: 14px;
  max-width: none;
}

/* Contato / Orçamento */

.contato {
  text-align: center;
}

.contato .section-header h2 {
  margin-bottom: 16px;
}

.contato p {
  max-width: 520px;
  margin: 0 auto 32px;
}

.contato-botoes {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
}

.btn-whatsapp .icon {
  width: 18px;
  height: 18px;
}

.contato-info {
  margin-top: 48px;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.contato-info a {
  color: var(--accent);
}

/* Footer */

footer {
  border-top: 1px solid rgba(92, 58, 45, 0.12);
  padding: 32px 0;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.social-links a {
  display: inline-flex;
  color: var(--text);
  transition: color 0.2s ease;
}

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

.social-links .icon {
  width: 20px;
  height: 20px;
}

/* Responsive */

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 64px;
  }

  .hero-text h1 {
    font-size: 34px;
  }

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

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

  .processo {
    flex-direction: column;
    gap: 24px;
  }
}

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

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
