/* ==========================================================================
   Clínica Sorriso Feira
   Para personalizar para outro cliente, comece pelas variáveis abaixo.
   ========================================================================== */

:root {
  --color-primary: #14505C;
  --color-primary-dark: #0D3740;
  --color-primary-soft: #E3EEEF;
  --color-sand: #F6F1E9;
  --color-sand-dark: #E7DDCD;
  --color-sage: #8FA98F;
  --color-sage-soft: #E6EDE4;
  --color-white: #FFFFFF;
  --color-text: #2B3134;
  --color-text-muted: #5C666B;
  --color-border: #DCE3E4;
  --color-error: #B3412E;

  --font-heading: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", "Segoe UI", Arial, sans-serif;

  --radius-button: 8px;
  --radius-card: 12px;
  --radius-hero-accent: 80px;

  --shadow-card: 0 1px 2px rgba(20, 80, 92, 0.06), 0 6px 20px rgba(20, 80, 92, 0.06);

  --space-section: 64px;
  --container: 1200px;
  --header-height: 72px;
}

@media (min-width: 960px) {
  :root {
    --space-section: 96px;
    --header-height: 84px;
  }
}

/* Fontes locais ----------------------------------------------------------- */

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/lora.woff2") format("woff2");
}

@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/lora-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/nunito-sans.woff2") format("woff2");
}

/* Reset leve -------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-button);
  font-weight: 700;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

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

/* Tipografia base --------------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
}

h1 {
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 500;
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 32px;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 16px;
  border-radius: 2px;
  background: var(--color-sage);
}

.section-head p {
  margin-top: 16px;
}

.small {
  font-size: 14px;
  line-height: 1.5;
}

.muted {
  color: var(--color-text-muted);
}

@media (min-width: 960px) {
  body {
    font-size: 17px;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 40px;
  }

  h3 {
    font-size: 22px;
  }

  .section-head {
    margin-bottom: 48px;
  }
}

/* Layout ------------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--space-section) 0;
}

.section--sand {
  background: var(--color-sand);
}

/* Botões ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-button);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
}

.btn--secondary {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--secondary:hover {
  background: var(--color-primary-soft);
}

.btn--light {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--light:hover {
  background: var(--color-primary-soft);
}

.btn--block {
  width: 100%;
}

.link {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.link:hover {
  text-decoration-thickness: 2px;
}

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

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-sage);
}

.stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Campos de formulário ---------------------------------------------------- */

.field {
  display: grid;
  gap: 6px;
}

.field + .field {
  margin-top: 20px;
}

.field label,
.field legend {
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}

.field .optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  background: var(--color-white);
  font-size: 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input::placeholder {
  color: #8A9397;
}

.input:hover {
  border-color: #B9C6C8;
}

.input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

select.input {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314505C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
}

.input[aria-invalid="true"] {
  border-color: var(--color-error);
}

.field-error {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-error);
}

.field-error:empty {
  display: none;
}

fieldset.field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.choice span:hover {
  border-color: var(--color-primary);
}

.choice input:checked + span {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.choice input:focus-visible + span {
  outline: 3px solid var(--color-sage);
  outline-offset: 2px;
}

.choices[aria-invalid="true"] .choice span {
  border-color: var(--color-error);
}

.check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

.check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.check button {
  padding: 0;
  border: 0;
  background: none;
}

@media (min-width: 640px) {
  .choices {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Animação de entrada ----------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.is-print .reveal,
.is-print .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   1. Cabeçalho
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 200ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(20, 80, 92, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-primary);
}

.logo svg {
  width: 34px;
  height: 34px;
}

.logo-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.1;
}

.logo-tag {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  color: var(--color-text-muted);
}

.main-nav {
  display: none;
}

.header-actions {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-left: auto;
  margin-right: -8px;
  border: 0;
  border-radius: var(--radius-button);
  background: none;
  color: var(--color-primary);
}

.menu-toggle .icon {
  width: 28px;
  height: 28px;
}

@media (min-width: 1120px) {
  .main-nav {
    display: block;
    margin: 0 auto;
  }

  .main-nav ul {
    display: flex;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text);
    transition: color 150ms ease;
  }

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

  .header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .header-phone {
    display: none;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    color: var(--color-primary);
    white-space: nowrap;
  }

  .header-phone .icon {
    width: 18px;
    height: 18px;
  }

  .header-actions .btn {
    height: 48px;
    padding: 0 22px;
  }

  .menu-toggle {
    display: none;
  }
}

