/* ==========================================================================
   ASIBONGE LEGACY GROUP - 02 BASE + REUSABLE COMPONENTS
   Everything below maps to an Elementor Container, Heading, Text Editor,
   Image, Button or Icon widget. No component requires custom development.
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--alg-bg);
  color: var(--alg-text);
  font-family: var(--alg-font-body);
  font-size: var(--alg-body);
  line-height: var(--alg-lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

/* Inline icons inside links and buttons are always small and never stretch.
   Without this, an SVG with no width/height fills its flex container. */
a svg, button svg { flex: none; width: 12px; height: 12px; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--alg-primary-hi);
  outline-offset: 3px;
}

.alg-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--alg-ink); color: #fff; padding: 14px 22px;
  font-family: var(--alg-font-label); font-size: var(--alg-small);
}
.alg-skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   TYPOGRAPHY  →  Elementor Heading + Text Editor widgets
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--alg-font-display);
  color: var(--alg-ink);
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.022em;
}

h1 { font-size: var(--alg-h1); line-height: calc(0.95em + 0.40rem); letter-spacing: -.028em; }
h2 { font-size: var(--alg-h2); line-height: calc(0.98em + 0.35rem); }
h3 { font-size: var(--alg-h3); line-height: calc(1.05em + 0.20rem); letter-spacing: -.016em; }
h4 { font-size: var(--alg-h4); line-height: 1.4; letter-spacing: 0; font-weight: 600; }

p  { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

.alg-lead {
  font-size: var(--alg-body-lg);
  line-height: 1.65;
  color: var(--alg-text);
}

.alg-small { font-size: var(--alg-small); line-height: 1.6; }
.alg-muted { color: var(--alg-text-muted); }

/* SIGNATURE ELEMENT - the section eyebrow.
   A solid red triangle (the logo mark reduced to its simplest form) followed
   by a tracked mono label. This is the one device that repeats site-wide.
   Elementor: Icon Box widget, or a Text Editor with the triangle as an
   inline SVG icon. */
.alg-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--alg-font-label);
  font-size: var(--alg-eyebrow);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--alg-primary);
  margin: 0 0 22px;
}
.alg-eyebrow::before {
  content: "";
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid var(--alg-primary);
  flex: none;
}

/* --------------------------------------------------------------------------
   LAYOUT  →  Elementor Containers
   -------------------------------------------------------------------------- */

/* Every section carries at least --alg-block-top above its content. The fluid
   value still governs above that floor, so wide screens keep their rhythm. */
.alg-section {
  padding-top: max(var(--alg-block-top), var(--alg-section));
  padding-bottom: var(--alg-section);
}
.alg-section--sm {
  padding-top: max(var(--alg-block-top), var(--alg-section-sm));
  padding-bottom: var(--alg-section-sm);
}
.alg-section--xs {
  padding-top: max(var(--alg-block-top), var(--alg-section-xs));
  padding-bottom: var(--alg-section-xs);
}

/* Side padding = the fluid gutter plus a flat 20px inset, so no text ever
   sits against the viewport edge. Full-bleed media is absolutely positioned
   and sits outside the container, so images are unaffected. */
.alg-container {
  width: 100%;
  max-width: calc(var(--alg-container) + var(--alg-text-pad) * 2);
  margin: 0 auto;
  padding: 0 calc(var(--alg-gutter) + var(--alg-text-pad));
}
.alg-container--narrow { max-width: var(--alg-narrow); }

/* Two-column splits. Elementor: parent Container (flex, row) + two children
   with widths set to the same percentages. */
/* Stacked by default. Percentage flex-basis lets columns shrink indefinitely
   rather than wrapping, so side-by-side is opted INTO above 900px rather than
   opted out of below it. Below that width neither column has room to work. */
.alg-split {
  display: flex;
  flex-direction: column;
  gap: var(--alg-gap);
}
.alg-split > * { min-width: 0; }

@media (min-width: 901px) {
  .alg-split {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .alg-split > * { flex: 1 1 380px; }
  .alg-split--5-7 > :first-child { flex: 1 1 40%; }
  .alg-split--5-7 > :last-child  { flex: 1 1 52%; }
  .alg-split--7-5 > :first-child { flex: 1 1 52%; }
  .alg-split--7-5 > :last-child  { flex: 1 1 40%; }
  .alg-split--top { align-items: flex-start; }
  .alg-split--end { align-items: flex-end; }
}

/* Section head: eyebrow + H2 + optional intro, left aligned, measured width. */
.alg-head { max-width: 720px; margin-bottom: 56px; }
.alg-head--wide { max-width: 900px; }

/* Grid used only for the divisions index and the news loop. */
.alg-grid { display: grid; gap: var(--alg-gap); }
.alg-grid--4 { grid-template-columns: repeat(4, 1fr); }
.alg-grid--3 { grid-template-columns: repeat(3, 1fr); }
.alg-grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1024px) {
  .alg-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .alg-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .alg-grid--4,
  .alg-grid--3,
  .alg-grid--2 { grid-template-columns: 1fr; }
}

