/* ==========================================================================
   Empowerment Ministry — Template #42
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  --em-midnight: #1a1f3d;
  --em-pearl: #f9f8f6;
  --em-bronze: #a67c52;
  --em-midnight-rgb: 26, 31, 61;
  --em-bronze-rgb: 166, 124, 82;
  --em-font-heading: 'Archivo', sans-serif;
  --em-font-body: 'Libre Baskerville', serif;
  --em-nav-height: 72px;
  --em-banner-height: 40px;
  --em-radius: 8px;
  --em-transition: 0.35s ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--em-font-body);
  color: var(--em-midnight);
  background: var(--em-pearl);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--em-font-heading);
  line-height: 1.2;
}

/* ---------- Utility ---------- */
.em-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.em-section-tag {
  display: inline-block;
  font-family: var(--em-font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--em-bronze);
  margin-bottom: 12px;
}

.em-btn {
  display: inline-block;
  font-family: var(--em-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: var(--em-radius);
  transition: background var(--em-transition), color var(--em-transition), transform 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.em-btn:hover {
  transform: translateY(-2px);
}

.em-btn--bronze {
  background: var(--em-bronze);
  color: #fff;
}

.em-btn--bronze:hover {
  background: #8e6940;
}

.em-btn--white {
  background: #fff;
  color: var(--em-midnight);
}

.em-btn--white:hover {
  background: var(--em-pearl);
}

.em-btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.em-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* ---------- Demo Banner ---------- */
.em-demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--em-banner-height);
  background: var(--em-midnight);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-family: var(--em-font-heading);
  font-size: 0.8rem;
  z-index: 1000;
}

.em-demo-banner a {
  color: var(--em-bronze);
  font-weight: 600;
  transition: opacity var(--em-transition);
}

.em-demo-banner a:hover {
  opacity: 0.75;
}

/* ---------- Navigation ---------- */
.em-nav {
  position: fixed;
  top: var(--em-banner-height);
  left: 0;
  width: 100%;
  height: var(--em-nav-height);
  z-index: 900;
  background: transparent;
  transition: background var(--em-transition), box-shadow var(--em-transition);
}

.em-nav.scrolled {
  background: var(--em-midnight);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.em-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.em-nav__logo {
  font-family: var(--em-font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  white-space: nowrap;
}

.em-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.em-nav__links a {
  font-family: var(--em-font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--em-transition);
}

.em-nav__links a:hover {
  color: #fff;
}

.em-nav__btn {
  background: var(--em-bronze);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: var(--em-radius);
  transition: background var(--em-transition);
}

.em-nav__btn:hover {
  background: #8e6940;
}

/* Hamburger */
.em-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 950;
}

.em-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--em-transition), opacity var(--em-transition);
}

/* ---------- Mobile Slide-In Panel ---------- */
.em-mobile-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 950;
  pointer-events: none;
}

.em-mobile-panel.open {
  pointer-events: auto;
}

.em-mobile-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity var(--em-transition);
}

.em-mobile-panel.open .em-mobile-panel__overlay {
  opacity: 1;
}

.em-mobile-panel__content {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 80%;
  height: 100%;
  background: var(--em-midnight);
  transform: translateX(100%);
  transition: transform var(--em-transition);
  padding: 80px 32px 40px;
  overflow-y: auto;
}

.em-mobile-panel.open .em-mobile-panel__content {
  transform: translateX(0);
}

.em-mobile-panel__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.em-mobile-panel__links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.em-mobile-panel__links a {
  font-family: var(--em-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--em-transition);
}

.em-mobile-panel__links a:hover {
  color: var(--em-bronze);
}

/* ---------- Section 1: Hero ---------- */
.em-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.em-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.em-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(var(--em-midnight-rgb), 0.75) 0%,
    rgba(var(--em-midnight-rgb), 0.55) 50%,
    rgba(var(--em-midnight-rgb), 0.8) 100%
  );
}

.em-hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 24px;
}

.em-hero__heading {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.em-hero__heading em {
  font-style: normal;
  color: var(--em-bronze);
}

.em-hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 560px;
  margin: 0 auto 36px;
  opacity: 0.9;
  line-height: 1.8;
}