@media (min-width: 1280px) {
  .header-phone {
    display: inline-flex;
  }

  .main-nav ul {
    gap: 8px;
  }
}

/* Menu mobile */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  overflow-y: auto;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 24px;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu nav {
  padding: 16px 24px;
}

.mobile-menu nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-primary);
}

.mobile-menu-footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: 24px;
}

/* ==========================================================================
   2. Hero
   ========================================================================== */

.hero {
  padding: 40px 0 48px;
}

.hero-grid {
  display: grid;
  gap: 40px;
}

.hero-sub {
  max-width: 34em;
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text);
}

.hero-actions {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.hero-proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-hero-accent) var(--radius-card) var(--radius-card) var(--radius-card);
  background: var(--color-sand);
}

@media (min-width: 640px) {
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 48px 0 64px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    align-items: center;
    gap: 56px;
  }

  .hero-sub {
    font-size: 20px;
  }

  .hero-media {
    width: 100%;
    margin-bottom: 24px;
  }

  .hero-media::before {
    content: "";
    position: absolute;
    inset: 24px 24px -24px -24px;
    border-radius: var(--radius-card);
    background: var(--color-sand);
  }

  .hero-media img {
    position: relative;
    aspect-ratio: 4 / 5;
  }
}

/* ==========================================================================
   3. Faixa de informações rápidas
   ========================================================================== */

.quick-info {
  background: var(--color-primary-soft);
}

.quick-info ul {
  display: grid;
  padding: 8px 0;
}

.quick-info li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  padding: 16px 0;
  font-size: 15px;
  line-height: 1.5;
}

.quick-info li + li {
  border-top: 1px solid #C9DADC;
}

.quick-info .icon {
  margin-top: 1px;
  color: var(--color-primary);
}

.quick-info strong {
  display: block;
  font-weight: 700;
  color: var(--color-text);
}

.quick-info a {
  text-decoration: none;
}

.quick-info a:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
}

.status:empty {
  display: none;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-sage);
}

.status.is-closed::before {
  background: var(--color-text-muted);
}

@media (min-width: 960px) {
  .quick-info ul {
    grid-template-columns: repeat(3, 1fr);
    padding: 24px 0;
  }

  .quick-info li {
    padding: 0 32px;
  }

  .quick-info li:first-child {
    padding-left: 0;
  }

  .quick-info li + li {
    border-top: 0;
    border-left: 1px solid #C9DADC;
  }
}

/* ==========================================================================
   4. Tratamentos
   ========================================================================== */

.treatments-intro p {
  max-width: 62ch;
}

.treatments-intro .link {
  display: inline-block;
  margin-top: 16px;
}

.treatment-grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.treatment-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 16px;
  row-gap: 8px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-white);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.treatment-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.treatment-card p,
.treatment-card .treatment-meta {
  grid-column: 1 / -1;
}

.treatment-meta {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

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

@media (min-width: 960px) {
  .treatments-layout {
    display: grid;
    grid-template-columns: 35fr 65fr;
    gap: 56px;
    align-items: start;
  }

  .treatments-intro {
    position: sticky;
    top: calc(var(--header-height) + 32px);
  }

  .treatment-grid {
    margin-top: 0;
    gap: 20px;
  }

  .treatment-card {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 28px;
  }

  .treatment-card h3 {
    margin-top: 12px;
  }
}

/* ==========================================================================
   5. Primeira consulta
   ========================================================================== */

.steps-head {
  margin-bottom: 40px;
}

.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 0 0 32px 56px;
}

.step::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: -8px;
  left: 14px;
  width: 1px;
  background: var(--color-sand-dark);
}

.step:last-child::before {
  display: none;
}

.step-number {
  position: absolute;
  top: -4px;
  left: 0;
  width: 30px;
  padding-bottom: 6px;
  background: var(--color-sand);
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  color: var(--color-primary);
}

.step h3 {
  margin-bottom: 6px;
}

.steps-cta {
  margin-top: 8px;
}

@media (min-width: 960px) {
  .steps-head {
    margin: 0 auto 56px;
    text-align: center;
  }

  .steps-head h2::after {
    margin-left: auto;
    margin-right: auto;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  .step {
    padding: 56px 0 0;
  }

  .step::before {
    top: 16px;
    bottom: auto;
    left: 0;
    right: -32px;
    width: auto;
    height: 1px;
  }

  .step-number {
    top: 0;
    width: auto;
    padding: 0 16px 0 0;
    text-align: left;
  }

  .steps-cta {
    margin-top: 48px;
    text-align: center;
  }
}

/* ==========================================================================
   6. A clínica
   ========================================================================== */

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 12px;
  margin: 0 -24px;
  padding: 0 24px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 24px;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  scroll-snap-align: start;
}

