/* ==========================================================
   Anitta Maalouly — Clinical Psychology
   Mobile-first, RTL-aware (logical properties throughout)
   ========================================================== */

:root {
  --beige: #F5F1E8;
  --beige-2: #EDE6D6;
  --sand: #E2D8C3;
  --white: #FFFFFF;
  --blue: #4A90A4;        /* brand blue — decorative, large text, icons */
  --blue-700: #2E6B7E;    /* buttons & links (AA on white and beige) */
  --blue-900: #1D4B59;
  --blue-50: #E8F1F4;
  --ink: #2B2F33;
  --muted: #555C63;
  --line: #DCD3C1;
  --ok: #2F6B45;
  --ok-bg: #E6F2EA;
  --warn: #8A5A12;
  --warn-bg: #FBF1DE;
  --err: #A33A2B;
  --err-bg: #FBE9E6;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Lora", Georgia, serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(43,47,51,.05), 0 8px 24px rgba(43,47,51,.06);
  --max: 1120px;
  --gutter: 20px;
}

html[lang="ar"] {
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-head: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
html[lang="ar"] body { line-height: 1.85; }

img, svg { max-width: 100%; display: block; }
a { color: var(--blue-700); text-underline-offset: 3px; }
a:hover { color: var(--blue-900); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); color: var(--blue-900); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
html[lang="ar"] h1, html[lang="ar"] h2 { letter-spacing: 0; }
p { margin: 0 0 1em; }

.skip-link { position: absolute; inset-inline-start: 8px; top: -100px; background: var(--blue-700); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid var(--blue-700);
  background: var(--blue-700); color: #fff;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .1s;
}
.btn:hover { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--blue-700); }
.btn-outline:hover { background: var(--blue-50); color: var(--blue-900); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--blue-700); }
.btn-ghost:hover { background: var(--blue-50); border-color: transparent; color: var(--blue-900); }
.btn-danger { background: transparent; border-color: var(--err); color: var(--err); }
.btn-danger:hover { background: var(--err-bg); color: var(--err); border-color: var(--err); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,241,232,.94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue-900); margin-inline-end: auto; }
.brand img, .brand svg { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.brand-sub { font-size: .78rem; color: var(--muted); letter-spacing: .02em; }

.lang-toggle {
  min-height: 40px; min-width: 44px; padding: 6px 14px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--white);
  font: inherit; font-size: .95rem; color: var(--blue-900); cursor: pointer;
}
.lang-toggle:hover { border-color: var(--blue); }
.lang-toggle .ar-label { font-family: "IBM Plex Sans Arabic", sans-serif; }

.nav-toggle {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 0; background: transparent; border-radius: 10px; cursor: pointer; color: var(--blue-900);
}
.nav-toggle:hover { background: var(--beige-2); }
.nav-toggle svg { width: 26px; height: 26px; }

.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; inset-inline: 0; top: 100%;
  background: var(--beige); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.site-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 20px; }
.site-nav a { display: block; padding: 13px 4px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); font-weight: 500; }
.site-nav a:hover { color: var(--blue-700); }
.site-nav .nav-cta { border: 0; margin-top: 14px; }
.site-nav .nav-cta a { border: 0; color: #fff; padding: 12px 24px; }
.header-book { display: none; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; background: none; border: 0; box-shadow: none; }
  .site-nav ul { display: flex; gap: 4px; padding: 0; align-items: center; }
  .site-nav a { border: 0; padding: 8px 10px; font-size: .95rem; border-radius: 8px; }
  .site-nav a:hover { background: var(--beige-2); }
  .site-nav .nav-cta { display: none; }
  .header-book { display: inline-flex; order: 3; }
  .site-nav { order: 1; }
  .lang-toggle { order: 2; }
}

