/* ==========================================================================
   Sadara — Corporate design system (Official Brand Identity v1.0)
   Palette: Sadara Navy #0B2D4D · Gold accent #C89A3D · Charcoal · Greys
   Fonts:   Manrope (digital, per Brand Guidelines Ch.2)
   Algerian graphic language: khatam (eight-point star) linework + flow dividers
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* color — official identity */
  --bg: #ffffff;
  --surface: #f4f6f8;
  --surface-2: #e7eaed;
  --ink: #1d242c;
  --ink-muted: #5e6771;
  --petrol: #0b2d4d;
  --petrol-strong: #092440;
  --petrol-deep: #071e36;
  --petrol-abyss: #04182e;
  --energy: #c89a3d;
  --energy-strong: #a87e27;
  --line: #e7eaed;
  /* on dark */
  --ink-inv: #ffffff;
  --ink-inv-muted: rgba(255, 255, 255, 0.78);
  --line-inv: rgba(255, 255, 255, 0.16);
  /* Algerian khatam pattern — fine engineering linework, never decorative */
  --khatam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.09' stroke-width='1'%3E%3Crect x='28' y='28' width='40' height='40'/%3E%3Crect x='28' y='28' width='40' height='40' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='7'/%3E%3Cpath d='M48 0v20M48 76v20M0 48h20M76 48h20'/%3E%3C/g%3E%3C/svg%3E");
  --flow-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 62 C 340 8 700 26 900 50 C 1120 76 1300 60 1440 34' fill='none' stroke='%23C89A3D' stroke-width='2' opacity='0.75'/%3E%3Cpath d='M0 74 C 340 22 700 40 900 62 C 1120 86 1300 72 1440 48' fill='none' stroke='%23ffffff' stroke-opacity='0.3' stroke-width='1.5'/%3E%3C/svg%3E");

  /* type */
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-display: clamp(2.35rem, 4.2vw + 1rem, 3.8rem);
  --fs-h1: clamp(2.1rem, 3.2vw + 0.9rem, 3.15rem);
  --fs-h2: clamp(1.65rem, 2.1vw + 0.85rem, 2.4rem);
  --fs-h3: clamp(1.18rem, 0.5vw + 1.05rem, 1.38rem);
  --fs-lead: clamp(1.05rem, 0.45vw + 0.95rem, 1.19rem);
  --fs-small: 0.875rem;

  /* layout */
  --container: 1180px;
  --container-wide: 1340px;
  --container-narrow: 880px;
  --gutter: clamp(1.1rem, 3.5vw, 2rem);
  --radius: 10px;
  --radius-sm: 7px;

  /* z scale */
  --z-dropdown: 600;
  --z-sticky: 700;
  --z-drawer: 800;
  --z-skip: 900;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1); /* quart-ish */
  --t-fast: 160ms;
  --t-med: 320ms;
}

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

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
  color: var(--ink);
}

h1, h2 { font-weight: 800; }

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h4 { font-size: 1.05rem; line-height: 1.3; }

p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--petrol-strong); }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

::selection { background: rgba(200, 154, 61, 0.3); }

:focus-visible {
  outline: 2px solid var(--energy-strong);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: fixed;
  top: -100px; left: 1rem;
  z-index: var(--z-skip);
  background: var(--petrol-deep);
  color: var(--ink-inv);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; color: var(--ink-inv); }

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

.section { padding-block: clamp(4.2rem, 8vw, 6.8rem); }
.section--tight { padding-block: clamp(3rem, 5.5vw, 4.6rem); }
.section--roomy { padding-block: clamp(5.2rem, 10vw, 8.6rem); }

.band--surface { background: var(--surface); }
.band--petrol {
  background-color: var(--petrol-deep);
  background-image:
    var(--khatam),
    radial-gradient(90rem 40rem at 85% -20%, rgba(20, 64, 107, 0.6), transparent 60%);
  background-size: 96px 96px, auto;
  color: var(--ink-inv);
}
.band--petrol h2, .band--petrol h3, .band--petrol h4 { color: var(--ink-inv); }
.band--petrol p { color: var(--ink-inv-muted); }
.band--petrol a { color: var(--ink-inv); }

