:root {
  --bg: #f7f4ed;
  --bg-alt: #ece4d2;
  --ink: #202734;
  --muted: #4b5568;
  --brand: #1f4f86;
  --brand-deep: #17395f;
  --accent: #d2a44b;
  --card: rgba(255, 252, 244, 0.82);
  --line: rgba(25, 63, 104, 0.14);
  --shadow: 0 18px 55px rgba(22, 45, 79, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(130% 90% at 100% 0%, #dbe7f8 0%, transparent 60%),
    radial-gradient(110% 80% at 0% 100%, #f1dfbd 0%, transparent 58%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 60% 40%, rgba(0, 0, 0, 0.7), transparent 76%);
  z-index: -3;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(24px);
  z-index: -2;
  opacity: 0.7;
  animation: float 13s ease-in-out infinite;
}

.orb-1 {
  width: 280px;
  height: 280px;
  right: -70px;
  top: 110px;
  background: linear-gradient(180deg, rgba(31, 79, 134, 0.42), rgba(210, 164, 75, 0.5));
}

.orb-2 {
  width: 240px;
  height: 240px;
  left: -50px;
  bottom: 130px;
  background: linear-gradient(180deg, rgba(210, 164, 75, 0.46), rgba(31, 79, 134, 0.38));
  animation-delay: 2.6s;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 4.6rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(247, 244, 237, 0.72);
  border-bottom: 1px solid rgba(23, 57, 95, 0.12);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
  border: 1px solid rgba(23, 57, 95, 0.2);
  box-shadow: 0 8px 20px rgba(22, 45, 79, 0.22);
}

.brand-text {
  font-family: "Cinzel", serif;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 1.15rem;
  align-items: center;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(23, 57, 95, 0.24);
  border-radius: 10px;
  background: rgba(255, 253, 247, 0.82);
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-deep);
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  padding-top: 6rem;
  padding-bottom: 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.8rem;
  align-items: stretch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--brand-deep);
  margin: 0 0 1rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 5.6vw, 4rem);
  margin-bottom: 1rem;
}

h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  margin-bottom: 1rem;
}

h3 {
  font-family: "Cinzel", serif;
  font-size: 1.4rem;
  margin-bottom: 0.65rem;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.78rem;
}

.btn {
  text-decoration: none;
  font-weight: 700;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand), #2f679f);
  color: #f5fff6;
  box-shadow: 0 10px 30px rgba(23, 57, 95, 0.24);
}

.btn-ghost {
  color: var(--brand-deep);
  border-color: rgba(23, 57, 95, 0.34);
  background: rgba(252, 248, 239, 0.78);
}

.card,
.hero-panel,
.pillar {
  background: var(--card);
  border: 1px solid rgba(23, 57, 95, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.5rem;
  position: relative;
  overflow: clip;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -40px -62px auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(210, 164, 75, 0.24), transparent 68%);
}

.hero-panel ul {
  margin: 0;
  padding-left: 1.15rem;
}

.hero-panel li {
  margin-bottom: 0.8rem;
}

.card {
  padding: 1.8rem;
}

.mission-card,
.impact-card {
  text-align: center;
}

.mission-media {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 35px rgba(22, 45, 79, 0.2);
}

.mission-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.mission-media-single {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.mission-gallery-wrap {
  margin-top: 1rem;
}

.mission-media img {
  width: 100%;
  height: clamp(260px, 34vw, 460px);
  max-height: 70vh;
  object-fit: cover;
  object-position: center;
  display: block;
}

.split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 1.8rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pillar {
  padding: 1.4rem;
  transform: rotate(var(--tilt));
  transition: transform 260ms ease, border-color 260ms ease;
}

.pillar:hover,
.pillar:focus-within {
  transform: rotate(0deg) translateY(-6px);
  border-color: rgba(31, 79, 134, 0.34);
}

.nonprofit-badge {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(23, 57, 95, 0.26);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  background: rgba(255, 254, 247, 0.72);
  font-weight: 700;
  color: var(--brand-deep);
}

.sundays-card {
  text-align: center;
  position: relative;
  background:
    linear-gradient(160deg, rgba(255, 253, 247, 0.95), rgba(245, 239, 224, 0.82)),
    var(--card);
}

.sundays-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(220px, 62%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(210, 164, 75, 0.25), rgba(210, 164, 75, 0.8), rgba(210, 164, 75, 0.25));
}

.sundays-subtitle {
  color: var(--muted);
  margin-top: -0.2rem;
  margin-bottom: 1.2rem;
}

.sundays-time {
  margin: 0 0 1rem;
  line-height: 1.7;
}

.sundays-scripture {
  margin: 0;
  color: #3b4760;
}

.sundays-reference {
  margin-top: 0.35rem;
  margin-bottom: 1.5rem;
  color: var(--brand-deep);
}

.sundays-heading {
  font-size: 1.24rem;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

.sundays-whatsapp {
  margin-top: 0.25rem;
}

.sundays-principle {
  margin-top: 1.3rem;
  text-align: center;
  border-top: 1px solid rgba(210, 164, 75, 0.38);
  padding-top: 1rem;
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

.sundays-principle p {
  text-align: center;
  margin: 0 0 0.85rem;
}

.founders-section {
  padding-top: 3.2rem;
}

.founders-card {
  text-align: left;
  background:
    linear-gradient(160deg, rgba(255, 253, 247, 0.9), rgba(235, 243, 252, 0.88)),
    var(--card);
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.founder-profile {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(23, 57, 95, 0.16);
  border-radius: 16px;
  background: rgba(255, 254, 250, 0.85);
}

.founder-image {
  width: 128px;
  height: 128px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 12px 26px rgba(22, 45, 79, 0.16);
}

.founder-image-rajah {
  object-position: center 18%;
}

.founder-content h3 {
  margin-bottom: 0.5rem;
}

.founder-bio-summary {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.founder-bio {
  margin-top: 0.2rem;
}

.founder-bio p {
  margin: 0 0 0.8rem;
}

.read-more-btn {
  appearance: none;
  border: 1px solid rgba(23, 57, 95, 0.28);
  background: rgba(255, 255, 255, 0.84);
  color: var(--brand-deep);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.42rem 0.92rem;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.read-more-btn:hover,
.read-more-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(23, 57, 95, 0.48);
  background: rgba(246, 251, 255, 0.95);
}

.site-footer {
  padding: 2.2rem 0 2.8rem;
}

.footer-content {
  border-top: 1px solid rgba(23, 57, 95, 0.16);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #3f4f65;
}

.footer-contact-link {
  color: inherit;
  text-decoration: none;
  font: inherit;
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
  text-decoration: none;
}

.footer-contact-mini {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-contact-mini p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.delay-1 {
  transition-delay: 120ms;
}

.delay-2 {
  transition-delay: 240ms;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@media (max-width: 930px) {
  .hero-grid,
  .split-layout,
  .pillars-grid,
  .mission-media-grid,
  .founders-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.7rem;
  }

  .pillar {
    transform: rotate(0deg);
  }

  .nav-links {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.8rem 0;
  }

  .site-header {
    position: static;
  }

  .nav-wrap {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-top: 0.6rem;
    padding: 0.7rem;
    border: 1px solid rgba(23, 57, 95, 0.16);
    border-radius: 14px;
    background: rgba(255, 251, 241, 0.94);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.25rem 0;
  }

  .footer-content {
    flex-direction: column;
  }

  .founder-profile {
    grid-template-columns: 1fr;
  }

  .founder-image {
    width: 100%;
    height: 240px;
  }

  .mission-media img {
    height: clamp(220px, 58vw, 320px);
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
