:root {
  --background: #f3f5f8;
  --surface: #ffffff;
  --surface-soft: #e9edf3;
  --navy: #102b4e;
  --navy-dark: #07182c;
  --red: #e03a2f;
  --orange: #f26a32;
  --text: #172033;
  --muted: #667085;
  --border: #dce2e9;
  --success: #17643d;
  --shadow: 0 15px 35px rgba(16, 43, 78, 0.12);
  --church-logo: url("church_logo.png?v=3");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--background); color: var(--text); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.nav-wrap { position: relative; min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; }
.logo { flex-shrink: 0; background-color: #000; background-image: var(--church-logo); background-position: center; background-repeat: no-repeat; background-size: contain; }
.header-logo { width: 190px; height: 68px; border: 0; border-radius: 14px; box-shadow: 0 7px 20px rgba(0,0,0,.18); }
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; color: var(--navy); }
.brand-text span { color: var(--muted); font-size: .84rem; }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: .9rem; font-weight: 700; }
.nav-links a { padding: 8px 4px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--red); border-bottom-color: var(--red); }
.mobile-staff-shortcut {
  display: none;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  border: 2px solid var(--orange);
  border-radius: 12px;
  font-size: .8rem;
  font-weight: 900;
  white-space: nowrap;
}

.menu-button { display: none; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--navy); cursor: pointer; font-size: 1.35rem; }

