/* ============================================================
   BERC — style.css  |  Pixel-perfect rebuild v2
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  --primary:            #08A9C8;
  --primary-dark:       #0799B5;
  --secondary:          #0B6E88;
  --accent-orange:      #F07C26;
  --accent-orange-dark: #D96B18;
  --dark-teal:          #0D3B50;
  --dark:               #13344D;

  --white:    #FFFFFF;
  --gray-100: #F4F8FA;
  --gray-200: #E6EEF2;
  --gray-600: #5A6A7A;
  --heading:  #17344C;
  --text:     #3A4A5A;

  --shadow-sm: 0 2px 10px rgba(0,0,0,.08);
  --shadow-md: 0 6px 24px rgba(0,0,0,.14);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.18);

  --radius-sm:   8px;
  --radius-md:  18px;
  --radius-pill: 50px;

  --transition: .28s ease;
  --transition-slow: .45s cubic-bezier(.25,.46,.45,.94);
}

/* ============================================================
   2. RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
address { font-style: normal; }

/* ============================================================
   3. ACCESSIBILITY
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================================
   4. TOP BAR
   ============================================================ */
.top-bar {
  background: var(--white);
  height: 40px;
  border-bottom: 1px solid #DDE6EA;
  display: flex;
  align-items: stretch;
  position: relative;
  z-index: 1100;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 28px;
}

.top-bar__left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-bar__contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;   /* 13px */
  color: var(--gray-600);
  font-weight: 400;
  transition: color var(--transition);
}
.top-bar__contact-item i {
  font-size: 0.8125rem;
  color: var(--gray-600);
}
.top-bar__contact-item:hover { color: var(--primary); }

.top-bar__center {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-bar__center a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  font-size: 0.875rem;
  color: #555;
  border-radius: 50%;
  transition: all var(--transition);
}
.top-bar__center a:hover {
  background: var(--primary);
  color: var(--white);
}

/* DONATE NOW — flush right, fills height */
.top-bar__donate {
  display: flex;
  align-items: center;
  background: var(--accent-orange);
  color: var(--white) !important;
  font-size: 0.8rem;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 0 20px;
  height: 40px;
  white-space: nowrap;
  align-self: stretch;
  transition: background var(--transition);
  margin-right: -16px; /* bleed to edge */
}
.top-bar__donate:hover { background: var(--accent-orange-dark); }

/* ============================================================
   5. MAIN NAV
   ============================================================ */
.main-nav {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.main-nav.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.20); }

.main-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 16px;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand__logo-circle {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-brand__logo-circle img {
  width: 100%; height: 100%;
  object-fit: contain;
}
/* Fallback icon inside circle */
.nav-brand__logo-circle .logo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.nav-brand__logo-circle .logo-fallback i {
  font-size: 1.4rem;
  color: var(--primary);
}
.nav-brand__logo-circle .logo-fallback span {
  font-size: 0.45rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .04em;
  text-align: center;
  line-height: 1;
}

.nav-brand__text { display: flex; flex-direction: column; }
.nav-brand__name {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .025em;
  line-height: 1.2;
}
.nav-brand__tagline {
  font-family: 'Merriweather', serif;
  font-style: italic;
  font-size: .73rem;
  color: rgba(255,255,255,.88);
  font-weight: 400;
  margin-top: 2px;
  text-align: right;
}

/* Nav pills */
.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 15px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #08A9C8;
  background-color: #FFFF;
  border: 1.5px solid rgba(255,255,255,.45);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: all var(--transition);
  text-decoration: none;
}
.nav-pill:hover,
.nav-pill.active {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.9);
  color: var(--white);
}

/* Hamburger */
.nav-toggler {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
}
.nav-toggler span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggler[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggler[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggler[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--secondary);
  padding: 8px 16px 12px;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 9px 14px;
  color: var(--white);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: background var(--transition);
}
.mobile-menu a:hover { background: rgba(255,255,255,.12); }

/* ============================================================
   6. HERO GALLERY  — full-bleed, 3 rows, tight grid
   ============================================================ */
.hero-gallery {
  width: 100%;
  display: grid;
  /* 12 equal columns */
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 175px 245px 195px;
  gap: 3px;
  background: #000;          /* gap color */
  line-height: 0;
}

.g-cell {
  overflow: hidden;
  position: relative;
  background: #1a2a35;
}
.g-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  will-change: transform;
}
.g-cell:hover img { transform: scale(1.06); }

