/* Selma Lemos — shared design system
   Palette and lotus mark come from Selma's business card. */

:root {
  color-scheme: light;

  /* Colour */
  --ivory: #f3eeea;
  --sand: #ebe0d4;
  --espresso: #3a260d;
  --ink: #464443;
  --gold: #d0973f;
  --whatsapp: #25d366;
  --rule: rgb(58 38 13 / .16);
  --tint: rgb(58 38 13 / .07);

  /* Type: one system family, five sizes, two weights */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-h1: clamp(2.25rem, 1.5rem + 3.75vw, 4rem);      /* 36–64 */
  --text-h2: clamp(1.75rem, 1.4rem + 1.75vw, 2.75rem);   /* 28–44 */
  --text-h3: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);     /* 20–24 */
  --text-body: 1rem;                                     /* 16 */
  --text-small: .875rem;                                 /* 14 */
  --regular: 400;
  --strong: 600;

  /* Space: 8 px scale */
  --s-1: .5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-6: 3rem;
  --s-8: 4rem;
  --s-12: 6rem;
  --section: clamp(var(--s-8), 9vw, var(--s-12));

  /* Layout */
  --gutter: clamp(var(--s-3), 5vw, var(--s-8));
  --content: min(70rem, 100% - 2 * var(--gutter));
  --header: 3.5rem;
  --radius-s: .5rem;
  --radius-m: 1rem;
  --radius-l: 1.5rem;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --quick: .16s;
  --calm: .26s;

  /* Liquid Glass */
  --glass-fill: rgb(243 238 234 / .72);
  --glass-edge: inset 0 1px 0 rgb(255 255 255 / .8), inset 0 0 0 1px rgb(255 255 255 / .3);
  --glass-depth: 0 0 0 1px rgb(58 38 13 / .07), 0 1px 2px rgb(58 38 13 / .06), 0 12px 32px -12px rgb(58 38 13 / .22);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--ivory);
  scroll-padding-top: calc(var(--header) + var(--s-4));
  scroll-padding-bottom: calc(3.75rem + 2 * var(--s-2));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: var(--regular) var(--text-body) / 1.5 var(--font);
  overflow-wrap: anywhere; /* Long words break before they can widen the page at high zoom. */
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  color: var(--espresso);
  font-weight: var(--strong);
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); line-height: 1.08; letter-spacing: -.028em; }
h2 { font-size: var(--text-h2); line-height: 1.14; letter-spacing: -.022em; }
h3 { font-size: var(--text-h3); line-height: 1.25; letter-spacing: -.012em; }
p { text-wrap: pretty; }
strong { color: var(--espresso); font-weight: var(--strong); }

a { color: var(--espresso); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--espresso); outline-offset: 3px; border-radius: var(--radius-s); }
::selection { background: rgb(208 151 63 / .32); }

.wrap { width: var(--content); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 40;
  top: var(--s-1);
  left: var(--s-1);
  padding: var(--s-1) var(--s-2);
  border-radius: var(--radius-s);
  background: var(--espresso);
  color: var(--ivory);
  font-weight: var(--strong);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline-color: var(--gold); }

/* ---------- Shared type pieces ---------- */

/* Label: 14 px, led by a fine gold rule */
.label {
  display: flex;
  align-items: flex-start;
  gap: var(--s-1);
  color: var(--espresso);
  font-size: var(--text-small);
  font-weight: var(--strong);
  line-height: 1.43;
  letter-spacing: .01em;
}
.label::before { content: ""; flex: none; width: var(--s-3); height: 1px; margin-top: calc(.715em - .5px); background: var(--gold); }

.lead { max-width: 36rem; font-size: var(--text-h3); line-height: 1.4; letter-spacing: -.008em; }
.small { font-size: var(--text-small); line-height: 1.43; }
.prose > * + * { margin-top: var(--s-2); }
.prose { max-width: 38rem; }

/* ---------- Actions ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  min-height: 3rem;
  padding: .75rem var(--s-3);
  border: 1px solid transparent;
  border-radius: var(--radius-l); /* A pill on one line, a rounded rectangle if the label wraps */
  font-weight: var(--strong);
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--quick) ease, transform var(--quick) ease;
}
.button:active { transform: scale(.98); }
.button:focus-visible { border-radius: var(--radius-l); }
.button-primary { background: var(--espresso); color: var(--ivory); }
.button-primary:hover { background: color-mix(in srgb, var(--espresso) 86%, var(--ivory)); }