.em-hero__cta {
  display: inline-block;
  font-family: var(--em-font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 40px;
  background: var(--em-bronze);
  color: #fff;
  border-radius: var(--em-radius);
  transition: background var(--em-transition), transform 0.2s ease;
}

.em-hero__cta:hover {
  background: #8e6940;
  transform: translateY(-2px);
}

/* ---------- Section 2: Vision ---------- */
.em-vision {
  padding: 120px 0;
  text-align: center;
  background: var(--em-pearl);
}

.em-vision__heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--em-midnight);
}

.em-vision__text {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  color: rgba(var(--em-midnight-rgb), 0.75);
}

.em-vision__quote {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 40px;
  border-left: 4px solid var(--em-bronze);
  background: rgba(var(--em-bronze-rgb), 0.06);
  border-radius: 0 var(--em-radius) var(--em-radius) 0;
  text-align: left;
}

.em-vision__quote p {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--em-midnight);
  margin-bottom: 12px;
}

.em-vision__quote cite {
  font-family: var(--em-font-heading);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--em-bronze);
}

/* ---------- Section 3: Ministry Pillars ---------- */
.em-pillars {
  padding: 120px 0;
  background: var(--em-midnight);
  color: #fff;
  text-align: center;
}

.em-pillars__heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 56px;
}

.em-pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.em-pillars__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--em-radius);
  padding: 40px 28px;
  transition: transform var(--em-transition), background var(--em-transition);
}

.em-pillars__card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
}

.em-pillars__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  color: var(--em-bronze);
}

.em-pillars__icon svg {
  width: 100%;
  height: 100%;
}

.em-pillars__card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.em-pillars__card p {
  font-size: 0.92rem;
  opacity: 0.75;
  line-height: 1.7;
}

/* ---------- Section 4: Leadership ---------- */
.em-leadership {
  padding: 120px 0;
  background: var(--em-pearl);
  text-align: center;
}

.em-leadership__heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 56px;
  color: var(--em-midnight);
}

.em-leadership__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.em-leadership__card {
  background: #fff;
  border-radius: var(--em-radius);
  padding: 40px 28px 36px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: transform var(--em-transition), box-shadow var(--em-transition);
}

.em-leadership__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.em-leadership__photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--em-bronze);
}

.em-leadership__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.em-leadership__card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--em-midnight);
}

.em-leadership__role {
  display: inline-block;
  font-family: var(--em-font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--em-bronze);
  margin-bottom: 16px;
}

.em-leadership__card p {
  font-size: 0.92rem;
  color: rgba(var(--em-midnight-rgb), 0.7);
  line-height: 1.7;
}

/* ---------- Section 5: Resources ---------- */
.em-resources {
  padding: 120px 0;
  background: #fff;
  text-align: center;
}

.em-resources__heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 56px;
  color: var(--em-midnight);
}

.em-resources__featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--em-radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 56px;
  text-align: left;
}

.em-resources__featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.em-resources__featured-body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--em-pearl);
}

.em-resources__badge {
  display: inline-block;
  font-family: var(--em-font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--em-bronze);
  margin-bottom: 16px;
}

.em-resources__featured-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--em-midnight);
}

.em-resources__featured-body p {
  font-size: 0.95rem;
  color: rgba(var(--em-midnight-rgb), 0.7);
  margin-bottom: 28px;
  line-height: 1.7;
}

.em-resources__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: left;
}

.em-resources__item {
  padding: 32px;
  background: var(--em-pearl);
  border-radius: var(--em-radius);
  transition: transform var(--em-transition);
}

.em-resources__item:hover {
  transform: translateY(-4px);
}

.em-resources__item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--em-midnight);
}

.em-resources__item p {
  font-size: 0.9rem;
  color: rgba(var(--em-midnight-rgb), 0.7);
  margin-bottom: 16px;
  line-height: 1.7;
}

.em-resources__item a {
  font-family: var(--em-font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--em-bronze);
  transition: opacity var(--em-transition);
}

.em-resources__item a:hover {
  opacity: 0.7;
}

/* ---------- Section 6: Events ---------- */
.em-events {
  padding: 120px 0;
  background: var(--em-pearl);
  text-align: center;
}

.em-events__heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 56px;
  color: var(--em-midnight);
}

.em-events__grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.em-events__card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  background: #fff;
  padding: 32px;
  border-radius: var(--em-radius);
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform var(--em-transition), box-shadow var(--em-transition);
}

