/* ==========================================================================
   Christiani Africa - landing gateway
   One screen, no scrolling. Two destinations: the group website or the
   training portal. Sizing is expressed in vh-aware clamps so the layout
   always fits the viewport height without a scrollbar.
   ========================================================================== */

:root {
  --blue: #085ca4;
  --blue-bright: #2b8ee0;
  --blue-deep: #063f72;
  --red: #e0081b;
  --ink: #0b1a2b;
  --ink-soft: #3d4d60;
  --muted: #6b7c91;
  --line: #e3eaf2;
  --shadow-sm: 0 2px 8px rgba(11, 26, 43, 0.06);
  --shadow: 0 18px 40px rgba(11, 26, 43, 0.1);
  --shadow-lg: 0 26px 60px rgba(6, 63, 114, 0.3);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(900px 560px at 88% -14%, rgba(43, 142, 224, 0.2), transparent 62%),
    radial-gradient(720px 460px at 2% 6%, rgba(224, 8, 27, 0.07), transparent 60%),
    linear-gradient(180deg, #f7fafe 0%, #ffffff 72%);
}

/* Faint engineering grid, faded out from the centre. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(8, 92, 164, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 92, 164, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 74%);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 74%);
}

a {
  color: inherit;
}

/* ------------------------------- Layout ---------------------------------- */

.gateway {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vh, 26px);
  padding: clamp(18px, 5vh, 56px) clamp(20px, 5vw, 40px);
  text-align: center;
}

/* ------------------------------- Brand ----------------------------------- */

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-lockup img {
  height: clamp(30px, 4.6vh, 42px);
  width: auto;
  display: block;
}

.brand-divider {
  width: 1px;
  height: clamp(24px, 3.6vh, 34px);
  background: var(--line);
}

.brand-word {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.brand-word strong {
  font-size: clamp(0.86rem, 1.5vh, 1rem);
  letter-spacing: 0.01em;
}

.brand-word span {
  font-size: clamp(0.6rem, 1.05vh, 0.68rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------- Copy ------------------------------------ */

.gateway h1 {
  margin: 0;
  max-width: 22em;
  font-size: clamp(1.35rem, 4.2vh, 2.25rem);
  line-height: 1.14;
  letter-spacing: -0.022em;
}

.lead {
  margin: 0;
  max-width: 34em;
  font-size: clamp(0.86rem, 1.9vh, 1rem);
  color: var(--ink-soft);
}

/* ------------------------------ Choices ---------------------------------- */

.choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(10px, 1.7vh, 18px);
  width: min(760px, 100%);
  margin-top: clamp(2px, 1vh, 10px);
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 18px);
  padding: clamp(14px, 2.3vh, 22px) clamp(16px, 2vw, 24px);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease,
    background 0.22s ease, color 0.22s ease;
}

.choice-icon {
  flex: none;
  width: clamp(38px, 5.2vh, 46px);
  height: clamp(38px, 5.2vh, 46px);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(8, 92, 164, 0.09);
  color: var(--blue);
  transition: background 0.22s ease, color 0.22s ease;
}

.choice-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.choice-body strong {
  font-size: clamp(0.95rem, 2vh, 1.08rem);
  letter-spacing: -0.01em;
}

.choice-body span {
  font-size: clamp(0.78rem, 1.65vh, 0.9rem);
  color: var(--muted);
  transition: color 0.22s ease;
}

.choice-arrow {
  flex: none;
  margin-left: auto;
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: transform 0.22s ease, color 0.22s ease;
}

.choice:hover {
  transform: translateY(-2px);
  border-color: rgba(43, 142, 224, 0.55);
  box-shadow: var(--shadow);
}

.choice:hover .choice-arrow {
  transform: translate(3px, -3px);
  color: var(--blue);
}

/* Primary destination: the training portal. */
.choice-portal {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: #fff;
  box-shadow: 0 14px 30px rgba(8, 92, 164, 0.32);
}

.choice-portal .choice-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.choice-portal .choice-body span {
  color: rgba(255, 255, 255, 0.82);
}

.choice-portal .choice-arrow {
  color: rgba(255, 255, 255, 0.9);
}

.choice-portal:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.choice-portal:hover .choice-arrow {
  color: #fff;
}

.choice:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* ------------------------------- Footer ---------------------------------- */

.foot {
  margin: 0;
  font-size: clamp(0.7rem, 1.5vh, 0.8rem);
  color: var(--muted);
}

.foot a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(107, 124, 145, 0.4);
}

.foot a:hover {
  color: var(--blue);
  border-bottom-color: currentColor;
}

.foot-sep {
  margin: 0 2px;
}

/* ------------------------------ Responsive ------------------------------- */

/* Wide screens: the two destinations sit side by side. */
@media (min-width: 800px) {
  .choices {
    grid-template-columns: 1fr 1fr;
  }

  .choice {
    align-items: flex-start;
    flex-direction: column;
    gap: clamp(10px, 1.6vh, 16px);
    padding: clamp(18px, 2.8vh, 28px);
  }

  .choice-arrow {
    position: absolute;
    top: clamp(16px, 2.6vh, 24px);
    right: clamp(16px, 2.2vw, 24px);
    margin: 0;
  }
}

/* Short viewports (landscape phones, small laptop windows): tighten up and
   keep the destinations side by side so nothing is clipped. */
@media (max-height: 620px) and (min-width: 620px) {
  .choices {
    grid-template-columns: 1fr 1fr;
  }

  .choice {
    align-items: center;
    flex-direction: row;
  }

  .choice-arrow {
    position: static;
    margin-left: auto;
    margin-top: 0;
  }
}

@media (max-height: 520px) {
  .lead {
    display: none;
  }

  .gateway {
    gap: 10px;
    padding: 14px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .choice,
  .choice-arrow,
  .choice-icon {
    transition: none;
  }
}
