/* ============================================================
   AL AMAL — Laboratoire d'Analyses Médicales
   Design system: "Le Journal" — editorial / magazine layout
   Palette: ecru paper · deep fig ink · raspberry · jade · apricot
   Type: Fraunces (display serif) · DM Sans (body) · DM Mono (data)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --paper: #eef3f5;
  --paper-2: #e2ecef;
  --surface: #ffffff;

  --ink: #0e2a3a;
  --ink-2: #143647;
  --muted: #51707c;

  --brand: #1287a8;
  --brand-deep: #0e6c88;
  --brand-tint: #d6eaf1;

  --leaf: #18a97f;
  --leaf-deep: #0f8462;
  --leaf-tint: #d5f0e7;

  --gold: #3d86c0;
  --gold-tint: #dfeaf7;

  --line: #d5e2e6;
  --line-strong: #b8ccd2;
  --rule: #0e2a3a;

  --shadow-sm: 0 1px 2px rgba(14, 42, 58, .05), 0 2px 8px rgba(14, 42, 58, .05);
  --shadow-md: 0 10px 30px rgba(14, 42, 58, .08), 0 2px 6px rgba(14, 42, 58, .05);
  --shadow-lg: 0 30px 70px rgba(14, 42, 58, .14), 0 10px 24px rgba(14, 42, 58, .07);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;

  --container: 1220px;
  --radius: 16px;
  --radius-lg: 26px;
  --arch: 150px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
iframe { border: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.015em;
  color: var(--ink);
  font-optical-sizing: auto;
}
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 26px; }
.section-padding { padding-block: clamp(66px, 9vw, 130px); }
.bg-light { background: var(--paper-2); }

/* ---------- Editorial section header ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--brand); }

.section-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  gap: 18px;
  margin-bottom: clamp(44px, 6vw, 72px);
  padding-bottom: clamp(20px, 3vw, 30px);
  border-bottom: 1.5px solid var(--rule);
}
.section-title h2 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  font-weight: 500;
  max-width: 16ch;
  letter-spacing: -.02em;
}
.section-title h2 em { font-style: italic; color: var(--brand); }

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1.5px solid var(--rule);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.logo a { display: flex; align-items: center; gap: 12px; }
.logo img { width: 44px; height: 44px; object-fit: contain; }
.logo-text h1 { font-family: var(--font-display); font-size: 1.42rem; font-weight: 600; letter-spacing: .01em; line-height: 1; }
.logo-text p { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.header-right { display: flex; align-items: center; gap: 14px; }

#main-nav { display: flex; align-items: center; gap: 30px; }
#nav-menu { display: flex; align-items: center; gap: 28px; }
#nav-menu > li > a { font-size: .93rem; font-weight: 500; color: var(--muted); padding-block: 6px; position: relative; transition: color .2s var(--ease); }
#nav-menu > li > a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
#nav-menu > li > a:hover, #nav-menu > li > a.active { color: var(--ink); }
#nav-menu > li > a:hover::after, #nav-menu > li > a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 16px; }

.language-selector { position: relative; }
.dropdown { position: relative; }
.dropbtn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .06em; color: var(--ink); padding: 8px 13px; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--surface); transition: border-color .2s, background .2s; }
.dropbtn i { font-size: .6rem; transition: transform .25s var(--ease); }
.language-selector:hover .dropbtn, .language-selector:focus-within .dropbtn, .language-selector.open .dropbtn { background: var(--ink); color: #fff; border-color: var(--ink); }
.language-selector:hover .dropbtn i, .language-selector.open .dropbtn i { transform: rotate(180deg); }
.dropdown-content { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); min-width: 120px; background: var(--surface); border: 1.5px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-md); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 30; }
.language-selector:hover .dropdown-content, .language-selector:focus-within .dropdown-content, .language-selector.open .dropdown-content { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-content a { display: block; padding: 9px 12px; border-radius: 9px; font-family: var(--font-mono); font-weight: 500; font-size: .82rem; color: var(--muted); transition: background .15s, color .15s; }
.dropdown-content a:hover { background: var(--brand-tint); color: var(--brand-deep); }
.dropdown-content a.active { background: var(--ink); color: #fff; }

.nav-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; font-weight: 600; font-size: .9rem; padding: 11px 21px; border-radius: 999px; box-shadow: 0 8px 18px rgba(18, 135, 168, .28); transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.nav-cta::before { content: "\f095"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .8rem; }
.nav-cta:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(18, 135, 168, .34); }

.mobile-menu { display: none; width: 46px; height: 46px; border-radius: 13px; border: 1.5px solid var(--rule); background: var(--surface); align-items: center; justify-content: center; font-size: 1.1rem; color: var(--ink); transition: background .2s, border-color .2s; }
.mobile-menu.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.menu-overlay { position: fixed; inset: 0; background: rgba(14, 42, 58, .5); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 900; }
.menu-overlay.active { opacity: 1; visibility: visible; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-body); font-weight: 600; font-size: .98rem; padding: 15px 30px; border-radius: 999px; background: var(--brand); color: #fff; border: 1.5px solid var(--brand); box-shadow: 0 12px 26px rgba(18, 135, 168, .26); transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(18, 135, 168, .32); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--rule); box-shadow: none; }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-md); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(58px, 8vw, 112px);
  background:
    /* concentric "scope" halo rings behind the result card */
    radial-gradient(circle at 80% 42%, transparent 0 244px, rgba(18, 135, 168, .11) 245px 246px, transparent 247px),
    radial-gradient(circle at 80% 42%, transparent 0 310px, rgba(61, 134, 192, .13) 311px 313px, transparent 314px),
    radial-gradient(circle at 80% 42%, transparent 0 382px, rgba(24, 169, 127, .10) 383px 385px, transparent 386px),
    /* richer colour mesh */
    radial-gradient(760px 520px at 90% -6%, rgba(18, 135, 168, .20), transparent 60%),
    radial-gradient(680px 460px at 0% 108%, rgba(24, 169, 127, .17), transparent 58%),
    radial-gradient(560px 440px at 55% 128%, rgba(61, 134, 192, .14), transparent 60%),
    var(--paper);
}
/* graph-paper texture */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(14, 42, 58, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 42, 58, .05) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(135% 100% at 50% 20%, #000 32%, transparent 76%);
  mask-image: radial-gradient(135% 100% at 50% 20%, #000 32%, transparent 76%);
}
/* soft organic blob accent */
.hero::after {
  content: "";
  position: absolute;
  bottom: -170px; inset-inline-start: -130px;
  width: 430px; height: 430px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 42% 42%, rgba(24, 169, 127, .16), transparent 62%);
  border-radius: 54% 46% 42% 58% / 50% 56% 44% 50%;
}
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 5vw, 74px); }
.hero-copy, .hero-visual { min-width: 0; }
.hero-copy { max-width: 640px; }
.hero-copy .eyebrow { margin-bottom: 24px; }
.hero-copy h1 { font-size: clamp(2.7rem, 6vw, 4.7rem); font-weight: 500; line-height: 1.01; margin-bottom: 22px; overflow-wrap: break-word; }
.hero-copy h1 .accent { font-style: italic; color: var(--brand); }
.hero-copy h2 { font-family: var(--font-body); font-weight: 400; font-size: clamp(1.04rem, 1.7vw, 1.22rem); line-height: 1.6; letter-spacing: normal; color: var(--muted); margin-bottom: 34px; max-width: 52ch; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; font-size: .82rem; font-weight: 500; color: var(--ink); box-shadow: var(--shadow-sm); }
.chip i { color: var(--leaf); font-size: .85rem; }

