:root {
  --font-body: 'Source Sans 3', 'Noto Sans', 'Helvetica Neue', sans-serif;
  --font-display: 'Playfair Display', 'Times New Roman', serif;
  --color-ink: #1d2b36;
  --color-muted: #5b6b7a;
  --color-accent: #7db6d8;
  --color-accent-strong: #3f84b8;
  --color-accent-soft: rgba(125, 182, 216, 0.18);
  --color-surface: #ffffff;
  --color-surface-alt: #f2f7fb;
  --color-border: rgba(29, 43, 54, 0.12);
  --color-border-strong: rgba(29, 43, 54, 0.2);
  --shadow-soft: 0 12px 28px rgba(18, 35, 52, 0.08);
  --shadow-strong: 0 24px 60px rgba(18, 35, 52, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  line-height: 1.6;
  background: radial-gradient(circle at top left, rgba(125, 182, 216, 0.26), transparent 45%),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.9), transparent 45%),
    linear-gradient(180deg, #f9fbfd 0%, #eef3f8 55%, #f6f8fb 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 85% 12%, rgba(125, 182, 216, 0.18), transparent 40%),
    radial-gradient(circle at 15% 70%, rgba(255, 255, 255, 0.7), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

main,
.site-header {
  position: relative;
  z-index: 1;
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(63, 132, 184, 0.6);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: 0.3px;
}

section {
  scroll-margin-top: 96px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f7fbff;
  padding: 4rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 25, 36, 0.2), rgba(12, 25, 36, 0.45));
  z-index: 0;
}

.hero-prayer {
  background:
    radial-gradient(circle at 20% 20%, rgba(125, 182, 216, 0.35), transparent 45%),
    url("/static/images/praying-hands.e61a27d9314d.jpg") center/cover no-repeat;
}

.hero-content {
  max-width: 980px;
  width: 100%;
  position: relative;
  z-index: 1;
  animation: heroFade 0.8s ease-out both;
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  margin-bottom: 1rem;
}

