/* ============================================================
   Dr. Kimia Aryan, Design tokens & shared styles
   Modern minimal · Navy + Crimson · Persian-first (RTL)
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face{font-family:"Yekan Bakh";src:url("fonts/YekanBakhFaNum-Light.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"Yekan Bakh";src:url("fonts/YekanBakhFaNum-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Yekan Bakh";src:url("fonts/YekanBakhFaNum-SemiBold.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Yekan Bakh";src:url("fonts/YekanBakhFaNum-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Yekan Bakh";src:url("fonts/YekanBakhFaNum-Black.woff2") format("woff2");font-weight:800;font-style:normal;font-display:swap}
@font-face{font-family:"Yekan Bakh";src:url("fonts/YekanBakhFaNum-ExtraBlack.woff2") format("woff2");font-weight:900;font-style:normal;font-display:swap}

/* ---------- Tokens ---------- */
:root{
  /* color */
  --navy:        #0e1a35;
  --navy-2:      #1b2a4e;
  --navy-ink:    #0a1226;
  --crimson:     #a8123a;
  --crimson-2:   #c2305f;
  --crimson-50:  #fbeef2;
  --ivory:       #f7f2e9;
  --paper:       #fdfbf6;
  --paper-2:     #f4efe6;
  --line:        #e6dfd1;
  --line-soft:   #efe9dc;
  --ink:         #0e1a35;
  --ink-2:       #2a3556;
  --muted:       #6b7187;
  --muted-2:     #9aa0b3;
  --white:       #ffffff;
  --black:       #000;

  /* type */
  --font: "Yekan Bakh", system-ui, -apple-system, sans-serif;

  /* radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* spacing scale */
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(64px, 9vw, 140px);

  /* shadows */
  --shadow-1: 0 1px 2px rgba(14,26,53,.04), 0 8px 24px -12px rgba(14,26,53,.10);
  --shadow-2: 0 2px 8px rgba(14,26,53,.06), 0 24px 48px -20px rgba(14,26,53,.18);

  /* layout */
  --maxw: 1320px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body{
  font-family: var(--font);
  font-weight: 400;
  font-feature-settings: "ss01", "cv01";
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container{
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section{ padding-block: var(--section-y); }
.section--tight{ padding-block: clamp(40px, 6vw, 80px); }

/* ---------- Typography ---------- */
.eyebrow{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--crimson);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content:"";
  width: 28px; height: 1px;
  background: var(--crimson);
  display:inline-block;
}
.display{
  font-weight: 900;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.h1{ font-weight: 800; font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.h2{ font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.14; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.h3{ font-weight: 700; font-size: clamp(20px, 2vw, 24px); line-height: 1.25; margin: 0; }
.h4{ font-weight: 700; font-size: 18px; line-height: 1.3; margin: 0; }
.lede{
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.7;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 62ch;
  text-wrap: pretty;
}
.muted{ color: var(--muted); }
.small{ font-size: 13px; }
.kicker{
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--muted-2);
  text-transform: uppercase;
  font-weight: 600;
}

/* numeric latin */
.num{ font-feature-settings: "tnum"; direction: ltr; display: inline-block; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}
.btn:hover{ transform: translateY(-1px); }
.btn--primary{ background: var(--crimson); color: #fff; }
.btn--primary:hover{ background: var(--crimson-2); }
.btn--dark{ background: var(--navy); color: #fff; }
.btn--dark:hover{ background: var(--navy-2); }
.btn--ghost{ background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover{ background: var(--ink); color: #fff; }
.btn--light{ background: #fff; color: var(--ink); border-color: var(--line); }
.btn--light:hover{ border-color: var(--ink); }
.btn--lg{ padding: 18px 28px; font-size: 16px; }
.btn--icon{ width: 44px; height: 44px; padding: 0; border-radius: 50%; }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253,251,246,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav{
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}
.nav__brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  flex: 0 0 auto;
}
.nav__brand-mark{
  width: 46px; height: 46px;
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.nav__brand-mark img{ width: 100%; height: 100%; object-fit: contain; display: block; }
.nav__brand-mark--alt{ background: var(--crimson); }
.nav__brand-name{ line-height: 1.1; }
.nav__brand-name small{ display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .08em; margin-top: 2px; }
.nav__links{
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: 12px;
  flex: 1 1 auto;
}
.nav__link{
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
  position: relative;
}
.nav__link:hover{ background: var(--paper-2); color: var(--ink); }
.nav__link.is-active{ color: var(--ink); font-weight: 600; }
.nav__link.is-active::after{
  content:"";
  position: absolute;
  bottom: 4px; left: 50%;
  width: 6px; height: 2px;
  background: var(--crimson);
  transform: translateX(-50%);
  border-radius: 2px;
}
.nav__actions{ display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.nav__lang{
  display: inline-flex;
  background: var(--paper-2);
  border-radius: 999px;
  padding: 3px;
  font-size: 12px;
  font-weight: 600;
}
.nav__lang button{
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  letter-spacing: .04em;
}
.nav__lang button.is-on{ background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }

/* desktop lang shows by default; mobile lang hides */
.nav__lang--mobile{ display: none; }
.nav__lang--desktop{ display: inline-flex; }

.nav__burger{ display: none; }

/* tighten desktop nav at medium widths so 8 links + brand + CTA all fit */
@media (max-width: 1260px){
  .nav{ gap: 18px; }
  .nav__link{ padding: 9px 11px; font-size: 13.5px; }
  .nav__brand-name small{ display: none; }
}

/* === Mobile nav: collapse to burger === */
@media (max-width: 1080px){
  .nav__links{
    display: none;
    position: fixed;
    top: var(--header-h, 70px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 18px 40px -16px rgba(14,26,53,.18);
    gap: 2px;
    margin-inline-start: 0;
    z-index: 49;
    max-height: calc(100vh - var(--header-h, 70px));
    overflow-y: auto;
  }
  .nav__links.is-open{ display: flex; }
  /* nav__links leaves the flow on mobile (fixed drawer), so push actions to the
     inline-end edge — burger sits at the far left in RTL, far right in LTR. */
  .nav__actions{ margin-inline-start: auto; }
  .nav__link{ padding: 14px 16px; border-radius: 12px; font-size: 16px; }
  .nav__link.is-active{ background: var(--paper-2); }
  .nav__link.is-active::after{ display: none; }
  .nav__burger{ display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--paper-2); }
  .nav__lang--desktop{ display: none; }
  .nav__lang--mobile{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    background: transparent;
  }
  .nav__lang--mobile .nav__lang-label{
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    margin-inline-end: auto;
  }
  .nav__lang--mobile button{
    min-width: 44px;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--paper-2);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
  }
  .nav__lang--mobile button.is-on{
    background: var(--navy);
    color: #fff;
  }
  .nav__actions .btn--icon{ display: none; }
  /* keep CTA visible but compact */
  .nav .btn--primary{ padding: 11px 16px; font-size: 14px; }
}

/* very small phones, protect from overflow */
@media (max-width: 480px){
  .nav{ gap: 10px; padding: 12px 0; }
  .nav__brand{ gap: 10px; font-size: 16px; }
  .nav__brand-mark{ width: 36px; height: 36px; font-size: 12.5px; }
  .nav__brand-name{ font-size: 14.5px; line-height: 1.15; }
  .nav .btn--primary{ padding: 10px 12px; font-size: 13px; }
  .nav__burger{ width: 38px; height: 38px; }
}

/* once links open, dim page behind via body class */
body.nav-open::after{
  content:"";
  position: fixed; inset: var(--header-h, 70px) 0 0 0;
  background: rgba(14,26,53,.35);
  z-index: 48;
  animation: fadeIn .2s ease;
}

/* ---------- Footer ---------- */
.site-footer{
  background: var(--navy);
  color: #c8cde0;
  margin-top: var(--section-y);
}
.site-footer .container{ padding-block: 72px 28px; }
.foot-grid{
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
}
@media (max-width: 880px){ .foot-grid{ grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 540px){ .foot-grid{ grid-template-columns: 1fr; } }

.foot-brand{ display: flex; align-items: flex-start; gap: 14px; }
.foot-brand .nav__brand-mark{ background: transparent; }
.foot-brand .nav__brand-mark img{ filter: brightness(0) invert(1); }
.foot-brand h4{ color: #fff; margin: 0 0 6px; font-size: 18px; }
.foot-brand p{ color: #9aa0b8; margin: 0; max-width: 32ch; font-size: 14px; line-height: 1.7; }

.foot-col h5{
  color: #fff;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 700;
}
.foot-col ul li{ margin-bottom: 10px; }
.foot-col a, .foot-col p{
  color: #c8cde0;
  font-size: 14px;
  transition: color .15s ease;
}
.foot-col a:hover{ color: #fff; }
.foot-col p{ margin: 0 0 8px; line-height: 1.7; }

.foot-bottom{
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8a91ad;
}
.foot-social{ display: flex; gap: 10px; }
.foot-social a{
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: grid; place-items: center;
  transition: background .15s ease;
}
.foot-social a:hover{ background: var(--crimson); color: #fff; }

/* ---------- Cards ---------- */
.card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .2s ease, transform .25s ease, box-shadow .25s ease;
}
.card:hover{ border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card__media{
  aspect-ratio: 4/3;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}
.card__media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.card:hover .card__media img{ transform: scale(1.04); }
.card__body{ padding: 22px 24px 26px; }
.card__cat{
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--crimson);
  font-weight: 600;
  margin-bottom: 10px;
}
.card__title{
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--ink);
}
.card__desc{
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__more{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 18px;
}
.card__more svg{ transition: transform .2s ease; }
.card:hover .card__more svg{ transform: translateX(-4px); }

/* ---------- Page hero ---------- */
.page-hero{
  padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 60px);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero__crumbs{
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
}
.page-hero__crumbs a:hover{ color: var(--ink); }
.page-hero__crumbs .sep{ opacity: .5; }

/* ---------- Modal ---------- */
.modal-backdrop{
  position: fixed; inset: 0;
  background: rgba(14,26,53,.5);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
.modal-backdrop.is-open{ display: flex; }
.modal{
  background: #fff;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow: auto;
  position: relative;
  animation: popIn .25s cubic-bezier(.2,.7,.2,1);
}
.modal__close{
  position: absolute;
  top: 14px; left: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--paper-2);
  display: grid; place-items: center;
  transition: background .15s ease;
}
.modal__close:hover{ background: var(--line); }
.modal__body{ padding: 36px 32px 32px; }
.modal__title{ font-size: 24px; font-weight: 800; margin: 0 0 6px; }
.modal__subtitle{ font-size: 14px; color: var(--muted); margin: 0 0 24px; }
@keyframes fadeIn{ from{opacity:0} to{opacity:1} }
@keyframes popIn{ from{opacity:0; transform: translateY(20px) scale(.97)} to{opacity:1; transform:none} }

/* ---------- Form ---------- */
.field{ margin-bottom: 14px; }
.field label{ display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field textarea, .field select{
  width: 100%;
  font: inherit;
  /* 16px on mobile prevents iOS Safari auto-zoom on focus; smaller looks better on desktop */
  font-size: 16px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
@media (min-width: 761px) {
  .field input, .field textarea, .field select{ font-size: 15px; }
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(14,26,53,.08);
}
.field textarea{ min-height: 100px; resize: vertical; font-family: inherit; }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px){ .field-row{ grid-template-columns: 1fr; } }

/* ---------- Tags / Pills ---------- */
.tag{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
}
.tag--crimson{ background: var(--crimson-50); color: var(--crimson); }
.tag--navy{ background: var(--navy); color: #fff; }

/* ---------- Decorative frame (echoes clinic wainscoting) ---------- */
.frame{
  position: relative;
  padding: clamp(28px, 4vw, 56px);
}
.frame::before{
  content:"";
  position: absolute;
  inset: 12px;
  border: 1px solid currentColor;
  opacity: .35;
  border-radius: 4px;
  pointer-events: none;
}
.frame::after{
  content:"";
  position: absolute;
  inset: 18px;
  border: 1px solid currentColor;
  opacity: .15;
  border-radius: 2px;
  pointer-events: none;
}

/* ---------- Utility ---------- */
.grid-2{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px); }
.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 32px); }
.grid-4{ display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2vw, 28px); }
@media (max-width: 980px){ .grid-3{ grid-template-columns: repeat(2,1fr); } .grid-4{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; } }

.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(28px, 4vw, 52px);
  flex-wrap: wrap;
}
.section-head__title{ max-width: 60ch; }
.divider{ height: 1px; background: var(--line); width: 100%; border: 0; margin: 0; }

/* hide scrollbar utility */
.no-scrollbar{ scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar{ display: none; }

/* ============================================================
   MOBILE-FIRST POLISH, added in mobile UX pass
   ============================================================ */

/* ----- Sticky bottom CTA bar (mobile only) ----- */
.m-cta-bar{
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 45;
  background: rgba(253,251,246,.94);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 8px;
  box-shadow: 0 -10px 30px -16px rgba(14,26,53,.18);
}
@media (max-width: 760px){
  .m-cta-bar{ display: flex; }
  body{ padding-bottom: 78px; }  /* room so footer & FAB don't get hidden */
}
.m-cta-bar__call{
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  transition: background .15s ease;
}
.m-cta-bar__call:hover{ background: var(--navy-2); }
.m-cta-bar__book{
  flex: 1;
  height: 52px;
  border-radius: 14px;
  background: var(--crimson);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s ease;
}
.m-cta-bar__book:hover{ background: var(--crimson-2); color: #fff; }

/* ----- WhatsApp floating action button ----- */
.wa-fab{
  position: fixed;
  bottom: 90px;
  inset-inline-end: 16px;
  z-index: 44;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -8px rgba(37,211,102,.5), 0 4px 12px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: waFabIn .4s cubic-bezier(.2,.7,.2,1) .4s both;
}
.wa-fab:hover{ transform: scale(1.06); }
.wa-fab::after{
  /* subtle pulse ring */
  content:"";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: .35;
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waFabIn{
  from{ opacity: 0; transform: translateY(20px) scale(.6); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes waPulse{
  0%{ transform: scale(1); opacity: .35; }
  100%{ transform: scale(1.6); opacity: 0; }
}
@media (max-width: 760px){ .wa-fab{ display: flex; } }
@media (min-width: 761px){
  .wa-fab{ display: flex; bottom: 24px; inset-inline-end: 24px; }
}

/* ----- Mobile-only: horizontal swipe carousel for showcase grids ----- */
@media (max-width: 760px){
  .showcase{
    display: flex;
    gap: 12px;
    grid-template-columns: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline-start: var(--gutter);
    padding: 4px var(--gutter) 14px;
    margin: 0 calc(-1 * var(--gutter));
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .showcase::-webkit-scrollbar{ display: none; }
  .showcase > .tile{
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
  /* visual hint that there's more */
  .showcase > .tile:last-child{ margin-inline-end: var(--gutter); }
}

/* ----- Mobile hero: vertical stack with focal image ----- */
@media (max-width: 720px){
  .hero__head{ grid-template-columns: 1fr !important; gap: 18px !important; }
  .hero__display{ font-size: clamp(40px, 13vw, 64px) !important; line-height: .98 !important; }
  .hero__lede{ font-size: 16px !important; }
  .hero__ctas{ width: 100%; }
  .hero__ctas .btn{ flex: 1 1 auto; justify-content: center; }
  .hero__ctas .btn--ghost{ flex: 0 0 100%; }
  /* hero image strip becomes single hero image on mobile */
  .hero__strip{
    grid-template-columns: 1fr !important;
    height: 280px !important;
  }
  .hero__strip > div:nth-child(2),
  .hero__strip > div:nth-child(3){ display: none !important; }
  /* the inline-info chips become smaller */
  .info-strip{ gap: 6px; }
  .info-strip__item{ font-size: 12.5px; padding: 5px 12px 5px 5px; }
}

/* ----- Mobile section spacing, tighter ----- */
@media (max-width: 720px){
  :root{ --section-y: 56px; }
  .section-head{ margin-bottom: 22px; }
  .section-head .btn{ font-size: 13px; padding: 9px 14px; }
  .section-head__title h2.h1{ font-size: clamp(28px, 8vw, 38px) !important; }
}

/* ----- Mobile: testimonial carousel ----- */
@media (max-width: 640px){
  .testimonial-row{
    display: flex !important;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px var(--gutter) 14px;
    margin: 0 calc(-1 * var(--gutter));
    scrollbar-width: none;
  }
  .testimonial-row::-webkit-scrollbar{ display: none; }
  .testimonial-row > .testimonial{
    flex: 0 0 88%;
    scroll-snap-align: start;
  }
}

/* ----- Mobile: instagram grid 3 cols (was 6→4→3, keep 3 on phone) ----- */
@media (max-width: 480px){
  .insta-grid{ grid-template-columns: repeat(3, 1fr) !important; gap: 4px !important; }
}

/* ----- Mobile: clinic feature stacked image is shorter ----- */
@media (max-width: 720px){
  .clinic-feature__media{ min-height: 240px !important; }
  .clinic-stats{ gap: 12px !important; }
  .clinic-stats__item .num-big{ font-size: 26px !important; }
}

/* ----- Tighter typography for long-form pages on mobile ----- */
@media (max-width: 560px){
  .display{ font-size: clamp(36px, 10vw, 52px) !important; }
  .page-hero{ padding-bottom: 24px; }
  .prose{ font-size: 15.5px; line-height: 1.85; }
  .prose h2{ font-size: 22px; margin-top: 1.6em; }
}

/* ----- Mobile: side panels (service/device detail) go full width ----- */
@media (max-width: 760px){
  .side-card{
    position: static !important;
    top: auto !important;
  }
}

/* ----- Mobile bottom-bar safe space adjustment for footer ----- */
@media (max-width: 760px){
  .site-footer{ margin-top: 32px; }
  .site-footer .container{ padding-block: 48px 24px; }
  .foot-bottom{ flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ----- Improve touch targets in nav links + buttons on mobile ----- */
@media (max-width: 760px){
  .btn{ min-height: 44px; }
  .nav__link{ min-height: 48px; display: flex; align-items: center; }
}

/* ----- Mobile booking: bigger steps, native-feeling ----- */
@media (max-width: 640px){
  .step-row{ overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .step-row::-webkit-scrollbar{ display: none; }
  .step{ flex: 0 0 auto; min-width: 130px; }
  .date-grid{ grid-template-columns: repeat(4, 1fr) !important; gap: 8px !important; }
  .date-cell{ padding: 12px 6px; }
  .date-cell__num{ font-size: 20px; }
  .time-grid{ grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
  .time-cell{ padding: 14px 8px; font-size: 15px; }
  .service-pick{ grid-template-columns: 1fr !important; }
  .service-opt{ min-height: 56px; padding: 16px 18px; font-size: 15px; }
}

/* ----- Page hero crumbs: smaller on mobile ----- */
@media (max-width: 480px){
  .page-hero__crumbs{ font-size: 12px; }
}

/* ----- Mobile FAQ + contact card padding ----- */
@media (max-width: 480px){
  .faq-item summary{ font-size: 15.5px; }
  .channel-card{ padding: 16px 18px !important; }
}

/* prose for article/long copy */
.prose{ max-width: 72ch; color: var(--ink-2); font-size: 16.5px; line-height: 1.85; }
.prose h2{ font-size: 26px; font-weight: 800; color: var(--ink); margin: 2em 0 .6em; }
.prose h3{ font-size: 20px; font-weight: 700; color: var(--ink); margin: 1.6em 0 .4em; }
.prose p{ margin: 0 0 1em; }
.prose ul{ list-style: none; padding: 0; margin: 0 0 1.4em; }
.prose ul li{
  position: relative;
  padding-inline-start: 22px;
  margin-bottom: 8px;
}
.prose ul li::before{
  content:"";
  position: absolute;
  inset-inline-start: 0;
  top: .7em;
  width: 8px; height: 1px;
  background: var(--crimson);
}
.prose strong{ color: var(--ink); font-weight: 700; }

/* ============================================================
   PRINT, shared rules for all pages
   index-print.html has its own dedicated print overrides; these
   provide a baseline for any user who hits Cmd/Ctrl-P on a regular page.
   ============================================================ */
@media print {
  /* Page setup */
  @page { size: A4 portrait; margin: 14mm; }

  html, body {
    background: #fff !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Hide interactive / sticky chrome */
  .site-header,
  .nav__burger,
  .nav__lang,
  .nav__actions,
  .wa-fab,
  .m-cta-bar,
  .modal-backdrop,
  .foot-social,
  .insta-head .btn,
  .insta-grid,
  .cta-banner__actions,
  [data-open],
  .btn--icon {
    display: none !important;
  }

  /* Footer: keep info, drop visual frills */
  .site-footer {
    background: #fff !important;
    color: #000 !important;
    margin-top: 32px !important;
    border-top: 1px solid #ccc;
  }
  .site-footer h4, .site-footer h5, .site-footer a, .site-footer p {
    color: #000 !important;
  }
  .foot-brand .nav__brand-mark { background: #000 !important; color: #fff !important; }
  .foot-bottom { border-top-color: #ccc !important; color: #444 !important; }

  /* Show link URLs after external links (helps readers of a printout) */
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
    word-break: break-all;
  }
  /* …but not on logos, images, or buttons */
  .nav__brand:after, .foot-social a:after, .btn:after, a.tile:after,
  a.svc-card:after, a.post-card:after, a.dev-row:after, a.related-card:after,
  a.ba-card:after, a.related-post:after, .insta-grid a:after { content: ""; }

  /* Body text adjustments */
  body { font-size: 11pt; line-height: 1.55; }
  .container { max-width: 100% !important; padding: 0 !important; }
  .section, .section--tight { padding-block: 16pt !important; }

  /* Cards: no shadow, no transform on print */
  .tile, .card, .approach__item, .testimonial, .svc-card,
  .post-card, .dev-row, .related-card, .ba-card, .channel-card,
  .related-post {
    box-shadow: none !important;
    transform: none !important;
    border: 1px solid #ccc !important;
    background: #fff !important;
    page-break-inside: avoid;
  }

  /* Headings: keep with next */
  h1, h2, h3, .h1, .h2, .h3, .display, .hero__display {
    page-break-after: avoid;
    color: #000 !important;
  }
  p, li { orphans: 3; widows: 3; }

  /* Images: don't break across pages */
  img { page-break-inside: avoid; max-width: 100% !important; }

  /* Crimson accents stay but in print-safe shade */
  .eyebrow, .tile__more, .card__cat, .svc-card__cta, .err-eyebrow {
    color: #8a0e2f !important;
  }
  .eyebrow::before { background: #8a0e2f !important; }

  /* Remove hover transforms */
  *:hover { transform: none !important; }
}
