/* =========================
   RESET / BASE
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #efefef;
  color: #1f2b38;
  font-family: "Source Sans 3", Arial, sans-serif;
  line-height: 1.45;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

:root {
  --navy: #0f2a43;
  --navy-deep: #0b2238;
  --gold: #c79a43;
  --gold-soft: #d8b26a;
  --cream: #f8f5ef;
  --cream-2: #f2eee8;
  --white: #ffffff;
  --text: #1e2a36;
  --muted: #66717c;
  --border: #e6e0d8;
  --accent: #c79a43;
  --shadow: 0 10px 26px rgba(16, 29, 43, 0.08);
}

.page-shell {
  width: min(1280px, calc(100% - 16px));
  margin: 10px auto;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  min-height: 730px;
  color: var(--white);
  background:
    linear-gradient(to right,
      rgba(10, 30, 50, 0.88) 0%,
      rgba(10, 30, 50, 0.78) 35%,
      rgba(10, 30, 50, 0.55) 55%,
      rgba(10, 30, 50, 0.25) 75%,
      rgba(10, 30, 50, 0.10) 100%
    ),
    url("../images/hero.png") center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 21, 36, 0.22), rgba(5, 21, 36, 0.04));
  pointer-events: none;
}

.hero-topbar,
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 20px 0;
  position: relative;
  z-index: 2;
}

.logo-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 260px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
}

.logo-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.9);
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: "Source Serif 4", serif;
  font-size: 0.95rem;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.donate-btn {
  margin-top: 10px;
  padding: 13px 22px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.donate-btn:hover,
.donate-btn:focus {
  background: var(--accent);
  color: var(--navy);
  transform: translateY(-2px);
}




.hero-content {
  max-width: 620px;
  padding: 260px 38px 90px 70px;
}

.hero-kicker {
  margin: 0 0 18px;
  font-family: "Source Serif 4", serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
}

.hero-main {
  margin: 0 0 12px;
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.4rem, 3.8vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #f3f0e8;
  max-width: 620px;
}

.hero-ref {
  margin: 10px 0 40px;
  font-family: "Source Serif 4", serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
}

/* =========================
   CARDS
========================= */
.cards-section {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: -44px 34px 0;
}

.info-card {
  background: #fff;
  border: 1px solid rgba(224, 216, 204, 0.8);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 22px 22px 20px;
  min-height: 152px;
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-text h2 {
  margin: 0 0 8px;
  font-family: "Source Serif 4", serif;
  font-size: 2rem;
  line-height: 1;
  font-weight: 600;
  color: var(--text);
}

.card-text p {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #3f4954;
}

.card-text .card-highlight {
  font-family: "Source Serif 4", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}

.card-link {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card-link:hover,
.card-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(16, 29, 43, 0.12);
  border-color: rgba(199, 154, 67, 0.45);
}

.card-link:hover .card-icon {
  background-color: var(--accent);
  color: var(--navy);
}

.card-tag {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8d7446;
}

.card-details p {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #3f4954;
}

.card-services-row {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #3f4954;
}

.card-cta {
  margin: 12px 0 0;
  font-weight: 700;
  color: var(--navy);
}

.card-cta::after {
  content: " ›";
  font-size: 1.2rem;
  line-height: 1;
}

/* =========================
   CONGREGATION LIFE SECTION
========================= */
.congregation-life-section {
  padding: 42px 34px 0;
  background: var(--cream);
  border-top: 1px solid var(--border);
}

.life-section-header {
  margin-bottom: 22px;
}

.section-kicker,
.life-kicker,
.life-feature-kicker {
  margin: 0 0 14px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #af8e57;
}

.life-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas:
    "photo notices"
    "photo feature";
  gap: 22px;
  align-items: start;
}

