/**
 * Elimu ERP – Homepage
 * Colours, fonts and shadows come from Elimu ERP Core's design tokens (--eerp-*), so the school's
 * chosen colours apply automatically. Button states are set explicitly so the theme's own hover
 * and focus colours cannot override them.
 */

/* Let the homepage use the full width and remove the theme's page box, title and spacing. */
body.eerp-home .site-content {
  padding: 0 !important;
}
body.eerp-home .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
  display: block !important;
}
body.eerp-home #primary {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
body.eerp-home article,
body.eerp-home .ast-separate-container .ast-article-single,
body.eerp-home .ast-separate-container .ast-article-post {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
body.eerp-home .entry-header,
body.eerp-home .ast-breadcrumbs-wrapper {
  display: none !important;
}
body.eerp-home .entry-content {
  margin: 0 !important;
}

.eerp-hp,
.eerp-hp * {
  box-sizing: border-box;
}
.eerp-hp {
  font-family: var(--eerp-font-body);
  color: var(--eerp-text);
  line-height: 1.6;
}
.eerp-hp ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.eerp-hp h1,
.eerp-hp h2,
.eerp-hp h3,
.eerp-hp p {
  margin: 0;
}
.eerp-hp-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.eerp-hp-btn,
.eerp-hp-btn:hover,
.eerp-hp-btn:focus,
.eerp-hp-btn:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--eerp-radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  white-space: nowrap;
}
.eerp-hp-btn:focus-visible {
  outline: 2px solid var(--eerp-brand-accent);
  outline-offset: 2px;
}
.eerp-hp-btn-accent,
.eerp-hp-btn-accent:hover,
.eerp-hp-btn-accent:focus {
  color: var(--eerp-on-brand-accent) !important;
}
.eerp-hp-btn-accent {
  background: var(--eerp-brand-accent) !important;
}
.eerp-hp-btn-accent:hover,
.eerp-hp-btn-accent:focus {
  background: var(--eerp-brand-accent-hover) !important;
}
.eerp-hp-btn-light,
.eerp-hp-btn-light:hover,
.eerp-hp-btn-light:focus {
  color: var(--eerp-on-brand) !important;
  border-color: var(--eerp-on-brand) !important;
}
.eerp-hp-btn-light {
  background: transparent !important;
}
.eerp-hp-btn-light:hover,
.eerp-hp-btn-light:focus {
  background: rgba(255, 255, 255, 0.14) !important;
}
.eerp-hp-btn-brand,
.eerp-hp-btn-brand:hover,
.eerp-hp-btn-brand:focus {
  color: var(--eerp-on-brand) !important;
}
.eerp-hp-btn-brand {
  background: var(--eerp-brand) !important;
}
.eerp-hp-btn-brand:hover,
.eerp-hp-btn-brand:focus {
  background: var(--eerp-brand-hover) !important;
}
.eerp-hp-btn-outline,
.eerp-hp-btn-outline:hover,
.eerp-hp-btn-outline:focus {
  color: var(--eerp-brand) !important;
  border-color: var(--eerp-brand) !important;
}
.eerp-hp-btn-outline {
  background: var(--eerp-surface) !important;
}
.eerp-hp-btn-outline:hover,
.eerp-hp-btn-outline:focus {
  background: var(--eerp-brand-soft) !important;
}
.eerp-hp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero */
.eerp-hp-hero {
  position: relative;
  overflow: hidden;
  background: var(--eerp-brand);
  color: var(--eerp-on-brand);
  padding: 76px 0 116px;
}
.eerp-hp-hero::before {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: var(--eerp-brand-accent);
  opacity: 0.12;
}
.eerp-hp-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.eerp-hp-hero-grid.has-image {
  grid-template-columns: 1.1fr 1fr;
}
.eerp-hp-eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--eerp-brand-accent);
}
.eerp-hp-headline {
  margin: 12px 0 16px !important;
  font-family: var(--eerp-font-display);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--eerp-on-brand);
}
.eerp-hp-sub {
  max-width: 560px;
  margin-bottom: 28px !important;
  font-size: 17px;
  opacity: 0.9;
}
.eerp-hp-hero-media img {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 16px;
}

