/* dryeyes.co.il — "עיניים יבשות" patient portal.
   Calm, warm, mobile first. Logical properties only (margin-inline, inset-inline,
   text-align:start) so one stylesheet serves RTL (he, ar) and LTR (en, ru).
   Palette and type are documented in docs/DESIGN.md. NOT the mitzmutz brand. */

/* ===== Fonts: Noto Sans per script, self-hosted (OFL), variable weight ===== */
@font-face { font-family: 'Noto Sans Hebrew'; src: url('/assets/fonts/noto-hebrew.woff2') format('woff2'); font-weight: 300 800; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Noto Sans Arabic'; src: url('/assets/fonts/noto-arabic.woff2') format('woff2'); font-weight: 300 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Noto Sans'; src: url('/assets/fonts/noto-latin.woff2') format('woff2'); font-weight: 300 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Sans'; src: url('/assets/fonts/noto-cyrillic.woff2') format('woff2'); font-weight: 300 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #f7f5f0;          /* warm paper */
  --surface: #ffffff;
  --ink: #1e2a33;         /* body text, 14.6:1 on --bg */
  --ink-soft: #4f5e6a;    /* secondary text, 6.3:1 */
  --brand: #2c5d8a;       /* calm sea blue, 6.4:1 on white */
  --brand-dark: #1d4063;
  --brand-tint: #e7eff6;
  --sand: #efe6d8;
  --sand-dark: #dccdb5;
  --accent: #c9853a;      /* warm amber — decoration only, never text */
  --line: #dde3e8;
  --wa: #1b7a44;          /* WhatsApp, 5.3:1 with white */
  --wa-dark: #145e34;
  --warn-bg: #fcf0e4;
  --warn-line: #cf7a2a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(30, 42, 51, .06), 0 6px 20px rgba(30, 42, 51, .07);
  --font: 'Noto Sans Hebrew', 'Noto Sans', 'Noto Sans Arabic', system-ui, 'Segoe UI', Arial, sans-serif;
  --tap: 48px;
}
:lang(ar) { --font: 'Noto Sans Arabic', 'Noto Sans', system-ui, 'Segoe UI', Tahoma, sans-serif; }
:lang(en), :lang(ru) { --font: 'Noto Sans', system-ui, 'Segoe UI', Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.75;
  padding-bottom: 72px; /* room for the mobile CTA bar */
}
:lang(ar) body, body:lang(ar) { font-size: 1.125rem; line-height: 1.9; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.3; color: var(--ink); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .container { padding-inline: 28px; } }
.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; }
.hp-field { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 300; background: var(--brand-dark); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--tap); padding: .65rem 1.3rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-tint); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-lg { min-height: 56px; padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.wa-icon { flex: none; }
.btn-wa bdi, .header-wa bdi, .footer-wa bdi, .form-alt-wa bdi, .clinic-card bdi { unicode-bidi: isolate; direction: ltr; font-weight: 700; white-space: nowrap; }
.wa-note { display: block; font-size: .82rem; color: var(--ink-soft); margin-top: .35rem; }

/* ===== Header & wordmark ===== */
.site-header { position: sticky; top: 0; z-index: 200; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: .75rem; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); flex: none; }
.wordmark svg { width: 38px; height: 38px; flex: none; }
.wordmark-name { font-weight: 800; font-size: 1.22rem; letter-spacing: -.01em; }
.wordmark-sep { width: 1px; height: 22px; background: var(--sand-dark); }
.wordmark-domain { font-family: 'Noto Sans', system-ui, sans-serif; font-size: .9rem; color: var(--ink-soft); direction: ltr; unicode-bidi: isolate; }
@media (max-width: 420px) { .wordmark-sep, .wordmark-domain { display: none; } }
.site-nav { margin-inline-start: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.site-nav a { display: flex; align-items: center; white-space: nowrap; min-height: var(--tap); padding: 0 .65rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-dark); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-wa { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .95rem; border-radius: 999px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; }
.header-wa:hover { background: var(--wa-dark); color: #fff; }
.header-wa { white-space: nowrap; }
.header-wa .wa-sep { display: none; }
.header-wa > span { display: inline-flex; gap: .4rem; }
@media (max-width: 1240px) { .header-wa > span { display: none; } .header-wa { padding: .4rem .7rem; } }
.lang-menu { position: relative; }
.lang-switch { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }
.lang-switch:hover { border-color: var(--brand); }
.lang-list { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; margin: 0; padding: .35rem; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); min-width: 150px; z-index: 210; }
.lang-list[hidden] { display: none; }
.lang-list a { display: flex; min-height: 44px; align-items: center; padding: 0 .8rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.lang-list a:hover { background: var(--brand-tint); }
.lang-list a.active { font-weight: 700; color: var(--brand-dark); }
.nav-toggle { display: none; background: none; border: 0; width: var(--tap); height: var(--tap); border-radius: 12px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
  .header-wa { display: none; } /* the bottom bar carries WhatsApp on phones */
  .site-nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: .5rem 16px 1rem; margin: 0; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { min-height: 52px; border-radius: 10px; font-size: 1.05rem; }
}

/* ===== Review banner (translations awaiting native medical review) ===== */
.review-banner { background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); font-size: .92rem; padding: .55rem 0; }

/* ===== Home ===== */
.hero { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); padding: 2.2rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero { padding: 4rem 0 4.2rem; } .hero-grid { grid-template-columns: 1.25fr .9fr; } }
.hero h1 { margin-bottom: .5em; }
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.hero-trust { display: flex; align-items: center; gap: .6rem; color: var(--ink-soft); font-size: .95rem; margin: 0; }
.hero-trust::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.hero-art { justify-self: center; width: min(360px, 80%); }
.hero-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 899px) { .hero-art { display: none; } }

