/* Public website, design B ("Family"): bright and playful, after the clinic's earlier reference site.
   Mint and sky blue with sunny and coral accents, glass panels, rounded Quicksand headings and Outfit text;
   IBM Plex Sans Arabic for Arabic. One stylesheet for English and Arabic: spacing uses inline-start / inline-end.
   Text and buttons use deeper shades of the colours so they stay readable (WCAG AA contrast). */

@font-face {
  font-family: 'Quicksand';
  src: url('fonts/Quicksand-Variable-latin.woff2') format('woff2');
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('fonts/Outfit-Variable-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('fonts/IBMPlexSansArabic-400-arabic.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('fonts/IBMPlexSansArabic-600-arabic.woff2') format('woff2');
  font-weight: 600 700;
  font-display: swap;
}

:root {
  /* Bright colours, for decoration */
  --mint: #4ecdc4;
  --sky: #45b6fe;
  --coral: #ff6b6b;
  --sun: #ffe66d;
  /* Deeper shades, for text and buttons */
  --mint-ink: #0b7f78;
  --sky-ink: #1b6fbf;
  --coral-ink: #c23b3b;
  --sun-ink: #8a6a00;
  --dark: #13304d;
  --muted: #4f6478;
  --bg: #f5fbfe;
  --white: #ffffff;
  --whatsapp: #18834b;
  --gradient: linear-gradient(135deg, var(--mint), var(--sky));
  --gradient-ink: linear-gradient(135deg, var(--mint-ink), var(--sky-ink));
  --card-shadow: 0 10px 30px rgb(78 205 196 / 0.1);
  --glass-shadow: 0 8px 32px rgb(31 38 135 / 0.07);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --ease: cubic-bezier(0.165, 0.84, 0.44, 1);
  --font-text: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Quicksand', 'Outfit', system-ui, sans-serif;
  --header: 4.75rem;
}

:lang(ar) {
  --font-text: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-head: 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Elements hidden by the script stay hidden, whatever their style. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--dark);
  background: var(--bg);
  overflow-x: hidden;
}

:lang(ar) body {
  line-height: 1.9;
}

body.has-mobile-bar {
  padding-block-end: 4.75rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-block: 0 0.75rem;
  text-wrap: balance;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

picture {
  display: block;
}

a {
  color: var(--sky-ink);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--sky-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

[dir='rtl'] .icon.arrow {
  transform: scaleX(-1);
}

.container {
  width: min(100% - 2.5rem, 1200px);
  margin-inline: auto;
  position: relative;
}

.container.narrow {
  width: min(100% - 2.5rem, 820px);
}

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -3rem;
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 2000;
}

.skip-link:focus {
  inset-block-start: 1rem;
}

.preview-banner {
  position: relative;
  z-index: 1100;
  background: #fff4d1;
  color: #6b4e00;
  text-align: center;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Parts that need the script (quiz, slider dots) are hidden without it; a short note shows instead. */
html:not(.js) .needs-js {
  display: none !important;
}

.js .no-js-note {
  display: none;
}

.no-js-note {
  text-align: center;
  color: var(--muted);
}

/* A small label above a title, after design A's: a short gradient line, then spaced capitals. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-ink);
}

.eyebrow::before {
  content: '';
  width: 2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

:lang(ar) .eyebrow {
  letter-spacing: 0;
  font-size: 0.92rem;
}

.section-head .eyebrow {
  justify-content: center;
}


.gradient-text {
  background: var(--gradient-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass-panel {
  background: rgb(255 255 255 / 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgb(255 255 255 / 0.55);
  box-shadow: var(--glass-shadow);
}

/* --- Buttons ------------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgb(0 0 0 / 0.05);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.2s, color 0.2s;
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn-primary {
  background: var(--gradient-ink);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) {
  color: var(--white);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgb(78 205 196 / 0.35);
}

.btn-secondary {
  background: var(--white);
  color: var(--sky-ink);
  border-color: var(--sky-ink);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--sky-ink);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgb(69 182 254 / 0.25);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.btn-whatsapp:hover {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgb(24 131 75 / 0.3);
}

.btn-large {
  min-height: 3.25rem;
  padding: 0.85rem 1.9rem;
  font-size: 1.05rem;
}

.btn-small {
  min-height: 2.5rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.95rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cta-large .btn {
  min-height: 3.25rem;
  padding: 0.85rem 1.8rem;
  font-size: 1.05rem;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: none;
}

.link-more .icon {
  transition: translate 0.25s var(--ease);
}

.link-more:hover .icon {
  translate: 4px 0;
}

[dir='rtl'] .link-more:hover .icon {
  translate: -4px 0;
}

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

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 1000;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding-block: 0.9rem;
}

.site-header.is-scrolled {
  padding-block: 0.5rem;
  background: rgb(255 255 255 / 0.88);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgb(0 0 0 / 0.05);
}

.header-row {
  width: min(100% - 2.5rem, 1280px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-inline-end: auto;
  min-width: 0;
}

.logo-icon {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 0;
  background: var(--gradient);
  color: var(--white);
  overflow: hidden;
}

[dir='rtl'] .logo-icon {
  border-radius: 50% 50% 0 50%;
}

.logo-tooth {
  width: 1.6rem;
  height: 1.6rem;
}

.logo-image img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  background: var(--white);
}

.logo-words {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--dark), var(--sky-ink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* The clinic's name as a picture (a wordmark), when one is set in the console. */
.name-image img {
  display: block;
  width: auto;
  height: auto;
  max-height: 1.9rem;
  max-width: min(290px, 55vw);
}

.footer-title .name-image img {
  max-height: none;
  max-width: min(100%, 300px);
}

.logo-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:lang(ar) .logo-sub {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul,
.nav-toggle ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.5vw, 1.5rem);
}

.nav-desktop a {
  position: relative;
  display: block;
  padding-block: 0.3rem;
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 0;
  height: 3px;
  border-radius: 5px;
  background: var(--gradient);
  transition: width 0.25s ease;
}

.nav-desktop a:hover::after,
.nav-desktop a[aria-current='page']::after {
  width: 100%;
}

.btn-book {
  display: none;
}

/* Phones and tablets: a round menu button opens a panel from the side. */
.nav-toggle summary {
  list-style: none;
  cursor: pointer;
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--card-shadow);
}

