:root {
  --bg:           #f8f6f2;
  --panel:        #eeeae4;
  --panel-2:      #e4dfd7;
  --text:         #1a1a18;
  --muted:        #8a8a84;
  --green:        #7ac13c;
  --green-bright: #8fd44f;
  --green-dark:   #5a9e2a;
  --line:         rgba(26, 26, 24, 0.06);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.08);

  --font-display: 'Playfair Display', serif;
  --font-body:    'Sora', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --container: 1180px;
  --radius: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

html, body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

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

.icon { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: var(--green);
  margin: 0 0 16px;
}

.section {
  padding: 100px 0;
}
.section--panel { background: var(--panel); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__body {
  color: var(--muted);
  font-size: 17px;
  max-width: 52ch;
  margin: 0 0 28px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 12px rgba(122, 193, 60, 0.25);
}
.btn--primary:hover {
  background: var(--green-bright);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(122, 193, 60, 0.35);
}
.btn--ghost {
  border: 1.5px solid var(--muted);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--green);
  color: var(--green);
}
.btn--ghost-light {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
}
.btn--ghost-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 18px 36px; font-size: 16px; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.header.is-scrolled {
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__logo { border-radius: 50%; object-fit: cover; }
.brand__name { font-family: var(--font-display); font-size: 16px; letter-spacing: 0.01em; color: rgba(255,255,255,0.9); }
.brand__name strong { color: var(--green); font-weight: normal; }

/* ---- Nav (desktop) ---- */
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.nav a { color: rgba(255,255,255,0.7); transition: color 0.2s var(--ease); position: relative; }
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background: var(--green);
  transition: width 0.25s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }

.nav__cta { display: none; }

/* ---- Nav toggle (hamburger) ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 50;
}
.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.is-active .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle__bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Mobile ---- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .nav.is-open { display: flex; }
  .nav a { color: rgba(255,255,255,0.8); padding: 12px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .nav a:last-of-type { border-bottom: none; }
  .nav a::after { display: none; }
  .nav__cta { display: flex; margin-top: 8px; justify-content: center; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('../assets/images/hero-bg.jpg') center/cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  padding: 140px 24px 100px;
}
.hero__slogan {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--green);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 16px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.018em;
  margin: 0 0 24px;
  color: #fff;
}
.hero__sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  max-width: 56ch;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.5);
  animation: bounceDown 2s infinite;
}
.hero__scroll svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; }

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

@media (max-width: 900px) {
  .hero { min-height: 70vh; }
  .hero__inner { padding: 120px 24px 80px; }
}

/* ===== ABOUT ===== */
.about { display: grid; grid-template-columns: 0.85fr 1fr; gap: 72px; align-items: center; }
.about__media { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }

.highlights { display: flex; flex-direction: column; gap: 24px; margin-top: 36px; }
.highlights li { display: flex; gap: 16px; align-items: flex-start; }
.highlights .icon { color: var(--green); margin-top: 3px; }
.highlights strong { display: block; font-size: 15.5px; margin-bottom: 4px; }
.highlights span { color: var(--muted); font-size: 15px; line-height: 1.6; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__media { order: -1; }

}

/* ===== SERVICES ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--green);
  border-radius: var(--radius) var(--radius) 0 0;
  z-index: 2;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, #000 2px, #000 4px);
  pointer-events: none;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.card h3 { font-family: var(--font-display); font-size: 21px; margin-bottom: 10px; letter-spacing: -0.01em; color: var(--text); }
.card p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }

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

/* ===== PROJETOS ===== */
.project {
  display: flex;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}
.project:last-child { margin-bottom: 0; }
.project:nth-child(even) { flex-direction: row-reverse; }

.project__image {
  flex: 1;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 0;
  border: none;
  cursor: pointer;
}
.project__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project__image:hover img { transform: scale(1.05); }

.project__info { flex: 1; }
.project__category {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  display: block;
}
.project__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  margin-bottom: 6px;
}
.project__location {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-bottom: 16px;
}
.project__desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .project { flex-direction: column !important; gap: 20px; margin-bottom: 56px; }
}

/* ===== DIFERENCIAIS ===== */
.diff__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.diff__card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.diff__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.diff__icon {
  width: 30px;
  height: 30px;
  stroke: var(--green);
  stroke-width: 1.4;
  fill: none;
  margin-bottom: 20px;
}
.diff__card h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.diff__card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

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

/* ===== ORCAMENTO / FORM ===== */
.orcamento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.orcamento__text .section__body { max-width: 44ch; }
.orcamento__benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.orcamento__benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
}
.orcamento__benefits .icon { color: var(--green); width: 18px; height: 18px; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.form input, .form select, .form textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  background: #fff;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--green);
  outline: none;
}
.form textarea { min-height: 100px; resize: vertical; }
.form input[type="file"] { padding: 10px 0; border: none; font-size: 13.5px; color: var(--muted); }
.form .btn { align-self: flex-start; }

@media (max-width: 900px) {
  .orcamento { grid-template-columns: 1fr; gap: 40px; }
  .orcamento > * { min-width: 0; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn { width: 100%; white-space: normal; justify-content: center; text-align: center; }
  .section__title { overflow-wrap: break-word; }
}

/* ===== CONTACT ===== */
.contact { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
.contact .section__title { max-width: 16ch; }
.info-row { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-row .icon { color: var(--green); margin-top: 2px; }
.info-row strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.info-row span, .info-row a { color: var(--muted); font-size: 15px; }
.info-row a:hover { color: var(--green); }

@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 40px; } }

/* ===== FOOTER ===== */
.footer { background: rgba(15, 15, 15, 0.97); border-top: 1px solid rgba(255,255,255,0.06); padding-top: 48px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 32px; }
.footer__nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,0.5); }
.footer__nav a:hover { color: var(--green); }
.footer__social { display: flex; gap: 16px; }
.footer__social a { color: rgba(255,255,255,0.5); transition: color 0.2s var(--ease); }
.footer__social a:hover { color: var(--green); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 22px 24px; font-size: 13px; color: rgba(255,255,255,0.4); font-family: var(--font-mono); }

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}
.whatsapp-float .icon { width: 24px; height: 24px; stroke: #fff; fill: #fff; stroke-width: 0; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(900px, 90vw); max-height: 74vh; object-fit: contain; border-radius: var(--radius); }
.lightbox p { font-family: var(--font-mono); color: rgba(255,255,255,0.6); font-size: 13px; }
.lightbox__close { position: absolute; top: 24px; right: 24px; color: rgba(255,255,255,0.7); transition: color 0.2s var(--ease); }
.lightbox__nav { padding: 10px; color: rgba(255,255,255,0.7); transition: color 0.2s var(--ease); }
.lightbox__nav:hover, .lightbox__close:hover { color: var(--green); }
.lightbox__nav--prev { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .lightbox__nav--prev { left: 4px; }
  .lightbox__nav--next { right: 4px; }
}

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== IMG PLACEHOLDER (fallback) ===== */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(135deg, var(--panel-2), var(--panel-2) 10px, #dbd5cc 10px, #dbd5cc 20px);
  border: 1px dashed var(--muted);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
  min-height: 160px;
}
.img-placeholder strong { color: var(--green); font-size: 12.5px; word-break: break-all; }
