:root {
  --bg: #f8f3ea;
  --bg-2: #f0e8d8;
  --card: #fffdf8;
  --ink: #26211a;
  --ink-muted: #6b6152;
  --line: rgba(38, 33, 26, 0.14);
  --accent: #b8623c;
  --accent-2: #8a4527;
  --gold: #b8863f;
  --max-w: 1080px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Manrope", system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; position: relative; }
/* Grão sutil no fundo inteiro — textura de papel, quebra o "flat design" genérico
   sem custar uma imagem: SVG feTurbulence embutido, opacidade quase imperceptível. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media print { body::after { display: none; } }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
section { padding: 64px 0; }
@media (max-width: 640px) { section { padding: 44px 0; } }

.serif { font-family: "Newsreader", Georgia, serif; font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
.serif em { font-style: italic; color: var(--accent); font-weight: 400; }
.display { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
@media (max-width: 480px) { .display { font-size: 1.9rem; } }
.heading-md { font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -0.015em; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .quote-track { transition: opacity 200ms ease; }
  .spec-panel { transition: opacity 150ms ease; }
  .btn:active { transform: none; }
}

.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; font-weight: 700; font-size: 0.88rem; cursor: pointer; border: 1px solid var(--ink); border-radius: 8px; box-shadow: 0 0 0 0 rgba(184, 98, 60, 0); transition: background 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 160ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-fill { background: var(--ink); color: var(--bg); }
.btn-line { background: transparent; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-fill:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(138, 69, 39, 0.55); }
  .btn-line:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); box-shadow: 0 14px 24px -14px rgba(38, 33, 26, 0.3); }
}
.link-txt { font-weight: 700; font-size: 0.85rem; border-bottom: 1px solid currentColor; padding-bottom: 2px; color: var(--accent-2); transition: opacity 160ms var(--ease-out); }
.link-txt:active { opacity: 0.6; }
@media (max-width: 480px) { .btn { padding: 11px 18px; font-size: 0.8rem; } }

header { position: sticky; top: 0; z-index: 30; background: rgba(248, 243, 234, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; gap: 16px; }
.brand-name { font-family: "Newsreader", serif; font-size: 1.2rem; font-weight: 600; }
.brand-sub { font-size: 0.62rem; letter-spacing: 0.18em; color: var(--ink-muted); font-weight: 700; display: block; margin-top: 2px; }
nav { display: flex; align-items: center; gap: 24px; }
nav a.nav-link { font-size: 0.8rem; font-weight: 600; color: var(--ink-muted); white-space: nowrap; transition: color 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { nav a.nav-link:hover { color: var(--ink); } }
@media (max-width: 760px) { nav a.nav-link { display: none; } }
@media (max-width: 480px) { header .wrap { padding: 12px 18px; } .brand-name { font-size: 1.02rem; } header .btn { padding: 9px 14px; font-size: 0.75rem; } }

/* Hero — editorial, photo as accent, not dark overlay */
.hero { padding: 0; }
.hero .wrap { padding-top: 28px; padding-bottom: 36px; }
.hero-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.rating-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.rating-badge .stars { color: var(--gold); letter-spacing: 1px; }
.rating-badge .count { color: var(--ink-muted); font-weight: 600; }

.rating-display { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 28px; }
.rating-number { font-family: "Newsreader", serif; font-style: italic; font-weight: 500; font-size: clamp(3rem, 9vw, 4.75rem); color: var(--accent); line-height: 1; }
.rating-detail { display: flex; align-items: center; gap: 9px; color: var(--ink-muted); font-size: 0.92rem; font-weight: 600; }
.rating-detail .stars { color: var(--gold); letter-spacing: 1px; font-size: 1rem; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: end; margin-top: 26px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero p.lead { color: var(--ink-muted); font-size: 1.06rem; max-width: 42ch; margin: 22px 0 0; }
@media (max-width: 480px) { .hero p.lead { font-size: 0.95rem; } }
.hero-photo-frame { position: relative; }
.hero-photo-frame::before {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  width: 68%;
  height: 58%;
  background: var(--accent);
  border-radius: 12px;
  z-index: 0;
}
.hero-photo { position: relative; z-index: 1; border-radius: 12px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 30px 60px -24px rgba(38, 33, 26, 0.32); }
.hero-photo img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }
@media (max-width: 860px) { .hero-photo-frame::before { top: -12px; right: -12px; width: 60%; height: 50%; } }
.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 30px; }

/* Functional specialty tabs */
.spec-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; margin-top: 30px; align-items: stretch; }
@media (max-width: 860px) { .spec-layout { grid-template-columns: 1fr; gap: 24px; } }
.spec-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.spec-tab { text-align: left; background: none; border: none; border-bottom: 1px solid var(--line); padding: 15px 4px; font-family: "Newsreader", serif; font-size: 1.15rem; color: var(--ink-muted); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: color 180ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .spec-tab:hover { color: var(--ink); } }
.spec-tab.active { color: var(--accent-2); font-style: italic; }
.spec-tab .mark { opacity: 0; font-size: 0.9rem; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); transform: translateX(-4px); }
.spec-tab.active .mark { opacity: 1; transform: translateX(0); }
.spec-panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 32px; min-height: 220px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(38, 33, 26, 0.22); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.spec-panel::before { content: "\201D"; position: absolute; top: -0.35em; right: 0.2em; font-family: "Newsreader", serif; font-size: 8rem; color: var(--accent); opacity: 0.08; line-height: 1; pointer-events: none; }
.spec-panel.swapping { opacity: 0; transform: translateY(4px); }
.spec-panel h3 { font-family: "Newsreader", serif; font-size: 1.4rem; font-weight: 500; margin: 0 0 12px; position: relative; }
.spec-panel p { color: var(--ink-muted); margin: 0 0 22px; font-size: 0.96rem; position: relative; }
.spec-panel .btn { position: relative; align-self: flex-start; }
@media (max-width: 860px) { .spec-panel { min-height: 0; } }