.nav-toggle summary::-webkit-details-marker {
  display: none;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--dark);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.burger {
  position: relative;
}

.burger::before,
.burger::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
}

.burger::before {
  inset-block-start: -6px;
}

.burger::after {
  inset-block-start: 6px;
}

.nav-toggle[open] .burger {
  background: transparent;
}

.nav-toggle[open] .burger::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[open] .burger::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle nav {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(85vw, 300px);
  padding: 6rem 2rem 2rem;
  background: var(--white);
  box-shadow: -10px 0 30px rgb(0 0 0 / 0.08);
  z-index: -1;
  overflow-y: auto;
  animation: slide-in 0.4s var(--ease);
}

@keyframes slide-in {
  from {
    transform: translateX(100%);
  }
}

[dir='rtl'] .nav-toggle nav {
  animation-name: slide-in-rtl;
}

@keyframes slide-in-rtl {
  from {
    transform: translateX(-100%);
  }
}

.nav-toggle li {
  margin-block-end: 0.25rem;
}

.nav-toggle a:not(.btn) {
  display: block;
  padding: 0.65rem 0;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  border-block-end: 1px solid rgb(78 205 196 / 0.15);
}

.nav-toggle a[aria-current='page'] {
  color: var(--mint-ink);
}

.nav-toggle .btn {
  width: 100%;
  margin-block-start: 1rem;
}

