/* ==========================================================================
   Linket — لينكت
   Design system built from the approved designs.
   Tokens first, then components. Everything is RTL-first and responsive.
   ========================================================================== */

:root {
  /* The webfonts no longer block the first paint, so the FALLBACK is what a
     visitor reads for the first few hundred milliseconds. These stacks name a
     real Arabic face on every platform — SF Arabic on Apple, Segoe UI on
     Windows, Noto on Android and Linux — so that first frame is properly set
     Arabic rather than a default serif, and the swap is a change of typeface
     instead of a change of layout. */
  --font-head: "Alexandria", "SF Arabic", "Geeza Pro", "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif;
  --font-body: "Readex Pro", "SF Arabic", "Geeza Pro", "Segoe UI", "Noto Sans Arabic", Tahoma, system-ui, sans-serif;

  /* Brand */
  --navy: #16264A;
  --navy-hover: #0F1B36;
  --navy-tint: #EEF1F7;

  /* Functional colour — used ONLY for meaning, never decoration */
  --gold: #C8912F;          /* verification seals + star ratings */
  --gold-tint: #FBF3E4;
  --green: #17794A;         /* availability only */
  --green-tint: #E8F3EC;

  /* Neutrals */
  --ink: #14181F;
  --ink-2: #3D4450;
  --muted: #5B6472;         /* meets WCAG AA on white — do not lighten */
  --faint: #8A93A2;
  --border: #E4E7EC;
  --border-strong: #D3D8E0;
  --surface: #FFFFFF;
  --band: #F7F8FA;

  /* Geometry — rectangles, not capsules */
  --r-btn: 8px;
  --r-card: 12px;
  --r-chip: 8px;

  --shadow-sm: 0 1px 2px rgba(22, 38, 74, 0.05);
  --shadow-md: 0 2px 6px rgba(22, 38, 74, 0.07);
  --shadow-lg: 0 18px 50px rgba(22, 38, 74, 0.22);

  --maxw: 1280px;
  --pad: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-hover); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* Arabic never gets letter-spacing — it breaks the connected script.
   Latin-only strings may opt in with .tracked. */
.tracked { letter-spacing: 0.12em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.band { background: var(--band); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  border-radius: var(--r-btn); border: 1.5px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-hover); color: #fff; }
.btn--outline { background: var(--surface); color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy-tint); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--ink-2); }
.btn--ghost:hover { color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn--lg { height: 54px; padding: 0 32px; font-size: 16px; }
.btn--block { width: 100%; }
.btn:focus-visible { outline: 3px solid rgba(22,38,74,.35); outline-offset: 2px; }

/* --------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { font-family: var(--font-head); font-size: 21px; font-weight: 800; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 400; }
.nav a { color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.nav__mobile { display: none; }          /* sign-in lives in .header-actions on desktop */
.nav-toggle {
  display: none; width: 42px; height: 42px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border); border-radius: var(--r-btn); cursor: pointer;
}

/* --------------------------------------------------------- Hero */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; background: var(--navy); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(270deg, rgba(11,19,38,.55) 0%, rgba(11,19,38,.18) 55%, rgba(11,19,38,0) 100%);
}
.hero__inner { position: relative; padding-block: 88px; max-width: 640px; }
.hero h1 { font-size: clamp(32px, 4vw, 52px); color: #fff; }
.hero p { margin-top: 18px; color: rgba(255,255,255,.86); font-size: 16.5px; line-height: 1.95; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--r-chip); padding: 7px 14px; font-size: 12.5px; font-weight: 400; color: #fff;
}

/* Search */
.searchbar {
  display: flex; align-items: center; gap: 8px; margin-top: 30px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-btn);
  padding: 8px; box-shadow: var(--shadow-md); max-width: 560px;
}
.searchbar input {
  flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 14px;
  font-family: inherit; font-size: 15px; font-weight: 300; color: var(--ink); background: transparent;
}
.searchbar input::placeholder { color: var(--faint); }

/* Honest trust line (replaces the fabricated endorsement logos) */
.trustline { border-bottom: 1px solid var(--border); }
.trustline .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 28px; padding-block: 20px; font-size: 13.5px; color: var(--muted); text-align: center;
}
.trustline strong { color: var(--ink); font-weight: 600; }
.trustline .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }

/* --------------------------------------------------------- Sections */
.section { padding-block: 64px; }
.section__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.section__head h2 { font-size: clamp(22px, 2.4vw, 28px); }
.section__head p { color: var(--muted); font-size: 14.5px; }
.section__head .more { margin-inline-start: auto; font-size: 14px; font-weight: 600; }

.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Value props */
.value { display: flex; flex-direction: column; gap: 12px; }
.value__icon {
  width: 46px; height: 46px; border-radius: 10px; background: var(--navy-tint);
  display: flex; align-items: center; justify-content: center; color: var(--navy);
}
.value h3 { font-size: 19px; }
.value p { color: var(--muted); font-size: 14.5px; line-height: 1.9; }

/* --------------------------------------------------------- Expert card */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); box-shadow: var(--shadow-sm); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
a.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-2px); }

.card__media { position: relative; aspect-ratio: 4 / 3.4; background: var(--navy-tint); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

/* Initials avatar — a deliberate placeholder until real photography lands.
   Swap for <img> in .card__media; markup and sizing stay identical. */
.avatar-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #E9EDF5 0%, #DDE3EE 100%);
  color: var(--navy); font-family: var(--font-head);
  font-size: 40px; font-weight: 700; opacity: .75;
}
.avatar-ph--lg { font-size: 68px; }

.card__body { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 6px; }
.card__name { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.card__role { font-size: 13px; color: var(--muted); }
.card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border);
}
.card__price { font-size: 15px; font-weight: 600; }
.card__price span { font-size: 12px; font-weight: 300; color: var(--muted); }

/* Rating — number sits to the start of the stars in RTL reading order */
.rating { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink); }
.rating__count { font-weight: 300; color: var(--muted); font-size: 12.5px; }
.stars { display: inline-flex; gap: 1px; }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); border-radius: var(--r-chip);
  padding: 8px 14px; font-size: 13px; font-weight: 400; color: var(--ink-2);
  background: var(--surface); cursor: pointer; transition: all .15s ease;
}
.chip:hover { border-color: var(--border-strong); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.chip--static { cursor: default; }

.pill-available {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-tint); color: var(--green);
  border-radius: 6px; padding: 5px 11px; font-size: 12px; font-weight: 600;
}
.pill-available .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.card__media .pill-available {
  position: absolute; inset-block-end: 11px; inset-inline-end: 11px;
  background: #fff; box-shadow: var(--shadow-md);
}
.pill-soon { color: var(--muted); background: #fff; }
.pill-soon .dot { background: var(--faint); }

.badge-verified { display: inline-flex; flex: none; }

/* --------------------------------------------------------- Categories */
.cat {
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 20px 20px; background: var(--surface); transition: all .15s ease;
}
a.cat:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.cat__icon { color: var(--navy); }
.cat__name { font-size: 15px; font-weight: 600; color: var(--ink); }
.cat__count { font-size: 12.5px; color: var(--muted); }

/* --------------------------------------------------------- Steps */
.step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.step__num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 18px; font-weight: 700;
}
.step h3 { font-size: 17px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.9; }