/* Animated ECG line */
.hero-ecg { position: absolute; inset-inline: 0; bottom: 7%; width: 100%; height: 120px; z-index: 0; opacity: .34; pointer-events: none; }
.hero-ecg svg { width: 100%; height: 100%; display: block; }
.hero-ecg path { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ecgDraw 3.2s var(--ease) .3s forwards; }
@keyframes ecgDraw { to { stroke-dashoffset: 0; } }

/* Floating badges */
.hero-visual { position: relative; }
.float-badge { position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 13px 17px; display: flex; align-items: center; gap: 11px; animation: floaty 6s ease-in-out infinite; }
.float-rating { top: -26px; inset-inline-start: -22px; flex-direction: column; align-items: flex-start; gap: 3px; }
.float-rating .stars { color: var(--gold); letter-spacing: 2px; font-size: .82rem; }
.float-rating .fr-text { font-size: .76rem; color: var(--muted); line-height: 1.3; }
.float-rating .fr-text b { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); font-weight: 600; }
.float-doctor { bottom: -30px; inset-inline-end: -16px; animation-delay: -3s; }
.float-doctor strong { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--ink); display: block; line-height: 1.2; }
.float-doctor em { font-style: normal; font-size: .72rem; color: var(--muted); }
.float-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; flex-shrink: 0; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Hero result card */
.report-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; width: 100%; max-width: 480px; margin-inline-start: auto; }
.report-card::before { content: ""; position: absolute; inset-inline: 28px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--brand), var(--gold)); }
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px dashed var(--line-strong); }
.report-code { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.report-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .06em; color: var(--leaf-deep); background: var(--leaf-tint); padding: 5px 11px; border-radius: 999px; text-transform: uppercase; white-space: nowrap; }
.report-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 3px rgba(24, 169, 127, .2); }
.report-rows { display: flex; flex-direction: column; gap: 22px; }
.row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.row-name { font-weight: 600; font-size: .98rem; color: var(--ink); }
.row-name em { font-family: var(--font-mono); font-style: normal; font-size: .66rem; letter-spacing: .04em; color: var(--muted); margin-inline-start: 6px; }
.row-val { font-family: var(--font-mono); font-weight: 500; font-size: .96rem; color: var(--ink); white-space: nowrap; }
.row-val em { font-style: normal; font-size: .72rem; color: var(--muted); margin-inline-start: 3px; }
.range { position: relative; height: 8px; border-radius: 999px; background: var(--paper-2); }
.range-fill { position: absolute; inset-block: 0; inset-inline: 22%; border-radius: 999px; background: linear-gradient(90deg, rgba(24, 169, 127, .4), rgba(24, 169, 127, .62)); }
.range-marker { position: absolute; top: 50%; inset-inline-start: var(--m, 50%); width: 15px; height: 15px; border-radius: 50%; background: var(--brand); border: 3px solid var(--surface); box-shadow: 0 2px 6px rgba(14, 42, 58, .3); transform: translate(-50%, -50%); }
.row-ref { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .02em; color: var(--muted); margin-top: 9px; }