.section { padding: 2.6rem 0; }
@media (min-width: 900px) { .section { padding: 3.6rem 0; } }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; }

.symptom-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .symptom-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.symptom-card { display: flex; align-items: center; gap: .8rem; min-height: 72px; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; line-height: 1.35; transition: border-color .15s, box-shadow .15s, transform .15s; }
.symptom-card:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--brand-dark); transform: translateY(-1px); }
.symptom-card .icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.symptom-card .icon svg { width: 24px; height: 24px; }

.card-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1.25rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(30, 42, 51, .04); transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: var(--shadow); border-color: #c9d6e2; }
.card h3 { margin: 0; font-size: 1.12rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); } /* whole card is the tap target */
.card h3 a:hover { color: var(--brand-dark); }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; line-height: 1.6; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--sand); color: var(--brand-dark); display: grid; place-items: center; margin-bottom: .3rem; }
.card .icon svg { width: 26px; height: 26px; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: .6rem; }
.steps strong { display: block; font-size: 1.1rem; margin-bottom: .2rem; }
.steps span { color: var(--ink-soft); }

.split { display: grid; gap: 1rem; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } }

/* ===== Clinic card & doctor block ===== */
.clinic-card { background: var(--brand-dark); color: #fff; border-radius: var(--radius); padding: 1.4rem 1.4rem 1.5rem; }
.clinic-card h2, .clinic-card h3 { color: #fff; margin-bottom: .6rem; }
.clinic-card dl { margin: 0 0 1rem; display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; }
.clinic-card dt { color: #bcd0e2; font-size: .92rem; }
.clinic-card dd { margin: 0; font-weight: 600; }
.clinic-card a { color: #fff; }
.clinic-card .btn-wa { margin-top: .3rem; }
.clinic-card .wa-note { color: #bcd0e2; }
.clinic-card .clinic-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .9rem; font-size: .95rem; }

.doctor-block { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; background: var(--sand); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 2rem 0; }
.doctor-block .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--surface); color: var(--brand-dark); display: grid; place-items: center; }
.doctor-block .avatar svg { width: 30px; height: 30px; }
.doctor-block .label { display: block; font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.doctor-block .name { display: block; font-size: 1.1rem; font-weight: 800; }
.doctor-block .role { display: block; font-size: .92rem; color: var(--ink-soft); margin-bottom: .5rem; line-height: 1.5; }
.doctor-block p { margin: 0; font-size: .98rem; }

/* ===== Articles & pages ===== */
.page-header { background: var(--surface); border-bottom: 1px solid var(--line); padding: 1.6rem 0 1.4rem; }
@media (min-width: 900px) { .page-header { padding: 2.6rem 0 2.2rem; } }
.breadcrumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: .6rem; }
.breadcrumbs a { color: var(--ink-soft); }
.page-header h1 { margin-bottom: .35em; max-width: 26em; }
.page-lede { color: var(--ink-soft); font-size: 1.08rem; max-width: 40em; margin: 0; }
.meta-line { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin-top: .9rem; font-size: .9rem; color: var(--ink-soft); }
.meta-line .reviewed { display: inline-flex; align-items: center; gap: .35rem; color: var(--brand-dark); font-weight: 600; }
.meta-line .reviewed svg { width: 18px; height: 18px; }

.article-layout { display: grid; gap: 2rem; padding-block: 1.8rem 2.5rem; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; padding-block: 2.6rem 3.5rem; } }
.article-body { max-width: 720px; min-width: 0; }
.article-body h2 { margin-top: 1.9em; padding-top: .2em; }
.article-body h3 { margin-top: 1.5em; }
.article-body ul, .article-body ol { padding-inline-start: 1.4em; margin: 0 0 1.1em; }
.article-body li { margin-bottom: .4em; }
.article-body li::marker { color: var(--brand); }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .96rem; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; display: block; overflow-x: auto; }
.article-body th, .article-body td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.article-body th { background: var(--brand-tint); }
.callout { background: var(--brand-tint); border-inline-start: 4px solid var(--brand); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin: 1.4em 0; }
.callout p:last-child { margin: 0; }
.callout-warn { background: var(--warn-bg); border-inline-start-color: var(--warn-line); }
.mitzmutz-box { display: flex; gap: .8rem; align-items: center; background: var(--surface); border: 1px dashed var(--sand-dark); border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin: 1.4em 0; font-size: .97rem; }
.mitzmutz-box strong { display: block; }

