/*
 * Home page (resources/views/pages/home.blade.php). Same visual language as the
 * header, footer and Kenya 2027 pages. Everything is scoped under .hp.
 */
.hp {
  --hp-navy: #0d2b5c;
  --hp-navy-2: #123a78;
  --hp-ink: #14213d;
  --hp-text: #3a4762;
  --hp-muted: #66718a;
  --hp-line: #e1e7f0;
  --hp-soft: #f3f6fb;
  --hp-blue: #1f5fbf;
  --hp-green: #17924a;
  --hp-green-2: #2fbf5a;
  --hp-red: #d9232b;
  --hp-radius: 16px;
  --hp-shadow: 0 1px 2px rgba(13, 43, 92, .06), 0 10px 30px rgba(13, 43, 92, .09);
  --hp-gradient: linear-gradient(90deg, #1f5fbf 0%, #1a8a8c 50%, #2fbf5a 100%);
  --hp-head: "Montserrat", "Ubuntu", system-ui, sans-serif;

  font-family: "Ubuntu", system-ui, sans-serif;
  color: var(--hp-text);
  font-size: 16px;
  line-height: 1.7;
}
.hp *, .hp *::before, .hp *::after { box-sizing: border-box; }
:where(.hp) :is(h1, h2, h3, p, ul, figure) { margin: 0; padding: 0; }
:where(.hp) li { list-style: none; }
:where(.hp) :is(h1, h2, h3) { font-family: var(--hp-head); color: var(--hp-ink); line-height: 1.2; }
.hp a { text-decoration: none; }
.hp :focus-visible { outline: 3px solid #f5b400; outline-offset: 3px; border-radius: 6px; }

.hp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.hp-section { padding: 88px 0; }
.hp-section--soft { background: var(--hp-soft); }
.hp-section--tight { padding: 56px 0; }
.hp-section--navy {
  color: #d5e0f3;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(47, 191, 90, .14), transparent 60%),
    linear-gradient(160deg, var(--hp-navy) 0%, #0a2048 100%);
}

/* Type */
.hp-eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--hp-head); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hp-green); margin-bottom: 14px; }
.hp-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--hp-gradient); }
.hp-eyebrow--light { color: #8fe3a8; }
.hp-h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: 18px; }
.hp-h2--light { color: #fff; }
.hp-lead { font-size: 17.5px; line-height: 1.75; color: var(--hp-text); margin-bottom: 28px; }
.hp-head { margin-bottom: 36px; }
.hp-head--center { text-align: center; }
.hp-head--center .hp-eyebrow::before { display: none; }

/* Buttons */
.hp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 50px; padding: 0 24px; border-radius: 12px;
  font-family: var(--hp-head); font-weight: 700; font-size: 15px; border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.hp-btn:hover { transform: translateY(-2px); }
.hp-btn--primary { background: var(--hp-red); color: #fff !important; box-shadow: 0 8px 20px rgba(217, 35, 43, .28); }
.hp-btn--primary:hover { background: #b81c23; }
.hp-btn--ghost { color: #fff !important; border-color: rgba(255, 255, 255, .5); }
.hp-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.hp-btn--outline { color: var(--hp-navy) !important; border-color: #c9d5e8; background: #fff; }
.hp-btn--outline:hover { border-color: var(--hp-blue); color: var(--hp-blue) !important; }
.hp-btn--navy { background: var(--hp-navy); color: #fff !important; }
.hp-btn--navy:hover { background: var(--hp-blue); }
.hp-btn--block { width: 100%; }
.hp-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hp-link { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--hp-head); font-weight: 700; color: var(--hp-blue); }
.hp-link i { transition: transform .18s ease; }
.hp-link:hover i { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hp-hero { position: relative; overflow: hidden; color: #fff; min-height: min(86vh, 720px); display: flex; align-items: center; padding: 90px 0 110px; background: var(--hp-navy); }
.hp-hero__media { position: absolute; inset: 0; }
.hp-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 7s ease; }
.hp-hero__bg.is-active { opacity: 1; transform: scale(1); }
.hp-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 31, 69, .95) 0%, rgba(13, 43, 92, .86) 45%, rgba(13, 43, 92, .45) 100%); }
.hp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, #1f5fbf, #2fbf5a 80%, #d9232b 80%, #d9232b 86%, #2fbf5a 86%); }
.hp-hero__grid { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); gap: 48px; align-items: center; }
.hp-hero__slides { display: grid; }
.hp-hero__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease, visibility .7s; }
.hp-hero__slide.is-active { opacity: 1; visibility: visible; transform: none; }
.hp-hero__slides > .hp-btn-row, .hp-hero__controls { grid-column: 1; }
.hp-hero__title { color: #fff; font-family: var(--hp-head); font-weight: 800; font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 20px; max-width: 760px; }
.hp-hero__text { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.7; color: #dbe5f6; max-width: 640px; margin-bottom: 32px; }
.hp-hero__controls { display: flex; align-items: center; gap: 14px; margin-top: 40px; }
.hp-hero__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background-color .18s ease; }
.hp-hero__arrow:hover { background: rgba(255, 255, 255, .18); }
.hp-hero__dots { display: flex; gap: 8px; }
.hp-hero__dot { width: 46px; height: 24px; padding: 0; background: none; border: 0; cursor: pointer; display: flex; align-items: center; }
.hp-hero__dot span { display: block; width: 100%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.hp-hero__dot span::after { content: ""; position: absolute; inset: 0; background: var(--hp-green-2); transform: scaleX(0); transform-origin: left; }
.hp-hero__dot.is-active span::after { transform: scaleX(1); transition: transform var(--hp-slide-ms, 6500ms) linear; }
.hp-hero.is-paused .hp-hero__dot.is-active span::after { transition: none; }
.hp-hero__badge { justify-self: end; text-align: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); border-radius: 24px; padding: 28px 26px; max-width: 300px; }
.hp-hero__badge img { width: 180px; height: auto; display: block; margin: 0 auto 14px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .3)); }
.hp-hero__badge p { color: #fff; font-family: var(--hp-head); font-weight: 600; font-size: 16px; line-height: 1.4; }

/* ---------- Who we are ---------- */
.hp-who { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 56px; align-items: center; }
.hp-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 30px; }
.hp-stat { background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); padding: 20px; display: grid; gap: 4px; box-shadow: var(--hp-shadow); }
.hp-stat__icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--hp-gradient); color: #fff; margin-bottom: 8px; }
.hp-stat b { font-family: var(--hp-head); font-size: 2.2rem; line-height: 1; color: var(--hp-navy); font-variant-numeric: tabular-nums; }
.hp-stat > span:last-child { color: var(--hp-muted); font-size: 15px; }
.hp-join { position: relative; overflow: hidden; border-radius: 22px; padding: 36px 30px 30px; text-align: center; color: #fff; background: linear-gradient(160deg, var(--hp-navy) 0%, var(--hp-navy-2) 100%); box-shadow: 0 24px 50px rgba(13, 43, 92, .25); }
.hp-join::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--hp-gradient); }
.hp-join::after { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; bottom: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 191, 90, .3), transparent 70%); }
.hp-join__logo { width: 120px; height: auto; background: #fff; border-radius: 18px; padding: 10px; margin: 0 auto 18px; display: block; }
.hp-join h2 { color: #fff; font-size: 2rem; font-weight: 800; margin-bottom: 20px; }
.hp-join .hp-btn { position: relative; z-index: 1; }
.hp-join__tag { display: block; margin-top: 16px; font-family: var(--hp-head); font-weight: 700; letter-spacing: .25em; color: #8fe3a8; font-size: 13px; }

/* ---------- Conferences ---------- */
.hp-conf { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); background: #fff; border: 1px solid var(--hp-line); border-radius: 22px; overflow: hidden; box-shadow: var(--hp-shadow); }
.hp-conf + .hp-conf { margin-top: 24px; }
.hp-conf__media { display: block; position: relative; overflow: hidden; background: #e9eef5; }
.hp-conf__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
a.hp-conf__media:hover img { transform: scale(1.03); }
.hp-conf__body { padding: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hp-conf__body h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 800; }
.hp-conf__theme { font-family: var(--hp-head); font-weight: 600; color: var(--hp-ink); font-size: 1.05rem; line-height: 1.5; padding-left: 14px; border-left: 4px solid var(--hp-green-2); }
.hp-conf__theme strong { color: var(--hp-red); }
.hp-conf--compact { grid-template-columns: 220px minmax(0, 1fr); }
.hp-conf--compact .hp-conf__body { padding: 28px 32px; gap: 12px; }
.hp-conf--compact .hp-conf__body h3 { font-size: 1.3rem; }
.hp-conf--compact .hp-conf__body p { font-size: 15.5px; }
.hp-facts { display: grid; gap: 8px; }
.hp-facts li { display: flex; gap: .7rem; align-items: baseline; font-size: 15px; color: var(--hp-text); }
.hp-facts i { color: var(--hp-green); width: 18px; text-align: center; }
.hp-facts a { color: var(--hp-blue); font-weight: 700; }
.hp-pill { display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .85rem; border-radius: 999px; font-size: 13px; font-weight: 700; }
.hp-pill--live { background: #e6f6ec; color: #0f6b35; border: 1px solid #b5e3c5; }
.hp-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--hp-green-2); box-shadow: 0 0 0 0 rgba(47, 191, 90, .6); animation: hp-pulse 1.8s infinite; }
@keyframes hp-pulse { 70% { box-shadow: 0 0 0 9px rgba(47, 191, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 90, 0); } }

/* ---------- Mission ---------- */
.hp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hp-photo { position: relative; }
.hp-photo::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; border-radius: 24px; background: var(--hp-gradient); opacity: .9; }
.hp-photo img { position: relative; display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: var(--hp-shadow); }
.hp-counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hp-counter { padding: 18px 16px; border-radius: var(--hp-radius); background: var(--hp-soft); border-top: 4px solid var(--hp-blue); }
.hp-counter:nth-child(2) { border-top-color: var(--hp-green); }
.hp-counter:nth-child(3) { border-top-color: var(--hp-red); }
.hp-counter b { display: block; font-family: var(--hp-head); font-size: 2rem; line-height: 1.1; color: var(--hp-navy); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.hp-counter > span { font-size: 14.5px; color: var(--hp-muted); line-height: 1.4; display: block; }

/* ---------- About ANMC (navy) ---------- */
.hp-about { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 56px; align-items: start; }
.hp-about__sub { font-family: var(--hp-head); font-size: 1.25rem; font-weight: 600; color: #8fe3a8; margin-bottom: 14px; }
.hp-about__text { color: #d5e0f3; font-size: 17px; margin-bottom: 34px; }
.hp-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hp-benefit { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--hp-radius); padding: 22px; transition: background-color .2s ease, transform .2s ease, border-color .2s ease; }
.hp-benefit:hover { background: rgba(255, 255, 255, .1); border-color: rgba(143, 227, 168, .45); transform: translateY(-3px); }
.hp-benefit__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--hp-gradient); color: #fff; font-size: 18px; margin-bottom: 14px; }
.hp-benefit h3 { color: #fff; font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.hp-benefit p { color: #c3d1ea; font-size: 15px; line-height: 1.6; }
.hp-about__photo { position: sticky; top: 110px; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, .3); }
.hp-about__photo img { display: block; width: 100%; height: auto; }
.hp-about__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 22px; color: #fff; font-family: var(--hp-head); font-weight: 700; font-size: 1.15rem; line-height: 1.35;
  background: linear-gradient(transparent, rgba(10, 31, 69, .92));
}

/* ---------- Constitution CTA ---------- */
.hp-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px; align-items: center; padding: 34px 36px; border-radius: 22px; background: #fff; border: 1px solid var(--hp-line); box-shadow: var(--hp-shadow); position: relative; overflow: hidden; }
.hp-cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--hp-gradient); }
.hp-cta__icon { width: 70px; height: 70px; border-radius: 18px; display: grid; place-items: center; background: #eef4ff; color: var(--hp-blue); font-size: 28px; }
.hp-cta h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.hp-cta p { color: var(--hp-muted); max-width: 640px; }

/* ---------- Partners ---------- */
.hp-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); margin-bottom: 40px; }
.hp-marquee__track { display: flex; gap: 24px; width: max-content; animation: hp-marquee 28s linear infinite; }
.hp-marquee:hover .hp-marquee__track, .hp-marquee:focus-within .hp-marquee__track { animation-play-state: paused; }
.hp-marquee li a { display: grid; place-items: center; width: 240px; height: 110px; padding: 18px 24px; border-radius: var(--hp-radius); background: #fff; border: 1px solid var(--hp-line); transition: box-shadow .2s ease, border-color .2s ease; }
.hp-marquee li a:hover { box-shadow: var(--hp-shadow); border-color: #c9d5e8; }
.hp-marquee img { max-width: 100%; max-height: 64px; object-fit: contain; }
@keyframes hp-marquee { to { transform: translateX(calc(-50% - 12px)); } }
.hp-partner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: 36px; border-radius: 22px; background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%); border: 1px solid var(--hp-line); }
.hp-partner h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.hp-partner p { color: var(--hp-text); font-size: 16px; }
.hp-partner p strong { color: var(--hp-navy); }

