/* Shared clinic details, booking receipts and appointment card. */
:root {
  --p-surface: #EEF3FC;          /* signage tint, replaces the generic cream ground */
  --sign: #2251D3;               /* the clinic's signage blue */
  --sign-deep: #1B44B4;
  --card-stock: #F7F3EA;         /* appointment card paper only */
  --hair: rgb(16 28 44 / .12);
}

.sr-only, .visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}


/* ---------- Copy buttons and the printed receipt ---------- */
.copy-btn {
  min-height: 44px; padding: 0 2px; border: 0; background: none; color: inherit; cursor: pointer;
  font: 500 var(--t-small)/1 var(--font-text); text-decoration: underline; text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.copy-btn:hover { text-decoration-thickness: 2px; }
.receipt:empty { display: none; }
.receipt {
  position: absolute; left: 0; top: 100%; z-index: 2; margin-top: 2px;
  padding: 8px 12px 12px; background: #fff; color: #101C2C; font: 500 13px/1.3 var(--font-text);
  border-radius: 4px 4px 0 0; box-shadow: 0 8px 18px -10px rgb(16 28 44 / .45);
  clip-path: polygon(0 0,100% 0,100% calc(100% - 5px),92% 100%,84% calc(100% - 5px),76% 100%,68% calc(100% - 5px),60% 100%,52% calc(100% - 5px),44% 100%,36% calc(100% - 5px),28% 100%,20% calc(100% - 5px),12% 100%,4% calc(100% - 5px),0 100%);
}
.receipt.is-printing { animation: receipt-print .5s steps(5, end) both; }
@keyframes receipt-print { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }


/* ---------- Payment stamps ---------- */
.stamps { gap: var(--s-4) !important; }
.stamps img {
  box-sizing: content-box; width: 96px !important; height: 40px !important; object-fit: contain;
  padding: 12px 14px; background: #fff; border: 5px dotted var(--bg); background-clip: border-box;
  border-radius: 3px; box-shadow: 0 0 0 1px var(--hair);
}

/* ---------- Closing: the appointment card ---------- */
.close-grid { align-items: center; }
.appt-card {
  position: relative; background: var(--card-stock); color: #101C2C; border-radius: 14px;
  padding: 28px 28px 24px 36px; box-shadow: 0 0 0 1px var(--hair), 0 30px 50px -36px rgb(16 28 44 / .5);
}
.appt-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; border-radius: 14px 0 0 14px; background: var(--sign); }
.appt-card__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--hair); }
.appt-card__top img { width: 150px; height: auto; }
.appt-card__top p { font: 500 var(--t-small)/1.2 var(--font-text); color: #55697C; }
.appt-card__facts { margin: var(--s-4) 0 0; display: grid; gap: var(--s-3); }
.appt-card__facts > div { display: grid; grid-template-columns: 92px 1fr; gap: var(--s-3); align-items: baseline; }
.appt-card__facts dt { font-size: var(--t-small); color: #55697C; }
.appt-card__facts dd { margin: 0; position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-3); font-size: var(--t-body); line-height: 1.45; }
.appt-card__facts dd a { min-height: 44px; display: inline-flex; align-items: center; color: inherit; }
.appt-card__lines { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-4); margin-top: var(--s-5); }
.appt-card__lines span {
  padding-top: 26px; border-bottom: 1px solid rgb(16 28 44 / .35); font-size: 12px; color: #55697C; line-height: 1;
}

