:root{
  --deep-blue:#1E3A8A;
  --teal:#2BAE9A;
  --light-blue:#B6E6FA;
  --black:#000000;
  --white:#ffffff;

  --grad: linear-gradient(120deg, rgba(43,174,154,.95), rgba(30,58,138,.95));
  --grad-soft: linear-gradient(120deg, rgba(43,174,154,.22), rgba(30,58,138,.22));

  --bg:#05070d;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.12);
  --border: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.74);

  --shadow: 0 18px 50px rgba(0,0,0,.32);
  --radius: 18px;

  --font: "Br Firma", "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(182,230,250,.25), transparent 55%),
              radial-gradient(900px 500px at 90% 10%, rgba(43,174,154,.2), transparent 55%),
              var(--bg);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

.container{
  width:min(1120px, calc(100% - 2rem));
  margin-inline:auto;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:0;
  background:var(--white);
  color:#000;
  padding:.75rem 1rem;
  border-radius:12px;
  z-index:9999;
}
.skip-link:focus{left:1rem;top:1rem}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:saturate(160%) blur(14px);
  background: rgba(5,7,13,.55);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.85rem 0;
}

.brand{display:flex;align-items:center;gap:.85rem;min-width:0}
.brand-mark{
  width:46px;height:46px;
  border-radius:14px;
  background: rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display:grid;place-items:center;
  overflow:hidden;
}
.brand-mark img{width:92%;height:92%;object-fit:contain;filter: drop-shadow(0 6px 14px rgba(0,0,0,.28));}
.brand-text{display:flex;flex-direction:column;min-width:0}
.brand-name{font-weight:800;letter-spacing:.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-sub{font-size:.82rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.nav{display:flex;align-items:center}
.nav-panel{display:flex;align-items:center;gap:1rem}
.nav-link{color:var(--muted);font-weight:600;font-size:.95rem}
.nav-link:hover{color:var(--text)}

.nav-toggle{
  display:none;
  background:transparent;
  border:1px solid rgba(255,255,255,.12);
  color:var(--text);
  border-radius:14px;
  width:44px;height:44px;
  cursor:pointer;
}
.nav-toggle-lines{
  display:block;
  width:18px;height:2px;
  background:var(--text);
  position:relative;
  margin:0 auto;
}
.nav-toggle-lines::before,.nav-toggle-lines::after{
  content:"";
  position:absolute;left:0;
  width:18px;height:2px;
  background:var(--text);
}
.nav-toggle-lines::before{top:-6px}
.nav-toggle-lines::after{top:6px}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  padding:.75rem 1rem;
  border-radius:14px;
  font-weight:800;
  border:1px solid transparent;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  user-select:none;
  white-space:nowrap;
}
.btn:active{transform: translateY(1px)}

.btn-primary{
  background: var(--grad);
  color:var(--white);
  box-shadow: 0 16px 45px rgba(30,58,138,.28);
}
.btn-primary:hover{transform: translateY(-1px)}

.btn-secondary{
  background: rgba(182,230,250,.12);
  border-color: rgba(182,230,250,.25);
  color: var(--text);
}
.btn-secondary:hover{background: rgba(182,230,250,.18)}

.btn-ghost{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: var(--text);
}
.btn-ghost:hover{background: rgba(255,255,255,.1)}

.btn-xl{padding: .95rem 1.15rem;border-radius:16px;font-size:1rem}

.btn-donate{padding:.7rem 1rem;border-radius:16px}

.btn-glow{
  width:10px;height:10px;border-radius:999px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 0 0 8px rgba(255,255,255,.12), 0 0 40px rgba(182,230,250,.4);
}

/* Hero */
.hero{position:relative;min-height: clamp(700px, 92vh, 980px);isolation:isolate;overflow:hidden}
.hero-bg{
  position:absolute;inset:0;
  background-image:url("../images/hero.jpg");
  background-size:cover;
  background-position:center 30%;
  transform: scale(1.03);
}
.hero-overlay{
  position:absolute;inset:0;
  background:
    radial-gradient(1000px 540px at 15% 15%, rgba(43,174,154,.35), transparent 55%),
    radial-gradient(900px 520px at 85% 10%, rgba(182,230,250,.25), transparent 55%),
    linear-gradient(180deg, rgba(5,7,13,.18), rgba(5,7,13,.62) 55%, rgba(5,7,13,.82));
}

.hero-content{
  position:relative;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(4.2rem, 7.5vh, 6.5rem) 0 3.2rem;
  align-items:center;
}

.hero-copy h1{
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.05;
  margin: .6rem 0 .75rem;
  letter-spacing: -0.02em;
}
.lead{font-size: clamp(1.02rem, 1.25vw, 1.15rem);color:rgba(255,255,255,.82);max-width:56ch}

.pill{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.45rem .75rem;
  border-radius:999px;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.88);
  font-weight:700;
  font-size:.92rem;
}