@media (min-width: 1280px) {
  .nav-desktop,
  .btn-book {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* --- Hero ------------------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  margin-block-start: calc(-1 * var(--header));
  padding-block: calc(var(--header) + clamp(2.5rem, 6vw, 4rem)) clamp(3rem, 7vw, 5rem);
  min-height: min(100svh, 780px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 80% 20%, rgb(69 182 254 / 0.14), transparent 45%),
    radial-gradient(circle at 10% 80%, rgb(78 205 196 / 0.16), transparent 45%),
    var(--bg);
}

.hero-row {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-row {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-content {
  max-width: 620px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-block-end: 1.25rem;
  padding: 0.45rem 1.1rem;
  border-radius: 30px;
  background: rgb(78 205 196 / 0.14);
  color: var(--mint-ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-tagline .icon {
  color: var(--sun-ink);
}

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  line-height: 1.15;
  margin-block-end: 1.25rem;
}

.hero-intro {
  font-size: clamp(1.05rem, 1.6vw, 1.15rem);
  color: var(--muted);
  margin-block: 0 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-graphics {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
}

/* Design A's drawing of a tooth in an arch: rings turn slowly, the sparkles twinkle, the tooth breathes. */
.hero-art {
  display: block;
  width: min(100%, 440px);
  height: auto;
  margin-inline: auto;
  /* fade out towards the bottom, so the arch never ends in a hard line */
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

.hero-art .ring,
.hero-art .spark,
.hero-art .art-tooth {
  transform-box: fill-box;
  transform-origin: center;
}

.hero-art .ring-2 {
  animation: spin 60s linear infinite;
}

.hero-art .spark {
  animation: twinkle 4s ease-in-out infinite;
}

.hero-art .spark-2 {
  animation-delay: -2s;
}

.hero-art .art-tooth {
  animation: breathe 7s ease-in-out infinite;
}

.hero-graphics .hero-photo img {
  width: min(100%, 440px);
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  box-shadow: 0 24px 60px rgb(19 48 77 / 0.14);
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@keyframes twinkle {
  50% {
    opacity: 0.35;
    scale: 0.8;
  }
}

@keyframes breathe {
  50% {
    translate: 0 -6px;
  }
}


.dental-art {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  animation: float-art 6s ease-in-out infinite;
}

.dental-art.has-photo {
  padding: 0.75rem;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 0.6rem);
}

.happy-tooth {
  width: min(62%, 200px);
  height: auto;
}

.art-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
}

.art-badge {
  background: var(--sun);
  color: var(--dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgb(255 230 109 / 0.45);
}

.small-art {
  width: min(100%, 300px);
  margin-inline: auto;
}

@keyframes float-art {
  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@media (max-width: 899px) {
  .hero {
    text-align: center;
  }

  .hero-content {
    margin-inline: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-graphics {
    min-height: 0;
  }

  /* Phones and tablets: the drawing would push the content down, so it is left out (a photo stays). */
  .hero-art {
    display: none;
  }

  .dental-art {
    width: min(80%, 300px);
  }
}

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

.section-padding {
  padding-block: clamp(3.75rem, 8vw, 6.25rem);
}

.section-tight {
  padding-block: clamp(2rem, 4vw, 3rem);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-block-end: 0.75rem;
}

.section-desc {
  color: var(--muted);
  margin: 0;
}

.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(circle at 85% 10%, rgb(69 182 254 / 0.12), transparent 45%),
    radial-gradient(circle at 5% 90%, rgb(78 205 196 / 0.14), transparent 45%);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 22ch;
}

.page-hero .lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 60ch;
}

.hero-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-split {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.page-hero-image img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--card-shadow);
}

.breadcrumb {
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--mint-ink);
}

.breadcrumb a::before {
  content: '← ';
}

[dir='rtl'] .breadcrumb a::before {
  content: '→ ';
}

.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--card-shadow);
}

.prose > * {
  max-width: 72ch;
}

.prose h2 {
  margin-block-start: 2rem;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.prose h2:first-child {
  margin-block-start: 0;
}

.prose ul {
  list-style: none;
  padding: 0;
}

.prose ul li,
.checklist li {
  position: relative;
  padding-inline-start: 1.6rem;
  margin-block-end: 0.5rem;
}

.prose ul li::before,
.checklist li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: var(--mint-ink);
  font-weight: 700;
}

.prose ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  max-width: none;
}

.prose ol li {
  counter-increment: step;
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 4rem;
}

[dir='rtl'] .prose ol li {
  padding: 1.25rem 4rem 1.25rem 1.25rem;
}

.prose ol li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 1.1rem;
  inset-block-start: 1.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgb(69 182 254 / 0.16);
  color: var(--sky-ink);
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* --- Treatment cards ---------------------------------------------------------------------------------- */

.services-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.9rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem 1.85rem 1.85rem;
  box-shadow: var(--card-shadow);
  border: 1px solid rgb(78 205 196 / 0.08);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.service-card::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 5px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgb(78 205 196 / 0.16);
}

.service-card:hover::after,
.service-card:focus-within::after {
  opacity: 1;
}