.hero { padding: 56px 0 34px; }
.hero-card { min-height: 510px; padding: 58px; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 42px; color: #fff; border-radius: 30px; background: radial-gradient(circle at 82% 16%, rgba(224,58,47,.34), transparent 30%), linear-gradient(135deg, var(--navy-dark), var(--navy)); box-shadow: var(--shadow); }
.eyebrow { display: inline-block; margin-bottom: 18px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: #ffd7ba; font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin-bottom: 22px; font-size: clamp(2.6rem, 6vw, 5rem); line-height: .98; }
.hero p { max-width: 640px; color: #d7e1ed; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { min-height: 48px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 14px; font-weight: 800; cursor: pointer; }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--red), var(--orange)); }
.button-secondary { color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); }
.hero-logo { min-height: 360px; border: 1px solid rgba(255,255,255,.18); border-radius: 26px; background-color: rgba(0,0,0,.28); background-image: var(--church-logo); background-position: center; background-repeat: no-repeat; background-size: contain; }

.page-hero { padding: 52px 0 24px; }
.page-hero-card { padding: 44px; color: #fff; border-radius: 28px; background: radial-gradient(circle at 88% 15%, rgba(224,58,47,.26), transparent 28%), linear-gradient(135deg, var(--navy-dark), var(--navy)); box-shadow: var(--shadow); }
.page-hero-card h1 { margin: 8px 0 12px; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1; }
.page-hero-card p { max-width: 720px; color: #d7e1ed; }

.quick-links { padding: 28px 0 44px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card, .content-card, .info-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 8px 20px rgba(23,32,51,.05); }
.quick-card { min-height: 165px; padding: 24px; transition: transform .2s ease; }
.quick-card:hover { transform: translateY(-3px); }
.quick-icon { width: 46px; height: 46px; margin-bottom: 17px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-soft); font-size: 1.2rem; }
.quick-card h3, .content-card h3, .info-card h3 { margin-bottom: 6px; color: var(--navy); }
.quick-card p, .content-card p, .info-card p { color: var(--muted); font-size: .94rem; }

.section { padding: 52px 0; }
.section-heading { max-width: 720px; margin-bottom: 28px; }
.section-heading span { color: var(--red); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.section-heading h2 { margin: 8px 0 12px; color: var(--navy); font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.06; }
.section-heading p { color: var(--muted); }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.content-card { padding: 26px; }
.tag { display: inline-block; margin-bottom: 14px; padding: 6px 10px; color: var(--navy); background: var(--surface-soft); border-radius: 999px; font-size: .78rem; font-weight: 800; }

.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature-panel { padding: 38px; color: #fff; border-radius: 26px; background: linear-gradient(135deg, var(--navy-dark), var(--navy)); }
.feature-panel h2 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }
.feature-panel p { color: #d9e2ec; }
.feature-list { display: grid; gap: 12px; margin-top: 28px; list-style: none; }
.feature-list li { padding: 13px 15px; border-radius: 14px; background: rgba(255,255,255,.08); }

.form-panel { padding: 34px; background: var(--surface); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow); }
.form-panel h2, .form-panel h3 { margin-bottom: 8px; color: var(--navy); }
.form-panel > p { margin-bottom: 22px; color: var(--muted); }
.form-grid { display: grid; gap: 15px; }
label { display: grid; gap: 7px; color: var(--navy); font-size: .9rem; font-weight: 800; }
input, textarea { width: 100%; padding: 13px 14px; outline: none; background: #fbfcfd; border: 1px solid var(--border); border-radius: 13px; }
input:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(224,58,47,.12); }
textarea { min-height: 135px; resize: vertical; }
.status-message { display: none; margin-top: 14px; padding: 12px 14px; color: var(--success); background: #e7f7ee; border-radius: 12px; font-weight: 700; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.info-card { padding: 28px; }
.info-list { display: grid; gap: 14px; margin-top: 18px; }
.info-row { padding: 14px; border-radius: 14px; background: var(--surface-soft); }
.info-row strong { display: block; color: var(--navy); }

footer { margin-top: 44px; padding: 38px 0; color: #fff; background: var(--navy-dark); }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 150px; height: 72px; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; }
footer p { color: #cbd6e2; font-size: .88rem; }

@media (max-width: 1280px) {
  .nav-links {
    position: absolute;
    z-index: 2500;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(430px, calc(100vw - 32px));
    max-height: calc(100vh - 112px);
    max-height: calc(100dvh - 112px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: flex;
    min-height: 48px;
    flex: 0 0 auto;
    align-items: center;
    padding: 11px 13px;
    border-bottom: 0;
    border-radius: 10px;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--surface-soft);
  }

  .nav-links a.staff-link,
  .nav-links a[data-staff-navigation="true"] {
    color: #fff;
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    border: 2px solid var(--orange);
  }

  .mobile-staff-shortcut {
    display: inline-flex;
    margin-left: auto;
  }

  .menu-button {
    display: block;
  }

  .hero-card {
    grid-template-columns: 1fr;
    padding: 42px 30px;
  }

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

  .content-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav-wrap {
    gap: 9px;
  }

  .brand {
    min-width: 0;
    margin-right: auto;
  }

  .brand-text strong {
    display: none;
  }

  .mobile-staff-shortcut {
    min-height: 42px;
    padding: 0 12px;
    font-size: .76rem;
  }

  .menu-button {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    max-height: none;
  }

  .container { width: min(100% - 22px, 1120px); }
  .header-logo { width: 118px; height: 62px; border-radius: 11px; }
  .brand-text span { display: none; }
  .hero { padding-top: 27px; }
  .hero-card, .page-hero-card { padding: 32px 22px; border-radius: 24px; }
  .hero h1 { font-size: 2.65rem; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-logo { min-height: 290px; }
  .quick-grid, .content-grid { grid-template-columns: 1fr; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
}


/* The full church name is already part of church_logo.png. */
.site-header .brand-text {
  display: none;
}

@media (max-width: 620px) {
  .site-header .brand {
    max-width: 118px;
  }
}


/* =========================================================
   ROYAL BLUE PRIMARY BUTTONS
   ========================================================= */

:root {
  --royal-blue: #4169e1;
  --royal-blue-dark: #27408b;
}

.button-primary {
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--royal-blue),
    var(--royal-blue-dark)
  );
}

.button-primary:hover {
  filter: brightness(1.08);
}


/* =========================================================
   COMPLETE ROYAL BLUE BUTTON UPDATE
   ========================================================= */

:root {
  --royal-blue: #4169e1;
  --royal-blue-dark: #27408b;
}

.button-primary {
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--royal-blue),
    var(--royal-blue-dark)
  );
  border-color: transparent;
}

.button-primary:hover {
  filter: brightness(1.08);
}

.mobile-staff-shortcut,
.nav-links a.staff-link,
.nav-links a[data-staff-navigation="true"] {
  border-color: var(--royal-blue);
}