.cta-row{display:flex;gap:.75rem;flex-wrap:wrap;margin: 1.35rem 0 1.6rem}

.quick-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:.75rem;
  margin-top: 1.25rem;
}

.quick-card{
  display:flex;
  gap:.75rem;
  align-items:center;
  padding:.85rem .9rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}
.quick-icon{font-size:1.25rem}
.quick-title{font-size:.82rem;color:var(--muted);font-weight:700}
.quick-value{font-weight:800}
.quick-link{font-weight:800;text-decoration:underline;text-underline-offset:3px}

.hero-side .card{padding:1.15rem 1.1rem}

.glass{
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(140%);
}

.card{border-radius: var(--radius)}
.card-title{margin:0 0 .85rem;font-size:1.05rem;letter-spacing:-0.01em}

.schedule{list-style:none;padding:0;margin:0 0 1rem;display:grid;gap:.75rem}
.schedule-item{display:flex;gap:.7rem;align-items:flex-start}
.dot{width:10px;height:10px;border-radius:999px;background: var(--grad);margin-top:.35rem;box-shadow: 0 0 0 6px rgba(182,230,250,.08)}
.schedule-top{font-weight:900}
.schedule-bottom{color:var(--muted);font-weight:600}

.hero-wave{
  position:absolute;left:-10%;right:-10%;bottom:-1px;height:120px;
  background: radial-gradient(120px 60px at 15% 20%, rgba(43,174,154,.65), transparent 60%),
              radial-gradient(160px 80px at 65% 50%, rgba(182,230,250,.45), transparent 60%),
              linear-gradient(90deg, rgba(43,174,154,.45), rgba(30,58,138,.4));
  filter: blur(18px);
  opacity:.55;
}

/* Sections */
.section{padding: clamp(3.2rem, 5.5vw, 4.6rem) 0}
.section-alt{
  background: radial-gradient(900px 420px at 20% 0%, rgba(182,230,250,.16), transparent 55%),
              radial-gradient(900px 420px at 80% 20%, rgba(43,174,154,.12), transparent 55%),
              rgba(255,255,255,.03);
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
}

.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1.35rem}
.section-head h2{margin:0;font-size:clamp(1.5rem,2vw,2rem);letter-spacing:-.02em}
.section-head p{margin:0;color:var(--muted);max-width:60ch}

.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}

.feature{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  padding:1.15rem 1.1rem;
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
}
.feature h3{margin:.75rem 0 .35rem;font-size:1.15rem;letter-spacing:-.01em}
.feature p{margin:0 0 .9rem;color:var(--muted)}
.feature-icon{
  width:44px;height:44px;border-radius:14px;
  background: var(--grad-soft);
  border:1px solid rgba(182,230,250,.18);
  display:grid;place-items:center;
  color: rgba(255,255,255,.92);
}
.feature-icon svg{width:22px;height:22px}

.meta{display:flex;gap:.5rem;flex-wrap:wrap}
.tag{
  font-size:.85rem;
  font-weight:800;
  padding:.35rem .6rem;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.86);
}