.service-icon {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin-block-end: 1.5rem;
}

.service-icon .icon {
  width: 2rem;
  height: 2rem;
}

.tone-mint {
  background: rgb(78 205 196 / 0.14);
  color: var(--mint-ink);
}

.tone-sky {
  background: rgb(69 182 254 / 0.14);
  color: var(--sky-ink);
}

.tone-sun {
  background: rgb(255 230 109 / 0.35);
  color: var(--sun-ink);
}

.tone-coral {
  background: rgb(255 107 107 / 0.13);
  color: var(--coral-ink);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-block-end: 0.75rem;
}

.service-card h3 a {
  color: var(--dark);
  text-decoration: none;
}

/* The whole card is clickable. */
.service-card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.service-card p {
  color: var(--muted);
  font-size: 0.97rem;
  margin: 0 0 1.1rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 0.93rem;
}

.card-more {
  margin-block-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--sky-ink);
}

.card-image {
  margin: -2.25rem -1.85rem 1.25rem;
}

.card-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* --- Showcase (a treatment with numbered pillars) -------------------------------------------------------------- */

.showcase {
  display: grid;
  margin-block-start: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

@media (min-width: 900px) {
  .showcase {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.showcase-art {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(135deg, var(--sky-ink), var(--mint-ink));
}

.showcase-card {
  width: 100%;
  max-width: 350px;
  padding: 2rem;
  text-align: center;
  color: var(--white);
  background: rgb(255 255 255 / 0.14);
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.showcase-card h3 {
  color: var(--sun);
  font-size: 1.55rem;
}

.showcase-card p {
  margin: 0;
  font-size: 0.97rem;
}

.showcase-icon {
  display: inline-grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-block-end: 1rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.2);
}

.showcase-icon .icon {
  width: 2rem;
  height: 2rem;
}

.showcase-details {
  padding: clamp(1.75rem, 5vw, 3.5rem);
}

.showcase-details h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.showcase-details > p {
  color: var(--muted);
}

.pillars {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.pillars li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.pillar-num {
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgb(69 182 254 / 0.16);
  color: var(--sky-ink);
  font-weight: 700;
}

.pillars strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.02rem;
}

.pillar-text {
  display: block;
  font-size: 0.92rem;
  color: var(--muted);
}

/* --- Habit quiz ------------------------------------------------------------------------------------------------- */

.quiz-section {
  background:
    radial-gradient(circle at 10% 20%, rgb(78 205 196 / 0.08), transparent 40%),
    radial-gradient(circle at 90% 80%, rgb(255 107 107 / 0.06), transparent 40%);
}

.quiz-container {
  max-width: 760px;
  margin-inline: auto;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 5vw, 2.75rem);
}

.quiz-progress {
  height: 6px;
  border-radius: 10px;
  background: rgb(78 205 196 / 0.15);
  overflow: hidden;
  margin-block-end: 1.25rem;
}

.quiz-progress-bar {
  height: 100%;
  width: 0;
  background: var(--gradient);
  transition: width 0.4s ease;
}

.quiz-count {
  margin: 0 0 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--mint-ink);
  font-size: 0.92rem;
}

.quiz-step {
  animation: slide-fade 0.45s var(--ease);
}

.quiz-step h3 {
  text-align: center;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin-block-end: 1.5rem;
}

.quiz-options {
  display: grid;
  gap: 0.85rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgb(78 205 196 / 0.2);
  background: var(--white);
  color: var(--dark);
  font: inherit;
  font-weight: 500;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.quiz-option:hover,
.quiz-option:focus-visible {
  border-color: var(--mint-ink);
  transform: translateY(-2px);
}

.quiz-option[aria-pressed='true'] {
  border-color: var(--mint-ink);
  background: rgb(78 205 196 / 0.1);
}

.quiz-radio {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--muted);
  display: grid;
  place-items: center;
}

.quiz-option[aria-pressed='true'] .quiz-radio {
  border-color: var(--mint-ink);
}

.quiz-option[aria-pressed='true'] .quiz-radio::after {
  content: '';
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--mint-ink);
}

.quiz-results {
  text-align: center;
  animation: slide-fade 0.45s var(--ease);
}