/* ============================================================
   ABOUT — editorial split (image left, text right)
   ============================================================ */
.about-content { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(32px, 5vw, 70px); margin-bottom: clamp(52px, 6vw, 84px); }
.about-text, .about-image, .tech-details, .tech-image, .contact-info, .map-container, .service-details, .footer-column { min-width: 0; }
.about-image { position: relative; order: -1; }
.about-image img { width: 100%; border-radius: var(--arch) var(--radius) var(--arch) var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.2; object-fit: cover; }
.about-image::after { content: ""; position: absolute; inset-inline-start: -16px; bottom: -16px; width: 58%; height: 56%; border: 1.5px solid var(--brand); border-radius: var(--radius) var(--arch) var(--radius) var(--arch); z-index: -1; }
.about-text p { color: var(--muted); margin-bottom: 16px; max-width: 62ch; }
.about-text p:first-child { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 400; line-height: 1.35; color: var(--ink); margin-bottom: 22px; }

/* Stats — editorial numerals band */
.stats-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1.5px solid var(--rule); }
.stat-item { padding: clamp(24px, 3vw, 34px) 22px clamp(8px, 1vw, 12px) 0; text-align: start; position: relative; }
.stat-item:not(:last-child) { border-inline-end: 1px solid var(--line); }
.stat-item:not(:last-child) { padding-inline-end: 22px; }
.stat-number { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 5.4vw, 4.2rem); color: var(--brand); line-height: 1; letter-spacing: -.03em; }
.stat-number::after { content: "+"; color: var(--gold); }
.stat-title { margin-top: 12px; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* ============================================================
   SERVICES — bento grid
   ============================================================ */
.services-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; grid-auto-rows: 1fr; }
.service-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.service-card::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 100%; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 56px; height: 56px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--brand-deep); background: var(--brand-tint); margin-bottom: 20px; transition: background .3s, color .3s; }
.service-card:hover .service-icon { background: var(--brand); color: #fff; }
.service-details { display: flex; flex-direction: column; height: 100%; }
.service-details h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 10px; }
.service-details p { color: var(--muted); font-size: .93rem; }
.svc-tag { display: inline-block; align-self: flex-start; font-family: var(--font-mono); font-size: .64rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); background: var(--gold-tint); border-radius: 7px; padding: 4px 9px; margin-top: auto; }
.svc-tag:not(:only-child) { margin-top: 18px; }

