:root {
  --cream: #f8f4ec;
  --cream2: #ece5d8;
  --surface: #fff;
  --dark: #1c1c1e;
  --navy: #172440;
  --gold: #79570d;
  --text: #252527;
  --muted: #625c52;
  --line: rgba(121, 87, 13, 0.38);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  min-width: 320px;
  min-height: 100vh;
  background: var(--cream);
  color: var(--text);
  font:
    300 1rem Lato,
    sans-serif;
  transition: 0.3s;
}
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.container {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  margin: auto;
  padding: 50px 24px 60px;
}
.theme-toggle {
  position: fixed;
  z-index: 20;
  right: 18px;
  top: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--gold);
  font-size: 1.15rem;
  cursor: pointer;
}
.top-bar {
  text-align: center;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.58rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.header {
  text-align: center;
  margin-bottom: 34px;
}
.avatar-frame {
  position: relative;
  width: 108px;
  height: 132px;
  margin: 0 auto 22px;
}
.avatar-frame:before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  transform: translate(8px, 8px);
}
.avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.08);
}
h1 {
  color: var(--navy);
  font:
    400 2rem "Playfair Display",
    serif;
  letter-spacing: 1px;
}
.subtitle {
  margin-top: 4px;
  color: var(--muted);
  font:
    italic 1rem "EB Garamond",
    serif;
}
.oab {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 14px;
  background: var(--navy);
  color: var(--cream);
  font-size: 0.62rem;
  letter-spacing: 2px;
}
.bio-text {
  margin: 24px 0 28px;
  padding: 19px 10px;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font:
    400 1rem/1.7 "EB Garamond",
    serif;
}
.areas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.areas span {
  padding: 6px 13px;
  border: 1px solid var(--line);
  background: var(--cream2);
  color: var(--gold);
  font-size: 0.6rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.btn {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 64px;
  margin-bottom: 8px;
  padding: 13px 19px;
  border: 0;
  text-decoration: none;
  font:
    400 0.73rem Lato,
    sans-serif;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.25s;
}
.btn i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-style: normal;
  font-size: 1rem;
}
.btn-navy {
  background: var(--navy);
  color: var(--cream);
}
.btn-navy:hover {
  background: #253360;
}
.btn-gold {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold);
  color: var(--cream);
}
.btn-light {
  border: 1px solid var(--line);
  background: var(--cream2);
  color: var(--text);
}
.ornament {
  text-align: center;
  margin: 20px 0 10px;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 10px;
}
.section-label {
  text-align: center;
  margin: 29px 0 15px;
  color: var(--gold);
  font-size: 0.58rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.testimonial {
  margin-bottom: 10px;
  padding: 20px;
  border-left: 3px solid var(--gold);
  background: var(--surface);
}
.testimonial p {
  color: var(--muted);
  font:
    italic 0.97rem/1.6 "EB Garamond",
    serif;
}
.testimonial strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 0.62rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.map-section {
  margin-top: 30px;
}
.map-wrap {
  height: 180px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.map-addr {
  padding: 12px 16px;
  background: var(--navy);
  color: var(--cream);
  font-size: 0.68rem;
  letter-spacing: 0.6px;
}
.route {
  display: block;
  padding: 12px;
  border: 1px solid var(--gold);
  border-top: 0;
  color: var(--gold);
  text-align: center;
  text-decoration: none;
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
footer {
  margin-top: 40px;
  color: var(--muted);
  text-align: center;
  font-size: 0.56rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.whatsapp {
  position: fixed;
  z-index: 15;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
}
body.dark {
  --cream: #11131a;
  --cream2: #1c202a;
  --surface: #171a22;
  --text: #ece7dc;
  --muted: #aaa397;
  --navy: #c8b77b;
  --gold: #c9a85b;
  --line: rgba(201, 168, 91, 0.25);
}
body.dark .oab,
body.dark .map-addr {
  background: #c8b77b;
  color: #11131a;
}
body.dark .btn-navy {
  background: #c8b77b;
  color: #11131a;
}
body.dark .btn-gold {
  color: #ece7dc;
}
body.dark .avatar {
  filter: sepia(0.15) brightness(0.86);
}
body.dark .map-wrap iframe {
  filter: grayscale(0.6) invert(0.88) hue-rotate(175deg);
}
.schedule {
  width: min(520px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 38px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--text);
}
.schedule::backdrop {
  background: rgba(12, 15, 24, 0.76);
  backdrop-filter: blur(7px);
}
.close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream2);
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
}
.dialog-label {
  color: var(--gold);
  font-size: 0.6rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.schedule h2 {
  margin: 8px 0;
  color: var(--navy);
  font:
    400 2rem "Playfair Display",
    serif;
}
.dialog-copy {
  margin-bottom: 23px;
  color: var(--muted);
  font-size: 0.8rem;
}
.schedule form {
  display: grid;
  gap: 15px;
}
.schedule label {
  display: grid;
  gap: 7px;
  color: var(--gold);
  font-size: 0.6rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.schedule input,
.schedule select,
.schedule textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font:
    400 0.85rem Lato,
    sans-serif;
  outline: 0;
  text-transform: none;
  letter-spacing: 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.submit {
  margin-top: 5px;
  margin-bottom: 0;
}
@media (max-width: 520px) {
  .container {
    padding-top: 42px;
  }
  .theme-toggle {
    top: 12px;
    right: 12px;
  }
  .schedule {
    padding: 34px 20px 22px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Default light palette with accessible editorial contrast. */
body:not(.dark) {
  --cream: #fbfaf7;
  --cream2: #eee8dc;
  --surface: #fff;
  --navy: #142240;
  --gold: #765500;
  --text: #25221d;
  --muted: #5f584f;
  --line: rgba(103, 74, 0, 0.38);
}
body:not(.dark) .top-bar,
body:not(.dark) .section-label {
  color: #6f4f00;
}
body:not(.dark) .areas span {
  background: #f3eee4;
  color: #684a00;
}
body:not(.dark) .testimonial {
  box-shadow: 0 8px 24px rgba(34, 29, 21, 0.06);
}
body:not(.dark) .theme-toggle {
  box-shadow: 0 8px 24px rgba(34, 29, 21, 0.11);
}

/* Showcase-safe controls: keep actions above the Netlify preview badge. */
.whatsapp {
  bottom: 88px;
}
.schedule {
  overflow-y: auto;
}
.close {
  z-index: 5;
  touch-action: manipulation;
}
@media (max-width: 700px) {
  .whatsapp {
    bottom: 98px;
  }
}
.whatsapp svg {
  width: 29px;
  fill: #fff;
}
.dialog-copy {
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, var(--surface));
  color: var(--text);
  font-weight: 600;
  line-height: 1.55;
}
.dialog-copy strong {
  color: var(--gold);
}

/* Proteção responsiva global */
html, body { max-width: 100%; overflow-x: hidden; }
main, section, header, footer, div, article { min-width: 0; }
img, video, iframe, svg { max-width: 100%; }
h1, h2, h3, p, a, button, label { overflow-wrap: anywhere; }
