/* ==========================================================================
   Orion Media Ministry — site stylesheet
   Colors and layout recreated from the original Wix site.
   ========================================================================== */

:root {
  --purple:      #685BA1;
  --purple-soft: #7466AB;
  --blue:        #4170B3;
  --blue-heading:#4373B8;
  --teal:        #479F8E;
  --orange:      #ECA274;
  --navy:        #0B1030;
  --gray-bg:     #EFEFEF;
  --text:        #4a4a4a;
  --text-light:  #7d7d7d;
  --heading-font: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --stat-font:    'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --body-font:    'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--heading-font);
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  border-radius: 40px;
  padding: 13px 34px;
  font-size: 18px;
  line-height: 1.2;
  transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn-donate  { background: var(--orange); padding: 15px 44px; font-size: 20px; }
.btn-purple  { background: var(--purple); }
.btn-blue    { background: var(--blue); }
.btn-submit  {
  background: var(--purple);
  border-radius: 6px;
  width: 100%;
  font-size: 16px;
  padding: 11px 20px;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(197, 198, 224, 0.92);
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
}
.header-inner {
  max-width: 1460px;
  margin: 0 auto;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { width: 200px; height: auto; }

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav a {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  text-decoration: none;
}
.site-nav a:hover { color: var(--orange); text-decoration: none; }
.site-nav a.active { color: #55B597; }
.site-nav .btn-donate { margin-left: 14px; }
.site-nav a.btn-donate:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 42px; height: 36px; position: relative;
}
.nav-toggle span {
  display: block; height: 3px; margin: 7px 6px;
  background: #fff; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.site-header.scrolled .nav-toggle span { background: var(--navy); }

/* --------------------------------------------------------------------------
   Homepage hero + stats (shares one gradient background)
   -------------------------------------------------------------------------- */
.home-top {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #fff;
}
.home-top-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('/images/hero-blob.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.home-top-angel {
  position: absolute;
  z-index: 1;
  right: -60px;
  top: 240px;
  width: 62%;
  min-width: 520px;
  mix-blend-mode: screen;
  pointer-events: none;
}
.home-hero {
  position: relative;
  z-index: 2;
  max-width: 1460px;
  margin: 0 auto;
  padding: 230px 6% 150px;
}
.home-hero .kicker {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 62px);
  letter-spacing: .01em;
}
.home-hero h1 {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1.06;
  max-width: 10em;
}
.home-hero .tagline {
  margin-top: 26px;
  font-size: clamp(17px, 1.5vw, 22px);
  max-width: 32em;
}

.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 30px 24px 110px;
}
.stat-card {
  background: var(--navy);
  border-radius: 18px;
  color: #fff;
  text-align: center;
  padding: 56px 18px;
  box-shadow: 0 14px 30px rgba(10, 16, 48, .25);
}
.stat-card .stat-number {
  font-family: var(--stat-font);
  font-weight: 900;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.1;
}
.stat-card .stat-label {
  font-family: var(--stat-font);
  font-weight: 300;
  font-size: 15px;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Interior page hero (About / Projects / Events / Contact / …)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(112deg, #3D55A5 0%, #2F55A0 55%, #3E68B4 100%);
  color: #fff;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: .92;
}
.page-hero h1 {
  position: relative;
  z-index: 1;
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: clamp(52px, 7vw, 96px);
  padding: 0 8% 90px 24px;
  text-align: right;
}
.page-hero.hero-center { justify-content: center; align-items: center; }
.page-hero.hero-center h1 { padding: 90px 24px 0; text-align: center; }

/* --------------------------------------------------------------------------
   Generic sections
   -------------------------------------------------------------------------- */
.section { padding: 84px 0; }
.section-gray { background: var(--gray-bg); }

.section-heading {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: clamp(38px, 4.4vw, 58px);
  text-align: center;
  margin-bottom: 18px;
}
.heading-purple { color: var(--purple-soft); }
.heading-blue   { color: var(--blue-heading); }

.section-sub {
  text-align: center;
  color: var(--text-light);
  max-width: 44em;
  margin: 0 auto 34px;
}

.center { text-align: center; }
.mt-30 { margin-top: 30px; }

/* --------------------------------------------------------------------------
   Homepage: Why Orion Exists
   -------------------------------------------------------------------------- */
.why-photo {
  max-width: 560px;
  margin: 26px auto 30px;
  border-radius: 10px;
  overflow: hidden;
}
.why-text {
  max-width: 46em;
  margin: 0 auto 34px;
  text-align: center;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   Carousels (projects 3-up, events 1-up)
   -------------------------------------------------------------------------- */
.carousel {
  position: relative;
  padding: 0 56px;
  margin-top: 44px;
}
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform .5s cubic-bezier(.77, 0, .175, 1);
}
.carousel-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  font-size: 34px;
  line-height: 1;
  color: #6b6b6b;
  cursor: pointer;
  padding: 8px;
  z-index: 2;
}
.carousel-arrow.prev { left: 4px; }
.carousel-arrow.next { right: 4px; }
.carousel-arrow:hover { color: var(--purple); }