.em-events__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.em-events__date {
  flex-shrink: 0;
  width: 72px;
  text-align: center;
  padding: 12px 0;
  background: var(--em-midnight);
  border-radius: var(--em-radius);
  color: #fff;
}

.em-events__month {
  display: block;
  font-family: var(--em-font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--em-bronze);
}

.em-events__day {
  display: block;
  font-family: var(--em-font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.em-events__info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--em-midnight);
}

.em-events__info p {
  font-size: 0.92rem;
  color: rgba(var(--em-midnight-rgb), 0.7);
  margin-bottom: 10px;
  line-height: 1.7;
}

.em-events__meta {
  font-family: var(--em-font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--em-bronze);
}

/* ---------- Section 7: Testimonials ---------- */
.em-testimonials {
  padding: 120px 0;
  background: var(--em-midnight);
  color: #fff;
  text-align: center;
}

.em-testimonials__heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 56px;
}

.em-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.em-testimonials__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--em-radius);
  padding: 40px 36px;
  text-align: left;
  transition: background var(--em-transition);
}

.em-testimonials__card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.em-testimonials__card > p {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 28px;
}

.em-testimonials__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.em-testimonials__author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--em-bronze);
}

.em-testimonials__author strong {
  display: block;
  font-family: var(--em-font-heading);
  font-size: 0.95rem;
}

.em-testimonials__author span {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ---------- Section 8: CTA ---------- */
.em-cta {
  padding: 120px 0;
  background: linear-gradient(
    135deg,
    var(--em-bronze) 0%,
    #8e6940 100%
  );
  color: #fff;
  text-align: center;
}

.em-cta__heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.em-cta__text {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  opacity: 0.9;
  line-height: 1.8;
}

.em-cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Section 9: Footer ---------- */
.em-footer {
  padding: 80px 0 0;
  background: var(--em-midnight);
  color: rgba(255, 255, 255, 0.75);
}

.em-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.em-footer__col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.em-footer__col p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.em-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.em-footer__col a {
  font-size: 0.9rem;
  transition: color var(--em-transition);
}

.em-footer__col a:hover {
  color: var(--em-bronze);
}

.em-footer__social {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.em-footer__social a {
  font-family: var(--em-font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--em-transition);
}

.em-footer__social a:hover {
  color: var(--em-bronze);
}

.em-footer__bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ---------- Scroll Reveal ---------- */
.em-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.em-reveal.em-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive — 1024px
   ========================================================================== */
@media (max-width: 1024px) {
  .em-pillars__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .em-leadership__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .em-resources__featured {
    grid-template-columns: 1fr;
  }

  .em-resources__featured img {
    max-height: 320px;
  }

  .em-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   Responsive — 768px
   ========================================================================== */
@media (max-width: 768px) {
  .em-nav__links {
    display: none;
  }

  .em-hamburger {
    display: flex;
  }

  .em-leadership__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .em-resources__grid {
    grid-template-columns: 1fr;
  }

  .em-testimonials__grid {
    grid-template-columns: 1fr;
  }

  .em-events__card {
    flex-direction: column;
    align-items: stretch;
  }

  .em-events__date {
    width: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 10px;
  }

  .em-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .em-vision,
  .em-pillars,
  .em-leadership,
  .em-resources,
  .em-events,
  .em-testimonials,
  .em-cta {
    padding: 80px 0;
  }
}

/* ==========================================================================
   Responsive — 480px
   ========================================================================== */
@media (max-width: 480px) {
  .em-demo-banner {
    font-size: 0.7rem;
    padding: 0 12px;
  }

  .em-demo-banner span {
    display: none;
  }

  .em-hero__heading {
    font-size: 2rem;
  }

  .em-hero__sub {
    font-size: 0.95rem;
  }

  .em-hero__cta {
    padding: 14px 28px;
    font-size: 0.9rem;
  }

  .em-pillars__grid {
    grid-template-columns: 1fr;
  }

  .em-pillars__card {
    padding: 32px 20px;
  }

  .em-resources__featured-body {
    padding: 28px 20px;
  }

  .em-testimonials__card {
    padding: 28px 24px;
  }

  .em-cta__buttons {
    flex-direction: column;
    align-items: center;
  }

  .em-cta__buttons .em-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .em-vision,
  .em-pillars,
  .em-leadership,
  .em-resources,
  .em-events,
  .em-testimonials,
  .em-cta {
    padding: 60px 0;
  }
}
