:root {
  --bg: #fbf7f5;
  --bg-alt: #f3e8e6;
  --line: #e6d6d4;
  --primary: #8a5a64;
  --primary-deep: #6f4450;
  --text: #3f2b31;
  --muted: #74606a;
  --container: min(1120px, calc(100vw - 40px));
  --font-display: "Questrial", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

figure {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}

h3 {
  font-size: 1.5rem;
}

/* ---------- Topbar ---------- */

.topbar {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 20px 0;
}

.brand img {
  width: 160px;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--primary-deep);
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.button-primary {
  color: #fff;
  background: var(--primary);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--primary-deep);
}

.button-outline {
  color: var(--primary-deep);
  border-color: var(--primary);
}

.button-outline:hover,
.button-outline:focus-visible {
  color: #fff;
  background: var(--primary);
}

.text-link {
  font-weight: 700;
  color: var(--primary-deep);
  text-underline-offset: 5px;
}

/* ---------- Hero ---------- */

.hero {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  padding: 32px 0 88px;
}

.credential {
  margin: 0 0 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

.lead {
  max-width: 50ch;
  margin: 24px 0 0;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.facts dt,
.info-list dt {
  font-size: 0.85rem;
  color: var(--muted);
}

.facts dd,
.info-list dd {
  margin: 0;
  font-weight: 700;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(620px, calc(100vh - 140px));
  object-fit: cover;
  object-position: center 35%;
  border-radius: 4px;
}

/* ---------- Sections ---------- */

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

/* Tratamentos */

.treatments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 40px;
}

.group-note {
  margin: 4px 0 0;
  color: var(--muted);
}

.treatment-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.treatment-list li {
  display: grid;
  gap: 2px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.treatment-list strong {
  font-size: 1.1rem;
}

.treatment-list span {
  color: var(--muted);
}

/* Sobre */

.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  object-fit: cover;
  border-radius: 4px;
}

.about-copy p {
  max-width: 58ch;
  margin: 20px 0 0;
}

.about-copy .about-closing {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--primary-deep);
}

.about-copy .button {
  margin-top: 32px;
}

/* Galeria */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: var(--container);
  margin: 0 auto 88px;
}

.gallery img,
.gallery-more {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery-more {
  display: grid;
  place-content: center;
  gap: 4px;
  text-align: center;
  text-decoration: none;
  color: var(--primary-deep);
  background: var(--bg-alt);
}

.gallery-more:hover strong,
.gallery-more:focus-visible strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Onde fica */

.location {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

address {
  margin-top: 24px;
  font-style: normal;
  font-size: 1.15rem;
}

.info-list {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
}

.info-list a {
  color: var(--primary-deep);
  text-underline-offset: 4px;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}

.map-frame {
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
}

/* ---------- Footer ---------- */

.footer {
  padding: 56px 20px 96px;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  background: var(--primary-deep);
}

.footer img {
  width: min(260px, 70vw);
  margin: 0 auto 24px;
}

.footer p {
  margin: 6px 0;
}

.footer a {
  color: #fff;
  text-underline-offset: 4px;
}

.footer small {
  display: block;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- WhatsApp flutuante ---------- */

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M13.601 2.326A7.85 7.85 0 0 0 8.02 0C3.676 0 .14 3.533.14 7.876c0 1.39.363 2.747 1.052 3.943L0 16l4.303-1.128a7.84 7.84 0 0 0 3.717.944h.003c4.343 0 7.878-3.533 7.878-7.876a7.83 7.83 0 0 0-2.3-5.614ZM8.023 14.48h-.002a6.5 6.5 0 0 1-3.314-.907l-.238-.141-2.553.67.681-2.49-.155-.255a6.5 6.5 0 0 1-1.003-3.48c0-3.59 2.92-6.511 6.514-6.511 1.739 0 3.373.677 4.603 1.906a6.46 6.46 0 0 1 1.907 4.605c-.002 3.59-2.923 6.512-6.44 6.512Zm3.57-4.87c-.195-.098-1.154-.57-1.333-.635-.178-.066-.308-.098-.438.099-.13.196-.503.634-.617.764-.113.131-.227.147-.422.05-.195-.098-.824-.303-1.57-.967-.58-.516-.972-1.154-1.086-1.35-.113-.197-.012-.303.085-.4.087-.087.195-.228.292-.342.097-.114.13-.196.195-.327.065-.13.033-.245-.016-.343-.049-.098-.438-1.056-.6-1.447-.158-.38-.32-.329-.438-.335l-.373-.006a.72.72 0 0 0-.52.245c-.179.195-.682.667-.682 1.627 0 .961.699 1.89.796 2.02.098.131 1.374 2.099 3.328 2.943.465.2.828.32 1.11.41.466.148.89.127 1.225.077.374-.056 1.154-.471 1.317-.927.162-.457.162-.849.113-.927-.048-.081-.178-.13-.373-.228Z'/%3E%3C/svg%3E")
    center / 28px no-repeat;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
  .hero,
  .about,
  .location,
  .treatments {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding-bottom: 64px;
  }

  .hero-photo {
    order: -1;
  }

  .hero-photo img {
    aspect-ratio: 4 / 3;
    object-position: center 30%;
  }

  .about-photo img {
    aspect-ratio: 4 / 3;
    object-position: center 40%;
  }

  .section {
    padding: 64px 0;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 64px;
  }
}

@media (max-width: 640px) {
  .topbar {
    gap: 16px;
    padding: 14px 0;
  }

  .brand img {
    width: 128px;
  }

  .nav {
    display: none;
  }

  .topbar-cta {
    margin-left: auto;
    min-height: 40px;
    padding: 0 16px;
  }

  .hero {
    padding-top: 8px;
    gap: 28px;
  }

  .credential {
    font-size: 0.85rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  .hero-actions .button,
  .location-actions .button,
  .about-copy .button {
    width: 100%;
  }

  .hero-actions,
  .location-actions {
    justify-content: center;
  }

  .map-frame iframe {
    height: 320px;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
  }
}