.quiz-score-badge {
  display: inline-grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  margin-block-end: 1.25rem;
  border-radius: 50%;
  border: 3px solid var(--mint);
  background: rgb(78 205 196 / 0.12);
  color: var(--mint-ink);
}

.quiz-score-badge .icon {
  width: 2.4rem;
  height: 2.4rem;
}

.quiz-advice {
  text-align: start;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-block-end: 1.25rem;
  border-inline-start: 5px solid var(--sky);
  box-shadow: 0 5px 20px rgb(0 0 0 / 0.03);
}

.quiz-advice h4 {
  font-size: 1.2rem;
  margin-block-end: 0.5rem;
}

.quiz-advice p {
  margin: 0;
}

.quiz-advice-low {
  border-inline-start-color: var(--mint);
}

.quiz-advice-low h4 {
  color: var(--mint-ink);
}

.quiz-advice-some {
  border-inline-start-color: var(--sun);
}

.quiz-advice-some h4 {
  color: var(--sun-ink);
}

.quiz-advice-many {
  border-inline-start-color: var(--coral);
}

.quiz-advice-many h4 {
  color: var(--coral-ink);
}

.quiz-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-block-end: 1.25rem;
}

.quiz-results .cta {
  justify-content: center;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-block-start: 1.75rem;
}

@keyframes slide-fade {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
}

/* --- Booking, contact ---------------------------------------------------------------------------------------------------- */

.booking-section {
  background:
    radial-gradient(circle at right bottom, rgb(69 182 254 / 0.1), transparent 45%),
    var(--bg);
}

