/* ==========================================================================
   VITALYL — Design system
   Colors and fonts come from the brand guidelines (docs/brand-guidelines.png)
   Logical properties (margin-inline, inset-inline…) make RTL work for Arabic.
   ========================================================================== */

:root {
    /* Brand palette */
    --teal: #008696;          /* Primary Teal  */
    --teal-deep: #00616F;     /* Deep Teal     */
    --teal-accent: #349EA5;   /* Accent Teal   */
    --teal-light: #B4D5D9;    /* Light Teal    */
    --ink: #333638;           /* Text/Neutral  */
    --white: #FFFFFF;

    /* Derived tones */
    --teal-mist: #EAF4F5;
    --teal-fog: #F4F9F9;
    --teal-night: #003F49;
    --ink-soft: #5E676B;
    --line: #DCE8EA;
    --danger: #C0392B;
    --success: #1E8A5A;

    /* Typography */
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;

    /* Shapes */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 28px;
    --shadow-sm: 0 2px 8px rgba(0, 63, 73, .06);
    --shadow: 0 10px 30px rgba(0, 63, 73, .08);
    --shadow-lg: 0 24px 60px rgba(0, 63, 73, .14);
    --ease: cubic-bezier(.2, .7, .2, 1);

    --container: 1240px;
    --header-h: 84px;
}

/* Arabic uses its own fonts (IBM Plex Sans Arabic + Amiri) */
html[lang="ar"] {
    --font-sans: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
    --font-serif: "Amiri", "DM Serif Display", serif;
}

/* -------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
html[lang="ar"] body { line-height: 1.85; }
img, svg, picture { display: block; max-width: 100%; }
picture { height: 100%; } /* lets object-fit images fill their frame */
img { height: auto; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-deep); }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 3px solid var(--teal-accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--teal-light); color: var(--teal-night); }

h1, h2, h3, h4 { color: var(--teal-night); line-height: 1.15; font-weight: 400; }
h1, h2 { font-family: var(--font-serif); letter-spacing: -.01em; }
h3, h4 { font-family: var(--font-sans); font-weight: 600; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2 { font-weight: 700; letter-spacing: 0; line-height: 1.35; }
html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.5; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); }
h3 { font-size: 1.2rem; }
p { color: var(--ink-soft); }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 200; background: var(--teal); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
[dir="rtl"] .icon-arrow-right, [dir="rtl"] .icon-chevron-right, [dir="rtl"] .icon-arrow-up-right { transform: scaleX(-1); }

/* -------------------------------------------------------------- Sections */
.section { padding-block: clamp(4rem, 8vw, 7rem); position: relative; }
.section-sm { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section-soft { background: var(--teal-fog); }
.section-mist { background: var(--teal-mist); }
.section-dark { background: var(--teal-deep); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.78); }

.kicker {
    display: inline-flex; flex-direction: column; gap: .55rem;
    font-size: .78rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
    color: var(--teal); margin-block-end: 1rem;
}
.kicker::after { content: ""; width: 34px; height: 2px; background: currentColor; border-radius: 2px; }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: .95rem; }
.section-dark .kicker { color: var(--teal-light); }