.aside-stack { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 1000px) { .aside-stack { position: sticky; top: 92px; } }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .95rem; }
.toc-title { font-weight: 700; margin: 0 0 .4rem; }
.toc ol { margin: 0; padding-inline-start: 1.2em; }
.toc li { margin: .25rem 0; }
.toc a { text-decoration: none; color: var(--ink-soft); }
.toc a:hover { color: var(--brand-dark); text-decoration: underline; }
@media (max-width: 999px) { .aside-stack .toc { display: none; } }
.toc-inline { margin-bottom: 1.6rem; }
@media (min-width: 1000px) { .toc-inline { display: none; } }
.toc-inline summary { cursor: pointer; font-weight: 700; min-height: var(--tap); display: flex; align-items: center; }

.faq { margin-top: 2.4rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .6rem; }
.faq-item summary { cursor: pointer; list-style: none; padding: .9rem 1.1rem; min-height: var(--tap); font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--brand); line-height: 1; flex: none; }
.faq-item[open] summary::after { content: '–'; }
.faq-answer { padding: 0 1.1rem 1rem; color: var(--ink); }
.faq-answer p:last-child { margin: 0; }

.sources { margin-top: 2.4rem; font-size: .9rem; color: var(--ink-soft); }
.sources h2 { font-size: 1.1rem; }
.sources ol { padding-inline-start: 1.3em; }
.sources li { margin-bottom: .45em; direction: ltr; text-align: left; unicode-bidi: isolate; }
[dir="rtl"] .sources ol { direction: ltr; padding-inline-start: 1.3em; }
.related { margin-top: 2.2rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.related a { display: flex; align-items: center; min-height: var(--tap); padding: .5rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; }
.related a:hover { border-color: var(--brand); }
.disclaimer { margin-top: 2rem; font-size: .88rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1rem; }
.article-cta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-top: 2.2rem; }
.article-cta-title { font-weight: 800; font-size: 1.15rem; margin-bottom: .3rem; }
.article-cta-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }

.hub-intro { max-width: 44em; }