/* --------------------------------------------------------- CTA band */
.cta {
  background: var(--navy); color: #fff; border-radius: var(--r-card);
  padding: 52px 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.cta h2 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); max-width: 620px; }
.cta p { color: rgba(255,255,255,.76); margin-top: 12px; max-width: 620px; line-height: 1.95; }
.cta__actions { display: flex; gap: 12px; flex: none; }
.cta .btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.cta .btn--outline:hover { background: rgba(255,255,255,.1); color: #fff; }

/* --------------------------------------------------------- Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 40px 28px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-col h4 { font-size: 14px; font-weight: 600; font-family: var(--font-body); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13.5px; color: var(--muted); font-weight: 300; }
.footer-col a:hover { color: var(--navy); }
.footer-bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}

/* --------------------------------------------------------- Profile page */
.breadcrumb { padding-block: 18px 0; font-size: 12.5px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }

.profile { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; padding-block: 24px 56px; }
.profile__head { display: flex; gap: 24px; align-items: flex-start; }
.profile__photo {
  width: 150px; height: 180px; flex: none; border-radius: var(--r-card);
  overflow: hidden; border: 1px solid var(--border); background: var(--navy-tint);
}
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.profile__name { display: flex; align-items: center; gap: 10px; }
.profile__name h1 { font-size: clamp(26px, 3vw, 34px); }
.profile__role { color: var(--muted); font-size: 15.5px; margin-top: 6px; }
.profile__meta { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { background: var(--band); border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; font-size: 12.5px; color: var(--ink-2); }

.block { margin-top: 40px; }
.block > h2 { font-size: 20px; margin-bottom: 14px; }
.block p { color: var(--ink-2); line-height: 2.05; font-size: 15px; }

.cred {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; margin-bottom: 10px;
}
.cred__icon {
  width: 38px; height: 38px; flex: none; border-radius: 8px; background: var(--gold-tint);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.cred__title { font-size: 15px; font-weight: 600; }
.cred__meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cred__verified { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 12.5px; font-weight: 600; color: var(--green); }
.cred--pending .cred__icon { background: var(--band); color: var(--faint); }
.cred--pending .cred__verified { color: var(--muted); font-weight: 400; }

.expect { background: var(--band); border-radius: var(--r-card); padding: 24px 26px; }
.expect ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.expect li { display: flex; gap: 11px; font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }
.expect li svg { flex: none; margin-top: 5px; color: var(--navy); }

.review { border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; margin-bottom: 12px; }
.review__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review__who { font-size: 14px; font-weight: 600; }
.review__badge {
  margin-inline-start: auto; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; color: var(--green); background: var(--green-tint);
  border-radius: 6px; padding: 4px 10px;
}
.review p { font-size: 14.5px; line-height: 1.95; color: var(--ink-2); }
.review__date { font-size: 12px; color: var(--faint); margin-top: 8px; }
.review__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy-tint); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--navy); flex: none; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 2px; cursor: pointer; list-style: none; font-size: 15.5px; font-weight: 400;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { font-weight: 600; }
.faq__answer { padding: 0 2px 20px; color: var(--muted); font-size: 14.5px; line-height: 1.95; }

/* Booking card (sticky sidebar) */
.booking-card {
  position: sticky; top: 100px;
  border: 1px solid var(--border-strong); border-radius: var(--r-card);
  box-shadow: var(--shadow-md); padding: 24px; background: var(--surface);
}
.booking-card__label { font-size: 12.5px; color: var(--muted); }
.booking-card h2 { font-size: 19px; margin-top: 4px; }
.booking-card__price { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.booking-card__price b { font-family: var(--font-head); font-size: 27px; font-weight: 800; }
.booking-card__price span { font-size: 13px; color: var(--muted); }
.booking-card .pill-available { width: 100%; justify-content: center; margin-top: 16px; padding: 10px; }
.booking-card .btn { margin-top: 14px; }
.booking-card__note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.pay-methods { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.pay-methods .label { font-size: 12px; color: var(--muted); width: 100%; margin-bottom: 2px; }
.pay { border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.secure-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 11.5px; color: var(--muted); }

/* Sticky mobile booking bar */
.mobile-book-bar { display: none; }

/* --------------------------------------------------------- Browse page */
.browse-head { background: var(--band); border-bottom: 1px solid var(--border); padding-block: 40px; }
.browse-head h1 { font-size: clamp(26px, 3vw, 34px); }
.browse-head p { color: var(--muted); margin-top: 8px; }
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-block: 20px; border-bottom: 1px solid var(--border); }
.filters .meta { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }

/* Stacked discovery: expert identity, relevant service, then a clear action.
   These rules are scoped so homepage cards and expert profiles stay intact. */
.discovery-page .wrap { max-width: 1560px; }
.discovery-page .browse-head { padding-block: 44px 28px; }
.discovery-page .browse-head h1 { font-size: clamp(28px, 3vw, 40px); }
.discovery-search { margin-top: 24px; max-width: 1120px; }
.discovery-search:focus-within { outline: 2px solid var(--navy); outline-offset: 3px; }
.discovery-search__field { flex: 1; min-width: 0; padding: 4px 14px; }
.discovery-search__field label { display: block; color: var(--muted); font-size: 12px; }
.discovery-search__field input { width: 100%; padding: 5px 0; font-weight: 500; }
.discovery-search input { min-width: 0; }
.discovery-page .browse-head .discovery-search-help { font-size: 12.5px; margin-top: 12px; }
.discovery-page .filters { padding-block: 24px; gap: 12px; }
.discovery-page .filters select { max-width: 240px; color: var(--ink-2); font: inherit; font-size: 13px; }
.discovery-context { color: var(--muted); font-size: 13.5px; padding-block: 22px; min-height: 65px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.discovery-results { display: flex; flex-direction: column; }
.discovery-row { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 1.4fr) 220px; align-items: center; padding-block: 30px; border-bottom: 1px solid var(--border); gap: 28px; }
.discovery-row__expert { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.discovery-row__portrait, .discovery-row__initials { width: 128px; height: 128px; flex-shrink: 0; border-radius: 50%; overflow: hidden; }
.discovery-row__photo { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); transform-origin: center 20%; }
.discovery-row__initials { display: flex; align-items: center; justify-content: center; background: var(--navy-tint); color: var(--navy); font-size: 22px; font-weight: 600; }
.discovery-row__identity { min-width: 0; }
.discovery-row h2 { font-size: 18px; line-height: 1.6; }
.discovery-row h2 a { color: var(--ink); }
.discovery-row__role { font-size: 13.5px; font-weight: 400; line-height: 1.8; margin-top: 5px; color: var(--muted); overflow-wrap: anywhere; }
.discovery-row__rating { font-size: 13px; color: var(--muted); margin-top: 5px; }
.discovery-row__rating .rating { flex-wrap: wrap; }
.discovery-row__profile { font-size: 13px; font-weight: 500; display: inline-block; margin-top: 10px; }
.discovery-row__service { padding-inline: 26px; border-inline: 1px solid var(--border); min-width: 0; }
.discovery-row__category { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.discovery-row h3 { font-size: 21px; line-height: 1.6; overflow-wrap: anywhere; }
.discovery-row__description { font-size: 14.5px; font-weight: 400; line-height: 1.9; margin-top: 9px; color: var(--muted); overflow-wrap: anywhere; }
.discovery-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.discovery-row__meta span { display: inline-flex; align-items: center; gap: 7px; }
.discovery-row__meta img { opacity: .65; }
.discovery-row__action { text-align: center; }
.discovery-row__price { font-size: 17px; margin-bottom: 16px; white-space: nowrap; }
.discovery-row__price b { font-family: var(--font-head); font-weight: 800; font-size: 32px; }
.discovery-row__action .btn { width: 100%; padding-inline: 16px; }
.discovery-row__unavailable, .discovery-row__unknown { font-size: 12.5px; color: var(--muted); }
.discovery-row__unknown { margin-bottom: 12px; }
.discovery-loading { color: var(--muted); padding: 48px 0; text-align: center; }
.discovery-sort-note { font-size: 12px; color: var(--muted); padding-block: 16px; }
.discovery-request { background: var(--band); text-align: center; padding: 26px 24px 28px; margin-block: 12px 32px; }
.discovery-request > img { margin: 0 auto 12px; opacity: .75; }
.discovery-request h2 { font-size: 20px; }
.discovery-request p { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.discovery-request .btn { margin-top: 16px; }
.discovery-request small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 12px; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .discovery-row { grid-template-columns: minmax(220px, 1fr) minmax(0, 1.3fr) 150px; gap: 16px; }
  .discovery-row__service { padding-inline: 16px; }
  .discovery-row__portrait, .discovery-row__initials { width: 72px; height: 72px; }
  .discovery-row__expert { gap: 12px; }
}
@media (max-width: 860px) {
  .discovery-row { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 26px; }
  .discovery-row__service { padding: 0; border: 0; }
  .discovery-row__expert { align-items: center; }
  .discovery-row__action { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: start; }
  .discovery-row__price { margin: 0; }
  .discovery-row__action .btn { width: auto; }
  .discovery-row h3 { font-size: 18px; }
  .discovery-page .filters .meta { justify-content: space-between; }
  .discovery-page .filters select { max-width: 100%; }
  .discovery-page .browse-head { padding-block: 30px 24px; }
  .discovery-page .filters { gap: 8px; }
  .discovery-context { padding-block: 16px; min-height: 0; }
  .discovery-request { padding-inline: 16px; }
}
@media (max-width: 360px) {
  .discovery-row__action { align-items: stretch; flex-direction: column; }
}
.pagination { display: flex; justify-content: center; gap: 8px; padding-block: 40px; }
.page-btn {
  min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--border);
  background: #fff; border-radius: var(--r-btn); font-size: 14px; color: var(--ink-2); cursor: pointer;
}
.page-btn[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }

/* --------------------------------------------------------- Booking modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal[open], .modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(16, 22, 38, .62); }
.modal__panel {
  position: relative; z-index: 1; width: min(940px, calc(100% - 32px));
  max-height: calc(100dvh - 48px); overflow: auto;
  margin: 24px auto; background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-lg);
}
.modal__head { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal__head .who { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.modal__head .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.modal__close {
  margin-inline-start: auto; width: 38px; height: 38px; border-radius: var(--r-btn);
  border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 18px; color: var(--muted);
}
.modal__body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; padding: 24px; }

/* Booking stages share one summary and preserve the entered customer data. */
#booking-modal .modal__head { position:sticky; top:0; background:#fff; z-index:2; }
.booking-steps { display:flex; gap:12px; list-style:none; margin:0; padding:18px 24px; border-bottom:1px solid var(--border); }
.booking-steps li { display:flex; align-items:center; gap:8px; flex:1; font-size:13px; color:var(--muted); }
.booking-steps b { display:grid; place-items:center; width:28px; height:28px; border:1px solid var(--border); border-radius:50%; background:var(--band); }
.booking-steps [aria-current="step"] { color:var(--navy); font-weight:600; }
.booking-steps [aria-current="step"] b { color:#fff; background:var(--navy); border-color:var(--navy); }
.booking-steps .is-complete b { color:#17794A; background:#EAF5EF; border-color:#A6D0B9; }
.booking-workflow, .booking-summary { min-width:0; }
.booking-stage-title { font-size:19px; margin:0 0 14px; }
.booking-label { font-size:13px; font-weight:600; margin-top:8px; }
.booking-help { color:var(--muted); font-size:13px; line-height:1.85; margin:12px 0; }
#booking-next { margin-top:20px; }
.booking-navigation { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.booking-review { margin:20px 0; border:1px solid var(--border); border-radius:12px; padding:8px 16px; }
.booking-review div { padding:12px 0; border-bottom:1px solid var(--border); }
.booking-review div:last-child { border:0; }
.booking-review dt { color:var(--muted); font-size:12px; margin-bottom:4px; }
.booking-review dd { margin:0; font-size:14px; overflow-wrap:anywhere; }
.booking-review:not(.booking-review-context) div { display:flex; justify-content:space-between; gap:12px; }
.booking-review:not(.booking-review-context) dt { margin:2px 0 0; flex:none; }
.booking-review:not(.booking-review-context) dd { min-width:0; text-align:end; }
.booking-review-context { display:none; background:var(--band); }
#booking-error { overflow-wrap:anywhere; }
.booking-summary .summary__row b { overflow-wrap:anywhere; text-align:end; }

.specialty-form { position:relative; text-align:start; max-width:580px; margin:24px auto 0; }
.specialty-form > label { display:block; font-size:13px; font-weight:600; margin:18px 0 8px; }
.specialty-form label > span { color:var(--muted); font-weight:400; }
.specialty-form > input, .specialty-form > textarea { display:block; width:100%; min-width:0; box-sizing:border-box; border:1px solid var(--border); border-radius:10px; padding:12px 14px; font:inherit; font-size:14px; background:#fff; }
.specialty-form textarea { resize:vertical; }
.specialty-form .specialty-consent { display:flex; align-items:flex-start; gap:9px; font-size:12.5px; line-height:1.8; font-weight:400; }
.specialty-consent input { margin-top:5px; accent-color:var(--navy); flex:none; }
.specialty-form .specialty-policy { font-size:12px; line-height:1.85; }
.specialty-trap { position:absolute; inset-block-start:0; inset-inline-start:0; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; pointer-events:none; }
#specialty-error { background:#FDECEC; color:#8A1C1C; padding:12px; border-radius:8px; }
.specialty-success { max-width:580px; margin:24px auto 0; padding:20px; background:#EAF5EF; border:1px solid #B3D5C2; border-radius:12px; }
.specialty-success h3 { font-size:17px; color:#17794A; }
.specialty-success p { line-height:1.85; }
#booking-modal [hidden], #specialty-form[hidden], #specialty-form [hidden],
#specialty-success[hidden], #request-specialty[hidden] { display:none !important; }
@media (max-width:600px) {
  .booking-steps { gap:8px; padding:14px 18px; }
  .booking-steps li { gap:6px; font-size:12px; }
  .booking-summary { border-top:1px solid var(--border); padding-top:18px; }
  .booking-review-context { display:block; }
  .specialty-form .btn { width:100%; }
}

.field-label { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.day {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px;
  border: 1px solid var(--border); border-radius: var(--r-btn); background: #fff; cursor: pointer;
  font-family: inherit; transition: all .15s ease;
}
.day small { font-size: 12px; color: var(--muted); font-weight: 300; }
.day b { font-size: 15px; font-weight: 600; }
.day em { font-size: 12px; color: var(--muted); font-style: normal; font-weight: 300; }
.day__hijri { display: block; font-size: 11px; color: var(--faint, #9AA3B2); margin-top: 1px; }
.day[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.day[aria-pressed="true"] small, .day[aria-pressed="true"] em { color: rgba(255,255,255,.8); }
.day:disabled { opacity: .4; cursor: not-allowed; }

.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.slot {
  height: 46px; border: 1px solid var(--border); border-radius: var(--r-btn);
  background: #fff; font-family: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer;
  transition: all .15s ease; position: relative;
}
.slot:hover:not(:disabled) { border-color: var(--navy); }
.slot[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.slot:disabled { color: var(--faint); text-decoration: line-through; cursor: not-allowed; background: var(--band); }

.tz-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.next-slot { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--green); }

.summary { background: var(--band); border-radius: var(--r-card); padding: 20px 22px; }
.summary h3 { font-size: 16px; margin-bottom: 14px; }
.summary__row { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; padding-block: 7px; color: var(--muted); }
.summary__row b { color: var(--ink); font-weight: 600; text-align: end; }
.summary__total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--border-strong); margin-top: 10px; padding-top: 12px;
}
.summary__total span { font-size: 14.5px; font-weight: 600; }
.summary__total b { font-family: var(--font-head); font-size: 22px; font-weight: 800; }

.pay-options { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.pay-option {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1.5px solid var(--border); border-radius: var(--r-btn); padding: 13px 16px;
  font-size: 14px; font-weight: 500; transition: all .15s ease;
}
.pay-option:hover { border-color: var(--border-strong); }
.pay-option input { accent-color: var(--navy); width: 18px; height: 18px; }
.pay-option:has(input:checked) { border-color: var(--navy); background: var(--navy-tint); }

.wa-note {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 16px;
  background: var(--green-tint); border-radius: 10px; padding: 13px 15px;
  font-size: 12.5px; line-height: 1.8; color: #1B4634;
}
.wa-note svg { flex: none; margin-top: 2px; }

.booking-success { padding: 48px 32px; text-align: center; display: none; }
.booking-success.is-shown { display: block; }
.booking-success .tick {
  width: 62px; height: 62px; border-radius: 50%; background: var(--green-tint); color: var(--green);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.booking-success h3 { font-size: 22px; }
.booking-success p { color: var(--muted); margin-top: 10px; line-height: 1.9; }

/* --------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  :root { --pad: 32px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile { grid-template-columns: 1fr; gap: 32px; }
  .booking-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  :root { --pad: 20px; }
  .nav, .header-actions .btn { display: none; }
  .header-actions .header-bookings { display: inline-flex; white-space: nowrap; }
  .site-header .wrap { gap: 12px; }
  .nav-toggle { display: flex; flex-shrink: 0; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; inset-block-start: 76px; inset-inline: 0; background: #fff;
    border-bottom: 1px solid var(--border); padding: 16px 20px; z-index: 70;
  }
  .nav.is-open a { padding-block: 10px; width: 100%; }
  .nav.is-open .nav__mobile { display: block; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; font-weight: 600; }

  .hero { min-height: 460px; }
  .hero__media::after { background: linear-gradient(180deg, rgba(11,19,38,.72) 0%, rgba(11,19,38,.92) 100%); }
  .hero__inner { padding-block: 56px; }
  .section { padding-block: 44px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

  .cta { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .cta__actions { width: 100%; flex-direction: column; }
  .cta__actions .btn { width: 100%; }

  .profile__head { flex-direction: column; }
  .profile__photo { width: 100%; height: 260px; }

  .modal__panel { width: 100%; margin: 0; min-height: 100dvh; border-radius: 0; }
  .modal__body { grid-template-columns: 1fr; padding: 18px; gap: 22px; }
  .days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .footer-grid { grid-template-columns: 1fr; }
  .filters .meta { width: 100%; margin-inline-start: 0; }

  /* Sticky booking bar — the phone equivalent of the sidebar card */
  .mobile-book-bar {
    display: flex; position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 50;
    align-items: center; justify-content: space-between; gap: 14px;
    background: #fff; border-top: 1px solid var(--border); padding: 12px 20px;
    box-shadow: 0 -2px 12px rgba(22,38,74,.08);
  }
  .mobile-book-bar .price { font-size: 15px; font-weight: 600; }
  .mobile-book-bar small { display: block; font-size: 11.5px; color: var(--green); font-weight: 600; }
  body.has-mobile-bar { padding-bottom: 78px; }
}

@media (max-width: 520px) {
  .grid--4 { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------- loading & error states */
.sk{background:linear-gradient(90deg,#EEF0F3 25%,#F6F7F9 50%,#EEF0F3 75%);background-size:200% 100%;
  animation:sk-shimmer 1.4s ease infinite;border-radius:8px}
@keyframes sk-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
@media (prefers-reduced-motion: reduce){.sk{animation:none}}
.card--skeleton{pointer-events:none}
.card--skeleton .card__media.sk{border-radius:12px 12px 0 0;min-height:180px}
.sk-line{height:13px;margin:10px 0}
.load-error{grid-column:1/-1;text-align:center;padding:48px 24px;border:1px dashed var(--border-strong,#CBD0D8);
  border-radius:12px;background:#FBFBFC}
.load-error p{color:var(--muted);font-size:14.5px;margin:0 0 16px}
.no-avail{grid-column:1/-1;background:#F6F7F9;border:1px dashed var(--border-strong,#CBD0D8);
  border-radius:10px;padding:28px 20px;text-align:center;color:var(--muted);font-size:13.5px;line-height:1.8}

/* --------------------------------------------------- profile social icons */
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); transition: color .12s, border-color .12s;
}
.socials a:hover { color: var(--navy); border-color: var(--navy); }

/* ------------------------------------------------------- services list */
.svc {
  display: flex; justify-content: space-between; gap: 18px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px; margin-bottom: 12px;
}
.svc--featured { border-color: var(--navy); }
.svc__title { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.svc__badge {
  font-size: 11px; font-weight: 600; color: var(--gold, #C8912F);
  border: 1px solid currentColor; border-radius: 4px; padding: 2px 8px;
}
.svc__desc { font-size: 13.5px; color: var(--muted); line-height: 1.8; margin: 6px 0 0; }
.svc__meta { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.svc__side { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; flex: none; }
.svc__price { font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.svc__price span { font-size: 12px; font-weight: 400; color: var(--muted); }
@media (max-width: 520px) {
  .svc { flex-direction: column; }
  .svc__side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}

/* --------------------------------------------------- showcase (sample) UI */
.badge-sample {
  font-size: 10.5px; font-weight: 700; color: var(--muted);
  border: 1px dashed var(--border-strong, #CBD0D8); border-radius: 4px;
  padding: 2px 7px; margin-inline-start: 8px; vertical-align: 2px; white-space: nowrap;
}
.card--sample .card__media { opacity: .82; filter: saturate(.7); }
.card--sample .avatar-ph { color: #B9BFC9; }
.sample-banner {
  background: #F6F7F9; border: 1px dashed var(--border-strong, #CBD0D8);
  border-radius: 10px; padding: 13px 16px; font-size: 13.5px; color: var(--muted);
  line-height: 1.8; margin-bottom: 20px;
}
.sample-banner a { font-weight: 600; }


/* ------------------------------------------------------------- share row */
.share-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.share-row button, .share-row a {
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  border-radius: 8px; padding: 8px 14px; text-decoration: none;
  transition: color .12s, border-color .12s;
}
.share-row button:hover, .share-row a:hover { color: var(--navy); border-color: var(--navy); }
.share-row .copied { color: var(--green, #17794A); border-color: var(--green, #17794A); }


/* ============================================================ polish pass */

/* Eyebrow labels — quiet gold markers that give sections a rhythm. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 12.5px; font-weight: 700;
  color: var(--gold, #C8912F); margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }

/* Cards respond to the hand. */
.card, .cat, .svc {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover, .cat:hover {
  transform: translateY(-3px);
  border-color: var(--navy);
  box-shadow: 0 10px 28px rgba(22, 38, 74, .10);
}
.card--sample:hover { transform: none; border-color: var(--border); box-shadow: var(--shadow-sm, 0 1px 2px rgba(20,24,31,.05)); }
@media (prefers-reduced-motion: reduce) {
  .card, .cat, .svc { transition: none; }
  .card:hover, .cat:hover { transform: none; }
}

/* Avatar placeholders: from grey slab to soft navy-tinted field. */
.avatar-ph {
  background: linear-gradient(160deg, #EEF1F7 0%, #DFE5F0 100%);
  color: rgba(22, 38, 74, .38);
}
.card--sample .avatar-ph { color: rgba(22, 38, 74, .22); }

/* Value cards: give the icon a home. */
.value__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--navy-soft, #EDF0F6); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
}

/* How-it-works: gold-ringed steps joined by a thread. */
.step { position: relative; }
.step__num {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(200, 145, 47, .45);
}
@media (min-width: 861px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 21px; left: -34px; width: 68px; height: 0;
    border-top: 2px dashed rgba(22, 38, 74, .18);
  }
}

/* CTA band echoes the hero's world. */
.cta {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 12% 110%, rgba(200,145,47,.16), transparent 70%),
    radial-gradient(700px 380px at 108% -20%, rgba(61,90,158,.35), transparent 70%),
    var(--navy);
}

/* The seal earns a moment: draws in once when a verified profile loads. */
@keyframes seal-in {
  0%   { transform: scale(.5) rotate(-14deg); opacity: 0; }
  70%  { transform: scale(1.08) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.seal-animate { animation: seal-in .5s cubic-bezier(.2,.9,.3,1.2) both; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .seal-animate { animation: none; } }


/* ----------------------------------------- hero, direction أ: light + photo */
.hero--light { background: #FAFAF9; min-height: 560px; }
.hero--light .hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 470px;
  gap: 64px; align-items: center; width: 100%; padding-block: 56px;
}
.hero--light .hero__inner { padding-block: 0; max-width: 620px; }
.hero--light h1 { color: var(--ink, #14181F); }
.hero--light h1 em { font-style: normal; color: var(--gold, #C8912F); }
.hero--light p { color: var(--muted, #5A6070); }
.hero--light .hero__badge {
  background: #FBF4E6; border: 0; color: #9A6200; font-weight: 600;
}
.hero--light .searchbar {
  border: 1px solid var(--border, #E3E5EA);
  box-shadow: 0 16px 40px rgba(22, 38, 74, .08);
}
.hero__photo-col { position: relative; height: 480px; }
.hero__photo {
  position: absolute; inset: 0;
  border-radius: 24px 24px 24px 120px;
  background:
    url('../img/photos/hero.jpg') center / cover no-repeat,
    linear-gradient(150deg, #EFE9DC, #DEE4F0);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(22, 38, 74, .12);
  display: flex; align-items: center; justify-content: center;
}
.hero__photo-seal { width: 190px; height: 190px; opacity: .35; }
.hero__chip {
  position: absolute; background: #fff; border-radius: 14px;
  box-shadow: 0 20px 50px rgba(22, 38, 74, .16);
}
.hero__chip--toast {
  bottom: 64px; inset-inline-start: -42px;
  display: flex; align-items: center; gap: 12px; padding: 15px 20px;
}
.hero__chip--toast b { display: block; font-family: var(--font-head); font-size: 13.5px; color: var(--ink, #14181F); }
.hero__chip--toast small { display: block; font-size: 11.5px; color: var(--muted, #5A6070); margin-top: 2px; }
.hero__tick {
  width: 34px; height: 34px; border-radius: 50%; flex: none; color: #17794A;
  background: #EAF4EE; display: inline-flex; align-items: center; justify-content: center;
}
.hero__chip--seal {
  top: 26px; inset-inline-end: -20px;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--ink, #14181F);
  padding: 12px 18px; border-radius: 999px;
}
@media (max-width: 1020px) {
  .hero--light .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__photo-col { display: none; }
  .hero--light { min-height: 0; }
}


/* ================================================================
   Motion — quiet, purposeful, and off whenever the user asks for
   less motion. Two jobs only: content arrives gracefully instead of
   flashing, and controls answer the hand that touches them.
   ================================================================ */
@media (prefers-reduced-motion: no-preference) {

  /* 1 — hydration: the real profile fades in over the skeleton it replaces.
     The swap itself lives outside this block — see "profile skeleton" below —
     because hiding sample content from a client is correctness, not decoration,
     and must happen whether or not they asked for reduced motion. */
  .profile, .booking-card { transition: opacity .5s ease, transform .5s ease; }
  html.hydrating .profile { opacity: 0; transform: translateY(10px); }

  /* 2 — micro-interactions */
  .btn { transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
  .btn:not(:disabled):active { transform: scale(.965); }

  .svc, .cred, .review, .card {
    transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
  }
  .svc:hover, .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 38, 74, .08);
    border-color: #C4CCDD;
  }
  .cred:hover { border-color: #C4CCDD; box-shadow: 0 4px 14px rgba(22, 38, 74, .06); }

  .day, .slot, .chip, .prt-tabs button, .wiz-day {
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
  }
  .day:active, .slot:active, .chip:active { transform: scale(.955); }

  /* booking dialog settles in instead of appearing */
  .modal.is-open .modal__panel { animation: panel-in .3s cubic-bezier(.2, .8, .25, 1); }
  @keyframes panel-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }

  /* FAQ answer glides open */
  .faq details[open] .faq__answer { animation: faq-in .25s ease; }
  @keyframes faq-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ================================================================
   Motion II — four story moments (approved preview). All inside
   the same reduced-motion guard; final states are visible at rest.
   ================================================================ */
.hero__chip--slot {
  top: 26px; inset-inline-end: -18px;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 18px;
}
.hero__chip--slot .cal {
  width: 40px; height: 40px; border-radius: 10px; background: var(--navy-tint);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800;
  color: var(--navy); font-size: 15px; line-height: 1;
}
.hero__chip--slot .cal small { font-size: 9px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.hero__chip--slot b { display: block; font-family: var(--font-head); font-size: 13.5px; color: var(--ink); }
.hero__chip--slot small { display: block; font-size: 11.5px; color: var(--muted); }
.hero__chip--slot .pick { position: absolute; inset: 0; border-radius: 14px; pointer-events: none; }
.hero__chip--rate {
  bottom: -14px; inset-inline-end: 28px; padding: 12px 18px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--ink);
}
.hero__stars { display: inline-flex; gap: 2px; direction: ltr; }
.hero__stars svg { width: 15px; height: 15px; }
.hero__tick path { stroke-dasharray: 30; }
.ok-ring {
  width: 64px; height: 64px; border-radius: 50%; background: #EAF4EE; color: #17794A;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; position: relative;
}
.ok-ring path { stroke-dasharray: 34; }
.subrating .fill { display: block; height: 100%; background: #C8912F; width: var(--w); }
.sum-bump { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  /* 1 — home hero: slot chosen → confirmed → rated. Plays once on load. */
  .hero__chip--slot, .hero__chip--toast, .hero__chip--rate {
    opacity: 0; transform: translateY(14px) scale(.98);
    animation: chip-in .7s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .hero__chip--slot { animation-delay: .3s; }
  .hero__chip--toast { animation-delay: 1.8s; }
  .hero__chip--rate { animation-delay: 3.3s; }
  @keyframes chip-in { to { opacity: 1; transform: none; } }
  .hero__chip--slot .pick { animation: chip-pick 1s cubic-bezier(.2,.7,.2,1) 1s both; }
  @keyframes chip-pick { 0% { box-shadow: 0 0 0 0 rgba(200,145,47,.55); } 100% { box-shadow: 0 0 0 14px rgba(200,145,47,0); } }
  .hero__tick path { stroke-dashoffset: 30; animation: stroke-draw .5s cubic-bezier(.2,.7,.2,1) 2.25s forwards; }
  @keyframes stroke-draw { to { stroke-dashoffset: 0; } }
  .hero__stars svg { transform: scale(.4); opacity: 0; animation: star-in .4s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero__stars svg:nth-child(1) { animation-delay: 3.6s; } .hero__stars svg:nth-child(2) { animation-delay: 3.75s; }
  .hero__stars svg:nth-child(3) { animation-delay: 3.9s; }  .hero__stars svg:nth-child(4) { animation-delay: 4.05s; }
  .hero__stars svg:nth-child(5) { animation-delay: 4.2s; }
  @keyframes star-in { to { transform: scale(1); opacity: 1; } }

  /* 2 — expert page: bars fill, next-slot dot pings twice, summary values bump. */
  .subrating .fill { width: 0; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
  .subrating.in .fill { width: var(--w); }
  .subrating.in .bar:nth-child(2) .fill { transition-delay: .12s; }
  .subrating.in .bar:nth-child(3) .fill { transition-delay: .24s; }
  .pill-available .dot { position: relative; }
  .pill-available .dot::after {
    content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--green);
    opacity: 0; animation: dot-ping 1.1s cubic-bezier(.2,.7,.2,1) 1.2s 2;
  }
  @keyframes dot-ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
  .sum-bump { animation: sum-bump .45s cubic-bezier(.2,.7,.2,1); }
  @keyframes sum-bump { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

  /* 3 — wizard preview: the part that just changed glows, then settles. */
  .pv-glow { animation: pv-glow 1.2s cubic-bezier(.2,.7,.2,1); border-radius: 6px; }
  @keyframes pv-glow { 0% { background: rgba(200,145,47,.35); box-shadow: 0 0 0 6px rgba(200,145,47,.35); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }

  /* 4 — success: the check draws itself inside a ring that rings once. */
  .ok-ring { transform: scale(.6); opacity: 0; animation: ring-in .55s cubic-bezier(.2,.7,.2,1) forwards; }
  @keyframes ring-in { to { transform: none; opacity: 1; } }
  .ok-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #17794A; opacity: 0; animation: dot-ping .9s cubic-bezier(.2,.7,.2,1) .45s 1; }
  .ok-ring path { stroke-dashoffset: 34; animation: stroke-draw .5s cubic-bezier(.2,.7,.2,1) .35s forwards; }
}

/* ================================================================
   Split auth pages (sign-up / portal login) — form + proof panel.
   ================================================================ */
.ax{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}
.ax__logo{position:absolute;top:44px;inset-inline-start:56px;
  font-family:Alexandria,sans-serif;font-weight:800;font-size:23px;color:var(--ink,#14181F);text-decoration:none}
.ax__logo em{font-style:normal;color:#C8912F}
.ax__col{display:flex;flex-direction:column;justify-content:center;padding:120px 56px 72px}
.ax__col--form{align-items:flex-start}
.ax__col--side{border-inline-start:1px solid #EFEFF1;padding-inline-start:64px}
.ax__inner{width:100%;max-width:430px}
.ax__back{display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:600;color:var(--navy,#16264A);
  text-decoration:none;margin-bottom:26px}
.ax__back:hover{opacity:.75}
.ax h1{font-size:29px;font-weight:800;line-height:1.35;margin:0 0 30px;color:var(--ink,#14181F)}
.axf{margin-bottom:18px}
.axf label{display:block;font-size:14px;color:var(--ink-2,#3D4450);margin-bottom:8px}
.axf input,.axf select{width:100%;box-sizing:border-box;background:#F6F6F8;border:1px solid #F6F6F8;border-radius:8px;
  padding:14px 16px;font:inherit;font-size:15px;color:var(--ink,#14181F);transition:background .15s,border-color .15s,box-shadow .15s}
.axf input::placeholder{color:#A0A5AF}
.axf input:focus,.axf select:focus{outline:none;background:#fff;border-color:var(--navy,#16264A);box-shadow:0 0 0 3px rgba(22,38,74,.09)}
.axf--pass{position:relative}
.axf--pass input{padding-right:48px}
.axf__eye{position:absolute;right:14px;bottom:13px;background:none;border:0;padding:4px;cursor:pointer;color:#7B8090;line-height:0}
.axr{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:520px){.axr{grid-template-columns:1fr}}
.ax__hint{font-size:12.5px;color:var(--muted);margin:-6px 0 20px}
.ax__btn{width:100%;border:0;border-radius:8px;background:var(--navy,#16264A);color:#fff;font:inherit;font-weight:700;
  font-size:15.5px;padding:16px;cursor:pointer;margin-top:10px;transition:background .2s}
.ax__btn:hover:not(:disabled){background:#0F1B36}
.ax__btn:disabled{opacity:.6;cursor:default}
.ax__legal{font-size:12.5px;color:var(--muted);line-height:1.8;margin:16px 0 0}
.ax__alt{font-size:14px;color:var(--muted);margin:28px 0 0}

/* --- side panel: a card, then the statement --- */
.ax__card{width:100%;max-width:530px;border-radius:14px;overflow:hidden;background:var(--navy,#16264A);
  padding:26px 28px 30px;box-shadow:0 18px 44px rgba(22,38,74,.14)}
.ax__card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.ax__card-brand{font-family:Alexandria,sans-serif;font-weight:800;font-size:19px;color:#fff}
.ax__card-brand em{font-style:normal;color:#C8912F}
.ax__card-url{font-size:13px;color:#8FA5D6}
.ax__sheet{background:#fff;border-radius:11px;padding:18px}
.ax__sheet-head{display:flex;align-items:center;gap:13px}
.ax__ph{width:56px;height:56px;border-radius:50%;background:#EDF0F6;border:2px dashed #C6CEDC;flex:none;
  display:flex;align-items:center;justify-content:center;color:#96A0B2}
.ax__bar{height:12px;border-radius:4px;background:#E6E9EF}
.ax__bar--sm{height:9px;background:#EFF1F5;margin-top:8px}
.ax__stars{display:flex;gap:3px;margin-top:9px}
.ax__svc{margin-top:16px;border:1px solid #ECEEF2;border-radius:10px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.ax__svc b{font-family:Alexandria,sans-serif;font-size:14.5px;display:block}
.ax__svc small{font-size:11.5px;color:var(--muted)}
.ax__book{margin-top:10px;background:var(--navy,#16264A);color:#fff;border-radius:8px;text-align:center;padding:11px;font-size:13.5px;font-weight:600}
.ax__cap{font-size:11.5px;color:#8FA5D6;text-align:center;margin:16px 0 0}
.ax__say{max-width:470px;margin:34px 0 0;border-inline-start:3px solid #C8912F;padding-inline-start:20px}
.ax__say p{font-size:17.5px;line-height:1.85;color:var(--ink,#14181F);margin:0;text-wrap:pretty;font-weight:500}
.ax__say p + p{margin-top:12px;font-size:15px;line-height:1.9;color:var(--muted);font-weight:400}
.ax__who{margin-top:26px;max-width:470px;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.ax__who b{font-family:Alexandria,sans-serif;font-size:16px;color:var(--ink,#14181F);white-space:nowrap}
.ax__who span{font-size:14px;color:var(--muted);line-height:1.8}
.ax__who i{width:4px;height:4px;border-radius:50%;background:#C8912F;font-style:normal;flex:none}

@media (max-width:900px){
  .ax{grid-template-columns:1fr;min-height:0}
  .ax__logo{position:static;margin:26px 22px 0}
  .ax__col{padding:26px 22px 40px}
  .ax__col--side{border-inline-start:0;border-top:1px solid #EFEFF1;padding-inline-start:22px;padding-top:38px}
}

/* single-column variant (password reset, admin) */
.ax--single{grid-template-columns:1fr;min-height:calc(100vh - 64px)}
.ax--single .ax__col{align-items:center;padding-top:56px}
.ax--single .ax__inner{max-width:400px}
.ax__note{font-size:13px;color:var(--muted);line-height:1.85;margin:18px 0 0}
.ax__msg{display:none;border-radius:8px;padding:12px 14px;font-size:13px;margin:0 0 14px}

/* ---------------------------------------------- hero story card (mobile) */
.hero__story { display: none; }
@media (max-width: 1020px) {
  .hero__story {
    display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center;
    margin-top: 26px; padding: 16px 18px; background: #fff; border-radius: 18px;
    border: 1px solid var(--border, #E3E5EA); box-shadow: 0 18px 44px rgba(22, 38, 74, .10);
    max-width: 520px;
  }
  .hero__story-photo {
    width: 76px; height: 76px; border-radius: 22px 22px 22px 40px; align-self: start;
    background: url('../img/photos/hero.jpg') center / cover no-repeat, linear-gradient(150deg, #EFE9DC, #DEE4F0);
    box-shadow: inset 0 0 0 1px rgba(22, 38, 74, .06);
  }
  .hero__story-steps { list-style: none; margin: 0; padding: 0; position: relative; }
  .hero__story-steps::before {
    content: ""; position: absolute; top: 14px; bottom: 14px; inset-inline-start: 19px;
    width: 2px; background: linear-gradient(180deg, var(--navy-tint, #E8ECF5), #F6EBD3); border-radius: 2px;
  }
  .hs { position: relative; display: flex; align-items: center; gap: 12px; padding: 5px 0; }
  .hs + .hs { margin-top: 4px; }
  .hs .cal, .hs .hero__tick, .hs .hero__stars { position: relative; z-index: 1; }
  .hs .cal {
    width: 40px; height: 40px; border-radius: 12px; background: var(--navy-tint, #E8ECF5); flex: none;
    display: grid; place-items: center; font-family: var(--font-head); font-weight: 800;
    color: var(--navy, #16264A); font-size: 14px; line-height: 1; box-shadow: 0 0 0 4px #fff;
  }
  .hs .cal small { font-size: 9px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
  .hs .hero__tick { width: 40px; height: 40px; box-shadow: 0 0 0 4px #fff; }
  .hs .hero__stars {
    width: 40px; height: 40px; flex: none; border-radius: 12px; background: #FBF4E6; box-shadow: 0 0 0 4px #fff;
    display: grid; grid-template-columns: repeat(3, 10px); justify-content: center; align-content: center; gap: 1px;
  }
  .hs .hero__stars svg { width: 10px; height: 10px; }
  .hs .hero__stars svg:nth-child(4) { grid-column: 1 / 2; }
  .hs__t b { display: block; font-family: var(--font-head); font-size: 13px; color: var(--ink); line-height: 1.4; }
  .hs__t small { display: block; font-size: 12px; color: var(--muted); }
}
@media (max-width: 1020px) and (prefers-reduced-motion: no-preference) {
  .hs { opacity: 0; transform: translateX(-10px); animation: chip-in .6s cubic-bezier(.2,.7,.2,1) forwards; }
  .hs--slot { animation-delay: .3s; } .hs--tick { animation-delay: 1.5s; } .hs--rate { animation-delay: 2.7s; }
  .hs--tick .hero__tick path { stroke-dashoffset: 30; animation-delay: 1.9s; }
  .hs--rate .hero__stars svg:nth-child(1) { animation-delay: 3s; } .hs--rate .hero__stars svg:nth-child(2) { animation-delay: 3.12s; }
  .hs--rate .hero__stars svg:nth-child(3) { animation-delay: 3.24s; } .hs--rate .hero__stars svg:nth-child(4) { animation-delay: 3.36s; }
  .hs--rate .hero__stars svg:nth-child(5) { animation-delay: 3.48s; }
  .hero__story-steps::before { transform: scaleY(0); transform-origin: top; animation: line-grow 2.6s cubic-bezier(.2,.7,.2,1) .6s forwards; }
  @keyframes line-grow { to { transform: scaleY(1); } }
}

/* ------------------------------------------------ empty & error states */
.empty { grid-column: 1 / -1; text-align: center; padding: 40px 20px 44px; max-width: 460px; margin: 0 auto; }
.empty__art { width: 176px; height: 132px; display: block; margin: 0 auto 14px; }
.empty__title { font-family: var(--font-head, Alexandria, sans-serif); font-weight: 700; font-size: 18px; color: var(--ink, #14181F); margin-bottom: 6px; }
.empty__sub { color: var(--muted); font-size: 14px; line-height: 1.9; margin: 0; }
.empty__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.empty--sm { padding: 22px 12px 26px; }
.empty--sm .empty__art { width: 132px; height: 99px; margin-bottom: 8px; }
.empty--sm .empty__title { font-size: 15.5px; }
.empty--sm .empty__sub { font-size: 13px; }
@media (prefers-reduced-motion: no-preference) {
  .empty__art { opacity: 0; transform: translateY(8px); animation: chip-in .6s cubic-bezier(.2,.7,.2,1) .05s forwards; }
}

/* ------------------------------------------------------- profile skeleton
   The expert page ships with sample content so the design stays reviewable
   without a backend. That sample must never be seen by a client, so the page
   used to hide the whole profile until the real data arrived — up to 2.6
   seconds of blank screen on a slow connection, which reads as "broken" long
   before it reads as "loading".

   The skeleton is the same layout in grey: the reader sees the shape of the
   page immediately and watches it fill in. It reuses the .sk shimmer already
   used by the browse grid, which carries its own reduced-motion rule.

   Deliberately outside the prefers-reduced-motion block: hiding the sample is
   not an animation. */
.profile-sk { display: none; }
html.hydrating .profile-sk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px; align-items: start; padding-block: 24px 56px;
}
html.hydrating .profile { display: none; }

/* The breadcrumb names the expert too, and it sits outside .profile — so it
   leaked the sample name while the real one loaded. Blank the two dynamic
   parts and hold their width, rather than letting the trail collapse and
   reflow the moment the data lands. */
html.hydrating #bc-cat,
html.hydrating #bc-name {
  color: transparent; background: #EEF0F3; border-radius: 4px;
  display: inline-block; min-width: 88px; height: 12px; vertical-align: middle;
}

.profile-sk__head { display: flex; gap: 24px; align-items: flex-start; }
.profile-sk__photo { width: 150px; height: 180px; flex: none; border-radius: var(--r-card); }
.profile-sk__lines { flex: 1; min-width: 0; padding-top: 6px; }
.profile-sk__chips { display: flex; gap: 8px; margin-top: 18px; }
.profile-sk__chips span { height: 26px; width: 84px; border-radius: 999px; }
.profile-sk__block { margin-top: 34px; }
.profile-sk__row { height: 78px; border-radius: 12px; margin-bottom: 10px; }
.profile-sk__card {
  border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 22px 20px; background: var(--surface);
}
.profile-sk__btn { height: 48px; border-radius: 10px; }

@media (max-width: 980px) {
  html.hydrating .profile-sk { grid-template-columns: 1fr; gap: 28px; }
  html.hydrating .profile-sk aside { display: none; }   /* the booking bar is fixed on mobile */
}
@media (max-width: 560px) {
  .profile-sk__head { gap: 16px; }
  .profile-sk__photo { width: 96px; height: 116px; }
}

/* Expert sharing materials: show the whole export, with a separate download. */
.share-kit { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:20px; }
.share-kit__item { border:1px solid var(--border);border-radius:14px;overflow:hidden;background:#fff;min-width:0; }
.share-kit__preview { background:#efeee9;padding:18px;height:250px;display:flex;align-items:center;justify-content:center; }
.share-kit__preview img { display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:5px;box-shadow:0 8px 24px #16264a15; }
.share-kit__details { padding:18px; }
.share-kit__details h4 { font-size:15px;margin:0 0 6px; }
.share-kit__details p { font-size:12.5px;color:var(--muted);margin:0 0 10px;line-height:1.7; }
.share-kit__size { display:block;font-size:12px;color:var(--muted);margin-bottom:12px;text-align:right; }
.share-kit__pending { font-size:12px;color:var(--muted);line-height:1.8; }
.share-link-input { width:100%;min-width:0;padding:10px;border:1px solid var(--border);border-radius:8px;font:inherit;font-size:13px;text-align:left; }
.share-row button,.share-row a { min-height:44px; }
.share-row button:focus-visible,.share-row a:focus-visible,.share-kit a:focus-visible { outline:3px solid #c8912f;outline-offset:3px; }
@media (max-width:520px) { .share-kit { grid-template-columns:1fr; }.share-kit__preview { height:280px; } }

.card-design-picker { margin:24px 0 0;padding:0;border:0;min-width:0; }
.card-design-picker legend { padding:0;margin-bottom:12px;font-size:14px;font-weight:600; }
.card-design-picker__options { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }
.card-design-option { position:relative;display:flex;flex-direction:column;gap:6px;cursor:pointer;padding:12px;border:1px solid var(--border);border-radius:12px;background:#fff;min-width:0; }
.card-design-option:has(input:checked) { border-color:var(--navy);box-shadow:0 0 0 1px var(--navy);background:#f8f9fc; }
.card-design-option:focus-within { outline:3px solid #c8912f;outline-offset:3px; }
.card-design-option input { position:absolute;inset-inline-end:10px;top:10px;width:18px;height:18px;accent-color:var(--navy); }
.card-design-option__preview { display:flex;align-items:center;justify-content:center;aspect-ratio:5/3;background:#efeee9;border-radius:6px;margin-top:22px;overflow:hidden;font-size:12px;color:var(--muted); }
.card-design-option__preview img { display:block;width:100%;height:100%;object-fit:contain; }
.card-design-option__name { font-size:13px;font-weight:600; }
.card-design-option__help { font-size:11.5px;color:var(--muted);line-height:1.6; }
.card-design-note { font-size:12px;color:var(--muted);line-height:1.8;margin:14px 0 8px; }
.card-design-status { font-size:12px;line-height:1.8;color:var(--green,#17794A);min-height:22px;margin:0; }
@media(max-width:520px) { .card-design-picker__options { gap:8px; }.card-design-option { padding:8px; }.card-design-option__name { font-size:12px; }.card-design-option__help { display:none; } }

.card-freshness{padding:14px;border:1px solid var(--border);border-radius:10px;background:#F6F8FB;margin-top:16px}.card-freshness[data-state="current"]{background:#EAF4EE;border-color:#BBDAC7}.card-freshness[data-state="pending"]{background:#FAF3E6;border-color:#E5D2AE}.card-freshness[data-state="error"]{background:#FDECEC;border-color:#E8C4C1}.card-freshness .btn{margin-top:8px;min-height:44px}
