/* ==========================================================================
   Bishoftu International Airport webinar: landing page styles
   Plain CSS, no build step, no external resources. System fonts only.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  color-scheme: light dark;

  --c-bg: #ffffff;
  --c-surface: #f3f7fa;
  --c-tint: #e9f4fa;
  --c-text: #14212e;
  --c-muted: #4a5a69;
  --c-border: #d3dfe8;
  --c-brand: #0098d4;          /* Bavarian blue: decorative use only */
  --c-primary: #005b8c;        /* accessible blue for links and buttons */
  --c-primary-hover: #00476e;
  --c-on-primary: #ffffff;
  --c-link: #005b8c;
  --c-band: #0b2a45;           /* restrained navy accent */
  --c-band-text: #ffffff;
  --c-band-muted: #c9d8e5;
  --c-band-link: #a8dcf5;
  --c-band-btn: #ffffff;
  --c-band-btn-text: #0b2a45;
  --c-focus: #0b2a45;
  --c-focus-band: #ffd34d;
  --c-logo-bg: #ffffff;        /* logos have white backgrounds: keep a white panel in both themes */
  --c-ph-bg: #fff1b8;
  --c-ph-text: #5c4300;
  --c-ph-border: #d9b400;
  --c-lozenge: rgba(0, 152, 212, 0.09);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --radius: 6px;
  --gutter: 1rem;
  --max: 72rem;
  --shadow: 0 1px 2px rgba(11, 42, 69, 0.06), 0 4px 16px rgba(11, 42, 69, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #0d1620;
    --c-surface: #142230;
    --c-tint: #112130;
    --c-text: #e7eef4;
    --c-muted: #a9b8c6;
    --c-border: #2a3d4f;
    --c-primary: #6cc8f2;
    --c-primary-hover: #9adaf8;
    --c-on-primary: #08131c;
    --c-link: #7fd0f5;
    --c-band: #0a1d2e;
    --c-band-text: #ffffff;
    --c-band-muted: #b9c9d7;
    --c-band-link: #9adaf8;
    --c-band-btn: #6cc8f2;
    --c-band-btn-text: #08131c;
    --c-focus: #ffd34d;
    --c-ph-bg: #47380a;
    --c-ph-text: #ffe28a;
    --c-ph-border: #8a6d12;
    --c-lozenge: rgba(108, 200, 242, 0.07);
    --shadow: none;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.85rem, 1.2rem + 3vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1rem; }

a { color: var(--c-link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: 48rem; }

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

/* Placeholder markers: deliberately conspicuous so nothing ships unfilled */
.ph {
  background: var(--c-ph-bg);
  color: var(--c-ph-text);
  border: 1px dashed var(--c-ph-border);
  border-radius: 3px;
  padding: 0 0.3em;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--c-primary);
  color: var(--c-on-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}
.site-name {
  color: var(--c-text);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.3;
  padding-block: 0.5rem;
}
.site-name span { color: var(--c-muted); font-weight: 400; }
.site-nav { display: none; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}
.site-nav a {
  color: var(--c-text);
  text-decoration: none;
  font-size: 0.95rem;
  padding-block: 0.5rem;
}
.site-nav a:hover { color: var(--c-link); text-decoration: underline; }

/* ---------- Buttons and calls to action ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  background: var(--c-primary);
  color: var(--c-on-primary);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--c-primary-hover); text-decoration: none; }
.btn::after { content: "\2192"; margin-left: 0.5rem; }

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-block: 1.75rem;
}
.cta .btn { width: 100%; }
.cta__note {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--c-muted);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--c-tint);
  border-bottom: 4px solid var(--c-brand);
  padding-block: 2.5rem 2rem;
}
/* Very subtle lozenge pattern, faded towards the text. Decorative only:
   a checkerboard rotated 45° and stretched vertically. */
.hero__pattern {
  position: absolute;
  inset: 0 0 0 auto;
  width: 60%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 100%);
  mask-image: linear-gradient(to left, #000 0%, transparent 100%);
  pointer-events: none;
}
.hero__pattern::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: repeating-conic-gradient(var(--c-lozenge) 0 25%, transparent 0 50%) 0 0 / 34px 34px;
  transform: scaleY(1.45) rotate(45deg);
}
.hero > .container { position: relative; }

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.hero h1 { max-width: 22em; }
.subtitle {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  color: var(--c-muted);
  max-width: 38em;
  margin-bottom: 1.75rem;
}