/* ---------- Appointment slip after a sent request ---------- */
.appt-slip {
  position: relative; margin-top: var(--s-5); padding: 22px 26px; background: #fff; color: #101C2C; border-radius: 12px;
  box-shadow: 0 0 0 1px var(--hair);
  -webkit-mask: radial-gradient(circle 11px at 0 62%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% 62%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 62%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% 62%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.appt-slip h3 { font-family: var(--font-display); font-size: var(--t-h3); margin: 0 0 var(--s-3); }
.appt-slip dl { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--s-4); margin: 0; font-size: var(--t-small); }
.appt-slip dt { color: #55697C; }
.appt-slip .tear { margin: 18px -26px 14px; border-top: 2px dashed rgb(16 28 44 / .2); }
.appt-slip p { font-size: var(--t-small); }
.appt-slip.is-printing { animation: slip-in .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes slip-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }


.specialities-item .nav__expand { width: 44px; }
.icon-badge { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: #EAF0FD; color: #2251D3; }
.icon-badge svg { display: block; width: 24px; height: 24px; }
.whatsapp-qr { display: block; flex: none; width: 124px; height: 124px; padding: 8px; background: #fff; color: #101C2C; border-radius: 8px; }


/* A blue booking band, then a navy directory. */
.footer.closing { height: auto !important; min-height: 100svh; padding: 0; background: #101C2C; color: #fff; --ink: #fff; --muted: #C5D4E8; --line: rgb(255 255 255 / .25); --accent: #fff; --action: #fff; --action-ink: #101C2C; }
.footer.closing .closing__cta { padding-block: 64px; background: #1F4CC3; }
.close-grid { align-items: start; }
.close-copy .section-head { margin-bottom: 24px; }
.close-copy h2 { font-size: clamp(48px,5vw,72px); }
.close-copy p { margin-top: 20px; color: #fff; font-size: 17px; }
.close-copy .btn-row { flex-wrap: wrap; gap: 12px; }
.close-copy .btn--primary { background: #fff; color: #101C2C; }
.close-copy .btn--secondary { color: #fff; }
.close-copy .close-phone { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; color: #fff; }
.footer.closing .closing__links { padding-block: 48px 24px; background: #101C2C; }
.footer-columns { align-items: start; }
.footer-columns .nav__logo img { width: 180px; height: auto; padding: 12px; box-sizing: content-box; border-radius: 10px; background: #fff; }
.footer-columns .nav__logo span { color: #C5D4E8; margin-top: 8px; }
.footer-columns p { font-size: 14px; line-height: 1.6; color: #C5D4E8; }
.footer-columns .footer-kerf { margin-top: 16px; }
.footer-kerf a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__col h3 { color: #C5D4E8; }
.footer__col a { color: #fff; }
.footer-payments img { background: #fff; padding: 6px; border-radius: 5px; }
.footer__legal { color: #C5D4E8; border-top: 1px solid var(--line); padding-top: 16px; }
.footer__legal a { color: #fff; }

/* Both faces occupy the same grid cell, so changing sides never shifts the page. */
.appt-card { padding: 0; background: none; box-shadow: none; perspective: 1200px; max-width: none; }
.appt-card::before { display: none; }
.appt-card__rotor { display: grid; transform-style: preserve-3d; transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
.appt-card__face { grid-area: 1 / 1; min-width: 0; padding: 24px 24px 20px 32px; border-radius: 16px; border-left: 8px solid #A7BEFA; background: var(--card-stock); color: #101C2C; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 16px 36px rgb(8 20 60 / .15); }
.appt-card__back { transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.appt-card.is-flipped .appt-card__rotor { transform: rotateY(180deg); }
.appt-card__back-title { font: 400 32px/1.15 var(--font-display); }
.appt-card__back .whatsapp-qr { width: 176px; height: 176px; }
.appt-card__number { color: #101C2C; display: inline-flex; align-items: center; min-height: 44px; }
.appt-card__facts { gap: 2px; }
.appt-card__facts dd { font-size: 15px; }
.appt-card__lines { margin-top: 8px; }
.card-flip { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; min-height: 44px; margin-top: 16px; padding: 8px 0; border: 0; border-top: 1px dashed #AAB3BF; background: none; color: #1A40A8; font: 500 14px/1.4 var(--font-text); text-align: left; cursor: pointer; }
.card-flip span { transition: transform .2s; }
.card-flip:hover span { transform: translateX(4px); }
.appt-card :focus-visible { outline: 3px solid #2251D3; outline-offset: 3px; }


.navy-grain { position: relative; isolation: isolate; }
.navy-grain::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url('/assets/textures/navy-grain.18cebae2bf.png') repeat; background-size: 128px 128px; opacity: .04; }
.footer__wordmark { font: 400 17vw/.95 var(--font-display); letter-spacing: -.045em; white-space: nowrap; color: rgb(167 190 250 / .15); margin: 48px 0 24px; text-align: center; pointer-events: none; }
.footer.closing .closing__links { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.footer__legal { position: relative; gap: 16px; flex-wrap: wrap; }
.appt-card__facts dd { overflow-wrap: anywhere; }
.appt-card__facts > div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
.appt-card__top p, .appt-card__facts dt, .appt-card__lines span { color: #465A70; }
.copy-btn:focus-visible, .card-flip:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (max-width: 1023px) {
  .close-grid { grid-template-columns: 1fr; gap: 32px; }
  .close-grid > * { grid-column: 1 / -1 !important; }
  .footer-columns { grid-template-columns: repeat(12,minmax(0,1fr)) !important; gap: 24px; }
  .footer-columns > .span-4 { grid-column: 1 / -1 !important; }
  .footer-columns > .span-2 { grid-column: span 3 !important; }
}
@media (max-width: 639px) {
  .nav__bar { gap: 8px; }
  .nav__actions .btn { font-size: 13px; padding-inline: 10px; min-height: 44px; }
  .nav__actions .btn .m-arrow { display: none; }
  .nav__logo img { width: 104px; }
  .nav__logo span { display: none; }
  .closing__cta .btn-row > * { width: 100%; }
  .footer.closing .closing__cta { padding-block: 48px; }
  .footer-columns > .span-2 { grid-column: 1 / -1 !important; }
  .appt-card__face { padding: 20px 18px; border-left-width: 6px; }
  .appt-card__top { flex-wrap: wrap; gap: 12px; }
  .appt-card__facts > div { grid-template-columns: 1fr; gap: 2px; }
  .footer__wordmark { margin-block: 32px 24px; }
}
@media (max-width: 379px) { .nav__actions { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .receipt.is-printing, .appt-slip.is-printing { animation: none; }
  .card-flip span, .appt-card__rotor { transition: none !important; }
  .appt-card__back, .appt-card.is-flipped .appt-card__rotor { transform: none; }
  .appt-card.has-flip:not(.is-flipped) .appt-card__back, .appt-card.is-flipped .appt-card__front { visibility: hidden; }
}
@media print {
  .appt-card__rotor, .appt-card__back { transform: none !important; }
  .appt-card__front { visibility: visible !important; }
  .appt-card__back, .card-flip { display: none !important; }
}

.footer__legal { display: flex; justify-content: space-between; align-items: center; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 699px) { .footer-columns > .span-2 { grid-column: span 6 !important; } }

/* Powered by KERF */
a.footer-kerf { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; margin-top: 18px; color: #C5D4E8; font-size: 14px; text-decoration: none; }
a.footer-kerf img { width: auto; height: 34px; }
a.footer-kerf:hover { color: #fff; }