.lead { font-size: var(--fs-lead); color: var(--ink-muted); max-width: 62ch; }
.band--petrol .lead { color: var(--ink-inv-muted); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head--center { text-align: center; }
.section-head--center .lead, .section-head--center p { margin-inline: auto; }
.section-head--split {
  display: grid;
  gap: 1rem 4rem;
  align-items: end;
}
@media (min-width: 860px) {
  .section-head--split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .section-head--split h2 { margin-bottom: 0; }
}

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.95rem 1.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform var(--t-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary { background: var(--petrol); color: #fff; }
.btn--primary:hover { background: var(--petrol-strong); color: #fff; }

/* gold = premium accent: dark navy text on gold fill (Brand Guidelines Ch.2) */
.btn--energy { background: var(--energy); color: var(--petrol-abyss); }
.btn--energy:hover { background: #b78a2f; color: var(--petrol-abyss); }

.btn--inverse { background: #fff; color: var(--petrol-deep); }
.btn--inverse:hover { background: oklch(0.93 0.01 210); color: var(--petrol-deep); }

.btn--ghost { border-color: rgba(11, 45, 77, 0.45); color: var(--petrol); background: transparent; }
.btn--ghost:hover { border-color: var(--petrol); background: rgba(11, 45, 77, 0.06); color: var(--petrol-strong); }

.band--petrol .btn--ghost, .hero .btn--ghost, .hero--inner .btn--ghost {
  border-color: oklch(1 0 0 / 0.45); color: var(--ink-inv);
}
.band--petrol .btn--ghost:hover, .hero .btn--ghost:hover, .hero--inner .btn--ghost:hover {
  border-color: #fff; background: oklch(1 0 0 / 0.09); color: #fff;
}

.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.04rem; }

/* ---------- Header ---------- */
.topbar {
  background: var(--petrol-abyss);
  color: var(--ink-inv-muted);
  font-size: 0.82rem;
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
}
.topbar a { color: var(--ink-inv); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__meta { display: flex; gap: 1.4rem; align-items: center; }
@media (max-width: 640px) { .topbar__meta span.hide-s { display: none; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: oklch(1 0 0 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t-med) var(--ease-out);
}
.site-header.scrolled { box-shadow: 0 8px 28px oklch(0.22 0.02 235 / 0.09); }

.site-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img { height: 62px; width: auto; display: block; }
.brand svg { height: 58px; width: auto; }
/* footer uses the ORIGINAL logo file rendered as its white reverse variant */
.site-footer .brand img {
  height: 76px;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--petrol-deep);
}
.brand__tag {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  color: var(--ink);
}

.site-nav { display: flex; align-items: center; gap: 0.35rem; }
.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a, .site-nav button.nav-link {
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav button.nav-link:hover { background: var(--surface); color: var(--petrol-strong); }
.site-nav a[aria-current="page"] { color: var(--petrol); font-weight: 600; }

.nav-item { position: relative; }
.nav-item .caret { transition: transform var(--t-fast) var(--ease-out); }
.nav-item.open .caret { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 22px 48px oklch(0.22 0.02 235 / 0.16);
  padding: 0.55rem;
  list-style: none;
  margin: 0;
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out),
    visibility 0s linear var(--t-fast);
}
.nav-item.open > .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.nav-menu a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  white-space: normal;
  line-height: 1.35;
}
.nav-menu .nav-menu__desc {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 400;
}
.nav-menu__all {
  border-top: 1px solid var(--line);
  margin-top: 0.4rem;
  padding-top: 0.4rem;
}
.nav-menu__all a { color: var(--petrol); font-weight: 600; }

.nav-cta { margin-left: 0.6rem; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px oklch(0.22 0.02 235 / 0.14);
    padding: 0.8rem var(--gutter) 1.4rem;
    max-height: calc(100dvh - 112px); /* header 74px + topbar 38px (visible pre-scroll) */
    overflow: auto;
    z-index: var(--z-drawer);
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a, .site-nav button.nav-link { width: 100%; justify-content: space-between; padding: 0.85rem 0.6rem; }
  .nav-menu {
    position: static;
    translate: none;
    transform: none;
    opacity: 1;
    visibility: hidden;
    display: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    margin: 0 0 0.4rem 0.9rem;
    padding: 0;
  }
  .nav-item.open > .nav-menu { display: block; visibility: visible; }
  .nav-cta { margin: 0.8rem 0 0; width: 100%; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: clip;
  background-color: var(--petrol);
  background-image:
    var(--khatam),
    radial-gradient(70rem 34rem at 78% 108%, rgba(200, 154, 61, 0.18), transparent 62%),
    radial-gradient(80rem 42rem at -10% -30%, rgba(20, 64, 107, 0.9), transparent 60%);
  background-size: 96px 96px, auto, auto;
  color: var(--ink-inv);
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(oklch(1 0 0 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}
.hero__art {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  opacity: 0.9;
}
.hero__in {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 8.5rem) clamp(6rem, 12vw, 10rem);
  max-width: 62rem;
}
.hero h1 {
  font-size: var(--fs-display);
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
  max-width: 21ch;
}
.hero .lead {
  color: var(--ink-inv-muted);
  max-width: 66ch;
  margin-bottom: 2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__ticks {
  position: relative;
  border-top: 1px solid var(--line-inv);
  background: rgba(4, 24, 46, 0.65);
  backdrop-filter: blur(6px);
}
.ticks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ticks li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.05rem 1.2rem;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--ink-inv);
  border-left: 1px solid var(--line-inv);
}
.ticks li:first-child { border-left: 0; }
.ticks .tick {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--energy);
}
@media (max-width: 900px) {
  .ticks { grid-template-columns: 1fr 1fr; }
  .ticks li { border-left: 0; border-top: 1px solid var(--line-inv); }
  .ticks li:nth-child(-n + 2) { border-top: 0; }
}
@media (max-width: 520px) {
  .ticks { grid-template-columns: 1fr; }
  .ticks li:nth-child(2) { border-top: 1px solid var(--line-inv); }
}

/* ---------- Inner hero ---------- */
.hero--inner {
  position: relative;
  overflow: clip;
  background-color: var(--petrol);
  background-image:
    radial-gradient(60rem 26rem at 90% 120%, rgba(200, 154, 61, 0.14), transparent 60%),
    radial-gradient(70rem 30rem at 0% -40%, rgba(20, 64, 107, 0.85), transparent 65%);
  color: var(--ink-inv);
}
.hero--inner .hero__in { padding-block: clamp(3.6rem, 7vw, 6rem); max-width: 56rem; }
.hero--inner h1 { font-size: var(--fs-h1); color: #fff; max-width: 24ch; }
.hero--inner .lead { margin-bottom: 0; color: var(--ink-inv-muted); max-width: 66ch; }
.hero--inner .hero__cta { margin-top: 1.9rem; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  font-size: 0.85rem;
}
.crumbs a { color: var(--ink-inv-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 0.45rem; color: oklch(1 0 0 / 0.35); }
.crumbs [aria-current] { color: var(--ink-inv); }

/* ---------- Sector grid ---------- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.55rem 1.5rem 1.4rem;
  transition: border-color var(--t-fast) var(--ease-out), transform var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out);
}
.card:hover {
  border-color: rgba(11, 45, 77, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 18px 38px oklch(0.22 0.02 235 / 0.1);
}
.card__head { display: flex; align-items: center; gap: 0.75rem; }
.card__icon { flex: none; width: 30px; height: 30px; color: var(--petrol); }
.card h3 { margin: 0; }
.card p { font-size: 0.95rem; color: var(--ink-muted); }
.card__link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--petrol);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.card__link .arrow { transition: transform var(--t-fast) var(--ease-out); }
.card:hover .card__link .arrow { transform: translateX(4px); }
.card a.stretch::after, .acc-card a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.sector-grid .card { grid-column: span 2; }
.sector-grid .card--featured {
  grid-column: span 6;
  flex-direction: row;
  align-items: center;
  gap: 2.2rem;
  background-color: var(--petrol-deep);
  background-image:
    var(--khatam),
    radial-gradient(46rem 20rem at 100% 0%, rgba(200, 154, 61, 0.18), transparent 55%);
  background-size: 96px 96px, auto;
  border-color: transparent;
  color: var(--ink-inv);
  padding: 2rem 2.1rem;
}
.card--featured h3 { color: #fff; font-size: 1.55rem; }
.card--featured p { color: var(--ink-inv-muted); font-size: 1rem; max-width: 58ch; }
.card--featured .card__icon { color: var(--energy); width: 34px; height: 34px; }
.card--featured .card__link { color: #fff; }
.card--featured .card__aside {
  flex: none;
  text-align: center;
  border-left: 1px solid var(--line-inv);
  padding-left: 2.2rem;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}
.card--featured .card__aside strong {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--energy);
  line-height: 1;
}
.card--featured .card__aside span { font-size: 0.85rem; color: var(--ink-inv-muted); }

@media (max-width: 1020px) {
  .sector-grid .card { grid-column: span 3; }
  .sector-grid .card--featured { grid-column: span 6; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .card--featured .card__aside { border-left: 0; border-top: 1px solid var(--line-inv); padding: 1.1rem 0 0; align-self: flex-start; text-align: left; }
}
@media (max-width: 640px) {
  .sector-grid { grid-template-columns: 1fr; }
  .sector-grid .card, .sector-grid .card--featured { grid-column: span 1; }
}

/* ---------- Split (text + art) ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
  .split--flip > :first-child { order: 2; }
}
.split__art {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  margin: 0;
}
.split__art svg { width: 100%; height: auto; }
.split__art img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.9s var(--ease-out);
}
.split__art:hover img { transform: scale(1.035); }
.split__art figcaption {
  font-size: 0.82rem;
  color: var(--ink-muted);
  padding: 0.6rem 1rem;
  background: #fff;
  border-top: 1px solid var(--line);
}

/* brand-style inline diagrams (engineering linework, navy/gold) */
.diagram { margin: clamp(1.6rem, 3vw, 2.6rem) 0 0; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram--card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: clamp(1rem, 2.5vw, 2rem);
}
/* on narrow screens the diagram scrolls inside its own frame so labels stay legible */
@media (max-width: 760px) {
  .diagram--card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .diagram--card svg { min-width: 720px; }
}

/* ---------- Feature rows (why choose) ---------- */
.feature-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 2.2rem 2.6rem;
}
.feature-cols h3 {
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
  padding-top: 0.85rem;
  border-top: 2px solid var(--energy);
}
.band--petrol .feature-cols h3 { border-top-color: var(--energy); }
.feature-cols p { font-size: 0.95rem; color: var(--ink-muted); }

/* ---------- Definition rows (values) ---------- */
.defs { display: grid; gap: 0; }
.defs > div {
  display: grid;
  grid-template-columns: minmax(150px, 230px) 1fr;
  gap: 1rem 2.5rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.defs > div:last-child { border-bottom: 1px solid var(--line); }
.defs h3 { margin: 0; font-size: 1.14rem; }
.defs p { margin: 0; color: var(--ink-muted); font-size: 0.97rem; }
.band--petrol .defs > div { border-color: var(--line-inv); }
.band--petrol .defs p { color: var(--ink-inv-muted); }
@media (max-width: 620px) {
  .defs > div { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ---------- Chips (industries) ---------- */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chip-grid li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 500;
  font-size: 0.93rem;
  background: #fff;
}
.band--petrol .chip-grid li {
  background: oklch(1 0 0 / 0.05);
  border-color: var(--line-inv);
  color: var(--ink-inv);
}

/* ---------- Steps (real sequences only) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.6rem 2rem;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--energy-strong);
  margin-bottom: 0.35rem;
}
.band--petrol .steps li::before { color: var(--energy); }
.steps h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.steps p { font-size: 0.93rem; color: var(--ink-muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--petrol); }
.faq .faq__icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--petrol);
  transition: transform var(--t-fast) var(--ease-out);
}
.faq details[open] .faq__icon { transform: rotate(45deg); }
.faq details > div { padding: 0 0.2rem 1.3rem; }
.faq details[open] > div,
.course-cat[open] > ul { animation: contentFade 0.45s var(--ease-out); }
@keyframes contentFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.faq details > div p { color: var(--ink-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background-color: var(--petrol-deep);
  background-image:
    var(--flow-divider),
    var(--khatam),
    radial-gradient(70rem 30rem at 90% 130%, rgba(200, 154, 61, 0.16), transparent 60%);
  background-size: 100% 56px, 96px 96px, auto;
  background-position: top center, 0 0, 0 0;
  background-repeat: no-repeat, repeat, repeat;
  color: var(--ink-inv);
}
.cta-band h2 { color: #fff; max-width: 26ch; }
.cta-band .lead { color: var(--ink-inv-muted); }
.cta-band__in {
  display: grid;
  gap: 1.6rem 4rem;
  align-items: center;
}
@media (min-width: 920px) {
  .cta-band__in { grid-template-columns: minmax(0, 1.2fr) auto; }
  .cta-band__in h2 { margin-bottom: 0.4rem; }
}
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Accreditation browser ---------- */
.acc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 1.1rem;
}
.acc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.45rem 1.4rem 1.3rem;
  transition: border-color var(--t-fast) var(--ease-out), transform var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out);
}
.acc-card:hover {
  border-color: rgba(11, 45, 77, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 18px 38px oklch(0.22 0.02 235 / 0.1);
}
.acc-card__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--petrol);
  letter-spacing: 0.01em;
}
.acc-card__full { font-size: 0.9rem; color: var(--ink-muted); min-height: 2.6em; }
.acc-card__desc { font-size: 0.88rem; color: var(--ink-muted); margin: 0; }
.acc-card__logo { height: 52px; width: auto; max-width: 160px; object-fit: contain; align-self: flex-start; }
.body-logo { height: 64px; width: auto; max-width: 220px; object-fit: contain; margin-bottom: 1.1rem; }

.mini-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}
.mini-chips li {
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.14rem 0.6rem;
  color: var(--ink-muted);
  background: var(--surface);
}
.acc-card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  color: var(--ink-muted);
  margin-top: 0.2rem;
}
.acc-card__meta .badge {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
  font-weight: 600;
  color: var(--petrol-strong);
}

.course-browser__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}
.course-search {
  flex: 1 1 320px;
  max-width: 460px;
  position: relative;
}
.course-search input {
  width: 100%;
  font: inherit;
  padding: 0.78rem 1rem 0.78rem 2.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}
.course-search input:focus-visible { outline-offset: 0; }
.course-search svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  translate: 0 -50%;
  width: 18px;
  height: 18px;
  color: var(--ink-muted);
  pointer-events: none;
}
.course-count { font-size: 0.9rem; color: var(--ink-muted); }