.gallery-item button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-sand);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 300ms ease;
}

.gallery-item button:hover img {
  transform: scale(1.03);
}

.gallery-hint {
  margin-top: 12px;
}

@media (min-width: 960px) {
  .gallery {
    grid-auto-flow: row;
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-template-rows: repeat(2, auto);
    gap: 16px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .gallery-item:first-child {
    grid-row: span 2;
  }

  /* A foto grande acompanha a altura das duas linhas sem interferir nelas. */
  .gallery-item:first-child button {
    position: relative;
  }

  .gallery-item:first-child img {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }

  .gallery-hint {
    display: none;
  }
}

/* Dialog da galeria */

.lightbox {
  width: min(1000px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--color-white);
  color: var(--color-text);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(13, 55, 64, 0.82);
}

.lightbox figure {
  display: grid;
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  background: var(--color-sand);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 20px;
}

.lightbox figcaption {
  margin-right: auto;
  font-size: 15px;
  font-weight: 600;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  background: var(--color-white);
  color: var(--color-primary);
  transition: background-color 150ms ease;
}

.icon-btn:hover {
  background: var(--color-primary-soft);
}

/* ==========================================================================
   7. Equipe
   ========================================================================== */

.team {
  display: grid;
  gap: 16px;
}

.team-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--color-sand-dark);
  border-radius: var(--radius-card);
  background: var(--color-white);
}

.team-card img {
  width: 96px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  background: var(--color-sand);
}

.team-role {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.team-cro {
  margin-top: 2px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.team-card blockquote {
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text);
}

@media (min-width: 960px) {
  .team {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .team-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
  }

  .team-card img {
    width: 100%;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
  }

  .team-body {
    padding: 24px 24px 0;
  }

  .team-card blockquote {
    margin: auto 24px 24px;
    padding-top: 16px;
  }

  .team-body {
    margin-bottom: 16px;
  }
}

/* ==========================================================================
   8. Avaliações
   ========================================================================== */

.rating {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-sand);
}

.rating-number {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-primary);
}

.rating .stars {
  margin: 12px 0 8px;
}

.rating .stars svg {
  width: 22px;
  height: 22px;
}

.rating p {
  font-weight: 600;
}

.rating .link {
  display: inline-block;
  margin-top: 12px;
}

.reviews {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 12px;
  margin: 24px -24px 0;
  padding: 0 24px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 24px;
  scrollbar-width: none;
}

.reviews::-webkit-scrollbar {
  display: none;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-white);
  scroll-snap-align: start;
}

.review blockquote {
  font-size: 16px;
  line-height: 1.6;
}

.review footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  font-size: 14px;
  line-height: 1.4;
}

.review footer strong {
  display: block;
  font-size: 15px;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
}

@media (min-width: 960px) {
  .reviews-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 56px;
    align-items: start;
  }

  .rating-col {
    position: sticky;
    top: calc(var(--header-height) + 32px);
  }

  .rating {
    padding: 32px;
  }

  .reviews {
    display: block;
    columns: 2;
    column-gap: 20px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .review {
    break-inside: avoid;
    margin-bottom: 20px;
  }

  .review--lg blockquote {
    font-size: 18px;
  }
}

/* ==========================================================================
   9. Convênios
   ========================================================================== */

.plans {
  padding: 48px 0;
  background: var(--color-sage-soft);
}

.plans h2 {
  font-size: 24px;
  line-height: 1.25;
}

.plans-text p {
  max-width: 52ch;
  margin-top: 12px;
}

.plans-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.plans-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.plans-list .icon {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.plans .link {
  display: inline-block;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .plans-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
}

@media (min-width: 960px) {
  .plans .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }

  .plans h2 {
    font-size: 26px;
  }

  .plans-list {
    margin-top: 0;
  }
}

/* ==========================================================================
   10. Agendamento
   ========================================================================== */

.booking {
  background: var(--color-primary);
  color: var(--color-white);
}

.booking h2 {
  color: var(--color-white);
}

.booking-text > p {
  max-width: 46ch;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.85);
}

.booking-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.booking-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.booking-list .icon {
  width: 22px;
  height: 22px;
  color: var(--color-sage);
  stroke-width: 2.25;
}

.booking-card {
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  color: var(--color-text);
}

.booking-card form .btn {
  margin-top: 28px;
}

.form-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: var(--color-text-muted);
}