/* ---------- News ---------- */
.hp-news { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; padding-bottom: 8px; border-bottom: 1px solid var(--hp-line); }
.hp-news .hp-lead { margin-bottom: 20px; max-width: 720px; }

/* Reveal on scroll */
.hp .hp-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.hp .hp-reveal.is-visible { opacity: 1; transform: none; }
.hp-no-js .hp-reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hp *, .hp *::before, .hp *::after { transition: none !important; animation: none !important; }
  .hp .hp-reveal { opacity: 1; transform: none; }
  .hp-marquee__track { flex-wrap: wrap; justify-content: center; width: auto; }
  .hp-marquee li[aria-hidden="true"] { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hp-section { padding: 72px 0; }
  .hp-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hp-hero__badge { display: none; }
  .hp-who, .hp-split, .hp-about { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hp-join { max-width: 460px; }
  .hp-about__photo { position: relative; top: 0; max-width: 460px; }
  .hp-conf { grid-template-columns: minmax(0, 1fr); }
  .hp-conf__media { max-height: 420px; }
  .hp-conf--compact { grid-template-columns: 180px minmax(0, 1fr); }
  .hp-conf--compact .hp-conf__media { max-height: none; }
}
@media (max-width: 680px) {
  .hp-wrap { padding: 0 16px; }
  .hp-section { padding: 56px 0; }
  .hp-hero { min-height: 0; padding: 64px 0 88px; }
  .hp-hero__controls { margin-top: 28px; }
  .hp-btn-row .hp-btn { flex: 1 1 100%; }
  .hp-btn { white-space: normal; text-align: center; }
  .hp-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .hp-stat { padding: 16px; }
  .hp-stat b { font-size: 1.8rem; }
  .hp-counters { grid-template-columns: minmax(0, 1fr); }
  .hp-counter { display: flex; align-items: center; gap: 16px; }
  .hp-counter b { margin: 0; min-width: 90px; }
  .hp-benefits { grid-template-columns: minmax(0, 1fr); }
  .hp-conf__body { padding: 26px 22px; }
  .hp-conf--compact { grid-template-columns: minmax(0, 1fr); }
  .hp-conf--compact .hp-conf__media { max-height: 260px; }
  .hp-cta { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; }
  .hp-partner, .hp-news { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; }
  .hp-news { padding: 0 0 8px; }
  .hp-photo::before { inset: 14px -10px -10px 14px; }
  .hp-marquee li a { width: 190px; height: 92px; }
}