.course-browser { /* wrapper for the search bar + category groups; JS scoping hook */ }
.course-cat { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 0.9rem; }
.course-cat summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
}
.course-cat summary::-webkit-details-marker { display: none; }
.course-cat summary .badge {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--petrol-strong);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.16rem 0.7rem;
}
.course-cat ul { list-style: none; margin: 0; padding: 0 1.3rem 0.9rem; }
.course-cat li {
  padding: 0.62rem 0.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.95rem;
}
.course-cat li .meta { font-size: 0.8rem; color: var(--ink-muted); }
.course-cat li.hidden { display: none; }
.course-cat li.course-sub {
  background: var(--surface);
  margin-inline: -1.3rem;
  padding-inline: 1.5rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--petrol);
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.95rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline-offset: 0; }
.field .hint { font-size: 0.82rem; color: var(--ink-muted); margin-top: 0.3rem; }

.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.choice-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.96rem;
  cursor: pointer;
}
.choice-row input { accent-color: var(--petrol); width: 1.05rem; height: 1.05rem; }
.consent label { align-items: flex-start; }
.consent input { margin-top: 0.2rem; }
.form-section-title {
  font-size: 1.1rem;
  margin: 2.2rem 0 1rem;
  padding-top: 0.8rem;
  border-top: 2px solid var(--energy);
}

