:root {
  --osso: #f8f7f4;
  --nevoa: #e9e8e4;
  --carvao: #1b1b1b;
  --grafite: #3f3f3f;
  --grafite-dark: #262626;
  --pedra: #9a9890;
  --pedra-dark: #6b6a64;
  --linha: #d9d8d3;
  --oliva: #4a5a2a;
  --oliva-escuro: #3d4b22;
  --salvia: #7e8f6c;
  --musgo: #b9c6a3;
  --musgo-claro: #eef2e6;
  --font-display: "Syne", system-ui, sans-serif;
  --font-sans: "Instrument Sans", system-ui, sans-serif;
  --radius: 0.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--osso);
  color: var(--carvao);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 500; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 500; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { height: 2.25rem; padding: 0 1rem; font-size: .875rem; }
.btn-lg { height: 3rem; padding: 0 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--oliva); color: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.btn-primary:hover { background: var(--oliva-escuro); }
.btn-primary:disabled { opacity: .7; cursor: wait; }
.btn-light { background: var(--osso); color: var(--carvao); border-color: rgb(248 247 244 / .6); }
.btn-light:hover { background: rgb(248 247 244 / .9); }
.btn-ghost-light { color: var(--osso); border-color: rgb(248 247 244 / .7); background: transparent; }
.btn-ghost-light:hover { background: rgb(248 247 244 / .1); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40;
  transition: background-color .3s, box-shadow .3s, color .3s;
  color: var(--osso);
}
.site-header.scrolled { background: rgb(248 247 244 / .96); color: var(--carvao); box-shadow: 0 1px 8px rgb(0 0 0 / .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.5rem; }
.logo { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; }
.logo-name { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: .14em; }
.logo-sub { margin-top: .3rem; font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; opacity: .85; }
.logo-dark { color: var(--carvao); }
.nav { display: none; gap: 2rem; font-size: .875rem; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:hover { opacity: .65; }
@media (min-width: 768px) { .nav { display: flex; } }

/* Hero */
.hero { position: relative; display: flex; align-items: center; min-height: 92svh; padding-top: 5rem; background: var(--carvao); color: var(--osso); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgb(27 27 27 / .65); }
.hero-content { position: relative; padding-top: 6rem; padding-bottom: 6rem; }
.hero-brand { margin-bottom: 2rem; font-family: var(--font-display); font-weight: 600; font-size: 2rem; letter-spacing: .14em; line-height: 1; }
.hero-brand span { display: block; margin-top: .5rem; font-family: var(--font-sans); font-size: .7rem; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; }
.hero h1 { max-width: 56rem; font-size: 2.25rem; line-height: 1.08; }
.hero-sub { max-width: 42rem; margin-top: 1.5rem; font-size: 1.125rem; color: var(--nevoa); }
.hero-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 2.25rem; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
@media (min-width: 768px) {
  .hero-brand { font-size: 2.75rem; }
  .hero h1 { font-size: 3.75rem; }
  .hero-sub { font-size: 1.5rem; }
}

.reveal-up { animation: reveal-up 700ms ease-out both; }
@keyframes reveal-up { from { opacity: .01; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.section.dark { background: var(--carvao); }
.section.muted { background: var(--nevoa); }
.eyebrow { margin-bottom: .75rem; font-size: .75rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--oliva); }
.eyebrow-light { color: var(--musgo); }
.section-title { max-width: 48rem; margin-bottom: 2.5rem; font-size: 1.875rem; line-height: 1.2; }
.section-title.light { color: var(--osso); }
@media (min-width: 768px) { .section-title { margin-bottom: 3.5rem; font-size: 2.25rem; } }

/* Projects carousel */
.carousel { overflow: hidden; }
.carousel-track { display: flex; transition: transform .7s ease-out; }
.slide { flex: 0 0 100%; padding: 0 .375rem; }
@media (min-width: 768px) { .slide { flex-basis: 33.3333%; } }
.slide img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: 1rem; background: var(--grafite-dark); }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 1.75rem; }
.dots { display: flex; gap: .5rem; }
.dot { width: .75rem; height: .375rem; padding: 0; border: 0; border-radius: 999px; background: var(--musgo); transition: width .3s, background-color .3s; }
.dot.active { width: 2rem; background: var(--oliva); }
.arrows { display: flex; gap: .5rem; }
.arrow { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--salvia); border-radius: .5rem; background: var(--osso); color: var(--oliva); font-size: 1.4rem; line-height: 1; }
.arrow:hover { background: var(--musgo-claro); }

