/* The visit, from first consultation through booking. */
/* The introduction and the three steps are typeset directly on the same paper. */
.consultation {
  padding-block: clamp(3rem, 7vw, 7rem) clamp(1.75rem, 4vw, 4rem);
  background: var(--paper);
  color: var(--ink);
}

.consultation-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.25rem, 4.6vw, 4.75rem);
}

.consultation-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: .7rem clamp(2rem, 6vw, 7rem);
  align-content: start;
}

.consultation h2 {
  grid-row: span 2;
  margin: 0;
  font-size: var(--section-heading);
  line-height: .95;
  letter-spacing: -.044em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.consultation h2 em { font-weight: inherit; }
.consultation-lead {
  align-self: end;
  max-width: 32ch;
  color: var(--ink);
  font: 600 clamp(1.5rem, 2.15vw, 2.05rem)/1.16 Cormorant, Georgia, serif;
}
.consultation-byline {
  max-width: 43ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.05vw, 1.1rem);
  line-height: 1.58;
}

.consultation-sequence {
  counter-reset: consultation-step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 4vw, 4.3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.consultation-sequence li { counter-increment: consultation-step; }
.consultation-number {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-block-end: .8rem;
  color: var(--gold-ink);
  font: italic 600 1.35rem/1 Cormorant, Georgia, serif;
  font-variant-numeric: lining-nums tabular-nums;
}
.consultation-number::before { content: counter(consultation-step, decimal-leading-zero); }
.consultation-number::after {
  content: "";
  flex: 1;
  border-block-start: 1px solid var(--copper);
}
.consultation-sequence li:nth-child(2) .consultation-number::after { border-block-start-style: dashed; }

.consultation-sequence h3 {
  font-size: clamp(1.875rem, 2.5vw, 2.35rem);
  letter-spacing: -.027em;
  line-height: 1.02;
  text-wrap: balance;
}

.consultation-sequence p {
  max-width: 61ch;
  margin-top: .65rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.12vw, 1.125rem);
  line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) {
  .enhanced .consultation-number::after {
    transform: scaleX(.9);
    transform-origin: left;
    transition: transform 360ms ease-out;
  }
  .consultation-sequence .is-reached .consultation-number::after { transform: none; }
}