/* ---------- Sections ---------- */
section { padding-block: 64px; }
@media (min-width: 768px) { section { padding-block: 96px; } }
.section-white { background: var(--white); }
.section-tint { background: var(--beige-2); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-700); margin-bottom: 10px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 56px 72px; }
@media (min-width: 768px) { .hero { padding-block: 104px 120px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.25fr .75fr; } }
.hero h1 { color: var(--blue-900); }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero-actions .btn { flex: 0 0 auto; } }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--blue-700); flex: none; }
.hero-art { display: none; justify-self: center; }
@media (min-width: 900px) { .hero-art { display: block; } }
.hero-art .lotus-disc {
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--white) 0%, var(--blue-50) 70%);
  display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line);
}
.hero-art .lotus-disc img { width: 58%; }
.hero-watermark { position: absolute; inset-inline-end: -80px; bottom: -60px; width: 300px; opacity: .06; pointer-events: none; }
@media (min-width: 900px) { .hero-watermark { display: none; } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.section-white .card { background: var(--beige); box-shadow: none; }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.icon-badge { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; margin-bottom: 14px; }
.icon-badge svg { width: 26px; height: 26px; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-inline-start: 34px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E6B7E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tag-list li { background: var(--blue-50); color: var(--blue-900); border-radius: 999px; padding: 5px 14px; font-size: .92rem; }

/* What to expect */
.expect-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .expect-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.expect-intro { font-family: var(--font-head); font-size: clamp(1.25rem, 3vw, 1.5rem); color: var(--blue-900); line-height: 1.5; }
html[lang="ar"] .expect-intro { font-family: var(--font-body); }

/* About */
.about-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 340px 1fr; gap: 56px; align-items: start; } }
.headshot {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--blue-50), var(--beige-2));
  display: grid; place-items: center; border: 1px solid var(--line); max-width: 340px; width: 100%; margin-inline: auto;
}
.headshot img { width: 100%; height: 100%; object-fit: cover; }
.headshot .placeholder { text-align: center; color: var(--muted); font-size: .9rem; padding: 20px; }
.headshot .placeholder img { width: 90px; height: 90px; margin: 0 auto 10px; object-fit: contain; }
.credentials { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.credentials li { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .95rem; }
.credentials svg { width: 22px; height: 22px; color: var(--blue-700); flex: none; margin-top: 2px; }
.about-sub { margin-top: 28px; }
.about-sub h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; color: var(--ink); }