/* Quick links strip, overlapping the hero */
.eerp-hp-quick {
  position: relative;
  z-index: 2;
  margin-top: -58px;
}
.eerp-hp-quick-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: var(--eerp-surface);
  border: 1px solid var(--eerp-border);
  border-radius: 14px;
  box-shadow: var(--eerp-shadow);
  overflow: hidden;
}
.eerp-hp-quick-list li + li {
  border-left: 1px solid var(--eerp-border);
}
.eerp-hp-quick-list a,
.eerp-hp-quick-list a:hover,
.eerp-hp-quick-list a:focus {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 20px 22px;
  text-decoration: none !important;
  color: var(--eerp-text) !important;
}
.eerp-hp-quick-list a:hover,
.eerp-hp-quick-list a:focus {
  background: var(--eerp-brand-soft);
}
.eerp-hp-quick-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.eerp-hp-quick-text strong {
  font-size: 15px;
  color: var(--eerp-brand);
}
.eerp-hp-quick-text span {
  font-size: 13px;
  color: var(--eerp-text-muted);
}
.eerp-hp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--eerp-brand-soft);
  color: var(--eerp-brand);
}

/* Sections */
.eerp-hp-section {
  padding: 72px 0 0;
}
.eerp-hp-title {
  font-family: var(--eerp-font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--eerp-brand);
}
.eerp-hp-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.eerp-hp-feature-grid li {
  padding: 26px;
  background: var(--eerp-surface);
  border: 1px solid var(--eerp-border);
  border-radius: var(--eerp-radius-lg);
  box-shadow: var(--eerp-shadow-sm);
}
.eerp-hp-feature-grid h3 {
  margin: 16px 0 6px !important;
  font-size: 17px;
  font-weight: 600;
  color: var(--eerp-brand);
}
.eerp-hp-feature-grid p {
  font-size: 14.5px;
  color: var(--eerp-text-muted);
}

.eerp-hp-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
.eerp-hp-about-grid.has-image {
  grid-template-columns: 1fr 1fr;
}
.eerp-hp-about-media img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
}
.eerp-hp-about-text .eerp-hp-title {
  margin-bottom: 16px !important;
}
.eerp-hp-about-text p {
  margin-bottom: 14px !important;
  font-size: 16.5px;
  color: var(--eerp-neutral-700);
}
.eerp-hp-about-text .eerp-hp-btn {
  margin-top: 6px;
}

/* Numbers band */
.eerp-hp-stats {
  margin-top: 72px;
  padding: 48px 0;
  background: var(--eerp-brand);
  color: var(--eerp-on-brand);
}
.eerp-hp-stat-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.eerp-hp-stat-list li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.eerp-hp-stat-number {
  display: block;
  font-family: var(--eerp-font-display);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--eerp-brand-accent);
}
.eerp-hp-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  opacity: 0.9;
}

/* Call to action */
.eerp-hp-cta {
  padding: 68px 0;
  background: var(--eerp-brand-soft);
  text-align: center;
}
.eerp-hp-cta p {
  max-width: 560px;
  margin: 10px auto 24px !important;
  color: var(--eerp-text-muted);
}
.eerp-hp-cta .eerp-hp-actions {
  justify-content: center;
}

@media (max-width: 900px) {
  .eerp-hp-hero {
    padding: 56px 0 100px;
  }
  .eerp-hp-hero-grid.has-image,
  .eerp-hp-about-grid.has-image {
    grid-template-columns: 1fr;
  }
  .eerp-hp-headline {
    font-size: 36px;
  }
  .eerp-hp-quick-list li + li {
    border-left: 0;
    border-top: 1px solid var(--eerp-border);
  }
  .eerp-hp-section {
    padding-top: 56px;
  }
  .eerp-hp-stats {
    margin-top: 56px;
  }
  .eerp-hp-stat-list li + li {
    border-left: 0;
  }
}
@media (max-width: 520px) {
  .eerp-hp-headline {
    font-size: 30px;
  }
  .eerp-hp-title {
    font-size: 26px;
  }
  .eerp-hp-btn {
    width: 100%;
  }
}