/* Project cards (homepage + donate page) */
.project-card {
  flex: 0 0 33.3333%;
  padding: 0 16px;
  text-align: center;
}
.project-card .card-img {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 6 / 5;
}
.project-card .card-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.project-card h3 {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--purple-soft);
  font-size: 19px;
  margin: 16px auto 8px;
  max-width: 18em;
}
.project-card p {
  font-size: 14.5px;
  color: var(--text-light);
  max-width: 24em;
  margin: 0 auto;
}

/* Event slides */
.event-slide {
  flex: 0 0 100%;
  padding: 0 8px;
}
.event-media {
  max-width: 880px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}
.event-info {
  max-width: 880px;
  margin: 14px auto 0;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}
.event-title {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 20px;
  color: #555;
}
.event-date { color: var(--text-light); font-size: 15px; margin-top: 2px; }
.event-title-date { flex: 0 0 40%; }
.event-desc { flex: 1; color: var(--text-light); font-size: 14.5px; }

/* --------------------------------------------------------------------------
   Contact CTA panel
   -------------------------------------------------------------------------- */
.contact-cta { padding: 84px 0 110px; background: var(--gray-bg); }
.contact-cta .section-heading { margin-bottom: 44px; }

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: linear-gradient(170deg, var(--purple) 0%, #5B75A6 55%, var(--teal) 100%);
  border-radius: 22px;
  padding: 56px 60px;
  color: #fff;
  box-shadow: 0 16px 34px rgba(0,0,0,.18);
}
.contact-panel-text h3 {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 34px;
  margin-bottom: 14px;
}
.contact-panel-text > p { font-size: 18px; max-width: 26em; }

.contact-form { margin-top: 38px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 4px;
  color: #fff;
  font-family: var(--body-font);
  font-size: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.85); }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid rgba(255,255,255,.75); }

.hp-field { position: absolute !important; left: -9999px; }

