/* ============================================================
   site-v3.css — overview.php and about.php in the homepage redesign.
   Loaded after home-v3.css: reuses its .hv-* building blocks (blue hero field, axis rows,
   grey band, CTA, footer) and gives any <body class="hv-page"> the same tokens #page-home has.
   Logical properties throughout so Arabic (dir="rtl") mirrors without separate rules.
   ============================================================ */
.hv-page {
    --hv-paper: #ffffff; --hv-paper-2: #f3f6fc; --hv-ink: #0f172a; --hv-pale: #eaf1ff; --hv-night: #0f172a;
    --hv-m: 32px; --hv-axis: 41.66%;
    --hv-display: clamp(40px, 4.4vw, 64px); --hv-huge: clamp(64px, 9vw, 136px);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px; line-height: 1.55; color: var(--hv-ink); background: var(--hv-paper);
}
.hv-page h1, .hv-page h2, .hv-page h3 { margin: 0; letter-spacing: -.025em; color: inherit; font-family: inherit; }
.hv-page :focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.hv-page .navbar .container { max-width: 1440px; padding-inline: var(--hv-m); }
.hv-page .nav-links a, .hv-page .nav-actions .btn { font-family: inherit; }
.hv-page .nav-links a.nav-current { color: #fff; font-weight: 700; }
.hv-page .navbar.scrolled .nav-links a.nav-current { color: var(--primary); }
.hv-page main { display: block; }
.hv-page [id] { scroll-margin-top: 96px; }
.sv-axis { grid-column: 2; }
.hv-axis-head .sv-axis h2 { max-width: 18ch; }
.sv-axis p { margin: 18px 0 0; max-width: 52ch; color: #1e293b; }

/* ---------- Hero, shared by both pages ---------- */
.sv-hero { padding-block: 152px 96px; }
.sv-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 64px; align-items: start; }
.sv-hero-grid > * { min-width: 0; }
.sv-hero h1 { font-size: clamp(40px, 3.7vw, 58px); line-height: 1.06; font-weight: 800; color: #fff; max-width: 22ch; }
.sv-hero .hv-h1-2 { color: #bfd5ff; display: block; }
.sv-hero .hv-lead { max-width: 46ch; }
.sv-hero-solo .sv-hero-grid { grid-template-columns: minmax(0, 1fr); }

/* Overview hero: the modules on this page, as a list you can jump from */
.ov-index { background: #fff; color: var(--hv-ink); border-radius: 6px; overflow: hidden; }
.ov-index-head { background: #1565c0; color: #fff; padding: 14px 20px; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.ov-index ol { list-style: none; margin: 0; padding: 6px 0; }
.ov-index a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 20px; color: var(--hv-ink); transition: background-color 120ms; }
.ov-index a:hover { background: #f1f5f9; color: var(--hv-ink); }
.ov-index li + li a { box-shadow: inset 0 1px 0 #eef2f7; }
.ov-index .ic { width: 40px; height: 40px; border-radius: 8px; background: #e3effd; color: #1565c0; display: grid; place-items: center; font-size: 16px; }
.ov-index b { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.ov-index small { display: block; font-size: 14px; color: #475569; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-index .go { color: #1565c0; font-weight: 700; }
[dir="rtl"] .ov-index .go { transform: scaleX(-1); }

/* ---------- Overview: one row per module, picture in the margin, text on the axis ---------- */
.ov-spots { padding-block: 144px 48px; }
.ov-spots .hv-frow { padding-block-end: 128px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; }
.ov-spots .hv-pic { justify-self: stretch; }
.ov-spots .hv-t h2 { font-size: clamp(30px, 2.6vw, 40px); line-height: 1.1; font-weight: 800; max-width: 20ch; }
.ov-spots .hv-t > p { margin: 16px 0 0; max-width: 46ch; color: #1e293b; }
.sv-ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; max-width: 52ch; }
.sv-ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: #1e293b; }
.sv-ticks i { color: var(--primary); margin-top: 5px; font-size: 14px; }
.sv-ticks b { color: var(--hv-ink); font-weight: 700; }
.ov-shot { margin: 0; width: 100%; background: #f1f5f9; border-radius: 6px; padding: 10px; }
.ov-shot img { display: block; width: 100%; height: auto; border-radius: 4px; }
.ov-shot.is-drawing img { background: #fff; padding: 24px; aspect-ratio: 16 / 10; object-fit: contain; }

/* Overview: the rest of the platform on a grey band */
.ov-bento { background: #f1f5f9; padding-block: 128px; }
.ov-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ov-fig { margin: 0; background: #fff; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.ov-fig .pic { background: #e8eef7; padding: 12px 12px 0; }
.ov-fig .pic img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; border-radius: 4px 4px 0 0; }
[dir="rtl"] .ov-fig .pic img { object-position: top right; }
.ov-fig .pic.is-drawing img { object-fit: contain; object-position: center; background: #fff; padding: 20px; }
.ov-fig figcaption { padding: 20px 22px 24px; }
.ov-fig h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.ov-fig p { margin: 8px 0 0; color: #334155; font-size: 16px; }
.ov-fig.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ov-fig.wide .pic { padding: 12px 0 0 12px; }
[dir="rtl"] .ov-fig.wide .pic { padding: 12px 12px 0 0; }
.ov-fig.wide .pic img { aspect-ratio: 16 / 9; height: 100%; border-radius: 4px 0 0 0; }
.ov-fig.wide figcaption { align-self: center; padding: 28px 32px; }
.ov-fig.wide h3 { font-size: 26px; }
.ov-bento .hv-more { margin-top: 48px; border-top: 0; padding-top: 0; }

/* ---------- About ---------- */
.ab-stats { margin: 0; display: grid; gap: 28px; align-content: start; padding-top: 12px; }
.ab-stats div { display: flex; flex-direction: column-reverse; padding-block-end: 22px; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .22); }
.ab-stats div:last-child { box-shadow: none; padding-block-end: 0; }
.ab-stats dt { font-size: 17px; color: #c9d7ff; margin-top: 4px; }
.ab-stats dd { margin: 0; font-size: clamp(56px, 6vw, 96px); font-weight: 800; line-height: .95; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.ab-mission { padding-block: 144px 128px; }
.ab-mission .hv-frow { padding-block-end: 0; align-items: center; }
.ab-mission h2, .ab-statement h2 { font-size: var(--hv-display); line-height: 1.04; font-weight: 800; max-width: 20ch; }
.ab-mission .hv-t > p, .ab-statement > p { margin: 22px 0 0; max-width: 48ch; font-size: 19px; color: #1e293b; }
.ab-statement { padding-inline-start: var(--hv-axis); }
.ab-photo { margin: 0; width: 560px; max-width: 100%; }
.ab-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.ab-values { background: #f1f5f9; padding-block: 128px; }
.ab-values .hv-more { margin: 0; padding: 0; border-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; }
.ab-values .hv-more i { width: 44px; height: 44px; margin-top: 0; border-radius: 8px; background: #fff; display: grid; place-items: center; font-size: 18px; }
.ab-values .hv-more h3 { font-size: 19px; margin-top: 2px; }
.ab-values .hv-more p { font-size: 16px; }
.ab-story { padding-block: 144px; background: var(--primary-dark); color: #fff; }
.ab-story .hv-faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.ab-story .hv-tag { color: #dbe6ff; }
.ab-story h2 { font-size: var(--hv-display); line-height: 1.04; font-weight: 800; max-width: 12ch; }
.ab-story-text { font-size: 19px; line-height: 1.65; color: #e6edff; max-width: 62ch; }
.ab-story-text p { margin: 0 0 1em; }
.ab-team { background: var(--hv-paper-2); padding-block: 128px; }
.ab-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
.ab-face { aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--primary-dark); color: #bfd5ff; display: grid; place-items: center; font-size: 44px; margin-block-end: 16px; }
.ab-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* no photo: a round initials badge, not a full-size empty frame */
.ab-face.is-initials { aspect-ratio: auto; width: 88px; height: 88px; border-radius: 50%; color: #fff; font-size: 30px; font-weight: 800; letter-spacing: .02em; }
.ov-mod { color: var(--hv-ink); font-weight: 700; }
.ov-mod i { color: var(--primary); margin-inline-end: 4px; }
.ab-people h3 { font-size: 19px; font-weight: 700; }
.ab-people .role { margin-top: 2px; font-size: 15px; font-weight: 600; color: var(--primary); }
.ab-people p { margin: 10px 0 0; font-size: 16px; color: #334155; }

/* ---------- Tablet / phone ---------- */
@media (max-width: 1100px) {
    .sv-hero-grid { grid-template-columns: 1fr; row-gap: 48px; }
    .ov-index { max-width: 640px; }
    .ab-stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .ab-stats div { box-shadow: none; padding-block-end: 0; }
    .ab-values .hv-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ab-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ab-story .hv-faq-grid { grid-template-columns: 1fr; gap: 32px; }   /* the heading gets the full width */
    .ab-story h2 { max-width: 18ch; }
}
@media (max-width: 860px) {
    .hv-page { --hv-m: 16px; --hv-axis: 0px; }
    .sv-axis { grid-column: 1; }
    .hv-axis-head .sv-axis h2 { font-size: 8.4vw; }
    .sv-hero { padding-block: 112px 56px; }
    .sv-hero h1 { font-size: 8.4vw; }
    .sv-hero .hv-h1-2 { display: inline; }   /* both parts flow together, so the headline stays within two lines */
    .ov-spots { padding-block: 88px 8px; } .ov-spots .hv-frow { padding-block-end: 72px; grid-template-columns: 1fr; }
    .ov-spots .hv-t h2 { font-size: 7.4vw; }
    .ov-shot { width: 100%; }
    .ov-bento, .ab-values, .ab-team { padding-block: 80px; }
    .ov-figs { grid-template-columns: 1fr; }
    .ov-fig.wide { grid-template-columns: 1fr; } .ov-fig.wide .pic { padding: 12px 12px 0; } .ov-fig.wide figcaption { padding: 20px 22px 24px; }
    .ov-fig.wide h3 { font-size: 20px; }
    .ab-mission { padding-block: 88px 72px; } .ab-mission h2, .ab-statement h2, .ab-story h2 { font-size: 8.4vw; }
    .ab-photo { width: 100%; }
    .ab-values .hv-more { grid-template-columns: 1fr; }
    .ab-people { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 32px 20px; }   /* as many people per row as fit */
    .ab-story { padding-block: 88px; }
    .ab-stats dd { font-size: 15vw; }
}
@media (prefers-reduced-motion: reduce) { .ov-index a { transition: none; } }
