/* ==========================================================================
   JA Cardiovascular PC — site styles
   Brand colors come from the practice logo: heart red and ring blue,
   anchored by a deep navy.
   ========================================================================== */

:root {
  --navy-950: #06142a;
  --navy-900: #0b1f3a;
  --navy-800: #12305a;
  --navy-700: #1b3f72;
  --blue: #1d4fa3;
  --blue-600: #2b63c6;
  --blue-100: #e4ecfa;
  --blue-50: #f1f5fc;
  --red: #d7202e;
  --red-700: #b3141f;
  --red-300: #ff6b75;
  --red-100: #fce7e9;
  --ink: #0e1a2b;
  --ink-2: #3a4658;
  --ink-3: #5f6b7e;
  --line: #e2e7ef;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ok: #128a4b;
  --ok-bg: #e6f6ed;
  --notice-bg: #fff4d6;
  --notice-line: #f0dba0;
  --notice-ink: #8a5a00;

  --bp-normal: #1fa463;
  --bp-elevated: #e7b416;
  --bp-stage1: #ee8a1a;
  --bp-stage2: #d7202e;
  --bp-severe: #7c0c17;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 43, .06), 0 1px 3px rgba(14, 26, 43, .08);
  --shadow: 0 4px 12px -2px rgba(14, 26, 43, .08), 0 14px 34px -10px rgba(14, 26, 43, .16);
  --shadow-lg: 0 28px 64px -16px rgba(6, 20, 42, .45);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --container: 1200px;
  --gutter: 16px;
  --header-h: 66px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; --header-h: 78px; } }

html[lang="ar"] {
  --font: 'IBM Plex Sans Arabic', system-ui, Tahoma, Arial, sans-serif;
  --font-display: 'IBM Plex Sans Arabic', system-ui, Tahoma, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

html.nav-open, html.has-modal { overflow: hidden; }

img, video, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; }
a { color: var(--blue); }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }

/* Arabic joins letters; spacing between them breaks the script. */
html[lang="ar"] * { letter-spacing: 0 !important; }

:focus-visible { outline: 3px solid rgba(43, 99, 198, .55); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.i {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
[dir="rtl"] .i--dir { transform: scaleX(-1); }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .95em 1.4em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: .975rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 22px -10px rgba(215, 32, 46, .7); }
.btn--primary:hover { background: var(--red-700); transform: translateY(-1px); }
.btn--light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn--light:hover { background: rgba(255, 255, 255, .16); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--navy-900); }
.btn--ghost:hover { border-color: var(--navy-900); }
.btn--sm { padding: .72em 1.1em; font-size: .9rem; }
.btn--lg { padding: 1.05em 1.6em; font-size: 1.02rem; }
.btn--block { width: 100%; }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Utility (emergency) bar ---------- */
.util { background: var(--navy-950); color: #c9d5ea; font-size: .84rem; }
.util__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; padding-block: .45rem; }
.util__alert { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin: 0; }
.util__alert .i { color: var(--red-300); }
.util__alert strong { color: #fff; }
.util__link {
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.util__right { display: none; align-items: center; gap: 1.25rem; }
.util__phone { display: inline-flex; align-items: center; gap: .45rem; color: #fff; font-weight: 700; text-decoration: none; }
.util__phone:hover { text-decoration: underline; }
@media (min-width: 900px) { .util__right { display: flex; } }

/* ---------- Office notice (closures): bar under the emergency bar, note on the hours card ---------- */
.notice { border-bottom: 1px solid var(--notice-line); background: var(--notice-bg); color: var(--ink); font-size: .9rem; }
.notice__inner { display: flex; align-items: center; gap: .75rem; min-height: 44px; padding-block: .3rem; }
.notice__text { display: flex; align-items: flex-start; gap: .55rem; flex: 1; margin: 0; line-height: 1.45; }
.notice__text .i, .hours-notice .i, .notice-pop .i { margin-top: .15em; color: var(--notice-ink); }
.notice__text strong, .hours-notice strong, .notice-pop strong { color: var(--navy-900); }
.notice__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin-inline-end: -8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}
.notice__close:hover { background: rgba(14, 26, 43, .08); color: var(--ink); }
@media (min-width: 768px) {
  .notice__inner { padding-inline-start: 28px; }
  .notice__text { justify-content: center; }
}

/* ---------- Status chip (live office hours) ---------- */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  padding: .42rem .9rem .42rem .7rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.3;
}
.status-chip__dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #9fb0cc; }
.status-chip.is-open .status-chip__dot { background: #2bd07b; animation: ping 2s infinite; }
.status-chip.is-closed .status-chip__dot { background: var(--red-300); }
.status-chip--util { padding: .2rem .7rem .2rem .55rem; font-size: .8rem; background: transparent; }
.status-chip--light { border-color: var(--line); background: var(--bg); color: var(--ink-2); }
.status-chip--light.is-open { border-color: #bfe6cf; background: var(--ok-bg); color: var(--ok); }
.status-chip--light.is-open .status-chip__dot { background: var(--ok); }
.status-chip--light.is-closed .status-chip__dot { background: var(--red); }

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(43, 208, 123, .55); }
  70% { box-shadow: 0 0 0 8px rgba(43, 208, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 208, 123, 0); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 26px -14px rgba(14, 26, 43, .22); }
.site-header__inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }

/* Logo lockup: the heart mark plus the practice name as live text */
.brand { display: inline-flex; align-items: center; gap: .6rem; flex: none; border-radius: 8px; color: inherit; text-decoration: none; }
.brand__mark { width: auto; height: 40px; }
.brand__text { display: grid; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; line-height: 1.15; text-align: start; }
.brand__name { color: var(--navy-900); font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; white-space: nowrap; }
.brand__sub { color: var(--red); font-weight: 700; font-size: .72rem; letter-spacing: .02em; white-space: nowrap; }
@media (min-width: 1100px) {
  .brand__mark { height: 46px; }
  .brand__name { font-size: 1.12rem; }
  .brand__sub { font-size: .78rem; }
}
@media (max-width: 400px) {
  .brand { gap: .45rem; }
  .brand__mark { height: 34px; }
  .brand__name { font-size: .9rem; }
  .brand__sub { font-size: .64rem; }
}
/* Very narrow phones: the heart mark alone carries the brand */
@media (max-width: 350px) { .brand__text { display: none; } }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.nav__list a {
  display: block;
  padding: .55rem .8rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: .94rem;
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav__list a:hover, .nav__list a.is-active { color: var(--navy-900); background: var(--blue-50); }
.nav__extra { display: none; }

.header-actions { display: flex; align-items: center; gap: .55rem; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  height: 44px;
  padding: 0 .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy-900);
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  transition: border-color .2s;
}
.lang-toggle:hover { border-color: var(--navy-900); }
@media (max-width: 400px) {
  .site-header__inner { gap: .75rem; }
  .lang-toggle { padding: 0 .8rem; }
  .lang-toggle .i { display: none; }
}
.lang-toggle [lang="ar"] { font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif; }

.nav-toggle {
  display: none;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--navy-900); transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.scroll-progress { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; pointer-events: none; }
.scroll-progress span {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--red), var(--blue-600));
}
[dir="rtl"] .scroll-progress span { transform-origin: right; }