/* ── ROW 1 (grid-row 1) — 8 images, equal 1.5-col widths across 12 ── */
/* Use fractional spans so they tile perfectly */
.g-r1c1 { grid-column: 1  / 3;  grid-row: 1; }
.g-r1c2 { grid-column: 3  / 5;  grid-row: 1; }
.g-r1c3 { grid-column: 5  / 7;  grid-row: 1; }
.g-r1c4 { grid-column: 7  / 9;  grid-row: 1; }
.g-r1c5 { grid-column: 9  / 10; grid-row: 1; }
.g-r1c6 { grid-column: 10 / 11; grid-row: 1; }
.g-r1c7 { grid-column: 11 / 12; grid-row: 1; }
.g-r1c8 { grid-column: 12 / 13; grid-row: 1; }

/* ── ROW 2 (grid-row 2) — 6 images, unequal widths ── */
/* Reference: narrow | medium | WIDE(centre) | medium | medium | narrow */
.g-r2c1 { grid-column: 1  / 3;  grid-row: 2; } /* narrow  */
.g-r2c2 { grid-column: 3  / 6;  grid-row: 2; } /* medium  */
.g-r2c3 { grid-column: 6  / 8;  grid-row: 2; } /* medium  */
.g-r2c4 { grid-column: 8  / 10; grid-row: 2; } /* medium  */
.g-r2c5 { grid-column: 10 / 12; grid-row: 2; } /* medium  */
.g-r2c6 { grid-column: 12 / 13; grid-row: 2; } /* narrow  */

/* ── ROW 3 (grid-row 3) — 4 images ── */
/* Reference: narrow | VERY WIDE(youth conf) | WIDE(clergy) | narrow */
.g-r3c1 { grid-column: 1  / 3;  grid-row: 3; }
.g-r3c2 { grid-column: 3  / 8;  grid-row: 3; }
.g-r3c3 { grid-column: 8  / 12; grid-row: 3; }
.g-r3c4 { grid-column: 12 / 13; grid-row: 3; }

/* Placeholder fills (when no real image) */
.g-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  color: rgba(255,255,255,.25);
  font-size: .6rem; letter-spacing: .04em; text-transform: uppercase;
}
.g-ph i { font-size: 1.8rem; }