@media (max-width: 840px) {
  .consultation-intro { display: block; }
  .consultation-lead { margin-block: 1rem .65rem; }
  .consultation-sequence { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .consultation-number { margin-block-end: .55rem; }
}

.visit, .questions, .booking {
  --section-space: clamp(4.5rem, 8.5vw, 8.75rem);
  --section-gap: clamp(2rem, 7vw, 7.5rem);
  padding-block: var(--section-space);
}

.visit h2, .questions h2, .booking h2 {
  margin: 0;
  font-size: var(--section-heading);
  letter-spacing: -.045em;
  line-height: .94;
  text-wrap: initial;
}

.visit h2, .booking h2 { font-style: italic; }
.visit h2::first-line, .booking h2::first-line { font-style: normal; }

.booking .wrap {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  grid-template-rows: auto 1fr;
  column-gap: var(--section-gap);
  align-items: start;
}

.booking h2 { grid-area: 1 / 1; }
.booking-bottom { display: contents; }

.booking-bottom > p {
  grid-area: 2 / 1;
  max-width: 33ch;
  margin-top: clamp(1.4rem, 2.6vw, 2.75rem);
  color: #d1d4da;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
}

.booking-links { grid-area: 1 / 2 / 3; }
.hours h3 {
  font-size: clamp(2rem, 2.8vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}

.visit { background: #f7f4ed; }
.visit-layout, .question-layout {
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  gap: var(--section-gap);
}

.visit .address {
  max-width: 39ch;
  margin: clamp(1.6rem, 2.5vw, 2.6rem) 0 .7rem;
  color: #50545b;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.72;
}

.visit .address::first-line { color: #272e39; font-weight: 500; }
.visit .text-link, .question-intro .text-link, .privacy-note .text-link {
  gap: 1.15rem;
  font-size: .94rem;
  font-weight: 500;
}

.visit .hours {
  padding: clamp(1.5rem, 3.6vw, 3.6rem);
  border-top: 2px solid #9b8357;
  background: #eeeae0;
}

.hours dl { margin-top: clamp(1.25rem, 2.1vw, 2rem); border-color: #c8c1b3; }
.hours dl > div {
  align-items: baseline;
  gap: .25rem 1rem;
  padding-block: 1rem;
  border-color: #c8c1b3;
  font-size: clamp(1rem, 1.08vw, 1.05rem);
}
.hours dt { font-weight: 500; }
.hours dd { color: #4c5058; }

.questions {
  padding-top: 0;
  border-top: 0;
  background: #f7f4ed;
}
.question-layout {
  padding-top: var(--section-space);
  border-top: 1px solid #cfc8b9;
}
.question-intro > p {
  max-width: 29ch;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.65;
}
.question-intro .text-link { margin-top: 1.2rem; }
.faq-list { border-top: 1px solid #98876c; }
.faq-list details { border-color: #cfc8b9; }
.faq-list summary {
  gap: clamp(.75rem, 2vw, 2rem);
  padding-block: clamp(1.05rem, 1.8vw, 1.7rem);
  color: #242c37;
  font: 600 clamp(1.55rem, 2.15vw, 2.3rem)/1.1 Cormorant, Georgia, serif;
  letter-spacing: -.015em;
}
.faq-list summary > span {
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid #c8c0af;
  border-radius: 50%;
  transition: transform 260ms var(--ease), background-color 200ms ease;
}
.faq-list summary > span img { width: .86rem; height: .86rem; }
.faq-list details[open] summary { color: #655230; }
.faq-list details[open] summary > span { background-color: #eee7d7; }
.faq-list .detail-body {
  max-width: 55ch;
  padding: 0 2.65rem 1.7rem 0;
  font-size: clamp(1rem, 1.1vw, 1.05rem);
}
.faq-list .detail-body p { line-height: 1.7; }

.booking {
  padding-bottom: clamp(2.4rem, 4.5vw, 4.5rem);
  background-color: #17202d;
  background-image: linear-gradient(106deg, rgb(23 32 45 / .93), rgb(23 32 45 / .99) 80%), url("assets/img/monograma.svg");
  background-position: center, -5rem bottom;
  background-size: cover, clamp(16rem, 35vw, 34rem) auto;
  background-repeat: no-repeat;
}
.booking h2 { color: #f4f1e9; }
.booking-recipient {
  min-height: 92px;
  gap: 1rem;
  border-top: 1px solid #d3c39f59;
  padding: clamp(1.15rem, 1.8vw, 1.85rem) 0;
  color: #f5f2e9;
  transition: color 200ms ease, border-color 200ms ease;
}
.booking-recipient:hover { padding-left: 0; }
.booking-recipient small { font-size: .9375rem; color: #c7ccd4; }
.booking-recipient small:first-child { color: #d7c6a3; }
.booking-recipient strong {
  margin: .28rem 0 .32rem;
  font-size: clamp(2.15rem, 3.1vw, 3.65rem);
  letter-spacing: -.03em;
  line-height: 1;
}
.booking-arrow {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: clamp(2.7rem, 3.9vw, 3.7rem);
  aspect-ratio: 1;
  border: 1px solid #d5c49e73;
  border-radius: 50%;
  font: 400 clamp(1.1rem, 1.6vw, 1.45rem)/1 Inter, Arial, sans-serif;
  transition: background-color 200ms ease, color 200ms ease;
}
.booking-recipient:hover .booking-arrow { transform: none; }
.booking-note { padding-top: 1.25rem; font-size: .9375rem; line-height: 1.65; }
.privacy-note {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: clamp(2.5rem, 5.5vw, 5.5rem);
  padding-top: clamp(1.5rem, 2.6vw, 2.7rem);
}
.booking .privacy-note p:first-child { color: #e2e2df; font-size: .9375rem; }
.booking .privacy-note p + p { color: #c7ccd4; font-size: var(--small-text); }

footer.surface-dark {
  padding-block: clamp(2.1rem, 4vw, 4rem) clamp(1.5rem, 2.5vw, 2.7rem);
  background: #111824;
}
.footer-top, .footer-bottom { gap: 1rem 2rem; }
.footer-top { font-size: .91rem; }
.footer-top .brand img { width: clamp(9.5rem, 13vw, 14rem); height: auto; }
.footer-top .back-top { gap: .8rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1.3rem; font-size: var(--small-text); color: #c3c8d1; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom > span { align-content: center; }

/* Appointments drawer, and the bottom sheet on phones. */
.booking-panel {
  width: min(31rem, 100%);
  background: var(--paper);
  box-shadow: -18px 0 70px rgb(17 24 36 / .18);
}
.booking-panel::backdrop { background: rgb(17 24 36 / .42); }
.bp-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 1.6rem 2rem;
  border-bottom: 1px solid var(--copper);
  background: var(--ink);
  color: var(--paper);
}
.bp-header h2 { font-size: clamp(2rem, 1.7rem + 1.3vw, 2.5rem); letter-spacing: -.03em; overflow-wrap: anywhere; }
.bp-close { border: 1px solid #c6b99b80; border-radius: 50%; color: #eee8da; }
.bp-header .bp-close:focus-visible { outline-color: #e0cb9f; }
.bp-close:hover { background: #394250; color: white; }
.bp-body { container: appointment-body / inline-size; padding: 1.8rem 2rem 2.8rem; }
.bp-context { color: var(--ink); font-size: 1.18rem; font-weight: 500; }
.bp-doctors { margin-top: 1.3rem; border-top: 1px solid var(--line); }
.bp-doctors > a { padding-block: 1.1rem; grid-template-columns: 3.75rem minmax(0,1fr) 1.3rem; gap: .9rem; }
.bp-doctors img { width: 3.75rem; height: 4.7rem; border-radius: 0; }
.bp-doctors strong {
  color: var(--ink);
  font: 600 1.75rem/1.02 Cormorant, Georgia, serif;
  letter-spacing: -.025em;
}
.bp-doctors small { margin-top: .3rem; font-size: var(--small-text); }
.bp-contact { margin-top: .35rem; font-size: .9375rem; }
.bp-note { font-size: var(--small-text); line-height: 1.6; }
.bp-location { margin-top: .85rem; font-size: .9375rem; }

@media (hover: hover) {
  .faq-list summary:hover > span { border-color: #9b8357; background: #e9e3d5; }
  .booking-recipient:hover .booking-arrow, .booking-recipient:focus-visible .booking-arrow {
    background-color: #dccba8;
    color: #202838;
  }
  .footer-top a:not(.brand):hover, .footer-bottom a:hover { text-decoration: underline; text-underline-offset: .3em; }
}

@media (min-width: 701px) and (max-width: 980px) {
  .visit, .questions, .booking { --section-gap: clamp(2rem, 4vw, 3rem); }
  .visit-layout, .question-layout, .booking .wrap { grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); }
  .visit .hours { padding: 1.65rem; }
  .hours dl > div { display: grid; }
  .privacy-note { flex-direction: row; align-items: center; }
}

@media (max-width: 700px) {
  .visit, .questions, .booking { --section-space: clamp(3.6rem, 12vw, 5rem); }
  .visit-layout, .question-layout, .booking .wrap { grid-template-columns: minmax(0,1fr); gap: 0; }
  .booking h2, .booking-bottom > p, .booking-links { grid-area: auto; }
  .booking-bottom > p { margin-top: 1.35rem; }
  .visit .hours, .faq-list, .booking-links { margin-top: clamp(1.85rem, 7vw, 2.8rem); }
  .visit .hours { padding: 1.35rem; }
  .question-intro > p { margin-top: 1.15rem; }
  .question-intro .text-link { margin-top: .55rem; }
  .faq-list .detail-body { padding-right: 1.6rem; }
  .booking { background-position: center, -5rem top; }
  .privacy-note { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .footer-top { flex-wrap: wrap; }
  .footer-top .brand { width: 100%; }
  .footer-bottom { display: grid; gap: 0; }
}

@media (max-width: 600px) {
  .booking-panel { width: 100%; border-radius: 12px 12px 0 0; }
  .bp-header { padding: .9rem clamp(1rem, 5vw, 1.65rem); }
  .bp-body { padding: 1.15rem clamp(1rem, 5vw, 1.65rem) max(1.4rem, env(safe-area-inset-bottom)); }
}

@media (max-width: 395px) {
  .hours dl > div { display: grid; }
  .footer-top { gap: .5rem 1rem; }
  .footer-top .back-top { margin-left: 0; }
  .bp-doctors > a { grid-template-columns: 3.15rem minmax(0,1fr) 1rem; gap: .7rem; }
  .bp-doctors img { width: 3.15rem; height: 4.25rem; }
  .bp-doctors strong { font-size: 1.6rem; }
}

/* When the user enlarges text, give the contact details the full reading width. */
@container appointment-body (max-width: 14rem) {
  .bp-doctors > a { grid-template-columns: minmax(0, 1fr) 18px; column-gap: 8px; }
  .bp-doctors img { display: none; }
  .bp-doctors strong { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: no-preference) {
  .booking-panel[open] { animation: appointment-in 230ms var(--ease) both; }
  @keyframes appointment-in { from { opacity: .35; transform: translateX(1rem); } }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .booking-panel[open] { animation-name: appointment-up; }
  @keyframes appointment-up { from { opacity: .35; transform: translateY(.75rem); } }
}
@media (prefers-reduced-motion: reduce) {
  .booking-arrow, .faq-list summary > span { transition: none; }
}