.booking-wrapper {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .booking-wrapper {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.booking-card {
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.booking-icon {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 16px;
  margin-block-end: 1rem;
  background: rgb(255 107 107 / 0.13);
  color: var(--coral-ink);
}

.booking-card h3 {
  font-size: 1.6rem;
}

.booking-card > p {
  color: var(--muted);
}

.booking-card .cta {
  margin-block: 1.5rem 0;
}

.booking-phone {
  margin: 1.25rem 0 0;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
}

.booking-phone a {
  color: var(--dark);
  text-decoration: none;
}

.booking-info {
  display: grid;
  gap: 1.25rem;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--card-shadow);
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
}

.info-card h3 .icon {
  color: var(--mint-ink);
}

.info-hours {
  border-block-start: 4px solid var(--mint);
}

.info-place {
  border-block-start: 4px solid var(--sky);
}

.hours {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours li {
  padding-block: 0.45rem;
  border-block-end: 1px dashed rgb(78 205 196 / 0.25);
}

.hours li:last-child {
  border: 0;
}

.info-card p {
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.contact-section {
  background: var(--bg);
}

.contact-card .cta {
  margin-block-start: 1.5rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.contact-list .icon {
  color: var(--mint-ink);
  margin-block-start: 0.25rem;
}

.contact-faq h3 {
  font-size: 1.35rem;
  margin-block-end: 1.25rem;
}

/* --- FAQ ---------------------------------------------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 0.75rem;
  margin-block-end: 1.25rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  position: relative;
  width: 1.9rem;
  height: 1.9rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgb(78 205 196 / 0.14);
}

.faq-plus::before,
.faq-plus::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.8rem;
  height: 2px;
  border-radius: 2px;
  background: var(--mint-ink);
  transition: transform 0.3s var(--ease);
}

.faq-plus::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-plus::after {
  transform: rotate(0);
}

.faq-answer {
  padding: 0 1.4rem 1.2rem;
  color: var(--muted);
}

.faq-answer > :first-child {
  margin-block-start: 0;
}

/* --- Reviews ---------------------------------------------------------------------------------------------------- */

.testimonials-section {
  background: var(--white);
}

.slider {
  max-width: 820px;
  margin-inline: auto;
}

.slides {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2rem;
}

/* With the script, the reviews are stacked in one place and shown one at a time. */
.js .slides {
  gap: 0;
}

.js .testimonial-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

[dir='rtl'] .js .testimonial-slide {
  transform: translateX(-40px);
}

.js .testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.testimonial-slide {
  text-align: center;
  padding-inline: clamp(0.5rem, 4vw, 2.5rem);
}

.stars {
  color: #f2b705;
  letter-spacing: 0.15em;
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

.stars-off {
  color: #dbe5ec;
}

.testimonial-quote {
  margin: 0 0 1rem;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  font-style: italic;
  line-height: 1.7;
}

.testimonial-quote p {
  margin: 0;
}

.testimonial-author {
  margin: 0;
  font-weight: 600;
  color: var(--mint-ink);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-block-start: 2rem;
}

.slider-dot {
  width: 0.75rem;
  height: 0.75rem;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgb(78 205 196 / 0.3);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s;
}

.slider-dot[aria-pressed='true'] {
  width: 1.75rem;
  background: var(--mint-ink);
}

.story-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

.story-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
}

.story-card blockquote {
  margin: 0;
  font-style: italic;
}

.story-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  margin: 1rem 0 0;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* --- Team, gallery ------------------------------------------------------------------------------------------- */

.people {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}

.person-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.person-photo img,
.person-initials {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  margin-block-end: 1rem;
}

.person-initials {
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
}

.stack-cards {
  display: grid;
  gap: 1.5rem;
}

.person-bio {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.person-card h3 a {
  color: var(--dark);
  text-decoration: none;
}

.person-card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  padding: 0;
  margin: 0.5rem 0 0;
}

.chips li {
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgb(78 205 196 / 0.14);
  color: var(--mint-ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.gallery {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery figcaption {
  margin-block-start: 0.5rem;
  color: var(--muted);
}

.before-after {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.before-after .ba-after {
  position: absolute;
  inset: 0;
}

.before-after .ba-after img {
  height: 100%;
}

.ba-label {
  position: absolute;
  inset-block-start: 0.7rem;
  background: rgb(19 48 77 / 0.7);
  color: var(--white);
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.ba-label-before {
  inset-inline-start: 0.7rem;
}

.ba-label-after {
  inset-inline-end: 0.7rem;
}

/* The range lies over the photos, invisible: drag anywhere; the white line and its knob show where the cut is. */
.ba-range {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}

.before-after:has(.ba-range:focus-visible) {
  outline: 3px solid var(--sky-ink);
  outline-offset: 3px;
}

.ba-handle {
  position: absolute;
  inset-block: 0;
  inset-inline-start: var(--cut, 50%);
  z-index: 1;
  width: 3px;
  translate: -50% 0;
  background: var(--white);
  box-shadow: 0 0 12px rgb(19 48 77 / 0.35);
  pointer-events: none;
}

[dir='rtl'] .ba-handle {
  translate: 50% 0;
}

.ba-handle::after {
  content: '‹ ›';
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  translate: -50% -50%;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--mint-ink);
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 6px 18px rgb(19 48 77 / 0.25);
}

[dir='rtl'] .ba-handle::after {
  translate: 50% -50%;
}

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

.about-hero {
  overflow: hidden;
}

/* An arched frame for portraits and the clinic's photo, as in design A. */
.arch-photo {
  position: relative;
  display: block;
  width: min(100%, 420px);
  margin-inline: auto;
}

.arch-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  box-shadow: 0 24px 60px rgb(19 48 77 / 0.14);
}

.arch-photo::before {
  content: '';
  position: absolute;
  inset: -0.9rem;
  z-index: -1;
  border-radius: 999px 999px calc(var(--radius-lg) + 0.9rem) calc(var(--radius-lg) + 0.9rem);
  border: 2px dashed rgb(78 205 196 / 0.45);
}

.profile-section {
  background: var(--white);
}

@media (max-width: 899px) {
  .arch-photo,
  .profile-initials {
    width: min(78%, 340px);
  }
}

.profile {
  display: grid;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .profile {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .profile.is-mirrored .profile-photo {
    order: 2;
  }
}

.profile-initials {
  display: grid;
  place-items: center;
  width: min(100%, 360px);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
}

.profile-name {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-block-end: 0.35rem;
}

.profile-role {
  margin: 0 0 1rem;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--sky-ink);
}

.profile-text .chips {
  justify-content: flex-start;
  margin-block-end: 1.5rem;
}

.profile-text .prose {
  color: var(--muted);
  margin-block-end: 1.5rem;
}

.approach-section .section-desc {
  font-size: 1.1rem;
}

.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  counter-reset: none;
}

.value-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  box-shadow: var(--card-shadow);
  border: 1px solid rgb(78 205 196 / 0.14);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgb(78 205 196 / 0.18);
}

.value-num {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-block-end: 1.25rem;
  border-radius: 50% 50% 50% 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}

[dir='rtl'] .value-num {
  border-radius: 50% 50% 0 50%;
}

.value-card h3 {
  font-size: 1.3rem;
}

.value-card .prose {
  color: var(--muted);
}

.value-card .prose p:last-child {
  margin-block-end: 0;
}

.about-quote {
  position: relative;
  margin: 0;
  padding: clamp(2rem, 5vw, 3.25rem);
  border-radius: var(--radius-lg);
  text-align: center;
  background:
    radial-gradient(circle at 15% 0%, rgb(78 205 196 / 0.16), transparent 55%),
    radial-gradient(circle at 90% 100%, rgb(69 182 254 / 0.16), transparent 55%),
    var(--white);
  box-shadow: var(--card-shadow);
}

.about-quote > .icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--mint);
}

.about-quote .eyebrow {
  display: flex;
  justify-content: center;
}

.about-quote blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--dark);
}

.about-quote blockquote p {
  margin: 0;
}

.about-quote figcaption {
  color: var(--muted);
  font-weight: 600;
}

/* --- Before & after ---------------------------------------------------------------------------------------------- */

.case-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-block-end: clamp(1.75rem, 4vw, 2.5rem);
}

.filter-chip {
  min-height: 2.75rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid rgb(27 111 191 / 0.3);
  background: var(--white);
  color: var(--dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.3s;
}

.filter-chip:hover {
  border-color: var(--sky-ink);
}

.filter-chip[aria-pressed='true'] {
  background: var(--gradient-ink);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 6px 18px rgb(27 111 191 / 0.22);
}

.cases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr));
}