.button-icon { display: block; flex: none; width: 1.25rem; height: 1.25rem; }

/* Text link with a chevron, for routes to more information */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-height: 2.75rem;
  color: var(--espresso);
  font-weight: var(--strong);
  text-decoration: none;
}
.link-arrow::after {
  content: "";
  flex: none;
  width: .45em;
  height: .45em;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
  transition: translate var(--quick) ease;
}
a.link-arrow:hover { text-decoration: underline; text-decoration-thickness: 1px; }
a.link-arrow:hover::after, .preview-card:hover .link-arrow::after { translate: 3px 0; }

/* ---------- Liquid Glass ---------- */

/* Opaque ivory by default. Blur and translucency are added only where supported. */
.glass { border: 1px solid transparent; background: var(--ivory); box-shadow: var(--glass-edge), var(--glass-depth); }

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass {
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    backdrop-filter: blur(16px) saturate(1.6);
  }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .glass { background: var(--ivory) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Header ---------- */

/* Without JavaScript the header sits in the flow and the links wrap below the brand. */
.site-header {
  position: relative;
  z-index: 20;
  width: calc(var(--content) + 2 * var(--s-2));
  margin: var(--s-1) auto 0;
}
.header-glass { border-radius: calc(var(--header) / 2); }
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-height: var(--header);
  padding-inline: calc(var(--s-2) - 1px) calc(var(--s-1) - 1px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: var(--espresso);
  font-weight: var(--strong);
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand svg { flex: none; width: 2rem; height: 2rem; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  min-height: 2.75rem;
  padding-inline: var(--s-2);
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--espresso);
  font: var(--strong) var(--text-small) / 1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--quick) ease;
}
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: var(--tint); }
.menu-toggle:focus-visible { border-radius: 999px; }
.menu-icon { position: relative; width: 1rem; height: .5rem; }
.menu-icon::before, .menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform var(--calm) var(--ease);
}
.menu-icon::before { top: 0; }
.menu-icon::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-3px) rotate(-45deg); }

.site-nav ul { display: flex; flex-wrap: wrap; padding: 0 var(--s-1) var(--s-1); }
.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: var(--s-1);
  border-radius: 999px;
  color: var(--espresso);
  font-weight: var(--strong);
  text-decoration: none;
  transition: background-color var(--quick) ease;
}
.site-nav a:hover { background: var(--tint); }
.site-nav a:focus-visible { border-radius: 999px; }
/* Active page: a short gold rule */
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: .375rem;
  left: var(--s-1);
  width: var(--s-2);
  height: 2px;
  border-radius: 1px;
  background: var(--gold);
}

/* Compact header: one row, links expand inside the same glass surface */
@media (max-width: 39.99rem) {
  .js .site-header {
    position: sticky;
    top: max(var(--s-1), env(safe-area-inset-top, 0px));
    height: var(--header);
  }
  .js .header-glass { position: absolute; inset: 0 0 auto; }
  .js .site-nav {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows var(--calm) var(--ease), visibility 0s linear var(--calm);
  }
  .js .site-nav ul {
    display: block;
    min-height: 0;
    padding: 0 var(--s-1);
    overflow: hidden;
    opacity: 0;
    transition: opacity var(--quick) ease;
  }
  .js .site-nav li { border-top: 1px solid var(--rule); }
  .js .site-nav li:last-child { padding-bottom: var(--s-1); }
  .js .site-nav a { min-height: 3.25rem; padding-inline: var(--s-1) var(--s-2); border-radius: var(--radius-s); }
  .js .site-nav a[aria-current="page"]::after { top: 50%; right: var(--s-1); bottom: auto; left: auto; width: var(--s-1); height: var(--s-1); margin-top: -.25rem; border-radius: 50%; }

  /* The open menu carries links over moving content, so its glass is denser. */
  .js .header-glass { transition: background-color var(--calm) ease; }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .js [data-menu="open"] .header-glass { background: rgb(243 238 234 / .9); }
  }
  .js [data-menu="open"] .site-nav { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
  .js [data-menu="open"] .site-nav ul { opacity: 1; transition-delay: .06s; }
}

/* Phone at 200% zoom: the mark and the Menu label alone still fit one row. */
@media (max-width: 18.74rem) {
  .js .brand span { display: none; }
  .js .menu-toggle { padding-inline: .75rem; }
}
@media (max-width: 11.99rem) {
  .js .menu-icon { display: none; }
}