.hero p {
  max-width: 920px;
  margin: 0 auto;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.8;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-buttons {
  margin-top: 2.25rem;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-buttons a {
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.cta-buttons a.primary-btn {
  background: linear-gradient(135deg, var(--color-accent-strong), #79b8dd);
  color: #f7fbff;
  box-shadow: 0 14px 30px rgba(12, 35, 56, 0.28);
}

.cta-buttons a.secondary-btn {
  background: rgba(255, 255, 255, 0.16);
  color: #f7fbff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.cta-buttons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(12, 35, 56, 0.32);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-strong), #79b8dd);
  color: #fff;
  box-shadow: 0 12px 24px rgba(12, 35, 56, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(12, 35, 56, 0.24);
}

.btn-secondary {
  background: rgba(125, 182, 216, 0.14);
  color: var(--color-ink);
  border: 1px solid rgba(125, 182, 216, 0.35);
}

/* ---------- Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 252, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 6px 20px rgba(12, 25, 36, 0.08);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: nowrap;
  --nav-link-color: var(--color-accent-strong);
  --nav-link-hover: #256a9a;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-ink);
  flex-shrink: 0;
}

.brand-logo {
  height: 42px;
  width: 42px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  text-decoration: none;
}

.brand:hover,
.brand:focus,
.brand:visited {
  text-decoration: none;
}

.brand-name {
  font-weight: 700;
  font-size: 1.65rem;
  color: var(--nav-link-color);
  letter-spacing: 0.4px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-display);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  margin-left: 0;
  min-width: 0;
}

.nav-links-wrap {
  position: relative;
  margin-left: auto;
  min-width: 0;
}

.nav-links a {
  color: var(--nav-link-color);
  padding: 6px 10px 10px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0.95;
  white-space: nowrap;
  position: relative;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.nav-links .nav-link.is-active {
  color: var(--nav-link-hover);
  background: rgba(125, 182, 216, 0.2);
  box-shadow: inset 0 0 0 1px rgba(125, 182, 216, 0.3);
  font-weight: 700;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: var(--nav-link-hover);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: center;
}

.nav-links a:hover {
  color: var(--nav-link-hover);
  background: rgba(125, 182, 216, 0.12);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links .nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-cta {
  background: linear-gradient(135deg, rgba(125, 182, 216, 0.18), rgba(63, 132, 184, 0.2));
  color: #1f2d3a;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(63, 132, 184, 0.3);
  box-shadow: 0 8px 18px rgba(12, 25, 36, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(12, 25, 36, 0.16);
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(63, 132, 184, 0.35);
  background: var(--color-surface);
}

@media (max-width: 960px) {
  .navbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links-wrap {
    width: 100%;
    margin: 0;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 720px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .nav-links-wrap {
    width: 100%;
    display: block;
  }

  .nav-links-wrap.has-overflow::before,
  .nav-links-wrap.has-overflow::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 1rem;
    width: 18px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .nav-links-wrap.has-overflow.is-scrolled-start::before {
    left: 0;
    opacity: 1;
    background: linear-gradient(90deg, rgba(250, 252, 255, 0.95), rgba(250, 252, 255, 0));
  }

  .nav-links-wrap.has-overflow.is-scrolled-end::after {
    right: 0;
    opacity: 1;
    background: linear-gradient(270deg, rgba(250, 252, 255, 0.95), rgba(250, 252, 255, 0));
  }

  .nav-links {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(63, 132, 184, 0.35) transparent;
  }

  .nav-links::-webkit-scrollbar {
    display: block;
    height: 4px;
  }

  .nav-links::-webkit-scrollbar-track {
    background: transparent;
  }

  .nav-links::-webkit-scrollbar-thumb {
    background: rgba(63, 132, 184, 0.35);
    border-radius: 999px;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding: 6px 10px 8px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .nav-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-cta {
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
  }
}

body.modal-open .site-header {
  z-index: 0;
}

/* ---------- Home Sections ---------- */
.cloud-section {
  max-width: 1200px;
  margin: -3rem auto 2.5rem;
  padding: 3.5rem 2.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 247, 251, 0.92)),
    url("/static/images/sky-clouds.3e96cf0a4c70.jpg") center/cover no-repeat;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(125, 182, 216, 0.2);
}

.cloud-section p {
  margin: 0 auto 1.4rem;
  max-width: 880px;
  line-height: 1.8;
  color: var(--color-ink);
}

.cloud-section blockquote {
  margin: 2rem auto;
  padding: 1.6rem 2rem;
  max-width: 820px;
  border-left: 4px solid var(--color-accent-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  font-style: italic;
  color: var(--color-ink);
  box-shadow: var(--shadow-soft);
}

.cloud-section blockquote span {
  display: block;
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--color-muted);
}

.cloud-section .closing {
  margin-top: 1rem;
  font-size: 1.05rem;
}

.about-section {
  max-width: 1200px;
  margin: 3rem auto 4.5rem;
  padding: 0 1.5rem 2.5rem;
}

.about-head {
  text-align: center;
  margin-bottom: 2.6rem;
}

.about-title-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.8rem;
  border-radius: 999px;
  background: rgba(125, 182, 216, 0.22);
  color: var(--color-ink);
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 1rem;
}

.about-head p {
  margin: 0 auto;
  max-width: 780px;
  line-height: 1.7;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.6rem;
}

.about-item {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  align-items: start;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.about-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.about-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(125, 182, 216, 0.35), rgba(125, 182, 216, 0.08));
  border: 1px solid rgba(125, 182, 216, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.about-text h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.about-text p {
  margin: 0;
  line-height: 1.7;
  color: var(--color-muted);
}

.about-media {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 1.4rem;
  background: linear-gradient(140deg, rgba(125, 182, 216, 0.2), rgba(255, 255, 255, 0.95));
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-strong);
}

.about-media-frame {
  position: relative;
  border-radius: calc(var(--radius-lg) - 12px);
  overflow: hidden;
  background: #0f1e2a;
  aspect-ratio: 16 / 9;
}

.about-media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.3));
  pointer-events: none;
}

@media (max-width: 900px) {
  .about-cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .cloud-section {
    margin: 2rem 1rem;
    padding: 2.5rem 1.6rem;
  }
}

@media (max-width: 720px) {
  .about-head {
    text-align: left;
  }

  .about-title-pill {
    letter-spacing: 0.2em;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .about-media {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    padding: 3.5rem 1.5rem 4rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons a {
    width: 100%;
    justify-content: center;
  }
}
