/* =========================================================
   Hebron Church Generosity Department — styles
   Edit the tokens below to rebrand the whole site.
   ========================================================= */
:root {
  --ink: #13294b;          /* deep navy — text & dark sections */
  --ink-deep: #0c1c36;
  --ink-soft: #46546b;
  --cream: #faf7f1;        /* page background */
  --tint: #eef2f7;         /* alternate section background */
  --accent: #e9a23b;       /* gold — buttons & highlights */
  --accent-dark: #b9781a;
  --sky: #3fa9dc;          /* from the church logo */
  --white: #ffffff;
  --line: rgba(19, 41, 75, .12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 24px 50px -24px rgba(19, 41, 75, .45);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.08rem; }
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 12px;
}
.hero .eyebrow, .give .eyebrow { color: var(--accent); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--ink-deep); box-shadow: 0 10px 24px -10px rgba(233,162,59,.8); }
.btn-accent:hover { background: #f2b24f; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-sm { padding: 10px 22px; font-size: .95rem; }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 16px 0; transition: background .3s, box-shadow .3s, padding .3s; }
.site-header.scrolled { background: rgba(250, 247, 241, .94); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding: 10px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-logo { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 4px 14px -6px rgba(0,0,0,.4); }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.05; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; margin-top: 3px; }
.site-header.scrolled .brand { color: var(--ink); }
.brand-light { color: var(--cream); }
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-menu a:not(.btn) { color: #fff; text-decoration: none; font-weight: 500; position: relative; }
.nav-menu a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--accent); transition: width .25s; }
.nav-menu a:not(.btn):hover::after { width: 100%; }
.site-header.scrolled .nav-menu a:not(.btn) { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 6px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(63,169,220,.25), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(233,162,59,.16), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-deep) 100%);
  padding: 150px 0 90px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero-verse { margin: 26px 0 0; padding-left: 20px; border-left: 3px solid var(--accent); font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 1.7vw, 1.3rem); opacity: .92; max-width: 520px; }
.hero-verse cite { display: block; font-family: var(--font-body); font-style: normal; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-top: 8px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 62px); gap: 12px; }
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.m1 { grid-column: 1 / 5; grid-row: 1 / 4; }
.m2 { grid-column: 5 / 7; grid-row: 1 / 3; }
.m3 { grid-column: 5 / 7; grid-row: 3 / 6; }
.m4 { grid-column: 1 / 3; grid-row: 4 / 7; }
.m5 { grid-column: 3 / 5; grid-row: 4 / 7; }

/* ---------- At a glance ---------- */
.glance { background: var(--white); border-bottom: 1px solid var(--line); }
.glance-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.glance a { display: flex; flex-direction: column; gap: 6px; padding: 26px 20px; text-decoration: none; border-left: 1px solid var(--line); transition: background .2s; }
.glance a:last-child { border-right: 1px solid var(--line); }
.glance a:hover { background: var(--tint); }
.glance b { font-family: var(--font-display); font-size: 1.6rem; color: var(--accent-dark); line-height: 1; }
.glance span { font-weight: 600; font-size: .95rem; line-height: 1.3; }