@media (min-width: 40rem) {
  .site-header {
    position: sticky;
    top: max(var(--s-1), env(safe-area-inset-top, 0px));
  }
  .header-glass { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
  .header-bar { padding-right: 0; }
  .menu-toggle { display: none; }
  .site-nav ul { gap: var(--s-1); padding: 0 var(--s-1); }
  .site-nav a { padding-inline: var(--s-2); font-size: var(--text-small); }
  .site-nav a[aria-current="page"]::after { left: var(--s-2); }
}

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

.section { padding-block: var(--section); }
.section-sand { background: var(--sand); }
.section-rule > .wrap { padding-top: var(--section); border-top: 1px solid var(--rule); }
.section-rule { padding-top: 0; }

.section-head { max-width: 40rem; }
.section-head h2 { margin-top: var(--s-2); }
.section-head > p:not(.label) { margin-top: var(--s-2); }

.split { display: grid; gap: var(--s-4); }
.split > * { min-width: 0; }
/* Two equal columns once the longest heading word fits the first one. */
@media (min-width: 56rem) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); }
  .split-sticky > :first-child { position: sticky; top: calc(var(--header) + var(--s-4)); align-self: start; }
}

/* ---------- Home hero ---------- */

.hero { padding-block: clamp(var(--s-4), 6vw, var(--s-8)) var(--section); }
.hero-grid { display: grid; gap: var(--s-4); align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { max-width: 12em; }
.hero-experience {
  margin-top: var(--s-2);
  color: var(--espresso);
  font-size: var(--text-h3);
  font-weight: var(--strong);
  line-height: 1.3;
}
.hero .lead { margin-top: var(--s-2); font-size: var(--text-body); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); }
.hero .actions { margin-top: var(--s-3); }

.portrait { width: 100%; max-width: 28rem; }
.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-l);
  background: var(--sand);
}

@media (min-width: 48rem) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); }
  .portrait { justify-self: end; }
}

/* ---------- Treatment previews ---------- */

.preview-grid { display: grid; gap: var(--s-2); margin-top: var(--s-6); }
.preview-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--s-4) var(--s-3) var(--s-2);
  border-radius: var(--radius-m);
  background: var(--sand);
  transition: background-color var(--quick) ease;
}
.preview-card:hover { background: color-mix(in srgb, var(--sand) 92%, var(--espresso)); }
.preview-card h3 a { text-decoration: none; }
.preview-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.preview-card h3 a:focus-visible { outline: none; }
.preview-card h3 a:focus-visible::after { outline: 2px solid var(--espresso); outline-offset: 3px; }
.preview-card p { margin-block: var(--s-1) var(--s-2); }
.preview-card .link-arrow { margin-top: auto; font-size: var(--text-small); }

@media (min-width: 40rem) {
  .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-card { padding: var(--s-4) var(--s-3) var(--s-3); }
}
@media (min-width: 70rem) {
  .preview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Numbered steps ---------- */

.steps { counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--s-2);
  padding-block: var(--s-3);
  border-top: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--espresso);
  font-size: var(--text-small);
  font-weight: var(--strong);
}
.steps h3 + p { margin-top: var(--s-1); }

/* ---------- Page intro (Treatments, About) ---------- */

.page-intro { padding-block: clamp(var(--s-6), 7vw, var(--s-12)) var(--section); }
.page-intro h1 { max-width: 14em; margin-top: var(--s-2); }
.page-intro .lead { margin-top: var(--s-3); }

.jump { margin-top: var(--s-4); }
.jump ul { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-2); }
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: var(--s-1) var(--s-2);
  border-radius: 999px;
  background: var(--sand);
  font-size: var(--text-small);
  font-weight: var(--strong);
  line-height: 1.25;
  text-decoration: none;
  transition: background-color var(--quick) ease;
}
.jump a:hover { background: color-mix(in srgb, var(--sand) 90%, var(--espresso)); }
.jump a:focus-visible { border-radius: 999px; }
.jump .jump-cases { gap: var(--s-1); background: none; box-shadow: inset 0 0 0 1px var(--espresso); }
.jump .jump-cases:hover { background: var(--tint); }
.jump .jump-cases::after { margin-top: -.2em; transform: rotate(135deg); } /* Points down the page */
.jump a.jump-cases:hover::after { translate: 0 2px; }

/* ---------- Treatment detail ---------- */

.treatment h2 { margin-top: var(--s-2); }
.treatment .split > :first-child > p:not(.label) { margin-top: var(--s-2); }
.points > div { padding-block: var(--s-3); border-top: 1px solid var(--rule); }
.points > div:last-child { border-bottom: 1px solid var(--rule); }
.points h3 + p { margin-top: var(--s-1); }
.points p + p { margin-top: var(--s-2); }

