/* Footer — rounded panel (10px inset, 24px radius) in the brand blue #083977 with cream ink
   (client round, 2026-10-26; it was logo gold with navy ink).
   Top: centred two-row title that mixes words and photo pills (toothcare.framer.website).
   Below: the practical block — doctor + social, both clinics + hours, contact channels,
   links — then a thin legal bar.
   Curtain reveal: .footer-reveal holds the space and clips (clip-path makes even a
   fixed child respect it); .site-footer is fixed to the viewport bottom, so as the last
   section scrolls away the footer is uncovered in place. base.js turns it on
   (html.footer-curtain) whenever the footer fits the viewport height; if it doesn't
   (a very short window), the footer simply flows so nothing gets cut off. */
.page {
  position: relative;
  z-index: 1;               /* the page slides over the footer */
}

.footer-reveal { position: relative; }
.site-footer {
  padding: 10px;
  background: var(--bg);
}
.footer-curtain .footer-reveal {
  height: var(--footer-h);
  clip-path: inset(0);
}
.footer-curtain .site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--footer-h);
}
/* the fixed header floats over the top of the panel: keep the content below it, and
   centre the whole block in what's left so no big empty bands open up */
.footer-curtain .site-footer__content {
  height: 100%;
  justify-content: center;
  padding-top: calc(var(--header-h, 0px) + clamp(16px, 3vh, 40px));
}

.site-footer__panel {
  position: relative;
  height: 100%;
  border-radius: 24px;
  background: var(--blue);
  color: var(--cream);
  overflow: hidden;
}

.site-footer__content {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(28px, 6vh, 80px) clamp(20px, 4vw, 56px) clamp(16px, 3vh, 28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(24px, 5vh, 72px);
}

/* Title: words + photo pills, one line tall */
.site-footer__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2.4vh, 28px);
  font-size: min(7.4vw, 10.5vh, 112px);
}
.site-footer__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.site-footer__word {
  font-size: 1em;
  line-height: .8;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-footer__pic {
  flex: none;
  width: 1.21em;
  height: .8em;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(253, 247, 235, .12);
}
.site-footer__pic--wide { width: 2.11em; }
.site-footer__pic img { width: 100%; height: 100%; object-fit: cover; }

/* Practical block */
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr .8fr;
  gap: clamp(20px, 3.5vh, 32px) clamp(24px, 3vw, 56px);
  padding-top: clamp(20px, 4vh, 40px);
  border-top: 1px solid rgba(253, 247, 235, .2);
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
}
/* the logo tooth is gold + navy: on the blue panel it sits on a cream tile so the navy stroke reads */
.site-footer__brand img { width: 48px; height: 48px; padding: 7px; border-radius: 12px; background: var(--cream); object-fit: contain; }
.site-footer__brand strong { display: block; font-size: 18px; font-weight: 600; line-height: 1.2; }
.site-footer__brand small { display: block; font-size: 13px; opacity: .75; }
.site-footer__about {
  margin: 0;
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(253, 247, 235, .85);
}
.site-footer__head {
  margin: 0 0 2px;
  font-size: var(--fs-eyebrow, 12px);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(253, 247, 235, .65);
}
.site-footer__line {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cream);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.site-footer__line strong { display: block; font-weight: 600; }
.site-footer__mail-short { display: none; }
a.site-footer__line { transition: opacity .25s ease; }
a.site-footer__line:hover { opacity: .7; }
.site-footer__line svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Links — the label rolls up and a softer copy rolls in on hover */
.roll-link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  height: 22px;
  overflow: hidden;
  color: var(--cream);
  font-size: 15px;
  line-height: 22px;
  text-decoration: none;
}
.roll-link__a,
.roll-link__b {
  display: block;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.roll-link__b { opacity: .6; }
.roll-link:hover .roll-link__a,
.roll-link:hover .roll-link__b,
.roll-link:focus-visible .roll-link__a,
.roll-link:focus-visible .roll-link__b { transform: translateY(-100%); }

/* Social — 40px cream-outlined circles; gold on hover */
.site-footer__social { display: flex; gap: 10px; margin-top: 4px; }
.site-footer__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(253, 247, 235, .1);
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(253, 247, 235, .22);
  transition: background-color .3s ease, color .3s ease;
}
.site-footer__icon:hover { background: var(--logo-gold); color: var(--navy); }
.site-footer__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-footer__icon svg .fill { fill: currentColor; stroke: none; }
.site-footer a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(253, 247, 235, .2);
  font-size: 13px;
  color: rgba(253, 247, 235, .7);
}
.site-footer__bottom p { margin: 0; }

@media (max-width: 1023.98px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
/* phones: two-column practical block with room to breathe. In curtain mode the
   blocks spread over the available height (space-evenly) instead of huddling in the
   middle; on short phones where it can't fit, base.js lets the footer flow instead. */
@media (max-width: 639.98px) {
  .site-footer { padding: 8px; }
  .site-footer__panel { border-radius: 20px; }
  .site-footer__content { padding: 28px 20px 16px; gap: 26px; }
  .footer-curtain .site-footer__content {
    justify-content: space-evenly;
    padding-top: calc(var(--header-h, 0px) + 16px);
  }
  .site-footer__title { font-size: 9.4vw; gap: 10px; }
  .site-footer__row { gap: 8px; }
  .site-footer__pic { border-radius: 10px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 26px 16px; padding-top: 22px; }
  .site-footer__col { gap: 10px; }
  .site-footer__col--brand { grid-column: 1 / -1; gap: 12px; }
  .site-footer__brand { gap: 10px; }
  .site-footer__brand img { width: 42px; height: 42px; padding: 6px; }
  .site-footer__brand strong { font-size: 17px; }
  .site-footer__brand small { font-size: 12px; }
  .site-footer__about { font-size: 14px; line-height: 1.6; }
  .site-footer__social { gap: 8px; margin-top: 0; }
  .site-footer__icon { width: 36px; height: 36px; }
  .site-footer__icon svg { width: 16px; height: 16px; }
  .site-footer__head { font-size: 11px; margin-bottom: 2px; }
  .site-footer__line, .roll-link { font-size: 14px; line-height: 1.45; gap: 8px; }
  .roll-link { height: 21px; line-height: 21px; }
  .site-footer__line svg { width: 16px; height: 16px; }
  .site-footer__mail-full { display: none; }
  .site-footer__mail-short { display: inline; }
  /* links: one wrapping row instead of a column */
  .site-footer__grid > nav { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
  .site-footer__grid > nav .site-footer__head { flex-basis: 100%; }
  .site-footer__bottom { flex-direction: column; gap: 4px; padding-top: 14px; font-size: 12px; line-height: 1.5; }
}
.site-footer__credit strong { font-weight: 600; color: var(--cream); }
.site-footer__credit a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s cubic-bezier(.16, 1, .3, 1); }
.site-footer__credit a:hover { background-size: 100% 1px; }

/* legal links beside the copyright (privacy, terms) */
.site-footer__legal { margin-left: 14px; color: inherit; text-decoration: underline; text-decoration-color: rgba(253, 247, 235, .3); text-underline-offset: 3px; }
@media (hover: hover) { .site-footer__legal:hover { text-decoration-color: currentColor; } }