/* Testimonial carousel — editorial pull quote */
.quote-carousel { position: relative; max-width: 720px; margin: 34px auto 0; }
.quote-viewport { overflow: hidden; }
.quote-track { display: flex; transition: transform 550ms var(--ease-in-out); }
.quote-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .quote-arrow:hover { border-color: var(--accent); color: var(--accent-2); } }
.quote-arrow.prev { left: -8px; }
.quote-arrow.next { right: -8px; }
@media (max-width: 560px) {
  .quote-arrow { width: 32px; height: 32px; font-size: 1.05rem; }
  .quote-arrow.prev { left: -4px; }
  .quote-arrow.next { right: -4px; }
}
.quote-slide { flex: 0 0 100%; text-align: center; padding: 0 20px; }
.quote-slide .mark { font-family: "Newsreader", serif; font-size: 3rem; color: var(--accent); line-height: 1; display: block; margin-bottom: 6px; }
.quote-slide p { font-family: "Newsreader", serif; font-size: clamp(1.2rem, 2.6vw, 1.55rem); font-weight: 500; line-height: 1.45; margin: 0; }
.quote-slide .stars { color: var(--gold); display: block; margin-top: 18px; font-size: 0.9rem; }
.quote-slide .name { color: var(--ink-muted); font-size: 0.85rem; font-weight: 700; margin-top: 6px; display: block; }
.quote-dots { display: flex; justify-content: center; gap: 7px; margin-top: 28px; }
.quote-dot { width: 18px; height: 6px; border-radius: 999px; border: none; background: var(--line); cursor: pointer; padding: 0; transform: scaleX(0.333); transform-origin: center; transition: transform 200ms var(--ease-out), background-color 200ms var(--ease-out); }
.quote-dot.active { background: var(--accent); transform: scaleX(1); }

.urgency-band { background: var(--ink); color: var(--bg); border-radius: 12px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.urgency-band h3 { font-family: "Newsreader", serif; font-size: 1.5rem; margin: 0 0 6px; font-weight: 500; }
.urgency-band p { margin: 0; color: rgba(248, 243, 234, 0.7); font-size: 0.92rem; }
.urgency-band .btn-fill { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 640px) { .urgency-band { flex-direction: column; text-align: center; padding: 30px; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 30px; } }
.map-embed { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); filter: grayscale(0.3) contrast(1.05); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }
.location-head { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.location-head .eyebrow { justify-content: center; }
.map-embed-wide iframe { height: 340px; }
.address-block { margin-top: 16px; color: var(--ink-muted); font-size: 0.95rem; line-height: 1.8; }
.address-block strong { color: var(--ink); font-family: "Newsreader", serif; font-size: 1.1rem; display: block; margin-bottom: 6px; }

.cta-final { background: var(--bg-2); }
.cta-final p.lead { color: var(--ink-muted); margin-top: 14px; max-width: 40ch; }
.lead-form { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); font-weight: 700; margin-bottom: 6px; }
.field input, .field select { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 0.96rem; font-family: inherit; padding: 10px 12px; outline: none; }
.field input::placeholder { color: #a89c88; }
.field input:focus, .field select:focus { border-color: var(--accent); }
.lead-form .btn { width: 100%; justify-content: center; margin-top: 4px; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 9px; background: var(--ink); color: var(--bg); padding: 13px 20px; border-radius: 999px; font-weight: 700; font-size: 0.82rem; box-shadow: 0 14px 28px -10px rgba(38,33,26,0.35); transition: transform 160ms var(--ease-out); }
.wa-float:active { transform: scale(0.96); }
.wa-float:hover { background: var(--accent-2); }
@media (max-width: 480px) { .wa-float span.wa-text { display: none; } .wa-float { padding: 13px; } }

footer { background: var(--ink); color: rgba(248,243,234,0.55); padding: 26px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; }
footer a:hover { color: var(--bg); }

/* Print / PDF export — forces everything visible and single-column so headless
   printing (no real scroll, no IntersectionObserver) never produces blank pages */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .wa-float, .quote-arrow, .quote-dots { display: none !important; }
  header { position: static; }
  .hero-grid, .spec-layout, .two-col { grid-template-columns: 1fr !important; }
  .quote-track { display: block !important; transform: none !important; }
  .quote-slide { flex: none; width: 100%; padding: 20px 0; border-bottom: 1px solid var(--line); page-break-inside: avoid; }
  section { padding: 32px 0 !important; break-inside: avoid-page; }
  /* Google Maps' canvas tiles don't reliably render in a headless PDF capture —
     hide the live embed for print and show a plain text link instead. */
  .map-embed { display: none !important; }
  .map-print-link { display: block !important; margin-top: 16px; color: var(--accent-2); text-decoration: underline; }
}
.map-print-link { display: none; }