.section-head { max-width: 680px; margin-block-end: clamp(2.2rem, 4vw, 3.2rem); }
.section-head p { margin-block-start: 1rem; font-size: 1.08rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { align-items: center; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-block-end: clamp(2.2rem, 4vw, 3.2rem); }
.section-head-row .section-head { margin: 0; }

.lead { font-size: 1.15rem; line-height: 1.7; }

/* Divider: line — logo — line (brand guidelines) */
.divider { margin-block: -1.5rem; display: flex; align-items: center; justify-content: center; gap: 1.1rem; color: var(--teal); padding-block: .5rem; }
.divider::before, .divider::after { content: ""; height: 1px; width: min(140px, 25vw); background: var(--teal-light); }
.divider img { width: 30px; height: 30px; }

/* -------------------------------------------------------------- Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
    min-height: 52px; padding: .4rem .45rem .4rem 1.6rem;
    border-radius: 999px; border: 1.5px solid transparent;
    font-weight: 600; font-size: .98rem; line-height: 1.2; white-space: nowrap;
    transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
[dir="rtl"] .btn { padding: .4rem 1.6rem .4rem .45rem; }
.btn .btn-ic {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    border: 1.5px solid currentColor; transition: transform .3s var(--ease);
}
.btn .btn-ic .icon { width: 18px; height: 18px; }
.btn:hover .btn-ic { transform: translateX(3px); }
[dir="rtl"] .btn:hover .btn-ic { transform: translateX(-3px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 22px rgba(0,134,150,.28); }
.btn-primary:hover { background: var(--teal-deep); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-light { background: #fff; color: var(--teal-deep); }
.btn-light:hover { background: var(--teal-mist); color: var(--teal-deep); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-plain { padding-inline: 1.6rem; }
.btn-sm { min-height: 42px; font-size: .9rem; padding-inline-start: 1.2rem; }
.btn-sm .btn-ic { width: 32px; height: 32px; }
.btn-text { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--teal); }
.btn-text .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn-text:hover .icon { transform: translateX(4px); }
[dir="rtl"] .btn-text:hover .icon { transform: scaleX(-1) translateX(4px); }
.btn-group { display: flex; flex-wrap: wrap; gap: .9rem; }

/* -------------------------------------------------------------- Top bar */
.topbar { background: var(--teal-night); color: rgba(255,255,255,.85); font-size: .84rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar a { color: rgba(255,255,255,.9); }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.4rem; }
.topbar-item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar-item .icon { width: 15px; height: 15px; color: var(--teal-light); }
.topbar-emergency { color: #fff; font-weight: 600; }
.topbar-emergency .dot { width: 8px; height: 8px; border-radius: 50%; background: #FF6B5B; box-shadow: 0 0 0 0 rgba(255,107,91,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,107,91,.55); } 70% { box-shadow: 0 0 0 8px rgba(255,107,91,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,91,0); } }
.lang-switch { display: inline-flex; gap: .2rem; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: .15rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 600; letter-spacing: .04em; }
.lang-switch a.active { background: #fff; color: var(--teal-deep); }
.social { display: flex; gap: .4rem; }
.social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.social .icon { width: 16px; height: 16px; }

/* -------------------------------------------------------------- Header */
.site-header {
    position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
    backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-block-end: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,63,73,.08); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.2rem; height: var(--header-h); }
.site-header .container, .topbar .container { width: min(1380px, 100% - 2.5rem); }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--teal-deep); flex-shrink: 0; }
.brand:hover { color: var(--teal-deep); }
.brand-symbol { width: 46px; height: 46px; transition: transform .8s var(--ease); }
.brand:hover .brand-symbol { transform: rotate(120deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: "DM Serif Display", Georgia, serif; font-size: 1.85rem; letter-spacing: .02em; color: var(--teal-deep); }
.brand-tag { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-block-start: .35rem; }
html[lang="ar"] .brand-tag { letter-spacing: 0; font-size: .74rem; }

.main-nav { margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-link {
    display: inline-flex; align-items: center; gap: .25rem; padding: .6rem .6rem; border-radius: 999px;
    color: var(--ink); font-size: .92rem; font-weight: 500; white-space: nowrap; transition: color .2s, background .2s;
}
.nav-link .icon { width: 15px; height: 15px; transition: transform .25s; }
.nav-link:hover, .nav-item:hover > .nav-link, .nav-link.is-active { color: var(--teal); }
.nav-link.is-active::after { content: ""; position: absolute; inset-inline: .6rem; bottom: .25rem; height: 2px; border-radius: 2px; background: var(--teal); }
.nav-item:hover > .nav-link .icon { transform: rotate(180deg); }

.dropdown {
    position: absolute; top: calc(100% + 10px); inset-inline-start: -.5rem; min-width: 300px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    padding: .6rem; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.dropdown::before { content: ""; position: absolute; inset-inline: 0; top: -14px; height: 14px; }
.nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; gap: .85rem; align-items: flex-start; padding: .75rem .85rem; border-radius: 12px; color: var(--ink); }
.dropdown a:hover { background: var(--teal-fog); }
.dropdown .dd-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--teal-mist); color: var(--teal); flex-shrink: 0; }
.dropdown .dd-icon .icon { width: 20px; height: 20px; }
.dropdown strong { display: block; font-weight: 600; font-size: .94rem; color: var(--teal-night); }
.dropdown small { display: block; font-size: .8rem; color: var(--ink-soft); line-height: 1.4; margin-block-start: .1rem; }

.header-cta { flex-shrink: 0; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--teal-mist); color: var(--teal-deep); place-items: center; margin-inline-start: auto; }
.nav-toggle .icon { width: 22px; height: 22px; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0,40,46,.45); opacity: 0; transition: opacity .3s; }
.drawer-panel {
    position: absolute; inset-block: 0; inset-inline-end: 0; width: min(420px, 92vw); background: #fff;
    display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto;
}
[dir="rtl"] .drawer-panel { transform: translateX(-100%); }
.drawer.is-open { visibility: visible; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-block-end: 1px solid var(--line); }
.drawer-head .brand-symbol { width: 38px; height: 38px; }
.drawer-head .brand-name { font-size: 1.5rem; }
.drawer-close { width: 44px; height: 44px; border-radius: 50%; background: var(--teal-mist); color: var(--teal-deep); display: grid; place-items: center; }
.drawer-nav { padding: .75rem 1.25rem; flex: 1; }
.drawer-nav > li { border-block-end: 1px solid var(--line); }
.drawer-nav a, .drawer-nav summary { display: flex; justify-content: space-between; align-items: center; padding: .95rem 0; color: var(--teal-night); font-weight: 600; list-style: none; cursor: pointer; }
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav details[open] summary .icon { transform: rotate(180deg); }
.drawer-nav details ul { padding-block-end: .6rem; }
.drawer-nav details a { font-weight: 500; color: var(--ink-soft); padding: .55rem 1rem; }
.drawer-foot { padding: 1.25rem; display: grid; gap: .9rem; background: var(--teal-fog); }
.drawer-foot .btn { width: 100%; }
.drawer-foot .lang-switch { background: var(--teal-mist); justify-self: center; }
.drawer-foot .lang-switch a { color: var(--teal-deep); }
.drawer-foot .lang-switch a.active { background: var(--teal); color: #fff; }

/* -------------------------------------------------------------- Hero (home) */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; color: #fff; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, rgba(0,47,55,.92) 0%, rgba(0,83,95,.78) 38%, rgba(0,97,111,.25) 70%, rgba(0,97,111,0) 100%);
}
[dir="rtl"] .hero::before { background: linear-gradient(-100deg, rgba(0,47,55,.92) 0%, rgba(0,83,95,.78) 38%, rgba(0,97,111,.25) 70%, rgba(0,97,111,0) 100%); }
.hero-content { max-width: 660px; padding-block: 7rem 9rem; }
.hero .kicker { color: var(--teal-light); }
.hero h1 { color: #fff; margin-block-end: 1.4rem; }
.hero p { color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 540px; margin-block-end: 2.3rem; }
.hero-ring { position: absolute; z-index: -1; width: 620px; height: 620px; inset-inline-end: -140px; bottom: -220px; opacity: .1; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-wave { position: absolute; inset-inline: 0; bottom: -1px; z-index: 1; color: #fff; }
.hero-wave svg { width: 100%; height: clamp(50px, 7vw, 110px); }
[dir="rtl"] .hero-wave svg { transform: scaleX(-1); }

/* Quick access cards overlapping the hero */
.quick { position: relative; z-index: 5; margin-block-start: -4.5rem; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.quick-item { display: flex; align-items: center; gap: 1rem; padding: 1.6rem 1.5rem; color: var(--teal-night); font-weight: 600; transition: background .25s; position: relative; }
.quick-item + .quick-item::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: 1.4rem; width: 1px; background: var(--line); }
.quick-item:hover { background: var(--teal-fog); color: var(--teal-deep); }
.quick-item .q-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--teal-mist); color: var(--teal); flex-shrink: 0; transition: background .25s, color .25s; }
.quick-item:hover .q-icon { background: var(--teal); color: #fff; }
.quick-item .q-icon .icon { width: 24px; height: 24px; }
.quick-item .icon-arrow-right { margin-inline-start: auto; width: 18px; color: var(--teal); opacity: .5; transition: opacity .2s, transform .25s; }
.quick-item:hover .icon-arrow-right { opacity: 1; transform: translateX(3px); }
[dir="rtl"] .quick-item:hover .icon-arrow-right { transform: scaleX(-1) translateX(3px); }
.quick-item.is-emergency .q-icon { background: #FFECEA; color: #D9473A; }
.quick-item.is-emergency small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .85rem; direction: ltr; unicode-bidi: plaintext; }

/* Dev helper: switch hero background (local only) */
.hero-switch { position: absolute; z-index: 6; inset-inline-end: 1.25rem; top: 1.25rem; display: flex; gap: .35rem; background: rgba(0,0,0,.35); padding: .35rem; border-radius: 999px; backdrop-filter: blur(6px); }
.hero-switch a { color: #fff; font-size: .75rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; }
.hero-switch a.active { background: #fff; color: var(--teal-deep); }
.hero-switch span { color: rgba(255,255,255,.7); font-size: .72rem; padding-inline: .5rem; align-self: center; }

/* -------------------------------------------------------------- Page hero (inner pages) */
.page-hero { position: relative; background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal) 100%); color: #fff; padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(5rem, 9vw, 7.5rem); overflow: hidden; isolation: isolate; }
.page-hero.has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(0,63,73,.94), rgba(0,97,111,.72) 55%, rgba(0,97,111,.35)); }
[dir="rtl"] .page-hero.has-image::after { background: linear-gradient(-100deg, rgba(0,63,73,.94), rgba(0,97,111,.72) 55%, rgba(0,97,111,.35)); }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 820px; }
.page-hero .lead { color: rgba(255,255,255,.86); max-width: 640px; margin-block-start: 1.1rem; }
.page-hero .ring { position: absolute; z-index: -1; width: 460px; height: 460px; inset-inline-end: -90px; top: -60px; opacity: .1; }
.page-hero .hero-wave svg { height: clamp(40px, 5vw, 80px); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .86rem; margin-block-end: 1.3rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.7); }
.breadcrumb li + li::before { content: "/"; opacity: .5; }
.breadcrumb a { color: rgba(255,255,255,.88); }
.breadcrumb a:hover { color: #fff; }
.page-hero .chips { margin-block-start: 1.5rem; }

/* -------------------------------------------------------------- Layout helpers */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.stack > * + * { margin-block-start: 1rem; }
.prose p { font-size: 1.06rem; }
.prose p + p { margin-block-start: 1.1rem; }

/* Photo frame with brand curve */
.photo-frame { position: relative; }
.photo-frame .ph { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4; }
.photo-frame .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame::before { content: ""; position: absolute; inset-inline-start: -22px; bottom: -22px; width: 62%; height: 62%; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--teal-light), var(--teal-accent)); z-index: -1; opacity: .55; }
.photo-badge { position: absolute; inset-inline-end: -18px; top: 2rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem 1.2rem; display: flex; gap: .8rem; align-items: center; max-width: 240px; }
.photo-badge .b-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.photo-badge strong { display: block; color: var(--teal-night); font-size: .95rem; line-height: 1.3; }
.photo-badge small { color: var(--ink-soft); font-size: .8rem; }

