:root {
  --bg: #17140f;
  --bg-alt: #1f1b14;
  --cream: #f4efe6;
  --cream-alt: #eae3d5;
  --accent: #c69a4e;
  --accent-dark: #a67c34;
  --text-light: #f4efe6;
  --text-muted: #cabfa9;
  --text-dark: #1c1912;
  --text-dark-muted: #5a5142;
  --radius: 4px;
  --max-width: 1140px;
  --serif: "Cormorant Garamond", serif;
  --sans: "Inter", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg) url("../assets/bg-blueprint.png") center / cover no-repeat fixed;
  color: var(--text-light);
  line-height: 1.6;
}

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.4rem; margin-bottom: 8px; }

p { margin: 0 0 16px; }

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

.eyebrow, .sobre__tag {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--accent {
  background: var(--accent);
  color: var(--text-dark);
}
.btn--accent:hover { background: var(--accent-dark); }

.btn--outline {
  border-color: var(--text-light);
  color: var(--text-light);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--outline-light {
  border-color: rgba(244,239,230,0.5);
  color: var(--text-light);
}
.btn--outline-light:hover { border-color: var(--text-light); }

.btn--small { padding: 10px 18px; font-size: 0.85rem; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23,20,15,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(244,239,230,0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-light);
}

/* Hero */
.hero {
  padding: 140px 0 100px;
  background:
    radial-gradient(circle at 80% 0%, rgba(198,154,78,0.10), transparent 55%),
    linear-gradient(180deg, rgba(23,20,15,0.55) 0%, rgba(23,20,15,0.85) 100%);
}
.hero__inner { max-width: 760px; }
.hero__lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
}
.hero__signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--accent);
  margin: 4px 0 28px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Sobre */
.sobre { padding: 90px 0; background: var(--bg-alt); }
.sobre__inner { max-width: 720px; }
.sobre p { color: var(--text-muted); font-size: 1.05rem; }

/* Section head shared */
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-lead { color: var(--text-muted); }

/* Servicos */
.servicos { padding: 100px 0; background: var(--bg); overflow: hidden; }
.servicos__carousel {
  overflow-x: hidden;
  overflow-y: visible;
  padding: 28px 0 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.servicos__track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: servicos-scroll 42s linear infinite;
}
.servicos__track:hover { animation-play-state: paused; }
@keyframes servicos-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.card {
  flex: 0 0 auto;
  width: 300px;
  background: var(--bg-alt);
  border: 1px solid rgba(244,239,230,0.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease,
    filter 0.3s ease, opacity 0.3s ease;
}
.servicos__track .card:hover {
  transform: translateY(-14px);
  border-color: rgba(198,154,78,0.4);
  box-shadow: 0 20px 36px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
}
.servicos__track:hover .card:not(:hover) {
  filter: blur(2px);
  opacity: 0.6;
}
.card__img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  background:
    repeating-linear-gradient(45deg, rgba(198,154,78,0.08) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #241f16, #171410);
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__icon {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* Projetos */
.projetos { padding: 100px 0; background: var(--bg-alt); }
.projetos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.proj-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(244,239,230,0.08);
}
.proj-card__ph {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, rgba(198,154,78,0.08) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #241f16, #171410);
}
.proj-card--real {
  display: block;
}
.proj-card--real img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.proj-card--real:hover img { transform: scale(1.04); }
.proj-card span {
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-light);
  background: rgba(23,20,15,0.6);
  padding: 4px 10px;
  border-radius: 3px;
}

/* Destaque */
.destaque { padding: 100px 0; background: var(--bg); }
.destaque__strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.destaque__strip::-webkit-scrollbar { display: none; }
.destaque__strip.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.destaque__strip figure {
  margin: 0;
  flex: 0 0 auto;
  width: min(78vw, 300px);
  scroll-snap-align: start;
  user-select: none;
}
.destaque__strip img { -webkit-user-drag: none; }
.destaque__strip img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(244,239,230,0.08);
}
.destaque__strip figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Orcamento */
.orcamento {
  padding: 110px 0;
  background: linear-gradient(160deg, var(--accent-dark), #8a611f);
  color: var(--text-dark);
}
.orcamento__inner { max-width: 640px; text-align: left; }
.orcamento h2 { color: var(--text-dark); }
.orcamento p { color: rgba(28,25,18,0.75); font-size: 1.05rem; }
.orcamento__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.orcamento .btn--outline-light { border-color: rgba(28,25,18,0.4); color: var(--text-dark); }
.orcamento .btn--outline-light:hover { border-color: var(--text-dark); }

/* Contato */
.contato { padding: 100px 0; background: var(--bg); }
.contato__inner { max-width: 620px; }
.form { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.form__row { display: flex; flex-direction: column; gap: 8px; }
.form label { font-size: 0.9rem; color: var(--text-muted); }
.form input, .form textarea {
  background: var(--bg-alt);
  border: 1px solid rgba(244,239,230,0.15);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text-light);
  font-family: var(--sans);
  font-size: 0.95rem;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form__note { font-size: 0.88rem; color: var(--text-muted); margin: 4px 0 0; }
.form__note a { color: var(--accent); font-weight: 600; }
.hidden-field { position: absolute; left: -9999px; }

/* Footer */
.footer { background: var(--bg-alt); padding: 40px 0; border-top: 1px solid rgba(244,239,230,0.08); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--text-muted); font-size: 0.9rem; }
.footer__links a:hover { color: var(--accent); }
.footer__copy { color: var(--text-muted); font-size: 0.82rem; margin: 0; width: 100%; text-align: center; }

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid rgba(244,239,230,0.08);
  }
  .nav.is-open { max-height: 320px; }
  .nav a { padding: 16px 24px; border-top: 1px solid rgba(244,239,230,0.06); }
  .nav-toggle { display: flex; }
  .header .btn--small { display: none; }
}