/* Reviews */
.reviews { background: var(--musgo-claro); border-block: 1px solid rgb(185 198 163 / .6); }
.reviews-head { text-align: center; }
.reviews-head .eyebrow { letter-spacing: .2em; }
.rating { display: inline-flex; align-items: center; gap: 1rem; margin-top: 1rem; text-align: left; }
.rating-score { font-family: var(--font-display); font-size: 3.75rem; font-weight: 600; line-height: 1; }
.rating-label { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1; }
.stars { margin-top: .35rem; color: #fbbc05; letter-spacing: .1em; }
.rating-count { margin-top: 1rem; font-size: .875rem; color: var(--grafite); }
.google { font-weight: 500; }
.g-blue { color: #4285f4; } .g-red { color: #ea4335; } .g-yellow { color: #fbbc05; } .g-green { color: #34a853; }
.reviews-track { display: flex; gap: 1rem; margin-top: 2.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .25rem; }
.reviews-track::-webkit-scrollbar { display: none; }
.review { flex: 0 0 86%; scroll-snap-align: center; padding: 1.5rem; border-radius: 1rem; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 0 0 1px rgb(185 198 163 / .5); }
@media (min-width: 768px) { .review { flex-basis: calc((100% - 2rem) / 3); scroll-snap-align: start; } }
.review-head { display: flex; align-items: center; gap: .75rem; }
.avatar { display: flex; align-items: center; justify-content: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: rgb(126 143 108 / .2); color: var(--oliva); font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; }
.review-name { font-weight: 600; }
.review p.review-text { margin-top: .75rem; font-size: .94rem; line-height: 1.65; color: var(--grafite); display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }

/* Features */
.features { display: grid; gap: 1px; background: var(--grafite); }
@media (min-width: 768px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 2rem; background: var(--grafite-dark); }
@media (min-width: 768px) { .feature { padding: 2.5rem; } }
.feature-icon { display: flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--oliva); color: var(--musgo); }
.feature-icon svg { width: 1.75rem; height: 1.75rem; }
.feature h3 { margin-top: 1.75rem; font-size: 1.25rem; font-weight: 600; color: var(--osso); }
.feature p { margin-top: .75rem; line-height: 1.65; color: var(--nevoa); }

/* Split */
.split { display: grid; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; min-height: 620px; } }
.split-img { width: 100%; height: 360px; object-fit: cover; }
@media (min-width: 768px) { .split-img { height: 100%; } }
.split-content { display: flex; align-items: center; padding: 4rem 1.5rem; }
@media (min-width: 768px) { .split-content { padding: 4rem; } }
.split-text { max-width: 36rem; padding-left: 1.5rem; border-left: 4px solid var(--oliva); }
.split-title { margin-top: 1rem; font-size: 2rem; line-height: 1.1; }
@media (min-width: 768px) { .split-title { font-size: 2.5rem; } }
.split-text > p:not(.eyebrow) { margin-top: 1.5rem; font-size: 1.125rem; line-height: 1.65; color: var(--grafite); }
.split-text .btn { margin-top: 2rem; }

/* Location */
.location { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .location { grid-template-columns: .8fr 1.2fr; align-items: stretch; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; font-size: .94rem; color: var(--grafite); }
.contact-list li { display: flex; gap: .75rem; align-items: flex-start; }
.contact-list svg { flex: none; width: 18px; height: 18px; margin-top: .15rem; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--carvao); }
.map { min-height: 420px; overflow: hidden; border: 1px solid var(--linha); background: var(--osso); display: flex; align-items: center; justify-content: center; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.map-placeholder { font-size: .875rem; color: var(--pedra-dark); }

/* Footer */
.footer { padding: 2.5rem 0; border-top: 1px solid var(--linha); background: var(--osso); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; font-size: .875rem; color: var(--pedra-dark); }
.footer .logo-name { font-size: 2rem; }
.footer .logo-sub { font-size: .7rem; }
.credit { color: var(--grafite); text-decoration: underline; text-underline-offset: 4px; }
.credit:hover { color: var(--carvao); }
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .6); }
.modal-box { position: relative; width: 100%; max-width: 36rem; max-height: 92svh; overflow-y: auto; padding: 1.5rem; border: 1px solid var(--linha); border-radius: 1rem; background: var(--osso); box-shadow: 0 20px 50px rgb(0 0 0 / .3); }
.modal-close { position: absolute; top: .75rem; right: .75rem; width: 2rem; height: 2rem; border: 0; border-radius: .5rem; background: transparent; font-size: 1.5rem; line-height: 1; color: var(--grafite); }
.modal-close:hover { background: var(--nevoa); }
.modal-title { font-size: 1.5rem; font-weight: 600; }
.modal-desc { margin-top: .35rem; color: var(--grafite); }
.lead-form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.field { display: grid; gap: .4rem; margin: 0; padding: 0; border: 0; font-size: .875rem; font-weight: 500; }
.field legend { margin-bottom: .4rem; padding: 0; }
.field input:not([type="radio"]) { height: 2.75rem; padding: 0 .75rem; border: 1px solid var(--linha); border-radius: var(--radius); background: #fff; font: inherit; font-weight: 400; font-size: 1rem; color: var(--carvao); }
.field input:focus { outline: 2px solid var(--salvia); outline-offset: 1px; }
.options { display: grid; gap: .5rem; }
@media (min-width: 640px) { .options { grid-template-columns: 1fr 1fr; } }
.option { display: flex; align-items: center; gap: .75rem; padding: .65rem .75rem; border: 1px solid var(--linha); border-radius: var(--radius); background: #fff; font-weight: 400; cursor: pointer; }
.option input { accent-color: var(--oliva); }
.option.selected { border-color: var(--oliva); background: var(--musgo-claro); color: var(--oliva); font-weight: 500; }
.form-error { font-size: .875rem; color: #b42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.disqualified { padding: 1.25rem 0; text-align: center; }
.disqualified .modal-title { font-size: 1.875rem; }
.disqualified p { max-width: 28rem; margin: 1rem auto 0; line-height: 1.65; color: var(--grafite); }
.disqualified .btn { margin-top: 1.75rem; }

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