/* -------------------------------------------------------------- Key figures */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.stat { background: #fff; padding: 1.8rem 1.4rem; display: flex; flex-direction: column; gap: .35rem; }
.stat .icon { width: 26px; height: 26px; color: var(--teal-accent); margin-block-end: .4rem; }
.stat-value { font-family: "DM Serif Display", Georgia, serif; font-size: clamp(2.2rem, 3.6vw, 3rem); color: var(--teal-deep); line-height: 1; direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] .stat { text-align: right; }
html[lang="ar"] .stat-value { text-align: right; }
.stat-label { font-size: .92rem; color: var(--ink-soft); }
.section-dark .stats { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.14); }
.section-dark .stat { background: rgba(255,255,255,.04); }
.section-dark .stat-value { color: #fff; }
.section-dark .stat-label { color: rgba(255,255,255,.75); }
.section-dark .stat .icon { color: var(--teal-light); }
.stats.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* -------------------------------------------------------------- Value cards (brand keywords) */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.value { text-align: center; padding: 1.8rem 1.2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value .v-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--teal-mist); color: var(--teal); display: grid; place-items: center; margin: 0 auto 1.1rem; }
.value .v-icon .icon { width: 32px; height: 32px; }
.value h3 { color: var(--teal); font-size: 1.15rem; margin-block-end: .4rem; }
.value p { font-size: .92rem; }
.values.compact .value { text-align: start; display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; }
.values.compact .v-icon { width: 54px; height: 54px; margin: 0; flex-shrink: 0; }
.values.compact .v-icon .icon { width: 24px; height: 24px; }
.values.compact { grid-template-columns: repeat(2, 1fr); }