/* ---------- Clinical cases ---------- */

.cases-note {
  margin-top: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--sand);
}
.case-list { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.case {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-l);
  background: color-mix(in srgb, var(--sand) 66%, var(--ivory));
}
.case h3, .case-note { margin-top: var(--s-1); }

.case-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) .75rem; }
.case-photos-wide { --photo-ratio: 2 / 1; }
.case-photos-sequence { --photo-ratio: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.clinical-photo {
  position: relative;
  display: grid;
  aspect-ratio: var(--photo-ratio, 4 / 3);
  border-radius: var(--radius-m);
  background: var(--sand);
  isolation: isolate;
}
.clinical-photo img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
  object-fit: contain;
}
.clinical-photo .clinical-photo-preview { object-fit: cover; }
.clinical-photo-toggle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: .375rem;
  border: 0;
  border-radius: inherit;
  background: rgb(58 38 13 / .12);
  color: var(--espresso);
  cursor: pointer;
}
.clinical-photo-action {
  padding: .325rem .65rem;
  border-radius: 999px;
  background: var(--ivory);
  box-shadow: var(--glass-edge), 0 1px 6px rgb(58 38 13 / .18);
  font: var(--strong) var(--text-small) / 1.25 var(--font);
}
.clinical-photo-toggle:hover { background: rgb(58 38 13 / .23); }
.clinical-photo-toggle:hover .clinical-photo-action { background: white; }
.clinical-photo-toggle:focus-visible { border-radius: inherit; }
.clinical-photo-toggle[aria-disabled="true"] { cursor: progress; }
.clinical-photo[data-revealed="true"] .clinical-photo-toggle {
  place-items: start end;
  background: transparent;
}
.clinical-figure figcaption, .clinical-photo-status {
  margin-top: var(--s-1);
  font-size: var(--text-small);
  line-height: 1.43;
}
.clinical-figure figcaption { color: var(--espresso); font-weight: var(--strong); }
.clinical-photo-status:empty { margin-top: 0; }

.clinical-feature {
  --photo-ratio: 4 / 5;
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding: var(--s-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-l);
  background: var(--sand);
}
.clinical-feature-copy { align-self: center; }
.clinical-feature-copy > * + * { margin-top: var(--s-1); }
.clinical-feature-note { max-width: 31ch; }
.clinical-feature .clinical-figure { width: 100%; max-width: 22rem; justify-self: end; }

@media (min-width: 40rem) {
  .case { padding: var(--s-3); }
  .case-photos { gap: var(--s-2); }
  .clinical-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, .75fr);
    padding: var(--s-4);
  }
}
@media (min-width: 64rem) {
  .case { grid-template-columns: .8fr 2fr; gap: var(--s-4); }
}

/* ---------- Questions ---------- */

.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 4rem;
  padding-block: var(--s-2);
  color: var(--espresso);
  font-weight: var(--strong);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: .5rem;
  height: .5rem;
  margin: -.25rem .25rem 0;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform var(--calm) var(--ease);
}
.faq details[open] summary::after { margin-top: .25rem; transform: rotate(225deg); }
.faq details > p { max-width: 38rem; padding-bottom: var(--s-3); }

/* ---------- Closing action ---------- */

.closing-flush { padding-top: 0; }
.closing-panel {
  position: relative;
  padding: clamp(var(--s-2), 6vw, var(--s-8));
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--sand);
}
/* The card's lotus, as a quiet gold outline in the corner */
.closing-panel::after {
  content: "";
  position: absolute;
  right: -2.5rem;
  bottom: -3.5rem;
  width: 10rem;
  height: 10rem;
  background: url("/assets/brand/selma-lemos-lotus.svg") center / contain no-repeat;
  opacity: .7;
  pointer-events: none;
}
.closing-panel > * { position: relative; z-index: 1; }
.closing-panel p { max-width: 32rem; margin-top: var(--s-2); }
.closing-panel .button { margin-top: var(--s-4); }
@media (min-width: 48rem) {
  .closing-panel::after { right: 2rem; bottom: -5rem; width: 22rem; height: 22rem; }
}

/* ---------- About ---------- */

.profile { display: grid; gap: var(--s-6); align-items: center; }
.profile .registration { margin-top: var(--s-2); color: var(--espresso); font-weight: var(--strong); }
.profile .portrait { max-width: 20rem; }
@media (min-width: 48rem) {
  .profile { grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--s-8); }
}