/* colour palette for placeholders */
.ph-teal    { background: linear-gradient(135deg,#0B6E88,#08A9C8); }
.ph-green   { background: linear-gradient(135deg,#1a6b3c,#2d9d5e); }
.ph-blue    { background: linear-gradient(135deg,#13344D,#1a5070); }
.ph-warm    { background: linear-gradient(135deg,#5a3e1b,#8a6030); }
.ph-indigo  { background: linear-gradient(135deg,#2d2b6b,#4a47a3); }
.ph-rust    { background: linear-gradient(135deg,#7a2c1a,#b84432); }
.ph-sage    { background: linear-gradient(135deg,#2d5440,#4a7c60); }
.ph-stone   { background: linear-gradient(135deg,#3d3530,#6b5e56); }
.ph-olive   { background: linear-gradient(135deg,#3d4a1a,#5e7230); }
.ph-navy    { background: linear-gradient(135deg,#0f1c3a,#1e3a6e); }
.ph-amber   { background: linear-gradient(135deg,#7a4d0a,#c07820); }
.ph-slate   { background: linear-gradient(135deg,#2a3a4a,#445566); }
.ph-forest  { background: linear-gradient(135deg,#1a3d1a,#2d6b2d); }
.ph-purple  { background: linear-gradient(135deg,#3d1a5a,#6b3a8a); }
.ph-coral   { background: linear-gradient(135deg,#7a2d2d,#b84a4a); }
.ph-teal2   { background: linear-gradient(135deg,#0a4a5a,#1a7a8a); }
.ph-khaki   { background: linear-gradient(135deg,#4a4020,#7a6a3a); }
.ph-maroon  { background: linear-gradient(135deg,#4a0a1a,#7a2a3a); }

/* ============================================================
   7. MISSION SECTION
   ============================================================ */
.mission-section {
  background: var(--white);
  padding: 56px 16px 48px;
  text-align: center;
}

.mission__heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 14px;
}

.mission__subtitle {
  font-size: clamp(.875rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 28px;
}

.mission__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Button — teal outline + chevron badge, exactly like reference */
.btn-mission {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--primary);
  border-radius: 5px;
  overflow: hidden;
  font-size: .84rem;
  font-weight: 500;
  color: var(--dark);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-mission:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(8,169,200,.30);
  transform: translateY(-1px);
}
.btn-mission__label {
  padding: 9px 14px 9px 16px;
  background-color: #0799B5;
  color: #FFFF;
  white-space: nowrap;
}
.btn-mission__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 100%;
  padding: 9px 0;
  background: rgba(8,169,200,.12);
  color: #0799B5;
  border-left: 1.5px solid var(--primary);
  font-size: .8rem;
  color: var(--primary);
  transition: all var(--transition);
  align-self: stretch;
}
.btn-mission:hover .btn-mission__icon {
  background: rgba(255,255,255,.18);
  border-left-color: rgba(255,255,255,.4);
  color: var(--white);
}

/* ============================================================
   8. MINISTRY CARDS
   ============================================================ */
.ministries-section {
  background: var(--white);
  padding: 0 16px 56px;
}

.ministries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
}

.ministry-card {
  position: relative;
  border-radius: var(--radius-md);
  border: 3px solid var(--primary);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--dark);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
}
.ministry-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.ministry-card img,
.ministry-card__ph {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.ministry-card:hover img,
.ministry-card:hover .ministry-card__ph { transform: scale(1.07); }

.ministry-card__ph {
  display: flex; align-items: center; justify-content: center;
}
.ministry-card__ph i {
  font-size: 4rem;
  color: rgba(255,255,255,.18);
}

/* Dark gradient overlay */
.ministry-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(5,80,110,.82) 0%,
    rgba(5,80,110,.15) 50%,
    transparent 100%
  );
}

.ministry-card{
    position:relative;
    overflow:hidden;
    border:7px solid #1eb6c9;
    border-radius:28px;
    background:#fff;
}
.ministry-card__overlay{
    display:none;
}
.ministry-card__ph{
    width:100%;
    height:250px;
    object-fit:cover;
}
.ministry-card__footer{
    position:absolute;
    right:14px;
    bottom:14px;
}
.ministry-card__cta{
    display:flex;
    align-items:center;
    text-decoration:none;
}

.ministry-card__label{

    background:#1eb6c9;
    color:#fff;
    padding:8px 14px;
    font-size:18px;
    font-weight:500;
    border-radius:6px 0 0 6px;
    line-height:1;
}

 .ministry-card__arrow{

    width:34px;
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(8,169,200,.12);
    color:#1eb6c9;
    border-radius:0 6px 6px 0;
    font-size:16px;
    transition:.3s;
}
.ministry-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(0,0,0,.18);
}

.ministry-card:hover .ministry-card__arrow{
    background:#1eb6c9;
    color:#fff;
}

/* ============================================================
   9. FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark-teal);
  color: rgba(255,255,255,.75);
  padding: 56px 16px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-col__title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  position: relative;
}
.footer-col__title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* About col */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-brand__icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer-brand__icon i { font-size: 1rem; color: var(--white); }
.footer-brand__name {
  font-size: .8rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.35;
}
.footer-about-text {
  font-size: .8rem;
  line-height: 1.8;
  color: rgba(255,255,255,.6);
  margin-bottom: 16px;
}

.footer-social { display: flex; gap: 8px; }
.footer-social a {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 5px;
  color: rgba(255,255,255,.6);
  font-size: .84rem;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Links */
.footer-links li { margin-bottom: 9px; }
.footer-links a {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition);
}
.footer-links a::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}
.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

/* Contact items */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  line-height: 1.55;
}
.footer-contact-item i {
  color: var(--primary);
  font-size: .9rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  border-radius: 6px;
  margin-top: 14px;
  transition: all var(--transition);
}
.footer-donate-btn:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(8,169,200,.35);
}

/* Copyright */
.footer-bottom {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom__copy {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom__links {
  display: flex;
  gap: 20px;
}
.footer-bottom__links a {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  transition: color var(--transition);
}
.footer-bottom__links a:hover { color: var(--primary); }

/* ============================================================
   10. SCROLL-TO-TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 40px; height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

/* ============================================================
   11. FADE-UP (IntersectionObserver)
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