.case-card figure {
  margin: 0;
  height: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--card-shadow);
}

.case-card .before-after,
.case-card .before-after img {
  border-radius: calc(var(--radius-lg) - 0.6rem);
}

.case-card .before-after img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  padding: 1rem 0.5rem 0.4rem;
}

.case-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: rgb(78 205 196 / 0.14);
  color: var(--mint-ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.case-tag .icon {
  width: 1rem;
  height: 1rem;
}

.case-tag:hover {
  background: rgb(78 205 196 / 0.24);
}

.case-caption {
  color: var(--muted);
}

.cases-note {
  margin: clamp(1.75rem, 4vw, 2.5rem) auto 0;
  max-width: 60ch;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

/* --- Call-to-action band, footer, bottom bar on phones ---------------------------------------------------------------- */

.cta-band {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem);
}

.cta-card {
  text-align: center;
  padding: clamp(2rem, 6vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: var(--gradient-ink);
  color: var(--white);
  box-shadow: 0 20px 50px rgb(27 111 191 / 0.2);
}

.cta-card h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
}

.cta-card p {
  max-width: 50ch;
  margin: 0 auto 1.5rem;
}

.cta-card .cta {
  justify-content: center;
}

.cta-card .btn-call {
  background: var(--white);
  color: var(--sky-ink);
}

.cta-card :focus-visible {
  outline-color: var(--sun);
}

.site-footer {
  background: var(--dark);
  color: rgb(255 255 255 / 0.78);
  padding-block: clamp(3.5rem, 7vw, 5rem) 1.75rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.footer-title {
  position: relative;
  color: var(--white);
  font-size: 1.15rem;
  padding-block-end: 0.65rem;
  margin-block-end: 1.25rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: var(--mint);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-block-end: 0.7rem;
}

.site-footer a {
  color: rgb(255 255 255 / 0.85);
  text-decoration: none;
  transition: color 0.2s, padding 0.2s;
}

.footer-col ul:not(.contact-list) a:hover {
  color: var(--mint);
  padding-inline-start: 5px;
}

.site-footer .contact-list .icon {
  color: var(--mint);
}

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

.social a {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-block-start: 3rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0;
}

.mobile-bar {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 900;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -6px 20px rgb(0 0 0 / 0.06);
}

.mobile-bar .cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 1280px) {
  .mobile-bar {
    display: none;
  }

  body.has-mobile-bar {
    padding-block-end: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .mobile-bar,
  .cta-band,
  .hero-graphics,
  .needs-js {
    display: none;
  }
}