@media (max-width: 1099px) {
  .nav-toggle { display: inline-grid; }
  .header-actions { margin-inline-start: auto; }
  .nav {
    position: fixed;
    inset: var(--nav-top, 106px) 0 0 0;
    z-index: 45;
    margin: 0;
    padding: .5rem var(--gutter) 2rem;
    overflow-y: auto;
    background: var(--surface);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { padding: 1rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.15rem; }
  .nav__list a:hover, .nav__list a.is-active { background: none; color: var(--red); }
  .nav__extra { display: grid; gap: .75rem; margin-top: 1.5rem; }
}
@media (max-width: 639px) { .header-cta { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1100px 560px at 88% -12%, rgba(43, 99, 198, .5), transparent 62%),
    radial-gradient(760px 480px at -12% 112%, rgba(215, 32, 46, .3), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 25%, transparent 72%);
}
.hero__grid { display: grid; gap: 3.25rem; align-items: center; padding-block: clamp(3rem, 7vw, 6.5rem) clamp(3.5rem, 7vw, 6.5rem); }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 4rem; } }

.hero h1 {
  margin: 1.2rem 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.45rem, 4.4vw + 1rem, 4.35rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}
.hero h1 em { color: var(--red-300); font-style: italic; }
html[lang="ar"] .hero h1 { line-height: 1.25; }
.hero__lead { max-width: 36rem; margin: 0; color: #c9d5ea; font-size: clamp(1.04rem, .35vw + 1rem, 1.22rem); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  list-style: none;
}
.hero__facts strong { display: block; font-size: 1.05rem; }
.hero__facts span { display: block; margin-top: .15rem; color: #9fb0cc; font-size: .85rem; line-height: 1.4; }
@media (max-width: 599px) {
  .hero__facts { grid-template-columns: 1fr; gap: .9rem; }
  .hero__facts li { display: flex; align-items: baseline; gap: .6rem; }
  .hero__facts strong { flex: none; }
}

.hero__visual { position: relative; }

.monitor {
  padding: 1.15rem 1.15rem 3.4rem; /* bottom room for the floating badge */
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  box-shadow: var(--shadow-lg);
}
.monitor__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #dce5f5; font-size: .9rem; font-weight: 600; }
.monitor__brand { display: inline-flex; align-items: center; gap: .5rem; }
.monitor__brand .i { color: var(--red-300); }
.monitor__tag { display: inline-flex; align-items: center; gap: .4rem; color: #2bd07b; font-size: .74rem; font-weight: 700; letter-spacing: .14em; }
.monitor__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.monitor__screen { position: relative; margin-top: 1rem; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); background: #040f1e; }
.monitor__ecg { width: 100%; height: clamp(150px, 22vw, 210px); }
.monitor__days { margin-top: 1.1rem; }
.monitor__label { margin: 0 0 .6rem; color: #9fb0cc; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.monitor__days ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.monitor__days li {
  padding: .7rem .8rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  transition: background-color .3s, border-color .3s;
}
.monitor__days li span { display: block; font-weight: 700; }
.monitor__days li small { color: #9fb0cc; font-size: .8rem; }
.monitor__days li.is-today { border-color: rgba(255, 107, 117, .55); background: rgba(215, 32, 46, .2); }

.hero__badge {
  position: absolute;
  inset-inline-start: -26px;
  bottom: -30px;
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: 280px;
  padding: .8rem 1.1rem .8rem .8rem;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero__badge-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--red); color: #fff; }
.hero__badge strong { display: block; color: var(--navy-900); }
.hero__badge small { display: block; color: var(--ink-3); font-size: .8rem; line-height: 1.35; }
@media (max-width: 999px) { .hero__badge { inset-inline-start: 18px; } }
@media (max-width: 599px) {
  .hero__badge { position: relative; inset: auto; margin: -1.9rem auto 0; width: fit-content; max-width: calc(100% - 2rem); animation: none; }
}

@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- Affiliations strip ---------- */
.affiliations { border-bottom: 1px solid var(--line); background: var(--surface); }
.affiliations__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 2.25rem; padding-block: 1.35rem; }
.affiliations__label { margin: 0; color: var(--ink-3); font-family: var(--font); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.affiliations ul { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin: 0; padding: 0; list-style: none; }
.affiliations li { display: flex; align-items: center; gap: .5rem; color: var(--navy-800); font-weight: 600; font-size: .95rem; }
.affiliations li .i { color: var(--blue); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 8vw, 6.75rem); }
.section--white { background: var(--surface); }
.section--tint { background: linear-gradient(180deg, var(--blue-50), var(--surface)); }

.section-head { max-width: 46rem; margin: 0 auto clamp(2.25rem, 4vw, 3.25rem); text-align: center; }
.section-head--start { margin-inline: 0; text-align: start; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .9rem;
  color: var(--red);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Cpath d='M0 6h9l2-4.5 3 9 2.5-6 1.5 1.5H28' fill='none' stroke='%23D7202E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
html[lang="ar"] .eyebrow { font-size: .9rem; }

h2 {
  margin: 0 0 1rem;
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 2.4vw + 1.15rem, 3rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
h2 em { color: var(--red); font-style: italic; }
html[lang="ar"] h1 em, html[lang="ar"] h2 em { font-style: normal; }
html[lang="ar"] h2 { line-height: 1.3; }
.lead { margin: 0; color: var(--ink-2); font-size: 1.1rem; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about { display: grid; gap: clamp(2.25rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 960px) { .about { grid-template-columns: .82fr 1.18fr; } }

.about__card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}
@media (min-width: 960px) { .about__card { position: sticky; top: calc(var(--header-h) + 28px); } }

.profile { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.profile__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--blue), var(--navy-900));
  color: #fff;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
}
.profile__avatar::after {
  content: "";
  position: absolute;
  inset-inline-end: -6px;
  bottom: -6px;
  width: 28px;
  height: 28px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.profile__name { margin: 0; color: var(--navy-900); font-weight: 800; font-size: 1.15rem; }
.profile__role { margin: .15rem 0 0; color: var(--ink-3); font-size: .92rem; }

.creds { display: grid; gap: .95rem; margin: 1.25rem 0 1.5rem; padding: 0; list-style: none; }
.creds li { display: flex; align-items: flex-start; gap: .85rem; }
.creds .i { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.creds strong { display: block; color: var(--navy-900); font-size: .97rem; line-height: 1.35; }
.creds span { display: block; color: var(--ink-3); font-size: .87rem; }

.about__copy > p { color: var(--ink-2); font-size: 1.06rem; }
.about__sub { margin: 2.25rem 0 1.25rem; color: var(--navy-900); font-size: 1.15rem; }

/* ---------- Our office (video) ---------- */
.office { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
@media (min-width: 960px) { .office { grid-template-columns: .82fr 1.18fr; } }
.office__title { margin: 0 0 .85rem; color: var(--navy-900); font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.85rem); line-height: 1.2; }
.office__copy > p { margin: 0 0 1.35rem; color: var(--ink-2); font-size: 1.06rem; }
.video-card { margin: 0; }
.video-card__frame { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--navy-950); box-shadow: var(--shadow); }
.video-card__media { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--navy-950); }
/* One button over the poster. It sits bottom-left in both languages so it never covers the map credit at the bottom-right. */
.video-card__play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; width: 100%; padding: clamp(.75rem, 2.5vw, 1.25rem); border: 0; background: linear-gradient(to top, rgba(6, 20, 42, .6), rgba(6, 20, 42, 0) 42%); color: #fff; font: inherit; cursor: pointer; }
[dir="rtl"] .video-card__play { justify-content: flex-end; }
.video-card__play[hidden] { display: none; }
.video-card__pill { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem 1rem .55rem .6rem; border-radius: 999px; background: var(--red); font-weight: 700; font-size: .98rem; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6); transition: transform .2s var(--ease), background .2s var(--ease); }
[dir="rtl"] .video-card__pill { padding: .55rem .6rem .55rem 1rem; }
.video-card__pill small { font-weight: 600; font-size: .85em; opacity: .85; }
.video-card__icon { width: 26px; height: 26px; flex: none; }
.video-card__play:hover .video-card__pill, .video-card__play:focus-visible .video-card__pill { background: var(--red-700); transform: translateY(-1px); }
.video-card__play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.video-card__caption { margin: .8rem .35rem 0; color: var(--ink-3); font-size: .88rem; line-height: 1.5; }
@media print { .video-card__play { display: none; } }

.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--red), var(--blue));
}
.timeline li { position: relative; padding-inline-start: 2.4rem; padding-bottom: 1.6rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--red);
  border-radius: 50%;
  background: var(--surface);
}
.timeline__year {
  display: inline-block;
  margin-bottom: .4rem;
  padding: .12rem .6rem;
  border-radius: 999px;
  background: var(--red-100);
  color: var(--red-700);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.timeline strong { display: block; color: var(--navy-900); font-size: 1.04rem; }
.timeline__where { display: block; color: var(--ink-3); font-size: .95rem; }

/* ---------- Services explorer ---------- */
.explorer { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .explorer { grid-template-columns: 320px 1fr; gap: 2rem; align-items: start; } }

.explorer__tabs {
  position: relative; /* tabs measure their offset from this scroller */
  display: flex;
  gap: .5rem;
  margin-inline: calc(-1 * var(--gutter));
  padding: .25rem var(--gutter) .5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.explorer__tabs::-webkit-scrollbar { display: none; }
@media (min-width: 960px) {
  .explorer__tabs { flex-direction: column; margin: 0; padding: 0; overflow: visible; }
}

.svc-tab {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: none;
  padding: .7rem 1rem .7rem .7rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 600;
  font-size: .95rem;
  text-align: start;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
@media (min-width: 960px) { .svc-tab { white-space: normal; } }
.svc-tab .i { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--blue-50); color: var(--blue); transition: background-color .2s, color .2s; }
.svc-tab:hover { border-color: #c5d3ea; }
.svc-tab[aria-selected="true"] { border-color: var(--navy-900); background: var(--navy-900); color: #fff; box-shadow: var(--shadow); }
.svc-tab[aria-selected="true"] .i { background: var(--red); color: #fff; }

.svc-panel {
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg);
  animation: panelIn .35s var(--ease);
}
.svc-panel:focus-visible { outline-offset: 4px; }
.svc-panel__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.svc-panel__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--red), #f0525e);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(215, 32, 46, .75);
}
.svc-panel__icon .i { width: 28px; height: 28px; }
.svc-panel h3 { color: var(--navy-900); font-family: var(--font-display); font-weight: 600; font-size: clamp(1.45rem, 1.2vw + 1.1rem, 2rem); }
.svc-panel__tag { margin: .25rem 0 0; color: var(--ink-3); }
.svc-panel__what { color: var(--ink-2); font-size: 1.08rem; }
.svc-panel__grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .svc-panel__grid { grid-template-columns: 1fr 1fr; } }
.svc-panel__grid > div { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.svc-panel h4 { margin-bottom: .45rem; color: var(--blue); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
html[lang="ar"] .svc-panel h4 { font-size: .9rem; }
.svc-panel__grid p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.svc-panel__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--navy-800);
  font-weight: 600;
  font-size: .88rem;
}

@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Stats ---------- */
.stats {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 6vw, 5rem);
  background: var(--navy-900);
  color: #fff;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .14;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath d='M0 50h140l10-22 14 48 12-38 8 12h216' fill='none' stroke='%23FF6B75' stroke-width='2'/%3E%3C/svg%3E") center / 100% 160px no-repeat;
}
.stats__grid { position: relative; display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 800px) { .stats__grid { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 1.6rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); background: #10284a; }
.stat__num { margin: 0 0 .75rem; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(2.75rem, 3vw + 1.5rem, 3.75rem); line-height: 1; }
.stat__num small { margin-inline-start: .3rem; color: var(--red-300); font-family: var(--font); font-weight: 700; font-size: .38em; }
.stat p:last-child { margin: 0; color: #c9d5ea; }
.stats__source { position: relative; margin: 1.5rem 0 0; color: #8fa2c2; font-size: .85rem; text-align: center; }

/* ---------- Heart tools ---------- */
.tool-card {
  max-width: 960px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.tool-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); background: var(--bg); }
.tool-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1.1rem .75rem;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-weight: 700;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.tool-tab:hover { color: var(--navy-900); }
.tool-tab[aria-selected="true"] { background: var(--surface); color: var(--navy-900); }
.tool-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset-inline: 18%;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--red);
}
.tool-panel { padding: clamp(1.25rem, 4vw, 2.5rem); }
.tool-intro { color: var(--ink-2); }