.facts {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius);
  max-width: 50rem;
}
.facts div { display: grid; gap: 0.1rem; }
.facts dt {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.facts dd { margin: 0; font-weight: 600; }
.alt-time { font-weight: 400; color: var(--c-muted); font-size: 0.9em; white-space: nowrap; }

/* Partner logos */
.partners {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}
.partner-group {
  background: var(--c-logo-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem 1.25rem;
}
.partner-group__label {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a5a69; /* fixed: the logo panel stays white in dark mode */
}
.logo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.5rem;
}
/* Sized by width so the images keep their own aspect ratio */
.logo--office   { width: 19rem; }
.logo--ministry { width: 21.5rem; }
.logo--et       { width: 10rem; }

/* ---------- Sections ---------- */
.section { padding-block: 3.5rem; }
.section--surface { background: var(--c-surface); }
.section__intro { color: var(--c-muted); max-width: 40em; margin-bottom: 2rem; }
.lead { font-size: 1.1875rem; line-height: 1.65; }

/* Who should attend */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-top: 4px solid var(--c-brand);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--shadow);
}
.card p { color: var(--c-muted); margin-bottom: 0.25rem; }

/* Agenda */
.agenda-note { color: var(--c-muted); font-size: 0.9375rem; margin-bottom: 1.5rem; }
.agenda {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--c-border);
}
.agenda__item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.25rem 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--c-border);
}
.agenda__time { margin: 0; line-height: 1.3; }
.agenda__time time { display: block; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.agenda__time .tz { font-size: 0.8125rem; font-weight: 700; color: var(--c-muted); }
.agenda__time .alt-time { display: block; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.agenda__body h3 { font-size: 1.0625rem; margin-bottom: 0.25rem; font-weight: 600; }
.agenda__by { color: var(--c-muted); margin: 0; font-size: 0.9375rem; }
.agenda__dur {
  grid-column: 2;
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--c-muted);
}

/* Speakers */
.speaker {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.speaker__photo {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--c-tint);
  border: 1px dashed var(--c-border);
  margin-bottom: 0.75rem;
  object-fit: cover;
}
.speaker h3 { margin-bottom: 0.25rem; }
.speaker__role { margin: 0; font-weight: 600; }
.speaker__org { margin: 0 0 0.5rem; color: var(--c-muted); }

/* Final call to action band */
.band {
  background: var(--c-band);
  color: var(--c-band-text);
  padding-block: 3.5rem;
  --c-focus: var(--c-focus-band);
}
.band p { color: var(--c-band-muted); }
.band a:not(.btn) { color: var(--c-band-link); }
.band .btn { background: var(--c-band-btn); color: var(--c-band-btn-text); }
.band .btn:hover { background: var(--c-tint); }
.band .cta__note { color: var(--c-band-muted); }
.band .ph { color: var(--c-ph-text); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--c-border);
  padding-block: 2rem;
  font-size: 0.9375rem;
  color: var(--c-muted);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.site-footer p { margin: 0; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}
.footer-links a { display: inline-block; padding-block: 0.25rem; }

/* ---------- Sticky register bar (mobile only) ---------- */
.mobile-register {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -4px 16px rgba(11, 42, 69, 0.12);
  transition: transform 0.2s ease, visibility 0.2s;
}
.mobile-register .btn { width: 100%; }
.mobile-register.is-hidden { transform: translateY(110%); visibility: hidden; }
.has-mobile-register { padding-bottom: 5rem; }
.has-mobile-register { scroll-padding-bottom: 5.5rem; }

/* ---------- Legal pages ---------- */
.legal { padding-block: 2.5rem 3.5rem; }
.legal h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }
.legal h2 { font-size: 1.375rem; margin-top: 2.5rem; }
.legal h3 { margin-top: 1.5rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.notice {
  background: var(--c-ph-bg);
  color: var(--c-ph-text);
  border: 1px solid var(--c-ph-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}
.notice p:last-child { margin-bottom: 0; }
.back-link { display: inline-block; margin-bottom: 1.5rem; }

/* ---------- Tablet: 768px and up ---------- */
@media (min-width: 48em) {
  :root { --gutter: 2rem; }
  .site-nav { display: block; }
  .hero { padding-block: 4rem 3rem; }
  .facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.5rem; }
  .cta { flex-direction: row; align-items: center; gap: 1.25rem; }
  .cta .btn { width: auto; }
  .partners { grid-template-columns: auto auto; justify-content: start; }
  .section { padding-block: 4.5rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .agenda__item { grid-template-columns: 7rem 1fr 5rem; }
  .agenda__dur { grid-column: 3; grid-row: 1; margin: 0; text-align: right; }
  .site-footer__inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .mobile-register { display: none; }
  .has-mobile-register { padding-bottom: 0; scroll-padding-bottom: 0; }
}

/* ---------- Desktop: 1024px and up ---------- */
@media (min-width: 64em) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid--speakers { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Windows high contrast / forced colours ---------- */
@media (forced-colors: active) {
  .btn { border-color: ButtonText; }
  .hero__pattern { display: none; }
}