.areas li { padding-block: var(--s-2); border-top: 1px solid var(--rule); color: var(--espresso); font-weight: var(--strong); }
.areas li:last-child { border-bottom: 1px solid var(--rule); }
.areas-title { margin-bottom: var(--s-2); }
@media (min-width: 56rem) {
  .areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4); }
  .areas li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--rule); }
}

.principles { display: grid; gap: var(--s-2); margin-top: var(--s-6); }
.principles li { padding: var(--s-4) var(--s-3); border-radius: var(--radius-m); background: var(--ivory); }
.principles h3 + p { margin-top: var(--s-1); }
@media (min-width: 56rem) {
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.after-list { margin-top: var(--s-3); }

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

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid rgb(208 151 63 / .58);
  background: radial-gradient(ellipse at 11% 0%, #4b3218, transparent 63%), #2b1c0d;
  color: var(--sand);
  font-size: var(--text-small);
  line-height: 1.5;
}

.site-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto auto -6rem calc((100% - var(--content)) / 2 - 8rem);
  width: 21rem;
  height: 21rem;
  background: url("/assets/brand/selma-lemos-lotus.svg") center / contain no-repeat;
  opacity: .18;
  pointer-events: none;
}

.site-footer :focus-visible { outline-color: var(--ivory); }

.footer-grid {
  display: grid;
  gap: var(--s-4);
  padding-block: var(--s-6) var(--s-4);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .875rem;
  color: var(--ivory);
  font-size: var(--text-h3);
  font-weight: var(--strong);
  line-height: 1.2;
  letter-spacing: -.025em;
  text-decoration: none;
}

.footer-brand svg {
  flex: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgb(208 151 63 / .38);
  border-radius: .875rem;
}

.footer-intro { max-width: 26ch; margin-top: var(--s-2); font-size: var(--text-body); }
.footer-registration { margin-top: var(--s-1); color: #d6c5b2; }

.footer-title {
  margin-bottom: .25rem;
  color: #e2b46c;
  font-size: var(--text-small);
  line-height: 1.5;
  letter-spacing: .015em;
}

.footer-links {
  display: grid;
  justify-items: start;
}

.footer-pages .footer-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--s-2);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: var(--ivory);
  text-decoration: none;
  text-underline-offset: .25em;
}

.footer-links a:hover, .footer-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: #e2b46c;
}

/* Leave room for the floating shortcut at the bottom edge. */
.footer-note {
  padding-block: var(--s-2) max(var(--s-4), env(safe-area-inset-bottom, 0px));
  padding-inline-end: 5.5rem;
  border-top: 1px solid rgb(243 238 234 / .18);
  color: #d6c5b2;
}

@media (min-width: 26rem) {
  .footer-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr); }
  .footer-identity { grid-column: 1 / -1; }
  .footer-pages .footer-links { display: grid; }
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 4fr);
    gap: clamp(var(--s-4), 5vw, var(--s-8));
    padding-block: var(--s-8) var(--s-6);
  }
  .footer-identity { grid-column: auto; }
  .footer-note { padding-block: var(--s-3); }
}

/* ---------- Floating WhatsApp shortcut ---------- */

.floating-whatsapp {
  position: fixed;
  z-index: 15;
  right: max(var(--s-2), env(safe-area-inset-right, 0px));
  bottom: max(var(--s-2), env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--espresso);
  box-shadow: 0 0 0 1px rgb(58 38 13 / .35), 0 2px 4px rgb(58 38 13 / .14), 0 12px 28px -8px rgb(58 38 13 / .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(var(--s-1)) scale(.9);
  transition: opacity var(--quick) ease, transform var(--calm) var(--ease), visibility 0s linear var(--calm);
}
.floating-whatsapp[data-visible="true"] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.floating-whatsapp:focus-visible { border-radius: 50%; outline-offset: 4px; }
.floating-whatsapp svg { width: 2.125rem; height: 2.125rem; }
@media (min-width: 48rem) {
  .floating-whatsapp { right: var(--s-3); bottom: var(--s-3); width: 4rem; height: 4rem; }
}

/* ---------- Not found ---------- */

.not-found { display: grid; justify-items: start; gap: var(--s-3); padding-block: var(--section); }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* A short cross-fade between the three pages. The header is not given its own
     transition name: that would isolate it and switch off the glass blur. */
  @view-transition { navigation: auto; }
  ::view-transition-group(root) { animation-duration: .2s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; }
}