.field { display: grid; gap: .4rem; min-width: 0; }
.field__label { color: var(--navy-900); font-weight: 700; font-size: .92rem; }
.field__label small { color: var(--ink-3); font-weight: 500; font-size: inherit; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(43, 99, 198, .15); }
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }

.bp__inputs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .75rem; align-items: end; }
.bp__submit { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .bp__inputs { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; }
  .bp__submit { grid-column: auto; height: 60px; }
}
.input-unit { position: relative; display: block; }
.input-unit span { position: absolute; top: 50%; inset-inline-end: 1rem; transform: translateY(-50%); color: var(--ink-3); font-size: .82rem; font-weight: 600; pointer-events: none; }
.bp input { height: 60px; padding-inline-end: 4.3rem; font-size: 1.55rem; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.bp input::-webkit-outer-spin-button, .bp input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bp__slash { padding-bottom: .55rem; color: #b7c1d0; font-size: 2rem; line-height: 1; }

.bp__scale { margin-top: 2rem; }
.bp__bar { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; height: 12px; }
.bp__bar span { border-radius: 999px; opacity: .3; transition: opacity .3s; }
.bp__bar span.is-active { opacity: 1; }
.bp__bar [data-cat="normal"] { background: var(--bp-normal); }
.bp__bar [data-cat="elevated"] { background: var(--bp-elevated); }
.bp__bar [data-cat="stage1"] { background: var(--bp-stage1); }
.bp__bar [data-cat="stage2"] { background: var(--bp-stage2); }
.bp__bar [data-cat="severe"] { background: var(--bp-severe); }
.bp__marker {
  position: absolute;
  top: 50%;
  inset-inline-start: 10%;
  width: 24px;
  height: 24px;
  border: 4px solid var(--navy-900);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.6);
  transition: inset-inline-start .55s var(--ease), opacity .3s, transform .3s var(--ease);
}
.bp__marker.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
[dir="rtl"] .bp__marker { transform: translate(50%, -50%) scale(.6); }
[dir="rtl"] .bp__marker.is-visible { transform: translate(50%, -50%) scale(1); }
.bp__labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: .65rem; color: var(--ink-3); font-size: .76rem; font-weight: 600; text-align: center; }