/* ===== Lead form ===== */
.lead-section { background: var(--brand-tint); border-top: 1px solid #d3e0ec; padding: 2.6rem 0; }
.lead-inner { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .lead-inner { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } }
.lead-text h2 { margin-bottom: .4rem; }
.lead-text p { color: var(--ink-soft); }
.lead-form { background: var(--surface); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.form-field { margin-bottom: .9rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.form-field input { width: 100%; min-height: 52px; padding: .6rem .9rem; border: 1.5px solid #c6d0d8; border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink); }
.form-field input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(44, 93, 138, .18); }
input[type="tel"] { text-align: start; }
[dir="rtl"] input[type="tel"] { text-align: right; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; line-height: 1.55; margin: .2rem 0 1rem; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin-top: .15rem; flex: none; accent-color: var(--brand); }
.form-status { min-height: 1.4em; margin: .6rem 0 0; font-weight: 600; }
.form-status.ok { color: var(--wa-dark); }
.form-status.err { color: #a2361b; }
.form-alt { margin: .8rem 0 0; font-size: .95rem; }
.form-alt-wa { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--wa-dark); }

/* ===== Footer ===== */
.site-footer { background: #17293a; color: #d6e0e9; padding: 2.6rem 0 1rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: .7rem; }
.footer-nav, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-nav li, .footer-contact li { margin-bottom: .2rem; }
.footer-nav a, .footer-contact a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { text-decoration: underline; }
.footer-disclaimer { color: #a9b9c7; font-size: .88rem; }
.footer-wordmark { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: .6rem; }
.footer-wordmark svg { width: 30px; height: 30px; }
.footer-wa { display: inline-flex; align-items: center; gap: .4rem; }
.footer-bottom { border-top: 1px solid #2c4256; margin-top: 2rem; padding-top: 1rem; font-size: .85rem; color: #a9b9c7; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ===== Mobile CTA bar ===== */
.mobile-cta { position: fixed; inset-inline: 0; bottom: 0; z-index: 220; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(30, 42, 51, .08); }
.mobile-cta--form-only { grid-template-columns: 1fr; }
.mcta { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 52px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1rem; }
.mcta-wa { background: var(--wa); color: #fff; }
.mcta-wa:hover { color: #fff; }
.mcta-wa .wa-sep, .mcta-wa bdi { display: none; }
.mcta-form { background: var(--brand-tint); color: var(--brand-dark); }
@media (min-width: 1101px) { .mobile-cta { display: none; } body { padding-bottom: 0; } }

/* ===== Accessibility widget (behaviour in main.js) ===== */
.a11y { position: fixed; top: 40%; inset-inline-start: 0; z-index: 240; }
.a11y-toggle { background: var(--brand-dark); color: #fff; border: 0; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-start-end-radius: 10px; border-end-end-radius: 10px; }
.a11y-panel { position: absolute; top: 0; inset-inline-start: 100%; margin-inline-start: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: .75rem; width: 200px; display: flex; flex-direction: column; gap: .25rem; max-height: calc(60vh - 90px); overflow-y: auto; }
.a11y-panel[hidden] { display: none; }
.a11y-title { font-weight: 700; margin: 0 0 .25rem; font-size: .95rem; }
.a11y-panel button { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .45rem .6rem; font: inherit; font-size: .88rem; cursor: pointer; text-align: start; color: var(--ink); min-height: 40px; }
.a11y-panel button:hover { background: var(--brand-tint); }
.a11y-panel button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.a11y-panel a { font-size: .85rem; margin-top: .25rem; }
.a11y-grayscale body { filter: grayscale(1); }
.a11y-negative body { filter: invert(1) hue-rotate(180deg); }
.a11y-negative body img, .a11y-negative body video { filter: invert(1) hue-rotate(180deg); }
.a11y-high-contrast { --ink: #000; --ink-soft: #1a1a1a; --brand: #0b3a66; --brand-dark: #062744; --line: #555; }
.a11y-light-bg { --bg: #fff; --sand: #fff; --brand-tint: #fff; }
.a11y-light-bg .clinic-card, .a11y-light-bg .site-footer { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.a11y-light-bg .clinic-card *, .a11y-light-bg .site-footer * { color: var(--ink) !important; }
.a11y-underline a { text-decoration: underline !important; }
.a11y-readable body, .a11y-readable body * { font-family: Arial, 'Segoe UI', sans-serif !important; letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ===== Legal & 404 ===== */
.legal-updated { color: var(--ink-soft); font-size: .92rem; }
.page-404 { text-align: center; padding: 4rem 1rem; }
.page-404 section { margin-bottom: 2rem; }
