/*
 * Aamin AI inner pages (HAFR workspace): pages/css/company.css, the About and Contact pages.
 * Owner: pages-company (2026-11-28). Linked from pages/templates/about.mjs and contact.mjs (top of <main>).
 * The frame is the home's one template (lib/story.css: .hf-chapter, .hf-row, .hf-eyebrow) and the shared
 * inner-page pieces (pages/pages.css: .pg-*). This file adds only what these two pages need: .co-*.
 * House rules: tokens only, transform and opacity for motion, 44 px targets, visible focus, RTL mirrored
 * through logical properties (the map never mirrors), a composed still under reduced motion.
 */

/* NEW TOKENS */
:root {
  --co-pad-radius: 28px;                                    /* the agents' pad and the agenda card */
  --co-dot: rgb(11 13 16 / 0.11);                           /* the pad's dot grid (the house dot language) */
  --co-dot-step: 16px;
  --co-line: rgb(11 13 16 / 0.09);                          /* hairlines between the five points */
}

/* =============================================================================================
   ABOUT
   ============================================================================================= */

/* ---- 1. hero: the team's agents, six bots on a dotted pad, each named by its old-site role ---- */
.co-cast {
  inline-size: min(100%, 560px); margin-inline: auto;
  padding: clamp(28px, 3vw, 40px) clamp(16px, 2.4vw, 32px) clamp(24px, 2.6vw, 34px);
  border-radius: var(--co-pad-radius);
  background:
    radial-gradient(circle at center, var(--co-dot) 1.1px, transparent 1.5px) 0 0 / var(--co-dot-step) var(--co-dot-step),
    var(--hf-surface-card);
  box-shadow: var(--hf-shadow-card);
  isolation: isolate;
}
.co-cast__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 2.6vw, 34px) clamp(8px, 1.4vw, 16px); margin: 0; padding: 0; list-style: none; }
.co-cast__item { display: flex; justify-content: center; min-inline-size: 0; }
.co-cast .pg-bot { gap: 12px; }
.co-cast .pg-bot__figure { position: relative; }
/* a soft ground under each agent, so the six read as standing in one space */
.co-cast .pg-bot__figure::after {
  content: ""; position: absolute; inset-inline: 14%; inset-block-end: -6px; block-size: 10px; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(30 42 54 / 0.12), transparent); z-index: -1;
}
.co-cast .pg-bot__name { max-inline-size: 18ch; margin-inline: auto; font-size: 14px; line-height: 1.35; text-wrap: balance; }
:lang(ar) .co-cast .pg-bot__name { font-size: 14.5px; line-height: 1.55; }

/* the Bilingual row's two agents (polish-pages, 2026-11-28): the same pad, two columns, name and role under each */
.co-cast--duo { inline-size: min(100%, 520px); padding-block: clamp(36px, 4vw, 52px); }
.co-cast--duo .co-cast__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(16px, 3vw, 36px); }
.co-cast--duo .pg-bot { gap: 18px; }
.co-cast--duo .pg-bot__name { max-inline-size: 20ch; font-size: 16px; font-weight: 650; }
.co-cast--duo .pg-bot__role { max-inline-size: 24ch; margin-inline: auto; font-size: 14px; color: var(--hf-color-text-2); text-wrap: balance; }
:lang(ar) .co-cast--duo .pg-bot__name { font-size: 16.5px; line-height: 1.55; }
:lang(ar) .co-cast--duo .pg-bot__role { font-size: 14.5px; line-height: 1.7; }