.life-photo-card,
.life-notices-card,
.life-feature-card {
  background: #fffdf9;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Base notice item (non-linked) */
.notice-item {
  padding: 0 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(214, 205, 190, 0.75);
}

/* Remove border for last item */
.notice-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Title-only link (inside h4) */
.life-notices-card h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.life-notices-card h4 a:hover {
  color: #af8e57;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Whole notice is a link */
a.notice-item {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}

/* Hover ONLY for linked notices */
a.notice-item:hover h4 {
  color: #af8e57;
}

a.notice-item:hover {
  transform: translateY(-2px);
}

.life-photo-card {
  grid-area: photo;
}

.life-photo-wrap {
  background: #d8d0c4;
}

.life-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 540px;
  object-fit: cover;
}

.life-photo-caption {
  padding: 18px 22px 22px;
}

.life-photo-caption h3 {
  margin: 0 0 8px;
  font-family: "Source Serif 4", serif;
  font-size: 2rem;
  line-height: 1;
  font-weight: 600;
  color: var(--navy-deep);
}

.life-photo-caption p {
  margin: 0;
  font-size: 1.04rem;
  color: #3f4954;
}

.life-notices-card {
  grid-area: notices;
  padding: 24px 24px 10px;
}

.notice-item {
  padding: 0 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(214, 205, 190, 0.75);
}

.notice-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.notice-item h4 {
  margin: 0 0 6px;
  font-size: 1.18rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
}

.notice-item p {
  margin: 0;
  font-size: 1rem;
  color: #4a5561;
}

.life-feature-card {
  grid-area: feature;
  position: relative;
  padding: 24px 24px 26px;
  background: #f9f5ee;
}

.life-feature-card h3 {
  margin: 0 0 10px;
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  line-height: 1;
  font-weight: 600;
  color: var(--navy-deep);
}

.life-feature-card p {
  margin: 0 0 18px;
  font-size: 1.08rem;
  color: #39434d;
}

.life-feature-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 7px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}

.life-feature-button:hover,
.life-feature-button:focus {
  background: #143555;
  transform: translateY(-1px);
}

/* =========================
   TOP NAV FOR SUBPAGES
========================= */

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;

  padding: 24px 38px;
  background: #f4efe8;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.top-nav-item {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  width: 118px;
  min-height: 82px;
  padding: 6px 2px;

  color: var(--navy);
  text-decoration: none;

  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  transition: color 0.2s ease;
}

.top-nav-item svg {
  width: 32px;
  height: 32px;
  display: block;
  margin-bottom: 9px;

  color: currentColor;
}

/* optical correction for the cross icon */
.top-nav-home svg {
  width: 32px;
  height: 32px;
  transform: translateY(2px);
}

/* keep labels centered and stable */
.top-nav-item span {
  display: block;
  text-align: center;
  white-space: nowrap;
}

/* hover */
.top-nav-item:hover {
  color: var(--accent);
}

/* underline */
.top-nav-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;

  width: 0;
  height: 2px;

  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.top-nav-item:hover::after {
  width: 70%;
}

/* active page */
.top-nav-item.active {
  color: var(--accent);
}

.top-nav-item.active::after {
  width: 70%;
}

/* =========================
   BOTOM-NAV
========================= */

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f4efe8;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);

  position: relative;
}

.bottom-nav-item {
  text-decoration: none;
  color: var(--navy);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 34px 10px 30px;

  transition: all 0.2s ease;
}

.bottom-nav-item:not(:last-child) {
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.bottom-nav-item svg {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  color: var(--navy);
}

.bottom-nav-item span {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  opacity: 0.85;
}

.bottom-nav-item:hover {
  background: rgba(199, 154, 67, 0.08);
}

.bottom-nav-item:hover svg {
  color: var(--accent);
  opacity: 1;
}

.bottom-nav-item:hover span {
  color: var(--accent);
  opacity: 1;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 28px;
  padding: 30px 54px 14px;
  background: linear-gradient(180deg, #0d2a43 0%, #0a2034 100%);
  color: rgba(255, 255, 255, 0.94);
}

.footer-column h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column p {
  margin: 0 0 3px;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  font-size: 2rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
  .hero-content {
    padding-left: 72px;
  }

  .cards-section {
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: 660px;
  }

  .hero-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .donate-btn {
    margin-top: 0;
  }

  .hero-content {
    padding: 52px 28px 84px;
    max-width: 700px;
  }

  .cards-section {
    grid-template-columns: 1fr;
    margin-top: -34px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-social {
    justify-content: flex-start;
  }
}


@media (max-width: 640px) {
  .page-shell {
    width: 100%;
    margin: 0;
  }

  .hero {
    min-height: 620px;
    background-position: center center;
  }

  .hero-topbar {
    padding: 18px 18px 0;
  }

  .logo-block {
    min-width: 0;
  }

  .logo-text {
    font-size: 0.8rem;
  }

  .hero-content {
    padding: 42px 18px 80px;
  }

  .hero-main {
    font-size: clamp(3rem, 13vw, 4.4rem);
  }

  .cards-section {
    margin-left: 14px;
    margin-right: 14px;
    gap: 14px;
  }

  .info-card {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 28px 20px 14px;
  }

  .footer-social {
    justify-content: flex-start;
  }
  
  .top-nav {
  align-items: flex-start;
  padding: 18px;
}

.top-nav-links {
  gap: 14px 18px;
}

.top-nav-item {
  font-size: 0.78rem;
}

.top-nav-logo .logo-mark {
  width: 44px;
  height: 44px;
}
}