/* ==========================================================================
   E-MedCentre, design system
   Single stylesheet. Light theme, brand red derived from the E-MedCentre mark.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand */
  --red:        #c42b31;
  --red-hover:  #a41f25;
  --red-deep:   #7d1319;
  --red-tint:   #fbeff0;
  --red-line:   #f0d2d4;

  /* Ink & neutrals */
  --ink:        #16181c;
  --ink-2:      #3c434e;
  --muted:      #6a7280;
  --muted-2:    #8b93a0;
  --line:       #e6e5e3;
  --line-soft:  #f0efed;
  --bg:         #ffffff;
  --bg-soft:    #faf8f6;
  --bg-deep:    #1b1d22;

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Space & shape */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(22, 24, 28, .05), 0 1px 3px rgba(22, 24, 28, .04);
  --shadow:    0 2px 4px rgba(22, 24, 28, .04), 0 12px 28px -12px rgba(22, 24, 28, .16);
  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 48px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* A class that sets `display` beats the UA rule for [hidden], so anything the
   markup hides (the filter bar, the form alert) must be forced off here. */
[hidden] { display: none !important; }
svg, picture { max-width: 100%; display: block; }
/* width/height attributes are present on every <img> to reserve layout space and
   avoid CLS; height:auto lets the real aspect ratio drive the rendered box. */
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 1.4rem + 3.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-hover); }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .35em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 780px; margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line-soft); }
/* Visually hidden without pushing the page off-axis (an off-canvas left offset
   can add horizontal scroll on some mobile browsers). */
.hp, .skip {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  position: fixed; top: 0; left: 0; z-index: 200;
  width: auto; height: auto; margin: 0; padding: 12px 18px;
  clip: auto; clip-path: none; overflow: visible;
  background: var(--ink); color: #fff; border-radius: 0 0 var(--r-sm) 0;
}

.eyebrow {
  font-size: .79rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin: 0 0 .9rem; font-family: var(--sans);
}
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--ink-2); }
.section-head { max-width: 700px; margin-bottom: clamp(32px, 4vw, 52px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-size: .95rem; font-weight: 600; line-height: 1;
  padding: 15px 24px; border-radius: 100px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--muted-2); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f2efec; color: var(--ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.75); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; min-width: 0; }
/* Below ~400px a nowrap button can be wider than the screen; let the label wrap. */
@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; padding-inline: 20px; }
  .btn-row > .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 76px; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut);
}
.header__logo { display: block; flex-shrink: 0; }
.header__logo img { width: 178px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  font-size: .94rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  white-space: nowrap;
  padding: 9px 14px; border-radius: var(--r-sm); transition: background-color .15s, color .15s;
}
/* The in-nav CTA exists for the mobile drawer only. */
@media (min-width: 901px) { .nav > .btn { display: none; } }
.nav a:not(.btn):hover { background: var(--bg-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--red); font-weight: 600; }
.header__actions { display: flex; align-items: center; gap: 14px; }
.header__tel {
  font-size: .94rem; font-weight: 600; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  white-space: nowrap; min-height: 44px; padding-inline: 6px;
}
.header__tel:hover { color: var(--red); }
.header__tel svg { flex-shrink: 0; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm);
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
/* Tablet landscape and small laptops: the full nav, phone number and CTA together
   are wider than the viewport, so drop the phone label and tighten the spacing. */
@media (min-width: 901px) and (max-width: 1120px) {
  .header__inner { gap: 12px; }
  .nav a:not(.btn) { padding-inline: 10px; }
  .header__actions { gap: 10px; }
  .header__tel span, .header__wa span { display: none; }
  .header__tel, .header__wa { width: 44px; padding-inline: 0; border: 1px solid var(--line); border-radius: var(--r-sm); }
  .header__actions .btn { padding-inline: 18px; }
}
@media (max-width: 900px) {
  .header__inner { min-height: 66px; }
  .header__logo img { width: 142px; }
  .nav-toggle { display: inline-flex; }
  .header__actions .btn, .header__tel span, .header__wa span { display: none; }
  /* Icon-only on mobile, keep them full 44x44 targets, not bare 17px glyphs. */
  .header__tel, .header__wa {
    width: 44px; padding-inline: 0;
    border: 1px solid var(--line); border-radius: var(--r-sm);
  }
  .header__actions { gap: 8px; }
  .nav {
    position: fixed; inset: 66px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gut) 20px;
    box-shadow: var(--shadow); max-height: calc(100dvh - 66px); overflow-y: auto;
  }
  .nav[hidden] { display: none; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); border-radius: 0; font-size: 1.05rem; }
  .nav > .btn { margin-top: 18px; justify-content: center; }
}
/* Smallest phones: logo, landline, WhatsApp and the menu button together are
   wider than a 320px viewport, so tighten the logo and the gaps to fit. */