/* ---- 2. three disciplines: three equal columns under the chapter intro ---- */
.co-disc {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  max-inline-size: calc(var(--hf-story-max) + 2 * var(--hf-story-pad-x)); margin: 56px auto 0;
  padding: 0 var(--hf-story-pad-x) var(--hf-row-pad-y); list-style: none;
}
.co-disc__item {
  display: grid; align-content: start; gap: 12px; padding: 28px 28px 32px;
  border-radius: var(--pg-card-radius, 20px); background: var(--hf-surface-card); box-shadow: var(--hf-shadow-card);
}
.co-disc__tile { display: block; margin-block-end: 8px; }
.co-disc__t { margin: 0; font-size: 21px; font-weight: 650; line-height: 1.25; letter-spacing: -0.015em; color: var(--hf-color-text-1); }
.co-disc__d { margin: 0; font-size: 16px; line-height: 1.6; color: var(--hf-color-text-2); text-wrap: pretty; }
:lang(ar) .co-disc__t { letter-spacing: 0; font-weight: 700; line-height: 1.4; }
:lang(ar) .co-disc__d { line-height: 1.8; }

/* ---- 3–5. the rows: the six countries as links under the Gulf-wide lead ---- */
.co-states {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px;
  margin: 0 0 24px; padding: 0; list-style: none; max-inline-size: 440px;
}
.co-states__a {
  display: flex; align-items: center; gap: 10px; min-block-size: 44px; padding-block: 6px;
  border-block-end: 1px solid var(--co-line);
  color: var(--hf-color-text-1); font-size: 16px; font-weight: 550; text-decoration: none;
}
.co-states__a > .hf-icon { flex: none; inline-size: 18px; block-size: 18px; color: var(--hf-color-text-3); }
.co-states__a > span { flex: 1 1 auto; min-inline-size: 0; }
.co-states__a > .co-states__go { inline-size: 16px; block-size: 16px; color: var(--hf-color-text-3); transition: transform var(--hf-dur-2, 160ms) var(--hf-ease-out, ease-out); }
.co-states__a:hover { color: var(--hf-tone); }
.co-states__a:hover > .co-states__go { transform: translateX(3px); }
[dir="rtl"] .co-states__a:hover > .co-states__go { transform: translateX(-3px); }
:lang(ar) .co-states__a { font-weight: 600; }
.co-map { inline-size: min(100%, 640px); margin-inline: auto; }
/* the Bilingual row's two points: a small agent as the marker, its old-site role as the line */
.co-points { gap: 16px; }
.co-points li { align-items: center; gap: 14px; }
.co-points .co-points__bot { flex: none; margin: 0; }
.co-points .pg-bot__figure { inline-size: 40px; block-size: 40px; }
.co-points li > span { color: var(--hf-color-text-2); }

/* =============================================================================================
   CONTACT: one clean two-column view
   ============================================================================================= */
.co-contact.pg-hero--visual .pg-hero__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.co-contact .pg-hero__visual { display: block; padding-block-start: 8px; }
.co-contact.pg-hero--visual .pg-hero__title { font-size: clamp(36px, 4vw, 54px); }
:lang(ar) .co-contact.pg-hero--visual .pg-hero__title { font-size: clamp(32px, 3.4vw, 46px); }

