:root {
  --bg: #f7f6f3;
  --bg-alt: #ffffff;
  --text: #1c1b1a;
  --text-muted: #6b6862;
  --border: #e4e1da;
  --accent: #2f7d86;
  --accent-dark: #235e65;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

h1, h2, h3 {
  font-family: "Fraunces", "Playfair Display", serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 26px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
header.scrolled {
  background: rgba(247, 246, 243, 0.9);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  box-shadow: 0 1px 0 var(--border);
}

nav { display: flex; align-items: center; justify-content: space-between; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Fraunces", serif;
  font-size: 20px;
  letter-spacing: 0.01em;
}
.brand img { height: 38px; width: auto; }

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--text);
  color: var(--text);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.nav-cta:hover { background: var(--text); color: var(--bg-alt); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 140px 24px 90px;
}

.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-slides img.active { opacity: 1; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15,15,14,0.72) 0%, rgba(15,15,14,0.15) 55%, rgba(15,15,14,0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fdfdfc;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #cfeef1;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: #3fb6c2; text-shadow: 0 2px 12px rgba(0,0,0,0.35); }

.hero p {
  font-size: 17px;
  max-width: 480px;
  color: #e7e6e2;
  margin-bottom: 34px;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-secondary { border: 1px solid rgba(255,255,255,0.6); color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,0.12); }

/* Section shared */
section { padding: 110px 0; }

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.section-head p { color: var(--text-muted); font-size: 16px; }

/* Sobre */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img { border-radius: 6px; width: 100%; object-fit: cover; aspect-ratio: 4/5; }
.about-text p { color: var(--text-muted); margin-bottom: 18px; font-size: 15.5px; }
.about-text .signature { font-family: "Fraunces", serif; font-size: 22px; font-style: italic; margin-top: 20px; }

/* Especialidades */
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.specialty-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px 24px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.specialty-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 36px rgba(28, 27, 26, 0.1);
  border-color: var(--accent);
}
.specialty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg);
  margin-bottom: 20px;
  transition: background 0.35s ease, transform 0.45s ease;
}
.specialty-card:hover .specialty-icon {
  background: var(--accent);
  transform: rotate(-8deg) scale(1.06);
}
.specialty-card svg { width: 24px; height: 24px; color: var(--accent); transition: color 0.35s ease, transform 0.45s ease; }
.specialty-card:hover svg { color: #fff; transform: rotate(8deg); }
.specialty-card h3 { font-family: "Inter", sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 8px; transition: color 0.3s ease; }
.specialty-card:hover h3 { color: var(--accent); }
.specialty-card p { color: var(--text-muted); font-size: 14px; }

/* Portfolio masonry */
.portfolio-grid {
  columns: 3 280px;
  column-gap: 16px;
}
.portfolio-grid figure {
  break-inside: avoid;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 6px;
  position: relative;
}
.portfolio-grid img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.portfolio-grid figure:hover img { transform: scale(1.04); }

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover, .filter-btn.active { background: var(--text); color: var(--bg-alt); border-color: var(--text); }

/* Depoimento */
.quote-section {
  background: var(--text);
  color: var(--bg);
  text-align: center;
}
.quote-section blockquote {
  font-family: "Fraunces", serif;
  font-size: clamp(22px, 3.4vw, 34px);
  font-style: italic;
  max-width: 780px;
  margin: 0 auto 20px;
  line-height: 1.4;
}
.quote-section cite {
  font-style: normal;
  color: #b9c9ca;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* CTA final */
.cta-final {
  text-align: center;
  padding: 130px 24px;
}
.cta-final h2 { font-size: clamp(30px, 5vw, 50px); margin-bottom: 18px; }
.cta-final p { color: var(--text-muted); max-width: 480px; margin: 0 auto 36px; font-size: 16px; }

/* Footer */
footer {
  background: var(--text);
  color: #e9e7e2;
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: "Fraunces", serif; font-size: 20px; }
.footer-brand img { height: 34px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: #9d9a94; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14.5px; margin-bottom: 10px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #9d9a94;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(47,125,134,0.4);
  transition: transform 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Modal de orçamento */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 19, 17, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  position: relative;
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 44px 36px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}
.modal-close:hover { color: var(--text); }

.modal-box h3 { font-size: 24px; margin-bottom: 10px; }
.modal-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 26px; }

#quoteForm label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

#quoteForm input,
#quoteForm select {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
}
#quoteForm input:focus,
#quoteForm select:focus {
  outline: none;
  border-color: var(--accent);
}

.modal-submit {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  margin-top: 8px;
}
.modal-submit:hover { background: var(--accent-dark); }

/* Autocomplete de cidade */
.autocomplete-wrap { position: relative; }

.autocomplete-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.autocomplete-list.open { display: block; }

.autocomplete-item {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  cursor: pointer;
}
.autocomplete-item:hover,
.autocomplete-item.highlight { background: var(--bg); color: var(--accent); }

.autocomplete-empty {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Calendario */
.datepicker-wrap { position: relative; }

.datepicker {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  width: 280px;
  max-width: 90vw;
  z-index: 300;
  box-shadow: 0 20px 48px rgba(0,0,0,0.35);
}
.datepicker.open { display: block; }

.datepicker-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 290;
  background: rgba(20, 19, 17, 0.35);
}
.datepicker-backdrop.open { display: block; }

.dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.dp-header span {
  font-family: "Fraunces", serif;
  font-size: 15px;
  text-transform: capitalize;
  color: var(--text);
}
.dp-nav {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
}
.dp-nav:hover { border-color: var(--accent); color: var(--accent); }

.dp-weekdays, .dp-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.dp-weekdays span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  padding-bottom: 6px;
}
.dp-day {
  padding: 7px 0;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
}
.dp-day:hover { background: var(--bg); }
.dp-day.today { font-weight: 700; color: var(--accent); }
.dp-day.disabled { color: var(--border); cursor: not-allowed; pointer-events: none; }
.dp-day.empty { visibility: hidden; cursor: default; }

@media (max-width: 960px) {
  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .portfolio-grid { columns: 2 240px; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .specialty-grid { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
  .portfolio-grid { columns: 1; }
  .footer-top { flex-direction: column; }
}