@media (max-width: 380px) {
  .header__inner { gap: 8px; padding-inline: 16px; }
  .header__logo img { width: 112px; }
  .header__actions { gap: 4px; }
  .header__tel, .header__wa, .nav-toggle { width: 40px; }
  .nav { padding-inline: 16px; }
}
@media (min-width: 901px) { .nav[hidden] { display: flex !important; } }

/* ---------- Hero ---------- */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(48px, 7vw, 88px);
}
.hero__title { margin-bottom: .45em; }
.hero__title em { font-style: normal; color: var(--red); }
.hero .lede { max-width: 50ch; margin-bottom: 2rem; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 44px);
  margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line);
}
.hero__stat strong {
  display: block; font-family: var(--serif); font-size: 1.85rem; font-weight: 600;
  color: var(--ink); line-height: 1.1;
}
.hero__stat span { font-size: .86rem; color: var(--muted); }
/* Hero mosaic: four square frames, staggered, reading as "many kinds of care". */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 18px); }
.mosaic figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: #eceae7; }
.mosaic img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.mosaic figure:nth-child(1) { border-top-left-radius: 92px; }
.mosaic figure:nth-child(4) { border-bottom-right-radius: 92px; }
.mosaic figure:nth-child(odd) { transform: translateY(clamp(-30px, -2.4vw, -14px)); }
.mosaic figure:nth-child(even) { transform: translateY(clamp(14px, 2.4vw, 30px)); }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { display: none; }
}

/* ---------- Directory ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 30px; }
/* Keep the filters on a single row at every width. Below the point where they
   stop fitting, the row scrolls sideways inside itself rather than wrapping,
   so the page itself never gains a horizontal scrollbar. */
.chips {
  display: flex; flex-wrap: nowrap; gap: 8px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-block: 2px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut);
  scroll-padding-inline: var(--gut);
}
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .chips { margin-inline: 0; padding-inline: 0; overflow-x: visible; }
}
.chip { flex: 0 0 auto; }
.chip {
  font-family: var(--sans); font-size: .875rem; font-weight: 500; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: 11px 17px; min-height: 44px; cursor: pointer; transition: all .16s ease;
}
.chip:hover { border-color: var(--muted-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.search { position: relative; flex: 0 1 290px; min-width: 220px; }
.search input {
  width: 100%; font-family: var(--sans); font-size: .95rem; color: var(--ink);
  padding: 12px 16px 12px 42px; border: 1px solid var(--line); border-radius: 100px;
  background: #fff; transition: border-color .16s, box-shadow .16s;
}
.search input::placeholder { color: var(--muted-2); }
.search input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }

.grid {
  display: grid; gap: clamp(18px, 2.2vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}
.card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d8d6d3; }
.card__media { position: relative; aspect-ratio: 4/3; background: var(--bg-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.035); }
.card__flag {
  position: absolute; top: 12px; left: 12px;
  font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 100px; background: var(--red); color: #fff;
}
.card__flag--new { background: var(--ink); }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__discipline {
  font-size: .76rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
  color: var(--red); margin-bottom: .5rem;
}
.card__name { font-size: 1.18rem; margin-bottom: .5rem; }
.card__name a { color: var(--ink); text-decoration: none; }
.card__name a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__name a:hover { color: var(--red); }
.card__blurb {
  font-size: .92rem; color: var(--muted); margin: 0 0 1.1rem;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__more {
  margin-top: auto; font-size: .88rem; font-weight: 600; color: var(--red);
  display: inline-flex; align-items: center; gap: .4em;
}
.card--vacant { border-style: dashed; border-color: var(--red-line); background: var(--red-tint); }
.card--vacant .card__media { opacity: .55; }
.no-results { display: none; padding: 48px 0; text-align: center; color: var(--muted); }
.no-results.is-shown { display: block; }

/* ---------- Feature blocks ---------- */
.features { display: grid; gap: clamp(24px, 3vw, 36px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--red-tint); color: var(--red);
  display: grid; place-items: center; margin-bottom: 18px;
}
.feature h3 { font-size: 1.15rem; margin-bottom: .4em; }
.feature p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- Split (location / hours) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.info-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.info-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); margin: 0; min-width: 0; }
.info-list li > div { min-width: 0; }
.info-list li:last-child { border-bottom: 0; }
.info-list svg { flex-shrink: 0; color: var(--red); margin-top: 5px; }
.info-list strong { display: block; color: var(--ink); font-weight: 600; font-size: .92rem; }
/* Emails and URLs are long and unbreakable; let them wrap rather than widen the page.
   The inline-block padding also lifts these text links to a comfortable tap height. */