/* the form and the ways to reach us */
.co-form { display: grid; gap: 0; margin-block-start: 32px; max-inline-size: 560px; scroll-margin-top: calc(var(--hf-nav-h, 76px) + 24px); }
.co-form .hf-mailform { inline-size: 100%; }
.co-form .call-note { margin: 12px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--hf-color-text-1); display: flex; align-items: center; gap: 8px; }
.co-form .call-note::before { content: ""; flex: none; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--hf-color-sea-600, #006776); }
.co-form .call-note:empty { display: none; }
.co-form .call-address { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 18px 0 0; font-size: 15px; color: var(--hf-color-text-2); }
.co-form .call-address a { display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; font-weight: 550; color: var(--hf-color-text-1); }
.co-form .call-address .hf-icon { inline-size: 18px; block-size: 18px; color: var(--hf-color-sea-600, #006776); }
.co-reach { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.co-reach__item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-block-size: 44px; font-size: 15px; color: var(--hf-color-text-2); }
.co-reach__hq > .hf-icon { inline-size: 18px; block-size: 18px; color: var(--hf-color-sea-600, #006776); }
.co-reach__social { gap: 8px; margin-block-start: 6px; }
.co-social {
  display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; padding: 0 16px 0 12px;
  border-radius: var(--hf-radius-pill, 999px); background: var(--hf-surface-chip, #fff); box-shadow: var(--hf-ring-soft);
  color: var(--hf-color-text-2); font-size: 14.5px; font-weight: 500; text-decoration: none;
}
.co-social .hf-icon { inline-size: 18px; block-size: 18px; }
.co-social[aria-disabled="true"] { cursor: default; }   /* a placeholder: no address yet (D-027) */
.co-social:hover { color: var(--hf-color-text-1); box-shadow: 0 0 0 1px rgb(11 13 16 / 0.22); }

/* the five points of the call, in a quiet card */
.co-agenda {
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--co-pad-radius); background: var(--hf-surface-card); box-shadow: var(--hf-shadow-card);
  scroll-margin-top: calc(var(--hf-nav-h, 76px) + 24px);
}
/* one amber accent per view: the hero's eyebrow keeps it; this label wears the quiet square */
.co-agenda__eyebrow::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hf-color-text-3); }
.co-agenda__title { margin: 12px 0 20px; font-size: clamp(26px, 2.3vw, 32px); font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; color: var(--hf-color-text-1); }
.co-agenda__list { display: grid; margin: 0; padding: 0; list-style: none; }
.co-agenda__item { display: flex; align-items: flex-start; gap: 16px; padding-block: 16px; border-block-start: 1px solid var(--co-line); }
.co-agenda__item:last-child { padding-block-end: 0; }
.co-agenda__icon {
  flex: none; display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 12px;
  background: var(--hf-surface-inset); box-shadow: var(--hf-ring-soft); color: var(--hf-color-text-1);
}
.co-agenda__icon .hf-icon { inline-size: 20px; block-size: 20px; }
.co-agenda__text { display: grid; gap: 3px; min-inline-size: 0; padding-block-start: 1px; }
.co-agenda__t { font-size: 16px; font-weight: 650; line-height: 1.35; color: var(--hf-color-text-1); }
.co-agenda__d { font-size: 15px; line-height: 1.55; color: var(--hf-color-text-2); text-wrap: pretty; }
:lang(ar) .co-agenda__title { letter-spacing: 0; font-weight: 700; line-height: 1.35; }
:lang(ar) .co-agenda__t { font-weight: 700; line-height: 1.5; }
:lang(ar) .co-agenda__d { font-size: 15.5px; line-height: 1.75; }

/* =============================================================================================
   Tablets and phones
   ============================================================================================= */
@media (max-width: 63.99rem) {
  .co-disc { grid-template-columns: minmax(0, 1fr); max-inline-size: calc(640px + 2 * var(--hf-story-pad-x)); margin-block-start: 40px; gap: 16px; }
  .co-contact.pg-hero--visual .pg-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .co-contact .pg-hero__visual { padding-block-start: 0; }
}
@media (max-width: 47.99rem) {
  .co-cast__grid { gap: 22px 4px; }
  .co-cast .pg-bot__figure { --pg-bot-size: 68px !important; }
  .co-cast .hf-agent { --hf-agent-size: 68px !important; }
  .co-cast .pg-bot__name { font-size: 13px; }
  :lang(ar) .co-cast .pg-bot__name { font-size: 13.5px; }
  .co-cast--duo .pg-bot__figure { --pg-bot-size: 96px !important; }
  .co-cast--duo .hf-agent { --hf-agent-size: 96px !important; }
  .co-cast--duo .pg-bot__name { font-size: 15px; }
  :lang(ar) .co-cast--duo .pg-bot__name { font-size: 15.5px; }
  .co-cast--duo .pg-bot__role { font-size: 13.5px; }
  .co-disc__item { padding: 24px 22px 26px; }
  .co-states { gap: 0 16px; }
  .co-agenda { padding: 24px 20px; }
  .co-agenda__item { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .co-states__a > .co-states__go { transition: none; }
  .co-states__a:hover > .co-states__go { transform: none; }
}

/* v7 book (2026-11-28): the contact hero's Book now, where the old "Booking calendar opens soon" stood (templates/_book.mjs) */
.co-contact .co-act { margin-block: 22px 6px; }