.callout{
  margin-top:1.2rem;
  border-radius: calc(var(--radius) + 4px);
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(120deg, rgba(43,174,154,.16), rgba(30,58,138,.12));
  padding:1.15rem 1.1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.callout-title{margin:0 0 .15rem;font-size:1.15rem}
.callout-text{margin:0;color:var(--muted)}

/* Cards */
.card{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  padding:1.15rem 1.1rem;
  box-shadow: 0 12px 35px rgba(0,0,0,.16);
}
.muted{color:var(--muted)}
.fineprint{color:var(--muted);font-size:.92rem;margin:.7rem 0 0}

.btn-row{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1rem}

.map-card{padding:0;overflow:hidden}
.map-card iframe{width:100%;height:360px;border:0;display:block}

/* Contact */
.contact-list{display:grid;gap:.75rem;margin-top:.4rem}
.contact-item{
  display:flex;gap:.75rem;align-items:center;
  padding:.8rem .85rem;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.contact-item:hover{background: rgba(255,255,255,.06)}
.contact-icon{font-size:1.1rem}
.contact-label{display:block;color:var(--muted);font-size:.85rem;font-weight:700}
.contact-value{display:block;font-weight:900}

.divider{height:1px;background:rgba(255,255,255,.12);margin:1rem 0}

.form{display:grid;gap:.85rem}
label{display:grid;gap:.4rem;font-weight:800}
input,textarea{
  width:100%;
  padding:.85rem .9rem;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(5,7,13,.35);
  color:var(--text);
  outline:none;
}
input:focus,textarea:focus{border-color: rgba(182,230,250,.42);box-shadow: 0 0 0 4px rgba(182,230,250,.12)}

/* Footer */
.footer{padding:1.65rem 0;border-top:1px solid rgba(255,255,255,.08);background: rgba(5,7,13,.6)}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.footer-brand{font-weight:900;letter-spacing:-.01em}
.footer-muted{color:var(--muted);font-size:.92rem;margin-top:.2rem}
.footer-links{display:flex;gap:1rem;flex-wrap:wrap;color:var(--muted);font-weight:700}
.footer-links a:hover{color:var(--text)}

/* Modal */
.modal{
  position:fixed;inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:1rem;
  z-index:80;
}
.modal[aria-hidden="false"]{display:flex}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.65)}
.modal-panel{
  position:relative;
  width:min(760px, 100%);
  border-radius: 22px;
  background: rgba(14,18,30,.95);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.1rem 1.1rem .85rem;border-bottom:1px solid rgba(255,255,255,.1)}
.modal-title{margin:0;font-size:1.25rem}
.modal-sub{margin:.15rem 0 0;color:var(--muted);font-weight:600}
.icon-btn{
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius:14px;
  width:40px;height:40px;
  cursor:pointer;
}
.icon-btn:hover{background: rgba(255,255,255,.1)}
.modal-body{padding:1rem 1.1rem 1.15rem}
.donate-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.donate-card{border-radius:18px;padding:1rem;border:1px solid rgba(255,255,255,.12);background: rgba(255,255,255,.04)}
.donate-card h4{margin:.2rem 0 .35rem}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;color:rgba(255,255,255,.88);background: rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.10);padding:.75rem;border-radius:14px}

/* Responsive */
@media (max-width: 980px){
  .hero-content{grid-template-columns: 1fr; padding-top: 4.6rem}
  .hero-side{order:2}
  .quick-grid{grid-template-columns: 1fr;}
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .map-card iframe{height:320px}
  .donate-grid{grid-template-columns:1fr}
}

@media (max-width: 720px){
  .nav-toggle{display:inline-flex;align-items:center;justify-content:center}
  .nav-panel{
    position:absolute;
    right:0.5rem;
    top: calc(100% + .6rem);
    width: min(320px, calc(100vw - 1rem));
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:.6rem;
    padding:.7rem;
    border-radius: 18px;
    background: rgba(10,12,20,.92);
    border:1px solid rgba(255,255,255,.12);
    box-shadow: var(--shadow);
  }
  .nav-panel.is-open{display:flex}
  .nav-link{padding:.6rem .7rem;border-radius:14px;background: rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.10)}
}

@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto !important;transition:none !important}
}


/* =============================
   Our Pastor + Photo Gallery
   ============================= */

.pastor-card{
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.pastor-photo{
  flex: 0 0 auto;
  width: 160px;
  height: 160px;
  border-radius: 1.25rem;
  overflow: hidden;
}

.pastor-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pastor-info h3{
  margin: 0 0 0.25rem;
}

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 1.25rem;
}

.gallery-item{
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  outline: none;
}

.gallery-item img{
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 220ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img{
  transform: scale(1.04);
}

.gallery-item:focus-visible{
  box-shadow: 0 0 0 3px rgba(255,255,255,0.35);
}

.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.lightbox.is-open{
  display: flex;
}

.lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(2px);
}

.lightbox-img{
  position: relative;
  max-width: min(1100px, 100%);
  max-height: 90vh;
  border-radius: 1.25rem;
  box-shadow: 0 20px 80px rgba(0,0,0,0.55);
}

.lightbox-close{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.lightbox-close:hover{
  background: rgba(255,255,255,0.18);
}

@media (max-width: 720px){
  .pastor-card{
    flex-direction: column;
    text-align: center;
  }
  .pastor-photo{
    width: 180px;
    height: 180px;
  }
}