/* ---------- Projects ---------- */
.project { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; padding: clamp(40px, 6vw, 70px) 0; border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; padding-top: 0; }
.project:nth-of-type(even) .project-text { order: 2; }
.project-text { position: relative; }
.project-num { position: absolute; top: -.45em; right: 0; font-family: var(--font-display); font-size: clamp(5rem, 10vw, 8rem); font-weight: 700; line-height: 1; color: var(--ink); opacity: .06; pointer-events: none; }
.verse { margin: 18px 0 24px; padding: 18px 22px; background: var(--white); border-radius: var(--radius); border-left: 4px solid var(--accent); box-shadow: 0 2px 0 var(--line); }
.verse p { font-family: var(--font-display); font-style: italic; font-size: 1.12rem; line-height: 1.5; margin: 0 0 6px; }
.verse cite { font-style: normal; font-weight: 600; font-size: .85rem; color: var(--accent-dark); letter-spacing: .04em; }
.activity { font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; }
.activity span { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 2px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 34px; position: relative; margin-bottom: 11px; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313294b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
}
.project-media .cover { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.thumbs-2 { grid-template-columns: repeat(2, 1fr); }
.thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; cursor: zoom-in; transition: transform .3s, box-shadow .3s; }
.thumbs img:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery figure:hover img { transform: scale(1.07); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(8, 18, 36, .92); display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(92vw, 900px); max-height: 82vh; width: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- Give ---------- */
.give { background: linear-gradient(160deg, var(--ink) 0%, var(--ink-deep) 100%); color: #fff; }
.give-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.give-text p:not(.eyebrow) { opacity: .85; font-size: 1.08rem; }
.pay-card { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }
.pay-head { background: var(--accent); padding: 22px 28px; color: var(--ink-deep); }
.pay-head span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.pay-head strong { font-family: var(--font-display); font-size: 1.4rem; }
.pay-card dl { margin: 0; padding: 10px 28px 20px; }
.pay-card dl > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pay-card dl > div:last-child { border-bottom: 0; }
.pay-card dt { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.pay-card dd { margin: 4px 0 0; font-weight: 600; font-size: 1.08rem; }
.pay-card dd.pay-steps { font-weight: 400; font-size: 1rem; color: var(--ink-soft); }
.pay-number { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.3rem; letter-spacing: .06em; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.copy-btn { border: 1.5px solid var(--line); background: var(--tint); color: var(--ink); font: 600 .85rem var(--font-body); padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, border-color .2s; flex-shrink: 0; }
.copy-btn:hover { border-color: var(--accent); }
.copy-btn.done { background: var(--accent); border-color: var(--accent); }

/* ---------- Contact ---------- */
.contact { background: var(--tint); }
.contact-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; background: var(--white); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 60px); box-shadow: var(--shadow); }
.contact-inner h2 { margin-bottom: .25em; max-width: 620px; }
.contact-inner p { color: var(--ink-soft); margin: 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact .btn-ghost { color: var(--ink); border-color: var(--line); background: var(--tint); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: rgba(250,247,241,.72); padding: 70px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; }
.footer-grid a:not(.brand), .footer-grid span:not(.brand-logo):not(.brand-text) { display: block; text-decoration: none; margin-bottom: 9px; }
.footer-grid a:not(.brand):hover { color: var(--accent); }
.footer-grid .brand { margin-bottom: 18px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding-top: 24px; font-size: .85rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 14px; box-shadow: var(--shadow); z-index: 99; transition: transform .35s ease; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .glance-grid { grid-template-columns: repeat(3, 1fr); }
  .glance a { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; position: relative; z-index: 60; }
  .nav-menu {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: var(--ink); transform: translateX(100%); transition: transform .4s ease;
  }
  .nav-menu a:not(.btn), .site-header.scrolled .nav-menu a:not(.btn) { color: #fff; font-size: 1.45rem; font-family: var(--font-display); }
  .nav-open .nav-menu { transform: none; }
  .nav-open .brand { position: relative; z-index: 60; color: #fff; }
  .nav-open .nav-toggle span { background: #fff; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero { padding: 120px 0 70px; }
  .hero-grid, .project, .give-grid { grid-template-columns: 1fr; }
  .project:nth-of-type(even) .project-text { order: 0; }
  .hero-mosaic { grid-template-rows: repeat(6, 48px); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-text { font-size: 1.05rem; }
  .brand-text small { font-size: .62rem; }
  .brand-logo { width: 38px; height: 38px; }
  .glance-grid { grid-template-columns: 1fr 1fr; }
  .glance a { padding: 18px 16px; }
  .hero-actions .btn, .contact-actions .btn { flex: 1 1 100%; }
  .pay-number { font-size: 1.1rem; }
  .pay-card dl, .pay-head { padding-left: 20px; padding-right: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