/* Dark section treatment */
.alg-dark-section {
  background: var(--alg-dark);
  color: rgba(255,255,255,.78);
}
.alg-dark-section h1,
.alg-dark-section h2,
.alg-dark-section h3,
.alg-dark-section h4 { color: #fff; }
.alg-dark-section .alg-eyebrow { color: var(--alg-primary-hi); }
.alg-dark-section .alg-eyebrow::before { border-bottom-color: var(--alg-primary-hi); }
.alg-dark-section .alg-muted { color: var(--alg-silver); }

/* --------------------------------------------------------------------------
   BUTTONS  →  Elementor Button widget (3 saved styles)
   -------------------------------------------------------------------------- */

.alg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--alg-btn-h);
  padding: 0 var(--alg-btn-px);
  border: 1px solid transparent;
  border-radius: var(--alg-radius);
  font-family: var(--alg-font-display);
  font-size: var(--alg-button);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--alg-ease),
              border-color .2s var(--alg-ease),
              color .2s var(--alg-ease);
}
.alg-btn svg { width: 12px; height: 12px; flex: none; }

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

.alg-btn--outline {
  background: transparent;
  color: var(--alg-ink);
  border-color: var(--alg-border);
}
.alg-btn--outline:hover { border-color: var(--alg-ink); }

.alg-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.32);
}
.alg-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.alg-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 640px) {
  .alg-btn { letter-spacing: .07em; }
  .alg-btn svg { width: 10px; height: 10px; }
  .alg-btn-row { gap: 10px; }
  .alg-link { letter-spacing: .07em; padding-bottom: 5px; }
  .alg-link svg { width: 10px; height: 10px; }
}

/* Text link with a red rule that extends on hover */
.alg-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--alg-font-display);
  font-size: var(--alg-button);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--alg-ink);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--alg-primary);
  transition: color .2s var(--alg-ease);
  white-space: nowrap;
}
.alg-link svg {
  width: 11px;
  height: 11px;
  flex: none;
  fill: currentColor;
}
.alg-link:hover { color: var(--alg-primary); }
.alg-dark-section .alg-link { color: #fff; border-bottom-color: var(--alg-primary-hi); }
.alg-dark-section .alg-link:hover { color: var(--alg-primary-hi); }

/* --------------------------------------------------------------------------
   MEDIA  →  Elementor Image widget with a fixed aspect ratio
   -------------------------------------------------------------------------- */

.alg-media { position: relative; overflow: hidden; background: var(--alg-dark-2); }
.alg-media img,
.alg-media svg { width: 100%; height: 100%; object-fit: cover; }

.alg-media--hero { aspect-ratio: 21 / 9; }
.alg-media--wide { aspect-ratio: 16 / 9; }
.alg-media--card { aspect-ratio: 3 / 2; }
.alg-media--tall { aspect-ratio: 4 / 5; }

/* --------------------------------------------------------------------------
   HAIRLINE LIST  →  Elementor Icon List widget, or a Text Editor list
   -------------------------------------------------------------------------- */

.alg-list { list-style: none; margin: 0; padding: 0; }
.alg-list li {
  padding: 18px 0 18px 26px;
  border-bottom: 1px solid var(--alg-border);
  position: relative;
}
.alg-list li::before {
  content: "";
  position: absolute; left: 0; top: 29px;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid var(--alg-primary);
}
.alg-list li:first-child { padding-top: 0; }
.alg-list li:first-child::before { top: 11px; }
.alg-dark-section .alg-list li { border-bottom-color: var(--alg-border-dark); }

/* Definition rows: label left, description right. Used for the customer
   proposition and the value-creation framework.
   Elementor: a Container per row with two child Containers. */
.alg-rows { border-top: 1px solid var(--alg-border); }
.alg-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--alg-gap);
  padding: 26px 0;
  border-bottom: 1px solid var(--alg-border);
}
.alg-row > dt {
  flex: 0 0 300px;
  font-family: var(--alg-font-display);
  font-weight: 700;
  font-size: var(--alg-h4);
  color: var(--alg-ink);
  letter-spacing: -.005em;
}
.alg-row > dd { flex: 1 1 380px; margin: 0; color: var(--alg-text-muted); }
.alg-dark-section .alg-rows,
.alg-dark-section .alg-row { border-color: var(--alg-border-dark); }
.alg-dark-section .alg-row > dt { color: #fff; }
.alg-dark-section .alg-row > dd { color: var(--alg-silver); }

@media (max-width: 640px) {
  .alg-row { padding: 20px 0; gap: 8px; }
  .alg-row > dt { flex: 1 1 100%; }
}

/* Pull quote / statement block with a red rule on the left. */
.alg-statement {
  padding: 0;
  font-family: var(--alg-font-display);
  font-size: var(--alg-h3);
  line-height: 1.42;
  font-weight: 600;
  letter-spacing: -.016em;
  color: var(--alg-ink);
}
.alg-dark-section .alg-statement { color: #fff; }

/* Corner motif - used exactly three times site-wide. */
.alg-corner {
  position: absolute;
  width: 340px;
  max-width: 42vw;
  pointer-events: none;
  user-select: none;
}