/* Bento spans + featured tiles */
.service-card:nth-child(1) { grid-column: span 2; background: var(--ink); border-color: var(--ink); }
.service-card:nth-child(1) h3 { color: #fff; font-size: 1.7rem; }
.service-card:nth-child(1) p { color: rgba(255, 255, 255, .72); font-size: 1rem; max-width: 42ch; }
.service-card:nth-child(1) .service-icon { background: var(--brand); color: #fff; }
.service-card:nth-child(1) .svc-tag { color: #fff; background: rgba(255, 255, 255, .12); }
.service-card:nth-child(6) { grid-column: span 2; background: var(--brand-tint); border-color: transparent; }
.service-card:nth-child(6) .service-icon { background: var(--brand); color: #fff; }

/* ============================================================
   TECHNOLOGY — dark full panel
   ============================================================ */
#technology { background: radial-gradient(700px 400px at 85% 0%, rgba(18, 135, 168, .2), transparent 62%), radial-gradient(600px 360px at 8% 100%, rgba(24, 169, 127, .14), transparent 60%), var(--ink); color: #fff; }
#technology .eyebrow { color: var(--gold); }
#technology .eyebrow::before { background: var(--gold); }
#technology .section-title { border-bottom-color: rgba(255, 255, 255, .18); }
#technology .section-title h2 { color: #fff; }
#technology .section-title h2 em { color: var(--gold); }
.tech-content { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 54px); }
.tech-details > p { color: rgba(255, 255, 255, .74); font-size: clamp(1.1rem, 2vw, 1.35rem); font-family: var(--font-display); font-weight: 400; line-height: 1.4; margin-bottom: 40px; max-width: 40ch; }
.tech-details ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 44px; }
.tech-details ul li { display: flex; gap: 16px; align-items: flex-start; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.tech-details ul li > i { flex-shrink: 0; font-size: 1.3rem; color: var(--leaf); }
.tech-details ul li h3 { color: #fff; font-size: 1.16rem; font-weight: 600; margin-bottom: 6px; }
.tech-details ul li p { color: rgba(255, 255, 255, .62); font-size: .93rem; }
.tech-image img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 16 / 6; object-fit: cover; border: 1px solid rgba(255, 255, 255, .1); }

/* ============================================================
   CTA — asymmetric band
   ============================================================ */
.cta-section { padding-block: clamp(56px, 7vw, 92px); background: var(--paper-2); }
.cta-content { position: relative; overflow: hidden; background: radial-gradient(560px 300px at 100% 0%, rgba(61, 134, 192, .5), transparent 58%), linear-gradient(120deg, var(--brand-deep), var(--brand)); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 68px); color: #fff; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1.5fr auto; align-items: center; gap: 36px; }
.cta-content::after { content: ""; position: absolute; bottom: -80px; inset-inline-start: -60px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(24, 169, 127, .4), transparent 62%); pointer-events: none; }
.cta-title { position: relative; color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 500; margin-bottom: 12px; max-width: 18ch; }
.cta-text { position: relative; color: rgba(255, 255, 255, .9); max-width: 52ch; }
.cta-buttons { position: relative; display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.cta-section .btn { background: #fff; color: var(--brand-deep); border-color: #fff; box-shadow: var(--shadow-md); }
.cta-section .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-section .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); box-shadow: none; }
.cta-section .btn-outline:hover { background: #fff; color: var(--brand-deep); border-color: #fff; }

/* ============================================================
   TESTIMONIALS — editorial pull-quote
   ============================================================ */
.testimonials-container { max-width: 940px; margin-inline: auto; }
.testimonial { position: relative; background: transparent; text-align: start; padding-top: 46px; opacity: 0; transition: opacity .4s var(--ease); }
.testimonial::before { content: "\201C"; position: absolute; top: -34px; inset-inline-start: -8px; font-family: var(--font-display); font-weight: 600; font-size: 8rem; line-height: 1; color: var(--brand); opacity: .18; }
.testimonial.fade-in { opacity: 1; }
.testimonial.fade-out { opacity: 0; }
.testimonial-text p { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 3.2vw, 2.3rem); line-height: 1.35; color: var(--ink); }
.testimonial-avatar { width: 56px; height: 56px; border-radius: 50%; margin: 32px 0 0; display: flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand-deep); }
.avatar-letter { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.testimonial-author { margin-top: 16px; font-family: var(--font-display); font-weight: 600; font-size: 1.14rem; }
.testimonial-role { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-top: 4px; }
.testimonial-controls { display: flex; align-items: center; justify-content: flex-start; gap: 20px; margin-top: 40px; padding-top: 26px; border-top: 1.5px solid var(--rule); }
.prev-testimonial, .next-testimonial { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--rule); background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.prev-testimonial:hover, .next-testimonial:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.testimonial-dots { display: flex; gap: 9px; margin-inline-start: auto; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); cursor: pointer; transition: background .25s, transform .25s; }
.dot.active { background: var(--brand); transform: scale(1.3); }

/* ============================================================
   FAQ — editorial list
   ============================================================ */
.faq-container { max-width: 900px; display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line-strong); transition: none; }
.faq-item:first-child { border-top: 1px solid var(--line-strong); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 6px; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.14rem, 2vw, 1.42rem); color: var(--ink); cursor: pointer; transition: color .2s; }
.faq-item:hover .faq-question, .faq-item.active .faq-question { color: var(--brand); }
.faq-question i { flex-shrink: 0; font-size: .8rem; color: var(--brand); transition: transform .3s var(--ease); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-item.active .faq-answer { max-height: 480px; }
.faq-answer p { padding: 0 6px 28px; color: var(--muted); font-size: 1rem; max-width: 68ch; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-container { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 4vw, 54px); align-items: stretch; }
.contact-info { padding-inline-end: clamp(0px, 2vw, 20px); }
.contact-info h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 500; margin-bottom: 30px; }
.contact-info ul { display: flex; flex-direction: column; }
.contact-info ul li { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--line-strong); }
.contact-info ul li:last-child { border-bottom: 1px solid var(--line-strong); }
.contact-info ul li > i { flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand-deep); font-size: 1.05rem; }
.contact-info ul li div { font-size: .96rem; color: var(--muted); line-height: 1.7; }
.contact-info ul li strong { color: var(--ink); font-weight: 600; }
.contact-link { color: var(--brand-deep); font-weight: 600; transition: color .2s; }
.contact-link:hover { color: var(--brand); text-decoration: underline; }
.highlight { display: inline-block; margin-top: 5px; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .04em; color: var(--leaf-deep); background: var(--leaf-tint); padding: 3px 10px; border-radius: 7px; }
.map-container { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); min-height: 420px; }
.map-container iframe { width: 100%; height: 100%; min-height: 420px; display: block; filter: grayscale(.1) sepia(.08); }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--ink); color: rgba(255, 255, 255, .74); padding-block: 72px 30px; }
.footer-content { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-column:first-child h3 { font-size: 1.9rem; }
.footer-column h3 { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1.14rem; margin-bottom: 20px; }
.footer-column > p { font-size: .93rem; max-width: 36ch; }
.footer-column ul { display: flex; flex-direction: column; gap: 12px; }
.footer-column ul li { font-size: .93rem; }
.footer-column ul li a { color: rgba(255, 255, 255, .66); transition: color .2s, padding-inline-start .2s; }
.footer-column ul li a:hover { color: var(--gold); padding-inline-start: 6px; }
.social-footer { display: flex; gap: 12px; margin-top: 24px; }
.social-footer a { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .09); color: #fff; transition: background .25s, transform .25s; }
.social-footer a:hover { background: var(--brand); transform: translateY(-3px); }
.copyright { padding-top: 28px; text-align: center; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; color: rgba(255, 255, 255, .5); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top { position: fixed; inset-inline-end: 24px; bottom: 24px; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, visibility .3s, transform .3s, background .2s; z-index: 800; }
.back-to-top.active { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand); }

/* ============================================================
   REVEAL + HERO LOAD
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.active { opacity: 1; transform: none; }
.animate-fade-in > * { animation: heroIn .8s var(--ease) both; }
.animate-fade-in > *:nth-child(2) { animation-delay: .08s; }
.animate-fade-in > *:nth-child(3) { animation-delay: .16s; }
.animate-fade-in > *:nth-child(4) { animation-delay: .24s; }
.animate-fade-in > *:nth-child(5) { animation-delay: .32s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .hero-content { grid-template-columns: 1fr; gap: 46px; }
  .hero-copy { max-width: 640px; margin-inline: auto; text-align: center; }
  .hero-copy .eyebrow, .hero-buttons, .hero-chips { justify-content: center; }
  .hero-copy h2 { margin-inline: auto; }
  .report-card { margin-inline: auto; }
  .float-badge { display: none; }
  .about-content { grid-template-columns: 1fr; gap: 42px; }
  .about-image { max-width: 520px; margin-inline: auto; }
  .tech-image img { aspect-ratio: 16 / 7; }
  .contact-container { grid-template-columns: 1fr; }
  .cta-content { grid-template-columns: 1fr; gap: 26px; }
  .cta-buttons { justify-content: flex-start; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 34px; }

  .mobile-menu { display: inline-flex; }
  #main-nav { position: fixed; top: var(--header-h); inset-inline-end: 0; width: min(82%, 344px); height: calc(100dvh - var(--header-h)); background: var(--surface); border-inline-start: 1.5px solid var(--rule); box-shadow: var(--shadow-lg); flex-direction: column; align-items: stretch; gap: 0; padding: 26px; transform: translateX(110%); transition: transform .34s var(--ease); overflow-y: auto; z-index: 950; }
  #main-nav.active { transform: translateX(0); }
  #nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
  #nav-menu > li > a { display: block; padding: 15px 4px; font-size: 1.04rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  #nav-menu > li > a::after { display: none; }
  .header-actions { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 24px; }
  .language-selector { align-self: flex-start; }
  .nav-cta { justify-content: center; padding: 14px 20px; font-size: 1rem; }
  .dropdown-content { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 4px 0 0; margin-top: 8px; display: none; }
  .language-selector.open .dropdown-content { display: block; }
}

@media (max-width: 900px) {
  /* Bento -> 2 columns, reset featured spans */
  .services-container { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(1), .service-card:nth-child(6) { grid-column: span 2; }
  .service-card:nth-child(1) h3 { font-size: 1.5rem; }
  .tech-details ul { grid-template-columns: 1fr; gap: 0; }
  .tech-details ul li { padding-block: 22px; }
}

@media (max-width: 767px) {
  .stats-container { grid-template-columns: 1fr 1fr; }
  .stat-item { border-inline-end: none !important; padding-inline-end: 0 !important; padding-block: 22px 10px; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .hero-buttons .btn { flex: 1 1 100%; }
  .services-container { grid-template-columns: 1fr; }
  .service-card:nth-child(1), .service-card:nth-child(6) { grid-column: auto; }
  .footer-content { grid-template-columns: 1fr; gap: 30px; }
  .report-card { padding: 24px 20px; }
  .logo-text p { display: none; }
  :root { --arch: 110px; }
}

/* ============================================================
   RTL (ar.html)
   ============================================================ */
[dir="rtl"] #main-nav { border-inline-start: none; border-inline-end: 1.5px solid var(--rule); }
[dir="rtl"] #nav-menu > li > a::after { transform-origin: right; }
[dir="rtl"] .service-card::before { transform-origin: right; }
/* mirror the hero "scope" rings + mesh so they sit behind the card (left in RTL) */
[dir="rtl"] .hero {
  background:
    radial-gradient(circle at 20% 42%, transparent 0 244px, rgba(18, 135, 168, .11) 245px 246px, transparent 247px),
    radial-gradient(circle at 20% 42%, transparent 0 310px, rgba(61, 134, 192, .13) 311px 313px, transparent 314px),
    radial-gradient(circle at 20% 42%, transparent 0 382px, rgba(24, 169, 127, .10) 383px 385px, transparent 386px),
    radial-gradient(760px 520px at 10% -6%, rgba(18, 135, 168, .20), transparent 60%),
    radial-gradient(680px 460px at 100% 108%, rgba(24, 169, 127, .17), transparent 58%),
    radial-gradient(560px 440px at 45% 128%, rgba(61, 134, 192, .14), transparent 60%),
    var(--paper);
}
@media (max-width: 991px) {
  [dir="rtl"] #main-nav { transform: translateX(-110%); }
  [dir="rtl"] #main-nav.active { transform: translateX(0); }
}

/* ============================================================
   MOTION / ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .animate-fade-in > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