.info-list a {
  color: var(--ink-2); text-decoration: none;
  display: inline-block; padding: 5px 0; overflow-wrap: anywhere;
}
.info-list a:hover { color: var(--red); text-decoration: underline; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.hours th { font-weight: 500; color: var(--ink-2); }
.hours td { text-align: right; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .closed { color: var(--muted-2); font-weight: 500; }
.map-frame {
  border: 0; width: 100%; aspect-ratio: 4/3; border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); background: var(--bg-soft);
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-deep); color: #e8e6e3; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b6b3ae; max-width: 56ch; }
.cta-band__inner {
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
  padding-block: clamp(48px, 6vw, 76px);
}
/* min-width:0 lets these flex children shrink below their content width instead of
   forcing the page wider than the viewport on narrow phones. */
.cta-band__inner > div { flex: 1 1 420px; min-width: 0; }
.cta-band .btn-row { flex: 1 1 auto; min-width: 0; }

/* ---------- Practitioner detail ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding-block: 14px 0; }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-block; padding: 7px 0; }
.crumbs a:hover { color: var(--red); text-decoration: underline; }
.crumbs span { margin-inline: .45em; color: var(--muted-2); }
.detail { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; padding-block: clamp(32px, 4vw, 52px) clamp(56px, 7vw, 88px); }
.detail > * { min-width: 0; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } }
.detail__media { position: sticky; top: 100px; }
@media (max-width: 860px) { .detail__media { position: static; } }
.detail__media img { border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; }
.detail__title { margin-bottom: .35em; }
.detail__role { font-size: 1.02rem; color: var(--muted); margin-bottom: 1.6rem; }
.detail__body { font-size: 1.05rem; }
.detail__body h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.services { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.services li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; margin: 0; }
.services svg { flex-shrink: 0; color: var(--red); margin-top: 5px; }
.contact-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 30px); margin-top: 2.4rem;
}
.contact-card h2 { font-size: 1.2rem; margin-top: 0; margin-bottom: .8rem; }

/* ---------- Related ---------- */
.related-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px; width: 100%;
  transition: border-color .16s, box-shadow .16s;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint);
}
.field-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
/* ---------- WhatsApp ---------- */
/* The mobile number is WhatsApp only, so it never appears without the mark. */
.header__wa {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  font-size: .94rem; font-weight: 600; color: var(--ink); text-decoration: none;
  white-space: nowrap; min-height: 44px; padding-inline: 6px;
}
.header__wa:hover { color: #1da851; }
.header__wa svg, .footer__wa svg { color: #25d366; flex-shrink: 0; }
/* Needs to outrank `.footer li a { display: inline-block }`, or the icon becomes
   a block and stacks above the number instead of sitting beside it. */
.footer .footer__wa a {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 7px 0; white-space: nowrap;
}
.info-list svg + div > a > svg { vertical-align: -3px; }
.info-list__hint { display: block; font-size: .82rem; color: var(--muted); margin-top: .1em; }
.info-list--lg li { padding: 16px 0; }

/* ---------- Category tiles (contact page) ---------- */
.cat-tile {
  display: flex; flex-direction: column; gap: .3em; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 24px; text-decoration: none; min-height: 104px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d8d6d3; }
.cat-tile__label { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.cat-tile__count { font-size: .88rem; color: var(--muted); }

.form__note { font-size: .85rem; color: var(--muted); }
.form__note a { display: inline-block; padding: 4px 0; }
/* .hp (hidden-but-present) is defined with .skip near the top of this file. */
/* Spam honeypot: fully removed from layout so it never affects the mobile viewport.
   Netlify matches it by field name, so display:none does not weaken it. */
.honeypot { display: none; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); color: #a9a6a1; font-size: .93rem; padding-block: clamp(48px, 6vw, 72px) 32px; }
.footer a { color: #d9d6d1; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: clamp(30px, 4vw, 52px); grid-template-columns: 1.15fr 1.5fr 1fr; }
.footer__cols { columns: 2; column-gap: 28px; }
.footer__cols li { break-inside: avoid; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer__grid { grid-template-columns: 1fr; } .footer__cols { columns: 1; } }
.footer h3 {
  font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #fff; margin-bottom: 1.1rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .15em; }
/* Footer links are navigation, not prose, give them a real tap height on phones. */
.footer li a { display: inline-block; padding: 7px 0; }
.footer__bottom a { padding: 4px 0; }
.footer__logo { width: 200px; height: auto; margin-bottom: 18px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  margin-top: clamp(36px, 5vw, 56px); padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem; color: #85817b;
}
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; transition: background-color .16s;
}
.social a:hover { background: var(--red); }

/* ---------- Misc ---------- */
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.pill {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--red); background: var(--red-tint);
  border-radius: 100px; padding: 6px 13px; margin-bottom: 1rem;
}