.form-notice {
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 16px;
  font-size: 15px;
}
.form-success { background: rgba(255,255,255,.92); color: #1d7a4f; }
.form-error   { background: rgba(255,255,255,.92); color: #b02a2a; }

.contact-panel-photo {
  border-radius: 12px;
  overflow: hidden;
}
.contact-panel-photo img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: linear-gradient(115deg, var(--purple) 0%, var(--blue) 48%, var(--teal) 100%);
  color: #fff;
}
.footer-wave {
  display: block;
  width: 100%;
  height: 120px;
}
.footer-inner { padding: 40px 24px 34px; }
.footer-logo { width: 200px; height: auto; }
.footer-rule {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.85);
  margin: 26px 0 46px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #fff; font-size: 14px; }
.footer-col p { font-family: var(--heading-font); font-weight: 700; font-size: 19px; line-height: 1.5; }
.footer-copy {
  text-align: center;
  margin-top: 90px;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   About Us page
   -------------------------------------------------------------------------- */
.about-intro {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 44px;
  align-items: start;
  padding-top: 90px;
}
.about-photo { border-radius: 12px; overflow: hidden; }
.about-copy p { margin-bottom: 22px; color: var(--text-light); }

.about-stats-label {
  font-family: var(--stat-font);
  font-weight: 600;
  letter-spacing: .08em;
  color: #7a7a7a;
  font-size: 14px;
  margin: 18px 0;
}
.stats-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stats-grid-2 .stat-card { padding: 30px 10px; border-radius: 12px; }
.stats-grid-2 .stat-number { font-size: 30px; }
.stats-grid-2 .stat-label { font-size: 12px; margin-top: 4px; }

.faith-section { padding: 70px 0 90px; }
.faith-section .section-heading { margin-bottom: 40px; }
.faith-block { max-width: 780px; margin: 0 auto 40px; }
.faith-block h3 {
  font-family: var(--heading-font);
  font-weight: 800;
  color: var(--blue-heading);
  font-size: 27px;
  margin-bottom: 12px;
}
.faith-block p { color: var(--text-light); margin-bottom: 16px; }
.faith-block ul { margin: 0 0 16px 1.2em; color: var(--text-light); }
.faith-block li { margin-bottom: 10px; }

/* --------------------------------------------------------------------------
   Projects page
   -------------------------------------------------------------------------- */
.project-feature { padding: 74px 0 10px; }
.project-feature h2 {
  font-family: var(--heading-font);
  font-weight: 800;
  color: var(--purple-soft);
  font-size: clamp(26px, 3vw, 34px);
  text-align: center;
}
.project-feature .feature-sub {
  text-align: center;
  color: var(--text-light);
  max-width: 42em;
  margin: 8px auto 30px;
}
.project-feature .feature-img {
  max-width: 590px;
  margin: 0 auto 30px;
  border-radius: 16px;
  overflow: hidden;
}
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.other-projects { padding: 60px 0 40px; }
.other-projects > .container > h2 {
  font-family: var(--heading-font);
  font-weight: 800;
  color: var(--purple-soft);
  font-size: clamp(28px, 3.2vw, 36px);
  text-align: center;
  margin-bottom: 60px;
}
.project-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 44px;
  align-items: center;
  max-width: 880px;
  margin: 0 auto 64px;
}
.project-row .row-img { border-radius: 16px; overflow: hidden; aspect-ratio: 6/5; }
.project-row .row-img img { width: 100%; height: 100%; object-fit: cover; }
.project-row h3 {
  font-family: var(--heading-font);
  font-weight: 800;
  color: var(--blue-heading);
  font-size: 26px;
  margin-bottom: 12px;
}
.project-row p { color: var(--text-light); margin-bottom: 20px; }

/* Projects grouped by status. The three groups reuse .other-projects for their
   heading and rows, and add a rule between them so the categories read as
   separate shelves rather than one long list. */
.project-intro { padding: 54px 0 0; }
.project-jump {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 26px;
}
.project-jump a {
  font-family: var(--heading-font); font-weight: 700;
  font-size: 14px; letter-spacing: .03em; text-decoration: none;
  color: var(--purple);
  border: 1.5px solid rgba(104, 91, 161, .32);
  border-radius: 999px; padding: 10px 20px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.project-jump a:hover,
.project-jump a:focus-visible {
  background: var(--purple); border-color: var(--purple); color: #fff;
}

/* The header is position:fixed, so a bare anchor jump puts it on top of the
   heading it just jumped to. */
.project-group { scroll-margin-top: 104px; }
.project-group + .project-group { border-top: 1px solid rgba(104, 91, 161, .18); }
/* Same specificity as the .other-projects heading rule above, so this has to
   sit after it to win. The group subtitle belongs near its heading, not 60px
   below it. */
.project-group > .container > h2 { margin-bottom: 12px; }
.project-group .section-sub { margin-bottom: 54px; }

/* Book covers are portrait and the row frame is landscape, so the default
   object-fit:cover crops the title off the top and the author off the bottom.
   Show the whole cover on a quiet ground instead. */
.project-row .row-img--product {
  background: var(--gray-bg);
  display: grid;
  place-items: center;
  padding: 18px;
}
.project-row .row-img--product img { width: auto; height: 100%; object-fit: contain; }

/* Buttons sit under the copy in a row, so they align with it rather than
   centring against the image beside them. */
.btn-row--left { justify-content: flex-start; gap: 12px; }
@media (max-width: 900px) {
  .btn-row--left { justify-content: center; }
}
@media (max-width: 640px) {
  .project-jump a { padding: 9px 16px; font-size: 13px; }
}

/* --------------------------------------------------------------------------
   Events page
   -------------------------------------------------------------------------- */
.events-main { padding: 60px 0 90px; }
.events-main .section-sub { margin-bottom: 10px; }

/* --------------------------------------------------------------------------
   Donate page
   -------------------------------------------------------------------------- */
.donate-main { padding: 80px 0 30px; }
.donate-main .section-heading { margin-bottom: 50px; }
.donate-cols {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 60px;
  max-width: 1060px;
  margin: 0 auto;
  align-items: start;
}
.donate-copy p { color: var(--text-light); margin-bottom: 22px; }

/* --------------------------------------------------------------------------
   Starfall / Strange Normal pages
   -------------------------------------------------------------------------- */
.split-section { padding: 80px 0 20px; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1060px;
  margin: 0 auto 70px;
}
.split .split-img { border-radius: 16px; overflow: hidden; }
.split p { color: var(--text-light); margin-bottom: 18px; }
.split .btn { margin-top: 6px; }

/* --------------------------------------------------------------------------
   Thank-you page
   -------------------------------------------------------------------------- */
.thanks-main { padding: 170px 24px 140px; text-align: center; }
.thanks-main h1 {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 34px;
  color: #222;
  margin-bottom: 14px;
}
.thanks-main p { color: var(--text-light); max-width: 36em; margin: 0 auto 8px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 84vw);
    background: var(--navy);
    padding: 100px 34px 40px;
    transform: translateX(100%);
    transition: transform .28s ease;
  }
  .site-nav.open { transform: translateX(0); box-shadow: -8px 0 30px rgba(0,0,0,.35); }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .site-nav .btn-donate { margin-left: 0; }
  .nav-toggle { display: block; z-index: 130; }
  .site-nav { z-index: 120; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
  body.nav-open .nav-toggle span { background: #fff !important; }

  .home-hero { padding: 150px 24px 90px; }
  .home-top-angel { top: 120px; width: 90%; right: -30%; }
  .contact-panel { grid-template-columns: 1fr; padding: 40px 28px; }
  .about-intro { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .project-row { grid-template-columns: 1fr; gap: 22px; }
  .project-row .row-img { max-width: 420px; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .split.rev .split-img { order: -1; }
  .donate-cols { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 30px; }
  .footer-col-spacer { display: none; }
  .event-info { flex-direction: column; gap: 8px; }
  .project-card { flex: 0 0 100%; }
  .page-hero { min-height: 320px; }
  .page-hero h1 { padding-bottom: 60px; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; padding-bottom: 70px; }
  .stat-card { padding: 38px 14px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .carousel { padding: 0 34px; }
}

/* --------------------------------------------------------------------------
   Events page schedule

   A date-left, place-right list. The date column is fixed so every date lines
   up down the page, which is what makes a schedule scannable: a reader is
   looking for a month, not reading prose.
   -------------------------------------------------------------------------- */
.schedule { max-width: 820px; margin: 0 auto; }

.schedule-heading {
  font-family: var(--heading-font);
  font-weight: 800;
  color: var(--purple-soft);
  font-size: clamp(24px, 2.8vw, 30px);
  margin: 48px 0 6px;
}
.schedule-heading:first-child { margin-top: 26px; }

.schedule-year {
  font-family: var(--heading-font);
  font-weight: 800;
  color: var(--teal);
  font-size: 17px;
  letter-spacing: .08em;
  margin: 26px 0 4px;
}

.schedule-list { list-style: none; margin: 0; padding: 0; }

.schedule-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(104, 91, 161, .16);
}

.schedule-date {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--blue);
  font-size: 15.5px;
  margin: 0;
}

.schedule-where {
  font-family: var(--heading-font);
  font-weight: 800;
  color: var(--blue-heading);
  font-size: 20px;
  margin: 0 0 2px;
}

.schedule-venue { color: var(--text); font-size: 15px; margin: 0; }
.schedule-note  { color: var(--text-light); font-size: 15px; margin: 6px 0 0; }
.schedule-empty { color: var(--text-light); }

@media (max-width: 620px) {
  /* Date above the place rather than beside it: a 200px column leaves the
     place name about nine characters on a phone. */
  .schedule-item { grid-template-columns: 1fr; gap: 2px; padding: 15px 0; }
  .schedule-where { font-size: 18px; }
}