/* Services */
.service-card ul { padding-inline-start: 1.1em; margin: .5em 0 0; color: var(--muted); }
.formats { margin-top: 24px; display: grid; gap: 18px; }
@media (min-width: 640px) { .formats { grid-template-columns: 1fr 1fr; } }
.format { display: flex; gap: 16px; align-items: flex-start; background: var(--blue-900); color: #fff; border-radius: var(--radius); padding: 22px; }
.format h3 { color: #fff; margin-bottom: .2em; }
.format p { margin: 0; color: #D8E6EB; }
.format .icon-badge { background: rgba(255,255,255,.12); color: #fff; margin: 0; flex: none; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 22px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-700); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.steps h3 { font-size: 1.08rem; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }
.center-cta { text-align: center; margin-top: 36px; }

/* Fees & policies */
.policy-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .policy-grid { grid-template-columns: repeat(3, 1fr); } }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.pay-methods li { border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 12px; font-weight: 600; font-size: .92rem; background: var(--white); }
.note { border-inline-start: 4px solid var(--blue); background: var(--blue-50); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
html[dir="rtl"] .note { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.note.warn { border-color: #C58B2A; background: var(--warn-bg); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-inline-end: 2px solid var(--blue-700); border-bottom: 2px solid var(--blue-700);
  transform: rotate(45deg); transition: transform .2s; margin-top: -6px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.faq .faq-body { padding: 0 20px 18px; color: var(--muted); }
.faq .faq-body p:last-child { margin: 0; }

/* Contact */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 48px; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-badge { margin: 0; width: 44px; height: 44px; flex: none; }
.contact-list strong { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
.contact-list a, .contact-list span.val { font-size: 1.05rem; font-weight: 500; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; white-space: nowrap; }

/* Crisis banner */
.crisis { background: var(--warn-bg); border: 1px solid #EBD3A6; border-radius: var(--radius-sm); padding: 14px 18px; font-size: .95rem; color: #4E3A12; }
.crisis strong { color: #4E3A12; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } .form-row.three { grid-template-columns: 1fr 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field > label, .field > .label, fieldset > legend { font-weight: 600; font-size: .95rem; color: var(--ink); }
.req { color: var(--err); margin-inline-start: 2px; }
.hint { font-size: .87rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #C9BFAB; border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 3px rgba(74,144,164,.25); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }
input[type="tel"], input[type="email"] { direction: ltr; }
html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="email"] { text-align: right; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-group { display: grid; gap: 10px; margin-top: 8px; }
.choice-group.inline { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 400; }
.choice input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blue-700); flex: none; }
.choice-card { border: 1.5px solid #C9BFAB; background: var(--white); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px; align-items: center; }
.choice-card input { margin: 0; }
.choice-card:has(input:checked) { border-color: var(--blue-700); background: var(--blue-50); }
.form-status { border-radius: var(--radius-sm); padding: 14px 16px; font-size: .97rem; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--ok-bg); color: var(--ok); }
.form-status.err { background: var(--err-bg); color: var(--err); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .form-card { padding: 32px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #D5E3E8; padding-block: 48px 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; color: #fff; font-family: var(--font-body); font-weight: 700; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; color: #fff; }
.footer-brand img { width: 40px; height: 40px; background: var(--beige); border-radius: 50%; padding: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .87rem; color: #B9CDD4; }

/* ---------- Floating WhatsApp (mobile) ---------- */
.float-book {
  position: fixed; inset-inline: 16px; bottom: 16px; z-index: 40; display: flex; gap: 10px;
  transform: translateY(140%); transition: transform .3s;
}
.float-book.show { transform: none; }
.float-book .btn { flex: 1; box-shadow: 0 8px 24px rgba(29,75,89,.3); }
@media (min-width: 960px) { .float-book { display: none; } }

/* ---------- Page header (sub pages) ---------- */
.page-hero { padding-block: 44px 28px; }
@media (min-width: 768px) { .page-hero { padding-block: 72px 36px; } }
.page-hero h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
.back-link { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; font-weight: 500; margin-bottom: 14px; }
html[dir="rtl"] .back-link .arrow { transform: scaleX(-1); display: inline-block; }

/* ---------- Booking ---------- */
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: s; }
.stepper li { flex: 1; counter-increment: s; font-size: .85rem; color: var(--muted); display: grid; gap: 6px; }
.stepper li::before { content: ""; height: 5px; border-radius: 99px; background: var(--sand); }
.stepper li.active, .stepper li.done { color: var(--blue-900); font-weight: 600; }
.stepper li.active::before, .stepper li.done::before { background: var(--blue-700); }

.booking-layout { display: grid; gap: 22px; }
@media (min-width: 900px) { .booking-layout { grid-template-columns: 1.1fr .9fr; align-items: start; } }

.cal { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .cal { padding: 22px; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head h2 { font-size: 1.2rem; margin: 0; }
.cal-nav { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; display: grid; place-items: center; color: var(--blue-900); }
.cal-nav:hover:not([disabled]) { border-color: var(--blue); }
.cal-nav[disabled] { opacity: .35; cursor: default; }
.cal-nav svg { width: 20px; height: 20px; }
html[dir="rtl"] .cal-nav svg { transform: scaleX(-1); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow { font-size: .75rem; color: var(--muted); font-weight: 600; padding: 6px 0; }
.cal-day {
  aspect-ratio: 1; min-height: 40px; border-radius: 10px; border: 0; background: transparent; font: inherit; font-size: .95rem;
  color: #A39C8E; position: relative; cursor: default;
}
.cal-day.has { background: var(--blue-50); color: var(--blue-900); font-weight: 600; cursor: pointer; }
.cal-day.has::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--blue-700); }
.cal-day.has:hover { background: #D5E7ED; }
.cal-day.selected { background: var(--blue-700); color: #fff; }
.cal-day.selected::after { background: #fff; }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--sand); }
.cal-legend { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); margin-top: 12px; flex-wrap: wrap; }
.cal-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--blue-50); margin-inline-end: 6px; vertical-align: -1px; border: 1px solid #C6DCE3; }

.slots-panel h2 { font-size: 1.15rem; }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.slot {
  min-height: 48px; border-radius: var(--radius-sm); border: 1.5px solid var(--blue-700); background: var(--white); color: var(--blue-900);
  font: inherit; font-weight: 600; cursor: pointer; padding: 8px; display: grid; gap: 2px; place-items: center;
}
.slot small { font-weight: 400; font-size: .75rem; color: var(--muted); }
.slot:hover { background: var(--blue-50); }
.slot[aria-pressed="true"] { background: var(--blue-700); color: #fff; }
.slot[aria-pressed="true"] small { color: #D8E6EB; }
.empty { color: var(--muted); font-size: .97rem; background: var(--beige); border-radius: var(--radius-sm); padding: 16px; }

.summary-box { background: var(--blue-50); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.summary-box strong { color: var(--blue-900); }
.demo-banner { background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid #EBD3A6; font-size: .88rem; padding: 8px var(--gutter); text-align: center; }
.success-panel { text-align: center; padding-block: 12px; }
.success-panel .big-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; }
.success-panel .big-icon svg { width: 36px; height: 36px; }
.ref { font-family: ui-monospace, Consolas, monospace; background: var(--beige); padding: 2px 8px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }

/* ---------- Intake ---------- */
.intake-section { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 8px; }
.intake-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.intake-section > h2 { font-size: 1.3rem; display: flex; gap: 12px; align-items: center; }
.intake-section > h2 .num { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-700); color: #fff; display: grid; place-items: center; font-size: .95rem; font-family: var(--font-body); flex: none; }
.progress { position: sticky; top: 68px; z-index: 10; background: var(--beige); padding: 10px 0; }
.progress-bar { height: 6px; border-radius: 99px; background: var(--sand); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--blue-700); transition: width .3s; }
.progress-label { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.scale { display: flex; gap: 6px; flex-wrap: wrap; }
.scale label { flex: 1 0 40px; }
.scale input { position: absolute; opacity: 0; }
.scale span { display: grid; place-items: center; min-height: 44px; border: 1.5px solid #C9BFAB; border-radius: 10px; background: var(--white); cursor: pointer; font-weight: 600; }
.scale input:checked + span { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
.scale input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.scale-ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.consent-box { background: var(--beige); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; max-height: 320px; overflow-y: auto; font-size: .95rem; }
.consent-box h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; margin-top: 1em; }
.consent-box h3:first-child { margin-top: 0; }
[hidden] { display: none !important; }

/* ---------- Legal page ---------- */
.legal { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 768px) { .legal { padding: 48px; } }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; color: var(--ink); margin-top: 1.4em; }
.legal ul { padding-inline-start: 1.2em; }
.legal li { margin-bottom: .4em; }
.toc { background: var(--beige); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 28px; }
.toc ol { margin: 8px 0 0; padding-inline-start: 1.2em; }

/* ---------- Admin ---------- */
.admin-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.admin-tabs button { border: 0; background: none; font: inherit; font-weight: 600; padding: 12px 16px; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; min-height: 48px; }
.admin-tabs button[aria-selected="true"] { color: var(--blue-900); border-color: var(--blue-700); }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.pill.pending { background: var(--warn-bg); color: var(--warn); }
.pill.confirmed { background: var(--ok-bg); color: var(--ok); }
.pill.declined, .pill.cancelled { background: #EEE; color: #555; }
.pill.open { background: var(--blue-50); color: var(--blue-900); }
.req-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; }
.req-card.pending { border-inline-start: 5px solid #C58B2A; }
.req-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.req-when { font-weight: 700; color: var(--blue-900); }
.req-meta { display: grid; gap: 4px; font-size: .95rem; }
.req-meta dt { font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.req-meta dd { margin: 0 0 6px; overflow-wrap: anywhere; }
.req-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.slot-table th, .slot-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; }
.slot-table th { background: var(--beige-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.weekday-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.weekday-picks label { display: flex; gap: 6px; align-items: center; border: 1.5px solid #C9BFAB; border-radius: 999px; padding: 6px 12px; background: var(--white); cursor: pointer; min-height: 40px; }
.weekday-picks label:has(input:checked) { background: var(--blue-50); border-color: var(--blue-700); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
section.intake-section { padding-block: 26px 0; }
section.intake-section:first-of-type { padding-top: 0; }
@media (max-width: 959px) { body[data-page="home"] .site-footer { padding-bottom: 100px; } }

/* ==========================================================
   v2: accounts, portal, payments, receipts
   ========================================================== */
.account-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px;
  border-radius: 999px; color: var(--blue-900); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.account-link:hover { background: var(--beige-2); }
.account-link svg { width: 22px; height: 22px; }
.account-link span { display: none; }
.nav-account { display: block; }
@media (min-width: 960px) {
  .account-link { order: 2; }
  .account-link span { display: inline; }
  .nav-account { display: none; }
}
@media (min-width: 960px) and (max-width: 1100px) { .account-link span { display: none; } }

.auth-panel h2 { font-size: 1.35rem; }
.btn-google { background: var(--white); color: var(--ink); border-color: #C9BFAB; }
.btn-google:hover { background: var(--beige); color: var(--ink); border-color: var(--blue); }
.btn-google svg { width: 20px; height: 20px; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; margin: 16px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-input { font-size: 1.4rem !important; letter-spacing: .3em; text-align: center; direction: ltr; }
.signed-in-as { margin: 0; font-size: .95rem; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-700); text-decoration: underline; cursor: pointer; }

.appt-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.appt-card.pending { border-inline-start: 5px solid #C58B2A; }
.appt-card.confirmed { border-inline-start: 5px solid var(--blue-700); }
.appt-card.cancelled, .appt-card.declined, .appt-card.completed { box-shadow: none; opacity: .92; }
.pill.completed { background: var(--blue-50); color: var(--blue-900); }
html[lang="ar"] .pill { text-transform: none; letter-spacing: 0; }
.pay-box { background: var(--beige); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .95rem; }
.pay-box.ok { background: var(--ok-bg); color: var(--ok); }
.pay-box.ok a { color: var(--ok); margin-inline-start: 8px; }
.pay-lines { margin: 0 0 8px; padding-inline-start: 1.2em; }
.pay-form, .inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pay-form select, .inline-form select { width: auto; min-height: 40px; padding: 6px 10px; }
.pay-form input { flex: 1 1 160px; width: auto; min-height: 40px; padding: 6px 12px; }
.pay-form .form-status { flex-basis: 100%; }
.inline-form input[type="number"] { min-height: 40px; padding: 6px 10px; }
.inline-form label { display: flex; gap: 6px; align-items: center; font-weight: 600; font-size: .92rem; }
.pill.pay-unpaid { background: #EEE; color: #555; }
.pill.pay-submitted, .pill.pay-refund_due { background: var(--warn-bg); color: var(--warn); }
.pill.pay-paid { background: var(--ok-bg); color: var(--ok); }
.pill.pay-refunded, .pill.pay-waived { background: var(--blue-50); color: var(--blue-900); }
section.tab-panel { padding: 0; }

.past-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.past-block summary { cursor: pointer; list-style: none; }
.past-block summary::-webkit-details-marker { display: none; }
.past-block summary::before { content: "▸ "; color: var(--blue-700); }
.past-block[open] summary::before { content: "▾ "; }

.dialog { border: 0; border-radius: var(--radius); padding: 24px; max-width: min(460px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); color: var(--ink); }
.dialog-wide { max-width: min(760px, calc(100vw - 32px)); max-height: 85vh; }
.dialog::backdrop { background: rgba(29,75,89,.35); }

.receipt { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 640px) { .receipt { padding: 40px; } }
.receipt-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--blue-700); padding-bottom: 20px; margin-bottom: 24px; }
.receipt-no { text-align: end; }
.receipt-no .ref { font-size: 1.15rem; }
.receipt-grid { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0 0 24px; }
.receipt-grid dt { color: var(--muted); font-size: .92rem; }
.receipt-grid dd { margin: 0; font-weight: 500; }
.receipt-total { display: flex; justify-content: space-between; align-items: center; background: var(--blue-50); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 1.1rem; margin-bottom: 18px; }
.receipt-total strong { font-size: 1.5rem; color: var(--blue-900); }

@media print {
  .site-header, .site-footer, .no-print, .demo-banner, .float-book, .skip-link { display: none !important; }
  body { background: #fff; }
  main { padding: 0 !important; }
  .receipt { border: 0; padding: 0; }
}

.brand-name { white-space: nowrap; }
@media (max-width: 440px) {
  .brand-sub { display: none; }
  .brand img { width: 34px; height: 34px; }
  .header-inner { gap: 6px; }
}

/* ---------- Profile photo + key facts (SEO update) ---------- */
figure.headshot { margin: 0 auto; }
.headshot > img { display: block; }
.facts { display: grid; grid-template-columns: 1fr; gap: 2px 18px; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 16px; }
.facts dt { font-weight: 600; font-size: .85rem; color: var(--muted); padding-top: 10px; }
.facts dd { margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--beige-2); font-size: .97rem; }
.facts dd:last-child { border-bottom: 0; }
@media (min-width: 640px) {
  .facts { grid-template-columns: max-content 1fr; }
  .facts dt, .facts dd { padding-block: 10px; border-bottom: 1px solid var(--beige-2); }
  .facts dt:nth-last-of-type(1), .facts dd:last-child { border-bottom: 0; }
}

/* ---------- Footer profile links ---------- */
.site-footer .social-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 16px 0 0; }
.social-links a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; transition: background .2s;
}
.social-links a:hover, .social-links a:focus-visible { background: rgba(255,255,255,.22); color: #fff; }
.social-links svg { width: 22px; height: 22px; }