.bp__result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  animation: panelIn .35s var(--ease);
}
.bp__result[hidden] { display: none; }
.bp__result[data-cat="error"] { grid-template-columns: 1fr; border-color: #f3d9a4; background: #fff6e5; }
.bp__result[data-cat="low"] { border-color: #c9d8f3; background: var(--blue-50); }
.bp__result[data-cat="normal"] { border-color: #bfe6cf; background: #eaf8f0; }
.bp__result[data-cat="elevated"] { border-color: #f2de9b; background: #fff8e1; }
.bp__result[data-cat="stage1"] { border-color: #f6cda0; background: #fff1e3; }
.bp__result[data-cat="stage2"] { border-color: #f4bcc1; background: #fdecee; }
.bp__result[data-cat="severe"] { border-color: var(--bp-severe); background: var(--bp-severe); color: #fff; }
.bp__reading { display: grid; justify-items: center; min-width: 100px; padding: .8rem; border-radius: 14px; background: rgba(255, 255, 255, .75); text-align: center; }
.bp__reading span { color: var(--navy-900); font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.6rem; line-height: 1; }
.bp__reading small { margin-top: .3rem; color: var(--ink-3); font-size: .75rem; }
.bp__result-cat { margin: 0 0 .3rem; font-weight: 800; font-size: 1.1rem; }
.bp__result-why { margin: 0 0 .5rem; color: var(--ink); font-size: .93rem; font-weight: 600; }
.bp__result-text { margin: 0 0 .9rem; color: var(--ink-2); }
.bp__result[data-cat="error"] .bp__result-text { margin: 0; }
.bp__result[data-cat="severe"] .bp__reading { background: rgba(255, 255, 255, .12); }
.bp__result[data-cat="severe"] .bp__reading span { color: #fff; }
.bp__result[data-cat="severe"] .bp__reading small, .bp__result[data-cat="severe"] .bp__result-text { color: #fbd5d9; }
.bp__result[data-cat="severe"] .btn { background: #fff; color: var(--bp-severe); box-shadow: none; }
@media (max-width: 539px) { .bp__result { grid-template-columns: 1fr; } .bp__reading { justify-self: start; } }

.fine { margin: 1.25rem 0 0; color: var(--ink-3); font-size: .82rem; line-height: 1.5; }

/* Checkbox cards */
.check {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem .95rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 600;
  font-size: .94rem;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s, background-color .2s, color .2s;
}
.check:hover { border-color: #c5d3ea; }
.check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check__box {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border: 2px solid #c3cddc;
  border-radius: 7px;
  transition: background-color .2s, border-color .2s;
}
.check__box .i { width: 14px; height: 14px; color: #fff; stroke-width: 3; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .2s var(--ease); }
.check input:checked + .check__box { border-color: var(--red); background: var(--red); }
.check input:checked + .check__box .i { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 3px solid rgba(43, 99, 198, .45); outline-offset: 2px; }
.check:has(input:checked) { border-color: var(--red); background: var(--red-100); color: var(--navy-900); }

.risk fieldset { margin: 0; padding: 0; border: 0; }
.risk legend { margin-bottom: 1rem; padding: 0; color: var(--navy-900); font-weight: 700; }
.risk__grid { display: grid; gap: .6rem; }
@media (min-width: 560px) { .risk__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .risk__grid { grid-template-columns: repeat(3, 1fr); } }

.risk__summary {
  display: grid;
  gap: 1.1rem;
  align-items: center;
  margin-top: 1.75rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
@media (min-width: 760px) { .risk__summary { grid-template-columns: auto 1fr auto; gap: 1.5rem; } }
.risk__meter { display: flex; gap: 4px; }
.risk__meter span { width: 12px; height: 32px; border-radius: 4px; background: #dce3ee; transition: background-color .3s; }
.risk__meter span.on { background: var(--bp-elevated); }
.risk__meter[data-level="many"] span.on { background: var(--red); }
.risk__count { margin: 0; color: var(--navy-900); font-weight: 800; }
.risk__text { margin: .2rem 0 0; color: var(--ink-2); font-size: .95rem; }
.risk__summary .btn { justify-self: start; }

/* ---------- Requests ---------- */
.req-grid { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .req-grid { grid-template-columns: repeat(3, 1fr); } }

.req-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.req-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.req-card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--blue-50); color: var(--blue); }
.req-card__icon .i { width: 26px; height: 26px; }
.req-card h3 { margin-top: .35rem; color: var(--navy-900); font-size: 1.3rem; }
.req-card p { flex: 1; margin: 0; color: var(--ink-3); }
.req-card .btn { margin-top: .5rem; }
.req-card__badge {
  position: absolute;
  top: 1.25rem;
  inset-inline-end: 1.25rem;
  padding: .28rem .65rem;
  border-radius: 999px;
  background: #fff4d6;
  color: #7a4f00;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.req-card--featured { border-color: transparent; background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #fff; }
.req-card--featured h3 { color: #fff; }
.req-card--featured p { color: #c9d5ea; }
.req-card--featured .req-card__icon { background: rgba(255, 255, 255, .1); color: var(--red-300); }

.visit {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg);
}
@media (min-width: 960px) { .visit { grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: start; } }
.visit__title { margin-bottom: 1.5rem; color: var(--navy-900); font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 1vw + 1.1rem, 1.8rem); }
.steps { display: grid; gap: 1.35rem; margin: 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; }
.step__num { display: grid; grid-row: span 2; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--red-100); color: var(--red); font-weight: 800; }
.step h4 { margin-top: .4rem; color: var(--navy-900); font-size: 1.05rem; }
.step p { margin: 0; color: var(--ink-3); }

.bring { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.bring__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.bring__head h4 { color: var(--navy-900); font-size: 1.05rem; }
.bring__progress { color: var(--ok); font-size: .85rem; font-weight: 700; }
.bring__bar { height: 6px; margin: .8rem 0 1rem; overflow: hidden; border-radius: 999px; background: #dce3ee; }
.bring__bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ok); transition: width .35s var(--ease); }
.bring__list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.bring .check:has(input:checked) { border-color: #bfe6cf; background: var(--ok-bg); }
.bring .check input:checked + .check__box { border-color: var(--ok); background: var(--ok); }
.bring .check:has(input:checked) .check__label { text-decoration: line-through; text-decoration-color: rgba(18, 138, 75, .55); }

/* ---------- Team ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.chip {
  padding: .55rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: #c5d3ea; }
.chip[aria-pressed="true"] { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }

.team-grid { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.person {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.person[hidden] { display: none; }
.person.pop { animation: panelIn .35s var(--ease); }
.person__avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 18px;
  background: var(--blue-100);
  color: var(--blue);
  font-weight: 800;
  font-size: 1.02rem;
}
.person:nth-child(even) .person__avatar { background: var(--red-100); color: var(--red-700); }
.person--lead .person__avatar { background: linear-gradient(135deg, var(--blue), var(--navy-900)); color: #fff; }
.person h3 { color: var(--navy-900); font-size: 1.02rem; }
.person p { margin: .2rem 0 0; color: var(--ink-3); font-size: .88rem; line-height: 1.4; }
.person a { display: inline-block; margin-top: .2rem; color: var(--blue); font-weight: 700; font-size: .88rem; text-decoration: none; }
.person a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1rem; }
@media (min-width: 960px) {
  .faq { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
  .faq .section-head { position: sticky; top: calc(var(--header-h) + 28px); }
}
.faq .lead a { font-weight: 700; }
.faq__list { display: grid; gap: .75rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: background-color .2s, border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #d3dcea; background: var(--surface); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  color: var(--navy-900);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--red); transition: transform .25s var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq__body { padding: 0 1.25rem 1.2rem; color: var(--ink-2); }
.faq__body p { margin: 0; }
.faq__body ul { margin: .5rem 0 0; padding-inline-start: 1.25rem; }
.faq__body a { font-weight: 700; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 1.25rem; }
@media (min-width: 960px) {
  .contact { grid-template-columns: 1fr 1.2fr; grid-template-areas: "hours map" "links map" "form form"; }
  .hours-card { grid-area: hours; }
  .contact-links { grid-area: links; }
  .contact__map { grid-area: map; }
  .contact-form { grid-area: form; }
}

.card { padding: clamp(1.25rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-sm); }

.hours-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.hours-card h3 { display: flex; align-items: center; gap: .5rem; color: var(--navy-900); font-size: 1.15rem; }
.hours-card h3 .i { color: var(--red); }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .62rem .75rem; border-bottom: 1px dashed var(--line); font-size: .96rem; }
.hours th { color: var(--ink-2); font-weight: 600; text-align: start; }
.hours td { color: var(--navy-900); font-weight: 600; text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours td.is-closed { color: var(--ink-3); font-weight: 500; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
@media (max-width: 400px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
  .hours th, .hours td { padding: .55rem .4rem; font-size: .9rem; }
}
.hours tr.is-today th, .hours tr.is-today td { background: var(--blue-50); color: var(--navy-900); }
.hours tr.is-today th { border-start-start-radius: 10px; border-end-start-radius: 10px; }
.hours tr.is-today td { border-end-end-radius: 10px; border-start-end-radius: 10px; }
/* A closure on a normal office day: today's hours are crossed out and the tag reads "Closed today". */
.hours tr.is-closed-today td { color: var(--ink-3); font-weight: 500; text-decoration: line-through; }
.monitor__days li.is-closed-today small { text-decoration: line-through; }
.hours-notice {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: 0 0 1rem;
  padding: .7rem .85rem;
  border: 1px solid var(--notice-line);
  border-radius: var(--radius-sm);
  background: var(--notice-bg);
  font-size: .9rem;
  line-height: 1.45;
}
.hours-notice[hidden] { display: none; }
.today-tag {
  display: inline-block;
  margin-inline-start: .5rem;
  padding: .12rem .45rem;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.contact-links { display: grid; gap: .75rem; align-content: start; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.contact-link:hover { border-color: #c5d3ea; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.contact-link__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--red-100); color: var(--red); }
.contact-link small { display: block; color: var(--ink-3); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-link strong { display: block; color: var(--navy-900); font-size: 1rem; overflow-wrap: anywhere; }

.contact__map { min-height: 340px; padding: 0; overflow: hidden; }
.contact__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

.contact-form__head h3 { color: var(--navy-900); font-size: 1.25rem; }
.contact-form__head p { margin: .35rem 0 1.25rem; color: var(--ink-3); }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .field--full { grid-column: 1 / -1; }
}
.contact-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.form-status { margin: 0; font-weight: 600; }
.form-status.is-error { color: var(--red-700); }
.form-status.is-ok { color: var(--ok); }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(3rem, 6vw, 4.5rem); background: var(--navy-950); color: #a9b8d2; }
.footer__grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 860px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer__logo { padding: .7rem 1.1rem .7rem .8rem; border-radius: 16px; background: #fff; }
.site-footer a.footer__logo:hover { text-decoration: none; }
.footer__brand p { max-width: 22rem; margin: 1rem 0 0; }
.footer__title { margin-bottom: 1rem; color: #fff; font-family: var(--font); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
html[lang="ar"] .footer__title { font-size: .95rem; }
.site-footer address { font-style: normal; color: #dce5f5; }
.footer__note { margin: .6rem 0 0; font-size: .88rem; }
.site-footer a { color: #dce5f5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .86rem; }
.footer__bottom p { margin: 0; }
.footer__by { display: flex; align-items: center; gap: .45rem; }
.footer__by a { display: inline-flex; align-items: center; gap: .4rem; color: #fff; font-weight: 700; letter-spacing: .04em; }
.footer__by img { width: 20px; height: 20px; }

/* ---------- Mobile quick-action bar ---------- */
.action-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  padding: .55rem var(--gutter) calc(.55rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 -10px 26px -14px rgba(14, 26, 43, .25);
}
.action-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .45rem .25rem;
  border-radius: 12px;
  color: var(--navy-900);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}
.action-bar a .i { width: 1.3em; height: 1.3em; }
.action-bar a.is-primary { background: var(--red); color: #fff; }
@media (min-width: 760px) { .action-bar { display: none; } }
@media (max-width: 759px) {
  .site-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
/* Web chat (cdn.apigateway.co, an iframe it adds to <body>). It sits in its own bottom-right corner.
   On phones it is lifted above the quick-action bar, but only while the chat's own inline bottom is 0:
   when the phone keyboard opens, the chat writes its own bottom and max-height, and those must win.
   Remove this block together with its script tag in index.html. */
@media (max-width: 759px) {
  iframe[id^="webchat-floating-iframe-"][style*="bottom: 0px"] {
    bottom: calc(66px + env(safe-area-inset-bottom)) !important;
    max-height: calc(100vh - 66px - env(safe-area-inset-bottom)) !important;
    max-height: calc(100dvh - 66px - env(safe-area-inset-bottom)) !important;
  }
}
@media print { iframe[id^="webchat-floating-iframe-"] { display: none !important; } }

/* Chat launcher: the site's own chat button, which opens the web chat's panel.
   main.js shows it only once the chat has loaded and its toggle is found; while the panel is closed it hides
   the chat's frame (class on <html>), and if anything fails it gives the chat's own button back.
   To remove it: the .chat-launcher button in index.html, this block, the "Chat launcher" block in main.js,
   and the 'chat.launcher' key in i18n-ar.js. */
.chat-launcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  height: 56px;
  padding-inline: 1rem 1.3rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  font: 700 1rem/1 var(--font);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  animation: chatLauncherIn .35s var(--ease) backwards;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.chat-launcher[hidden], .nav-open .chat-launcher { display: none; }
.chat-launcher:hover { background: var(--navy-800); transform: translateY(-2px); }
.chat-launcher:focus-visible { border-radius: 999px; }
/* For a moment after it opens the panel, the button stays on top of the chat's frame (see main.js) */
.chat-launcher.is-holding { z-index: 2147483640; }
.chat-launcher__icon { flex: none; width: 26px; height: 26px; }
.chat-launcher__bubble { fill: #fff; }
.chat-launcher__heart { fill: var(--red); }
@keyframes chatLauncherIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 759px) {
  .chat-launcher { bottom: calc(82px + env(safe-area-inset-bottom)); width: 56px; padding: 0; justify-content: center; }
  .chat-launcher__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* The footer's last lines end above the button (more room than the action bar alone needs) */
  .site-footer { padding-bottom: calc(128px + env(safe-area-inset-bottom)); }
}
@media (min-width: 760px) { .site-footer { padding-bottom: 4rem; } }
@media (prefers-reduced-motion: reduce) { .chat-launcher { animation: none; } }
@media print { .chat-launcher { display: none !important; } }
/* While the launcher is in charge and the panel is closed, the chat's own frame is hidden */
.chat-launcher-closed iframe[id^="webchat-floating-iframe-"] { visibility: hidden !important; pointer-events: none !important; }

/* ---------- Dialogs ---------- */
.modal {
  width: min(560px, 100% - 2 * var(--gutter));
  max-width: 100vw;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.modal[open] { display: flex; flex-direction: column; animation: modalIn .3s var(--ease); }
.modal::backdrop { background: rgba(6, 20, 42, .62); backdrop-filter: blur(3px); }
.modal--wide { width: min(900px, 100% - 2 * var(--gutter)); height: calc(100vh - 2rem); height: calc(100dvh - 2rem); }
@media (max-width: 640px) {
  .modal--wide { width: 100%; height: 100vh; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
}
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.modal__head h2 { margin: 0; font-size: clamp(1.2rem, 1vw + 1rem, 1.45rem); }
.modal__eyebrow { margin: 0 0 .15rem; color: var(--red); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.modal__actions { display: flex; align-items: center; gap: .5rem; }
.modal__body { padding: 1.25rem 1.5rem 1.5rem; overflow-y: auto; }
.modal__body > p:first-child { color: var(--ink-2); }
.modal__frame { position: relative; flex: 1; min-height: 0; background: var(--bg); }
.modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.loader { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; color: var(--ink-3); font-weight: 600; }
.loader__spin { width: 36px; height: 36px; border: 3px solid var(--blue-100); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
.modal.is-loaded .loader { display: none; }

/* Office notice pop-up (closures) */
.modal--notice { width: min(440px, 100% - 2 * var(--gutter)); }
.modal__body > p.notice-pop {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: 0 0 1.25rem;
  padding: .95rem 1.05rem;
  border: 1px solid var(--notice-line);
  border-radius: var(--radius);
  background: var(--notice-bg);
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.5;
}
.notice-pop strong { display: block; font-size: 1.12rem; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--navy-900); color: var(--navy-900); }

.signs { display: grid; gap: .65rem; margin: 1rem 0; padding: 0; list-style: none; }
.signs li { display: flex; gap: .75rem; padding: .9rem 1rem; border-radius: 14px; background: var(--red-100); color: var(--ink); font-size: .96rem; }
.signs li .i { margin-top: .2rem; color: var(--red); }
.signs strong { color: var(--navy-900); }
#signs-dialog .btn--block { margin-top: 1.25rem; }

@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Seasonal look: Christmas ----------
   main.js adds these pieces to the hero while the look is on (see SITE.season in main.js):
   snow, lights along the top, a snowy bottom edge, a Santa hat on the heart monitor
   and a greeting beside the office status. */
.xmas-snow, .xmas-lights, .xmas-drift { position: absolute; z-index: -1; pointer-events: none; }
.xmas-snow { inset: 0; width: 100%; height: 100%; }
.xmas-lights { inset: 0 0 auto; height: 34px; overflow: hidden; }
.xmas-lights svg { display: block; }
.xmas-lights path { fill: none; stroke: #2f7d5f; stroke-width: 1.6; }
.xmas-bulb { animation: xmasTwinkle 2.4s ease-in-out infinite alternate; }
.xmas-bulb rect { fill: #2f7d5f; }
.xmas-bulb--r ellipse { fill: #ff6b75; }
.xmas-bulb--y { animation-delay: -.8s; }
.xmas-bulb--y ellipse { fill: #ffd56b; }
.xmas-bulb--g { animation-delay: -1.6s; }
.xmas-bulb--g ellipse { fill: #57dba6; }
@keyframes xmasTwinkle { from { opacity: 1; } to { opacity: .4; } }
.xmas-drift { inset: auto 0 -1px; height: clamp(22px, 3.2vw, 38px); overflow: hidden; }
.xmas-drift svg { display: block; width: max(100%, 900px); height: 100%; fill: var(--surface); }
.xmas-hat {
  position: absolute;
  z-index: 2;
  top: -46px;
  inset-inline-start: -36px;
  width: 88px;
  transform: rotate(-14deg);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35));
  pointer-events: none;
}
[dir="rtl"] .xmas-hat { transform: scaleX(-1) rotate(-14deg); }
.xmas-hat svg { display: block; width: 100%; height: auto; }
@media (max-width: 999px) { .xmas-hat { top: -38px; inset-inline-start: -10px; width: 72px; } }
.xmas-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; }
.xmas-greeting {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  padding: .42rem .9rem .42rem .7rem;
  border: 1px solid rgba(255, 213, 107, .42);
  border-radius: 999px;
  background: rgba(255, 213, 107, .1);
  color: #ffe9b0;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.3;
}
.xmas-greeting svg { width: 14px; height: 14px; flex: none; fill: #ffd56b; }
.look-christmas .scroll-progress { height: 3px; }
.look-christmas .scroll-progress span { background: repeating-linear-gradient(135deg, var(--red) 0 8px, #fff 8px 16px); }

/* ---------- Print ---------- */
@media print {
  .js .reveal { opacity: 1; transform: none; }
  .util, .notice__close, .xmas-snow, .xmas-lights, .xmas-drift, .xmas-hat, .action-bar, .nav-toggle, .lang-toggle, .monitor, .hero__badge, .contact__map, .contact-form { display: none !important; }
  .site-header { position: static; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