/* -------------------------------------------------------------- Generic card */
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 1.8rem; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--teal-mist); color: var(--teal); display: grid; place-items: center; margin-block-end: 1.2rem; transition: background .3s, color .3s; }
.card-icon .icon { width: 25px; height: 25px; }
.card:hover .card-icon { background: var(--teal); color: #fff; }
.card h3 { margin-block-end: .55rem; }
.card p { font-size: .95rem; }
.card .btn-text { margin-block-start: 1.1rem; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Specialty cards */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.spec-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.5rem; }
.spec-card h3 { font-size: 1.06rem; }
.spec-card p { font-size: .9rem; }
.spec-card .btn-text { margin-block-start: auto; padding-block-start: .9rem; font-size: .9rem; }

/* -------------------------------------------------------------- Clinic cards */
.clinic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.clinic-grid > div, .post-grid > div, .spec-grid > div { display: grid; }
.clinic-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; position: relative; }
.clinic-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.clinic-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.clinic-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.clinic-card:hover .clinic-media img { transform: scale(1.05); }
.clinic-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,40,46,.5), transparent 45%); }
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; font-size: .76rem; font-weight: 600; background: #fff; color: var(--teal-deep); }
.badge .icon { width: 14px; height: 14px; }
.badge-new { background: var(--teal); color: #fff; }
.clinic-media .badges { position: absolute; z-index: 2; inset-inline: 1rem; top: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.clinic-media .district { position: absolute; z-index: 2; inset-inline-start: 1.1rem; bottom: .9rem; color: #fff; font-size: .88rem; font-weight: 500; display: inline-flex; gap: .35rem; align-items: center; }
.clinic-media .district .icon { width: 16px; height: 16px; }
.clinic-body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.clinic-body h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.55rem; letter-spacing: 0; }
html[lang="ar"] .clinic-body h3 { font-weight: 700; font-size: 1.4rem; }
.clinic-body p { font-size: .94rem; }
.clinic-body .btn-text { margin-block-start: auto; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; padding: .3rem .7rem; border-radius: 999px; background: var(--teal-fog); color: var(--teal-deep); border: 1px solid var(--line); font-weight: 500; }
.chip .icon { width: 14px; height: 14px; color: var(--teal); }
a.chip:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
a.chip:hover .icon { color: #fff; }
.page-hero .chip { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.22); }
.page-hero .chip .icon { color: var(--teal-light); }

/* -------------------------------------------------------------- Investors band (home) */
.inv-band { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.inv-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-block-start: 2rem; }
.inv-links a { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; font-weight: 500; font-size: .93rem; transition: background .2s; }
.inv-links a:hover { background: rgba(255,255,255,.16); color: #fff; }
.inv-links .icon { width: 18px; height: 18px; color: var(--teal-light); }
.inv-links .icon-arrow-right { margin-inline-start: auto; width: 16px; opacity: .7; }
.section-dark .ring-bg { position: absolute; width: 560px; height: 560px; inset-inline-start: -180px; top: -160px; opacity: .06; pointer-events: none; }

/* -------------------------------------------------------------- Commitments cards */
.commit-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3rem); min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; isolation: isolate; transition: transform .35s var(--ease); }
.commit-card:hover { transform: translateY(-5px); }
.commit-card.social { background: linear-gradient(140deg, var(--teal) 0%, var(--teal-deep) 100%); }
.commit-card.env { background: linear-gradient(140deg, #3F9C8E 0%, #1F6E64 100%); }
.commit-card .c-ic { position: absolute; inset-inline-end: 2rem; top: 2rem; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.commit-card .c-ic .icon { width: 30px; height: 30px; }
.commit-card .c-shape { position: absolute; z-index: -1; inset-inline-end: -120px; top: -140px; width: 380px; height: 380px; opacity: .09; }
.commit-card h3 { color: #fff; font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2rem); margin-block-end: .7rem; }
html[lang="ar"] .commit-card h3 { font-weight: 700; }
.commit-card p { color: rgba(255,255,255,.85); max-width: 420px; }
.commit-card .btn-text { color: #fff; margin-block-start: 1.4rem; }
.commit-card::after { content: ""; position: absolute; inset: 0; }

/* -------------------------------------------------------------- Post cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; position: relative; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: var(--teal-mist); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal-mist), var(--teal-light)); }
.post-placeholder img { width: 38%; height: auto; opacity: .55; object-fit: contain; }
.post-placeholder.press { background: linear-gradient(135deg, var(--teal-deep), var(--teal)); }
.post-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; font-size: .8rem; color: var(--ink-soft); }
.post-meta .cat { color: var(--teal); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
html[lang="ar"] .post-meta .cat { letter-spacing: 0; font-size: .82rem; }
.post-meta .icon { width: 14px; height: 14px; }
.post-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.post-body h3 { font-size: 1.12rem; line-height: 1.4; }
.post-body h3 a { color: var(--teal-night); }
.post-body h3 a::after { content: ""; position: absolute; inset: 0; }
.post-body p { font-size: .92rem; }
.post-body .btn-text { margin-block-start: auto; padding-block-start: .4rem; font-size: .9rem; }

/* Featured post (first item of the news list) */
.post-card.featured { grid-column: span 3; flex-direction: row; }
.post-card.featured .post-media { flex: 1.15; aspect-ratio: auto; min-height: 340px; }
.post-card.featured .post-body { flex: 1; padding: clamp(1.8rem, 4vw, 3rem); justify-content: center; }
.post-card.featured h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.2; }
html[lang="ar"] .post-card.featured h3 { font-weight: 700; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-end: 2rem; }
.filter-btn { padding: .55rem 1.15rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .9rem; font-weight: 500; color: var(--ink); transition: all .2s; }
.filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.filter-btn.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Article */
.article { max-width: 760px; margin-inline: auto; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-block-end: 2.5rem; aspect-ratio: 16 / 9; box-shadow: var(--shadow); position: relative; background: var(--teal-mist); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article .prose p { font-size: 1.12rem; line-height: 1.85; color: var(--ink); }
.article .prose p:first-child { font-size: 1.25rem; color: var(--teal-night); }
.article-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-block-start: 2.5rem; padding-block-start: 1.6rem; border-block-start: 1px solid var(--line); }
.share { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--ink-soft); }
.share a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-mist); color: var(--teal-deep); }
.share a:hover { background: var(--teal); color: #fff; }
.share .icon { width: 17px; height: 17px; }

/* -------------------------------------------------------------- Timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.timeline::before { content: ""; position: absolute; inset-inline: 0; top: 34px; height: 2px; background: linear-gradient(90deg, var(--teal-light), var(--teal)); }
[dir="rtl"] .timeline::before { background: linear-gradient(-90deg, var(--teal-light), var(--teal)); }
.tl-item { position: relative; padding-block-start: 4.6rem; }
.tl-year { position: absolute; top: 0; inset-inline-start: 0; display: grid; place-items: center; min-width: 70px; height: 70px; padding-inline: .6rem; border-radius: 999px; background: #fff; border: 2px solid var(--teal); color: var(--teal-deep); font-family: "DM Serif Display", Georgia, serif; font-size: 1.35rem; box-shadow: 0 0 0 6px var(--teal-fog); }
.tl-item:last-child .tl-year { background: var(--teal); color: #fff; }
.tl-item h3 { font-size: 1.08rem; margin-block-end: .4rem; }
.tl-item p { font-size: .93rem; }

/* -------------------------------------------------------------- Pillars (method) */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: pillar; }
.pillar { position: relative; padding: 2rem 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); counter-increment: pillar; overflow: hidden; }
.pillar::before { content: "0" counter(pillar); position: absolute; inset-inline-end: 1.2rem; top: .6rem; font-family: "DM Serif Display", Georgia, serif; font-size: 3.6rem; color: var(--teal-mist); line-height: 1; }
.pillar .card-icon { position: relative; }
.pillar h3 { color: var(--teal); margin-block-end: .5rem; }
.pillar p { font-size: .93rem; }

/* White paper block */
.wp-block { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; background: linear-gradient(135deg, var(--teal-deep), var(--teal)); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4rem); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.wp-block h2 { color: #fff; }
.wp-block p { color: rgba(255,255,255,.85); }
.wp-block .kicker { color: var(--teal-light); }
.wp-cover { aspect-ratio: 3 / 4; max-width: 300px; margin-inline: auto; width: 100%; border-radius: 6px 18px 18px 6px; background: #fff; box-shadow: 0 30px 60px rgba(0,0,0,.3), inset 8px 0 0 var(--teal-light); padding: 2rem 1.6rem 1.6rem 2.2rem; display: flex; flex-direction: column; transform: rotate(-4deg); transition: transform .5s var(--ease); }
[dir="rtl"] .wp-cover { transform: rotate(4deg); border-radius: 18px 6px 6px 18px; box-shadow: 0 30px 60px rgba(0,0,0,.3), inset -8px 0 0 var(--teal-light); padding: 2rem 2.2rem 1.6rem 1.6rem; }
.wp-block:hover .wp-cover { transform: rotate(0); }
.wp-cover img { width: 54px; height: 54px; }
.wp-cover .wp-name { font-family: "DM Serif Display", Georgia, serif; color: var(--teal-deep); font-size: 1.5rem; margin-block-start: .6rem; letter-spacing: .04em; }
.wp-cover .wp-title { margin-block-start: auto; font-family: var(--font-serif); color: var(--teal-night); font-size: 1.55rem; line-height: 1.15; }
.wp-cover .wp-line { width: 40px; height: 3px; background: var(--teal); margin-block: 1rem .8rem; border-radius: 3px; }
.wp-cover .wp-year { font-size: .8rem; color: var(--ink-soft); letter-spacing: .2em; }
.check-list { display: grid; gap: .7rem; margin-block: 1.6rem 2rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--teal-mist); color: var(--teal); flex-shrink: 0; margin-block-start: .15rem; }
.wp-block .check-list li { color: #fff; }
.wp-block .check-list .icon { background: rgba(255,255,255,.18); color: #fff; }

/* -------------------------------------------------------------- Infrastructures */
.infra-list { display: grid; gap: 1.4rem; }
.infra-item { display: grid; grid-template-columns: auto 1fr auto; gap: 1.6rem; align-items: center; padding: 1.8rem 2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .3s, transform .3s var(--ease); }
.infra-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.infra-item .card-icon { width: 68px; height: 68px; margin: 0; }
.infra-item .card-icon .icon { width: 30px; height: 30px; }
.infra-item h3 { margin-block-end: .35rem; font-size: 1.25rem; }
.infra-item .chips { justify-content: flex-end; max-width: 360px; }

/* -------------------------------------------------------------- Feature list (commitments) */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.feature { display: flex; gap: 1.2rem; padding: 1.8rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: box-shadow .3s; }
.feature:hover { box-shadow: var(--shadow); }
.feature .card-icon { margin: 0; flex-shrink: 0; }
.feature h3 { margin-block-end: .4rem; }
.feature p { font-size: .95rem; }
.quote-block { position: relative; padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius-lg); background: var(--teal-mist); text-align: center; }
.quote-block .icon { width: 44px; height: 44px; color: var(--teal-accent); margin: 0 auto 1rem; }
.quote-block blockquote { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--teal-night); line-height: 1.35; max-width: 760px; margin-inline: auto; }
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.goal { padding: 1.6rem; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); display: flex; gap: .9rem; align-items: flex-start; }
.goal .icon { width: 26px; height: 26px; color: var(--teal-light); flex-shrink: 0; }
.goal p { color: #fff; font-weight: 500; }

/* -------------------------------------------------------------- Investors */
.inv-layout { display: grid; grid-template-columns: 290px 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.inv-nav { position: sticky; top: calc(var(--header-h) + 1.5rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; }
.inv-nav a { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border-radius: 10px; color: var(--ink); font-size: .92rem; font-weight: 500; }
.inv-nav a .icon { width: 18px; height: 18px; color: var(--teal-accent); }
.inv-nav a:hover { background: var(--teal-fog); color: var(--teal-deep); }
.inv-nav a.is-active { background: var(--teal); color: #fff; }
.inv-nav a.is-active .icon { color: #fff; }
.inv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.inv-card { padding: 1.5rem; }
.inv-card h3 { font-size: 1.02rem; }
.inv-card p { font-size: .88rem; }
.inv-section-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-block-end: 1.6rem; }
.inv-section-title h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.note { font-size: .82rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .4rem; }
.note .icon { width: 15px; height: 15px; }
.doc-list { display: grid; gap: .8rem; }
.doc { display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: center; padding: 1.1rem 1.3rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.doc:hover { border-color: var(--teal-light); box-shadow: var(--shadow-sm); }
.doc-ic { width: 48px; height: 56px; border-radius: 8px; background: var(--teal-mist); color: var(--teal); display: grid; place-items: center; position: relative; }
.doc-ic .icon { width: 22px; height: 22px; }
.doc-ic span { position: absolute; bottom: -6px; inset-inline-end: -8px; background: var(--teal); color: #fff; font-size: .6rem; font-weight: 700; padding: .1rem .35rem; border-radius: 4px; }
.doc h3 { font-size: 1rem; line-height: 1.4; }
.doc .doc-meta { font-size: .82rem; color: var(--ink-soft); margin-block-start: .2rem; display: flex; gap: .9rem; flex-wrap: wrap; }
.doc .btn { min-height: 44px; }
.year-select { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--ink-soft); }
.year-select select { padding: .5rem 2.2rem .5rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008696' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7rem center / 16px; appearance: none; color: var(--ink); }
[dir="rtl"] .year-select select { padding: .5rem .9rem .5rem 2.2rem; background-position: left .7rem center; }
.share-box { padding: clamp(2rem, 4vw, 3rem); border-radius: var(--radius-lg); background: var(--teal-fog); border: 1px dashed var(--teal-light); text-align: center; }
.share-box .card-icon { margin-inline: auto; width: 70px; height: 70px; }
.share-chart { height: 150px; margin-block: 1.5rem; color: var(--teal-light); }
.share-chart svg { width: 100%; height: 100%; }

/* -------------------------------------------------------------- Clinic page */
.clinic-layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.info-card { position: sticky; top: calc(var(--header-h) + 1.5rem); background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.info-card-head { background: var(--teal-deep); color: #fff; padding: 1.4rem 1.6rem; }
.info-card-head h3 { color: #fff; font-size: 1.1rem; }
.info-list { padding: .6rem 1.6rem; }
.info-list li { display: flex; gap: .9rem; padding-block: 1rem; border-block-end: 1px solid var(--line); }
.info-list li:last-child { border: 0; }
.info-list .icon { width: 20px; height: 20px; color: var(--teal); margin-block-start: .15rem; }
.info-list small { display: block; font-size: .76rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
html[lang="ar"] .info-list small { letter-spacing: 0; font-size: .82rem; }
.info-list span, .info-list a { color: var(--teal-night); font-weight: 500; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.info-card-foot { padding: 0 1.6rem 1.6rem; display: grid; gap: .7rem; }
.info-card-foot .btn { width: 100%; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
.gallery a { border-radius: var(--radius); overflow: hidden; display: block; height: clamp(240px, 30vw, 380px); }
.gallery a:only-child { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.spec-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.spec-mini { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--line); color: var(--teal-night); font-weight: 500; font-size: .94rem; transition: all .2s; }
.spec-mini .icon { width: 22px; height: 22px; color: var(--teal); }
.spec-mini:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.spec-mini:hover .icon { color: #fff; }
.block + .block { margin-block-start: 3rem; }
.block-title { font-family: var(--font-serif); font-size: 1.8rem; margin-block-end: 1.2rem; }
html[lang="ar"] .block-title { font-weight: 700; }
.opening-banner { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; border-radius: var(--radius); background: linear-gradient(90deg, var(--teal-mist), #fff); border: 1px solid var(--teal-light); margin-block-end: 2rem; }
.opening-banner .icon { width: 28px; height: 28px; color: var(--teal); }
.opening-banner strong { color: var(--teal-deep); }

/* Map */
.map { height: 460px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); z-index: 1; background: var(--teal-mist); }
.map.sm { height: 280px; border-radius: var(--radius); }
.map-pin { width: 44px; height: 44px; border-radius: 50% 50% 50% 0; background: var(--teal); transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,63,73,.35); border: 3px solid #fff; }
.map-pin img { width: 22px; height: 22px; transform: rotate(45deg); }
.leaflet-popup-content-wrapper { border-radius: 14px !important; }
.leaflet-popup-content { font-family: var(--font-sans); margin: 14px 16px !important; }
.leaflet-popup-content strong { display: block; color: var(--teal-night); font-size: 1rem; margin-block-end: .2rem; }
.leaflet-popup-content a { font-weight: 600; }
.map-layout { display: grid; grid-template-columns: 340px 1fr; gap: 1.5rem; }
.map-list { display: grid; gap: .8rem; align-content: start; }
.map-list button { display: flex; gap: .9rem; text-align: start; padding: 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: all .2s; width: 100%; }
.map-list button:hover, .map-list button.is-active { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.map-list .thumb { width: 74px; height: 74px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.map-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.map-list strong { display: block; color: var(--teal-night); font-size: .98rem; line-height: 1.3; }
.map-list small { color: var(--ink-soft); font-size: .84rem; display: flex; align-items: center; gap: .3rem; margin-block-start: .25rem; }
.map-list small .icon { width: 14px; height: 14px; color: var(--teal); }

/* -------------------------------------------------------------- Search */
.search-box { position: relative; max-width: 460px; }
.search-box .icon { position: absolute; inset-inline-start: 1.1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--teal); }
.search-box input { width: 100%; padding: .95rem 1.2rem .95rem 3.1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
[dir="rtl"] .search-box input { padding: .95rem 3.1rem .95rem 1.2rem; }
.search-box input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,134,150,.12); }
.empty { display: none; text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }

/* -------------------------------------------------------------- Forms */
.form-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); padding: clamp(1.6rem, 4vw, 3rem); }
.form-card h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.form-card > p { margin-block: .6rem 1.8rem; }
.form-section { border: 0; }
.form-section + .form-section { margin-block-start: 2rem; padding-block-start: 1.8rem; border-block-start: 1px solid var(--line); }
.form-section legend { font-weight: 600; color: var(--teal-deep); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-block-end: 1rem; display: flex; align-items: center; gap: .6rem; }
html[lang="ar"] .form-section legend { letter-spacing: 0; font-size: .95rem; }
.form-section legend span { width: 26px; height: 26px; border-radius: 50%; background: var(--teal-mist); color: var(--teal); display: grid; place-items: center; font-size: .78rem; letter-spacing: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 500; color: var(--teal-night); }
.field label .req { color: var(--teal); }
.field label .opt { color: var(--ink-soft); font-weight: 400; font-size: .8rem; }
.input-wrap { position: relative; }
.input-wrap > .icon { position: absolute; inset-inline-start: 1rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #8FA3A8; pointer-events: none; transition: color .2s; }
.input-wrap.textarea > .icon { top: 1.05rem; transform: none; }
.field input:not([type="checkbox"]):not([type="file"]), .field select, .field textarea {
    width: 100%; padding: .85rem 1rem .85rem 2.85rem; border: 1px solid #D4DFE1; border-radius: var(--radius-sm); background: #fff; font-size: .95rem;
    transition: border-color .2s, box-shadow .2s; appearance: none;
}
[dir="rtl"] .field input:not([type="checkbox"]):not([type="file"]), [dir="rtl"] .field select, [dir="rtl"] .field textarea { padding: .85rem 2.85rem .85rem 1rem; }
.field input[type="email"], .field input[type="tel"] { direction: ltr; }
[dir="rtl"] .field input[type="email"], [dir="rtl"] .field input[type="tel"] { text-align: right; }
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008696' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 16px; padding-inline-end: 2.6rem; cursor: pointer; }
[dir="rtl"] .field select { background-position: left 1rem center; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,134,150,.12); }
.input-wrap:focus-within > .icon { color: var(--teal); }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field.has-error .file-drop { border-color: var(--danger); }
.field-error { font-size: .8rem; color: var(--danger); display: none; }
.field.has-error .field-error { display: block; }
.field-hint { font-size: .8rem; color: var(--ink-soft); }

/* File upload */
.file-drop { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1.5px dashed var(--teal-light); border-radius: var(--radius-sm); background: var(--teal-fog); transition: border-color .2s, background .2s; cursor: pointer; }
.file-drop:hover, .file-drop.is-drag { border-color: var(--teal); background: var(--teal-mist); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .f-ic { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--teal); display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.file-drop .f-ic .icon { width: 20px; height: 20px; }
.file-drop strong { display: block; color: var(--teal-deep); font-size: .92rem; }
.file-drop .f-name { font-size: .82rem; color: var(--ink-soft); word-break: break-all; }
.file-drop.has-file { border-style: solid; border-color: var(--teal); background: #fff; }
.file-drop.has-file .f-ic { background: var(--teal); color: #fff; }

/* Checkbox */
.check { display: flex; gap: .8rem; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); cursor: pointer; }
.check input { appearance: none; width: 22px; height: 22px; border: 1.5px solid #B9CBCF; border-radius: 6px; flex-shrink: 0; margin-block-start: .1rem; display: grid; place-items: center; transition: all .2s; background: #fff; cursor: pointer; }
.check input:checked { background: var(--teal); border-color: var(--teal); }
.check input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.field.has-error .check input { border-color: var(--danger); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-block-start: 1.6rem; }
.form-foot .note { font-size: .82rem; }
/* Forms are reached with #formulaire after sending: keep them below the sticky header */
.form-card[id] { scroll-margin-top: 120px; }
.form-alert { display: none; gap: .9rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-block-end: 1.4rem; font-size: .92rem; }
.form-alert .icon { width: 22px; height: 22px; flex-shrink: 0; }
.form-alert.is-error { display: flex; background: #FDF0EE; color: var(--danger); }
.form-alert.is-success { display: flex; background: #EAF7F0; color: var(--success); }
.form-alert strong { display: block; }
.form-alert p { color: inherit; opacity: .85; font-size: .88rem; }
.btn[disabled] { opacity: .7; pointer-events: none; }

/* Contact page side */
.contact-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact-side { display: grid; gap: 1.2rem; }
.contact-box { padding: 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.contact-box h3 { display: flex; align-items: center; gap: .6rem; margin-block-end: .9rem; font-size: 1.05rem; }
.contact-box h3 .icon { color: var(--teal); }
.contact-box.emergency { background: #FFF5F3; border-color: #F6D3CD; }
.contact-box.emergency h3 .icon { color: #D9473A; }
.contact-box.emergency .big { font-size: 1.5rem; font-weight: 700; color: #C23B2E; direction: ltr; unicode-bidi: isolate; display: inline-block; margin-block-start: .4rem; }
.contact-lines { display: grid; gap: .6rem; }
.contact-lines li { display: flex; gap: .7rem; align-items: center; font-size: .94rem; }
.contact-lines .icon { width: 18px; height: 18px; color: var(--teal); }
.contact-clinic { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding-block: .8rem; border-block-end: 1px solid var(--line); }
.contact-clinic:last-child { border: 0; padding-block-end: 0; }
.contact-clinic strong { display: block; color: var(--teal-night); font-size: .94rem; }
.contact-clinic small { color: var(--ink-soft); }
.contact-clinic a.call { width: 42px; height: 42px; border-radius: 50%; background: var(--teal-mist); color: var(--teal); display: grid; place-items: center; flex-shrink: 0; }
.contact-clinic a.call:hover { background: var(--teal); color: #fff; }
.contact-clinic a.call .icon { width: 18px; height: 18px; }

/* -------------------------------------------------------------- CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.8rem); background: var(--teal-mist); display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; isolation: isolate; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band p { margin-block-start: .6rem; max-width: 560px; }
.cta-band .ring { position: absolute; z-index: -1; width: 340px; height: 340px; inset-inline-end: -60px; bottom: -150px; opacity: .12; }
.cta-band.dark { background: linear-gradient(120deg, var(--teal-night), var(--teal-deep)); }
.cta-band.dark h2 { color: #fff; }
.cta-band.dark p { color: rgba(255,255,255,.8); }

/* Legal */
.legal { max-width: 820px; }
.legal section + section { margin-block-start: 2.2rem; }
.legal h2 { font-family: var(--font-sans); font-weight: 600; font-size: 1.25rem; margin-block-end: .6rem; }
html[lang="ar"] .legal h2 { font-family: var(--font-sans); }

/* -------------------------------------------------------------- Footer */
.site-footer { position: relative; background: var(--teal-night); color: rgba(255,255,255,.75); padding-block: clamp(4rem, 7vw, 6rem) 0; margin-block-start: clamp(3rem, 6vw, 5rem); isolation: isolate; overflow: hidden; }
.footer-wave { position: absolute; inset-inline: 0; top: -1px; color: #fff; }
.footer-wave svg { width: 100%; height: clamp(40px, 5vw, 80px); transform: rotate(180deg); }
[dir="rtl"] .footer-wave svg { transform: rotate(180deg) scaleX(-1); }
.site-footer .ring { position: absolute; z-index: -1; width: 520px; height: 520px; inset-inline-end: -160px; bottom: -200px; opacity: .05; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 3.5rem); padding-block-start: 2rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: rgba(255,255,255,.6); }
.footer-brand p { color: rgba(255,255,255,.7); margin-block: 1.3rem 1.5rem; font-size: .94rem; max-width: 340px; }
.footer-brand .social a { width: 40px; height: 40px; background: rgba(255,255,255,.08); color: #fff; }
.footer-brand .social a:hover { background: var(--teal); }
.footer-brand .social .icon { width: 18px; height: 18px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-block-end: 1.2rem; }
html[lang="ar"] .site-footer h4 { letter-spacing: 0; font-size: .98rem; }
.footer-links { display: grid; gap: .65rem; }
.footer-links a { color: rgba(255,255,255,.75); font-size: .93rem; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; margin-block-end: .8rem; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--teal-light); margin-block-start: .2rem; }
.footer-contact a { color: rgba(255,255,255,.85); }
.footer-bottom { margin-block-start: clamp(2.5rem, 5vw, 4rem); padding-block: 1.4rem; border-block-start: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .84rem; }
.footer-bottom ul { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: #fff; }
.footer-tagline { font-family: "DM Serif Display", Georgia, serif; color: var(--teal-light); font-size: 1.05rem; }
html[lang="ar"] .footer-tagline { font-family: var(--font-serif); }

/* -------------------------------------------------------------- Cookie banner & back to top */
.cookie { position: fixed; z-index: 120; inset-inline: 1rem; bottom: 1rem; max-width: 560px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 1.2rem 1.3rem; display: none; gap: 1rem; align-items: center; flex-wrap: wrap; }
.cookie.is-visible { display: flex; animation: slideUp .4s var(--ease); }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } }
.cookie p { flex: 1 1 260px; font-size: .88rem; }
.cookie p a { font-weight: 600; }
.cookie .btns { display: flex; gap: .5rem; }
.cookie .btn { min-height: 42px; font-size: .88rem; padding-inline: 1.2rem; }
.to-top { position: fixed; z-index: 90; inset-inline-end: 1.25rem; bottom: 1.25rem; width: 50px; height: 50px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,134,150,.35); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal-deep); }
.to-top .icon { width: 22px; height: 22px; transform: rotate(180deg); }

/* -------------------------------------------------------------- Reveal on scroll */
/* Hidden only once main.js has started (content stays visible if JS fails) */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal-on [data-reveal] { opacity: 1; transform: none; }
}

/* 404 */
.error-page { text-align: center; padding-block: clamp(5rem, 10vw, 8rem); }
.error-page .code { font-family: "DM Serif Display", Georgia, serif; font-size: clamp(6rem, 18vw, 11rem); color: var(--teal-mist); line-height: 1; display: flex; align-items: center; justify-content: center; gap: .1em; }
.error-page .code img { width: .8em; height: .8em; }
.error-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-block: 1rem; }
.error-page p { margin-block-end: 2rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1520px) {
    .site-header .brand-tag { display: none; }
}
@media (max-width: 1320px) {
    .main-nav, .header-cta { display: none; }
    .nav-toggle { display: grid; }
}
@media (max-width: 1100px) {
    .spec-grid { grid-template-columns: repeat(3, 1fr); }
    .pillars, .values { grid-template-columns: repeat(2, 1fr); }
    .inv-cards { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .clinic-layout { grid-template-columns: 1fr; }
    .info-card { position: static; }
    .infra-item { grid-template-columns: auto 1fr; }
    .infra-item .chips { grid-column: 2; justify-content: flex-start; max-width: none; }
}
@media (max-width: 960px) {
    .split, .inv-band, .wp-block, .contact-layout, .inv-layout, .map-layout { grid-template-columns: 1fr; }
    .split.reverse > :first-child { order: 0; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-item:nth-child(3)::before { display: none; }
    .quick-item:nth-child(n+3) { border-block-start: 1px solid var(--line); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .clinic-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
    .post-card.featured { grid-column: span 2; flex-direction: column; }
    .post-card.featured .post-media { min-height: 0; aspect-ratio: 16 / 9; }
    .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
    .timeline::before { display: none; }
    .goals { grid-template-columns: 1fr; }
    .inv-nav { position: static; display: flex; overflow-x: auto; gap: .3rem; scrollbar-width: none; }
    .inv-nav a { white-space: nowrap; }
    .photo-frame { max-width: 560px; margin-inline: auto; }
    .photo-frame .ph { aspect-ratio: 4 / 3; }
    .map-list { grid-template-columns: repeat(3, 1fr); }
    .map-list .thumb { display: none; }
}
@media (max-width: 720px) {
    :root { --header-h: 70px; }
    .topbar-left .hide-sm, .topbar .social, .topbar-emergency .ltr { display: none; }
    .brand-symbol { width: 38px; height: 38px; }
    .brand-name { font-size: 1.5rem; }
    .hero { min-height: 640px; }
    .hero-content { padding-block: 4.5rem 7rem; }
    .hero::before { background: linear-gradient(180deg, rgba(0,47,55,.55) 0%, rgba(0,70,80,.82) 55%, rgba(0,63,73,.95) 100%) !important; }
    .btn-group .btn { width: 100%; }
    .quick-grid { grid-template-columns: 1fr 1fr; }
    .quick-item { flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1.2rem; font-size: .92rem; }
    .quick-item .icon-arrow-right { display: none; }
    .quick-item::before { display: none; }
    .quick-item:nth-child(2n) { border-inline-start: 1px solid var(--line); }
    .spec-grid { grid-template-columns: repeat(2, 1fr); }
    .clinic-grid, .post-grid, .grid-2, .grid-3, .feature-grid, .inv-cards, .values.compact { grid-template-columns: 1fr; }
    .post-card.featured { grid-column: auto; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .doc { grid-template-columns: auto 1fr; }
    .doc .btn { grid-column: 1 / -1; width: 100%; }
    .photo-badge { inset-inline-end: .5rem; top: auto; bottom: 1rem; }
    .photo-frame::before { inset-inline-start: -10px; bottom: -10px; }
    .map { height: 360px; }
    .map-list { grid-template-columns: 1fr; }
    .spec-mini-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .gallery a:only-child { grid-column: auto; }
    .cta-band { flex-direction: column; align-items: flex-start; }
    .hero-switch { top: .75rem; }
}
@media (max-width: 460px) {
    .spec-grid, .values, .pillars, .stats, .timeline { grid-template-columns: 1fr; }
    .quick-grid { grid-template-columns: 1fr; }
    .quick-item { flex-direction: row; align-items: center; }
    .quick-item:nth-child(2n) { border-inline-start: 0; }
    .quick-item + .quick-item { border-block-start: 1px solid var(--line); }
    .topbar-left .topbar-item:not(.topbar-emergency) { display: none; }
}

/* Back arrows (point to the start of the reading direction) */
.icon.flip { transform: scaleX(-1); }
[dir="rtl"] .icon.flip { transform: none; }