/* ---------- Contact info ---------- */
.contact-rows { display: grid; gap: 0; }
.contact-rows > div {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}
.contact-rows > div:last-child { border-bottom: 1px solid var(--line); }
.contact-rows svg { flex: none; width: 22px; height: 22px; color: var(--petrol); margin-top: 0.15rem; }
.contact-rows h3 { font-size: 1rem; margin: 0 0 0.15rem; }
.contact-rows p { margin: 0; font-size: 0.95rem; color: var(--ink-muted); }

/* ---------- Alerts (UI status colours per Brand Guidelines 2.10 — interfaces only) ---------- */
.alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
.alert svg { flex: none; width: 20px; height: 20px; margin-top: 0.1rem; }
.alert strong { display: block; margin-bottom: 0.15rem; }
.alert--info { border-color: rgba(0, 112, 224, 0.4); background: rgba(0, 112, 224, 0.06); color: #04528f; }
.alert--success { border-color: rgba(40, 167, 69, 0.4); background: rgba(40, 167, 69, 0.07); color: #1b6e31; }
.alert--warning { border-color: rgba(245, 166, 35, 0.5); background: rgba(245, 166, 35, 0.09); color: #7a5200; }
.alert--error { border-color: rgba(231, 76, 60, 0.4); background: rgba(231, 76, 60, 0.06); color: #a82315; }

/* ---------- Data tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th {
  background: var(--petrol);
  color: #fff;
  text-align: left;
  font-weight: 700;
  padding: 0.75rem 1rem;
  white-space: nowrap;
}
.table td { padding: 0.7rem 1rem; border-top: 1px solid var(--line); }
.table tbody tr:nth-child(even) { background: var(--surface); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--petrol-abyss);
  color: var(--ink-inv-muted);
  font-size: 0.93rem;
}
.site-footer a { color: var(--ink-inv-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid {
  display: grid;
  gap: 2.5rem 3rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.site-footer__brand { max-width: 34ch; }
.site-footer__brand .brand__name { color: #fff; }
.site-footer__brand .brand__tag { color: var(--ink-inv-muted); }
.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.newsletter { margin-top: 1.4rem; max-width: 24rem; }
.newsletter label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-inv);
  margin-bottom: 0.5rem;
}
.newsletter__row { display: flex; gap: 0.5rem; }
.newsletter input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 0.62rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-inv);
  background: oklch(1 0 0 / 0.07);
  color: var(--ink-inv);
}
.newsletter input::placeholder { color: oklch(0.72 0.02 215); }
.newsletter .btn { padding: 0.62rem 1.05rem; }
.newsletter__hint { font-size: 0.78rem; color: var(--ink-inv-muted); margin: 0.45rem 0 0; }

.site-footer__legal {
  border-top: 1px solid var(--line-inv);
  padding-block: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  font-size: 0.83rem;
}

/* ---------- Motion ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .reveal--d1 { transition-delay: 90ms; }
html.js .reveal--d2 { transition-delay: 180ms; }
html.js .reveal--d3 { transition-delay: 270ms; }

html.js .hero__in > * { opacity: 0; transform: translateY(18px); animation: heroUp 0.8s var(--ease-out) forwards; }
html.js .hero__in > *:nth-child(2) { animation-delay: 120ms; }
html.js .hero__in > *:nth-child(3) { animation-delay: 240ms; }
html.js .hero__in > *:nth-child(4) { animation-delay: 360ms; }
@keyframes heroUp { to { opacity: 1; transform: none; } }

.hero__flare {
  animation: flare 7s ease-in-out infinite alternate;
  transform-origin: center bottom;
}
@keyframes flare {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@media print {
  .topbar, .site-header, .site-footer, .skip-link, .hero__cta, .cta-band__actions, .nav-toggle { display: none !important; }
  .hero, .hero--inner, .band--petrol, .cta-band { background: none !important; color: #000 !important; }
  .hero h1, .hero--inner h1, .cta-band h2,
  .band--petrol h2, .band--petrol h3, .band--petrol h4, .band--petrol p,
  .hero .lead, .hero--inner .lead, .cta-band .lead,
  .ticks li, .band--petrol .chip-grid li, .crumbs a, .crumbs [aria-current] { color: #000 !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .hero__in > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .hero__flare { animation: none; }
  .card, .acc-card, .btn, .card__link .arrow, .btn .arrow, .split__art img { transition: none; }
  .split__art:hover img { transform: none; }
  .faq details[open] > div, .course-cat[open] > ul { animation: none; }
}