.form-success {
  padding: 32px 24px;
  border-radius: var(--radius-button);
  background: var(--color-sage-soft);
  text-align: center;
}

.form-success .icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  color: var(--color-primary);
}

.form-success h3 {
  margin-bottom: 8px;
}

.form-success a {
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

@media (min-width: 960px) {
  .booking .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  .booking-card {
    margin-top: 0;
    padding: 36px;
  }
}

/* ==========================================================================
   11. Perguntas frequentes
   ========================================================================== */

.faq-aside {
  margin-bottom: 32px;
}

.faq-help {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--color-sand);
}

.faq-help p {
  margin: 6px 0 16px;
}

.faq-list {
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--color-primary-dark);
}

.faq-icon {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--color-primary-soft);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 1px;
  background: var(--color-primary);
  transition: transform 200ms ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: rotate(0deg);
}

.faq-answer {
  max-width: 62ch;
  padding: 0 48px 24px 0;
}

@media (min-width: 960px) {
  .faq-layout {
    display: grid;
    grid-template-columns: 38fr 62fr;
    gap: 64px;
    align-items: start;
  }

  .faq-aside {
    position: sticky;
    top: calc(var(--header-height) + 32px);
    margin-bottom: 0;
  }

  .faq-aside .section-head {
    margin-bottom: 0;
  }

  .faq-help {
    margin-top: 40px;
    padding: 28px;
  }

  .faq-item summary {
    font-size: 20px;
    min-height: 72px;
  }
}

/* ==========================================================================
   12. Localização e horário
   ========================================================================== */

.location-details {
  display: grid;
  gap: 16px;
}

.location-details dt {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.location-details dd {
  margin-top: 2px;
}

.hours {
  width: 100%;
  margin-top: 32px;
  border-collapse: collapse;
}

.hours caption {
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  text-align: left;
  color: var(--color-primary);
}

.hours th,
.hours td {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-sand-dark);
  font-weight: 400;
  text-align: left;
  vertical-align: top;
}

.hours td {
  text-align: right;
}

.hours tr.is-today th,
.hours tr.is-today td {
  font-weight: 700;
  color: var(--color-text);
}

.hours .status {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

.hours .status:empty {
  display: none;
}

.location-actions {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.map {
  position: relative;
  height: 280px;
  margin-top: 32px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-sand-dark);
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background-color: #EFE7DA;
  background-image:
    linear-gradient(var(--color-sand-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-sand-dark) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--color-text);
}

.map-fallback .icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
}

.map-fallback strong {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-primary);
}

.map-fallback span {
  font-size: 15px;
}

.map.is-loaded .map-fallback {
  display: none;
}

@media (min-width: 640px) {
  .location-actions {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (min-width: 960px) {
  .location .container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: stretch;
  }

  .map {
    height: auto;
    min-height: 520px;
    margin-top: 0;
  }
}

/* ==========================================================================
   13. Rodapé
   ========================================================================== */

.site-footer {
  padding: 64px 0 32px;
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.6;
}

.site-footer a {
  color: var(--color-white);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.site-footer .logo {
  color: var(--color-white);
}

.site-footer .logo-tag {
  color: rgba(255, 255, 255, 0.8);
}

.footer-about p {
  margin-top: 16px;
  max-width: 30ch;
}

.site-footer h2 {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
}

.site-footer li + li {
  margin-top: 6px;
}

.social {
  display: flex;
  gap: 12px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-button);
  transition: background-color 150ms ease;
}

.social a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.social .icon {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  display: grid;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
}

.footer-bottom button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 13px;
}

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

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1.2fr 1fr 0.8fr;
    gap: 48px;
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* ==========================================================================
   14. Botão flutuante de WhatsApp
   ========================================================================== */

.float-wa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(13, 55, 64, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms, background-color 150ms ease;
}

.float-wa.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s, background-color 150ms ease;
}

.float-wa:hover {
  background: var(--color-primary-dark);
}

.float-wa svg {
  width: 28px;
  height: 28px;
}

.is-print .float-wa {
  display: none;
}

@media (min-width: 960px) {
  .float-wa {
    right: 20px;
    bottom: 20px;
  }
}

/* ==========================================================================
   15. Modal de privacidade
   ========================================================================== */

.modal {
  width: min(560px, calc(100vw - 32px));
  padding: 32px;
  border: 0;
  border-radius: var(--radius-card);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
}

.modal::backdrop {
  background: rgba(13, 55, 64, 0.6);
}

.modal h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

.modal p + p {
  margin-top: 12px;
}

.modal .btn {
  margin-top: 24px;
}
