/* =========================================================
   Ark of Covenant Church for All Nations (ACCAN)
   Main stylesheet
   Sections: 1. Tokens  2. Base  3. Layout  4. Header
             5. Hero    6. Components  7. Sections
             8. Forms   9. Footer  10. Chat  11. Animations
             12. Responsive
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --navy:        #16244d;
  --navy-deep:   #0f1729;
  --navy-soft:   #1e3163;
  --gold:        #e2a72e;
  --gold-light:  #f0c25c;
  --gold-pale:   #fdf6e3;
  --cream:       #fffaeb;
  --bg:          #f6f7f9;
  --surface:     #ffffff;
  --text:        #0f1729;
  --muted:       #5a6373;
  --border:      #e6e9ef;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 41, .06);
  --shadow:    0 8px 28px rgba(15, 23, 41, .08);
  --shadow-lg: 0 22px 60px rgba(15, 23, 41, .16);

  --header-h: 76px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 .5em;
  color: var(--navy-deep);
}

h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }

p { margin: 0 0 1rem; color: var(--muted); }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--gold); color: var(--navy-deep); }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: 1216px;
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint  { background: var(--surface); }
.section--navy  { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(255, 255, 255, .76); }

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

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 720px; }

/* ---------- 4. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(22, 36, 77, .95);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(15, 23, 41, .25);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream);
  box-shadow: 0 0 0 2px rgba(226, 167, 46, .55);
}
.brand__text { min-width: 0; display: flex; flex-direction: column; }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: .01em;
  line-height: 1.1;
}
.brand__tagline {
  display: block;
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: .92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .84);
  transition: color .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__link.is-active { color: #fff; background: rgba(226, 167, 46, .18); }

/* Dropdown */
.nav__item { position: relative; }
.nav__toggle { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nav__caret { transition: transform .3s var(--ease); }
.nav__item:hover .nav__caret { transform: rotate(180deg); }
.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 232px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .28s var(--ease);
}
.nav__item:hover .nav__menu,
.nav__item:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: .9rem;
  color: var(--text);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__menu a:hover { background: var(--gold-pale); color: var(--navy); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1);
  border: 0; border-radius: 11px;
  color: #fff; cursor: pointer;
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 890;
  padding: 22px 20px 40px;
  background: var(--navy);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .38s var(--ease), visibility .38s;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav a {
  display: block;
  padding: 14px 4px;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.mobile-nav a:hover, .mobile-nav a.is-active { color: var(--gold); }
.mobile-nav .btn { margin-top: 22px; width: 100%; justify-content: center; }
body.nav-open { overflow: hidden; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 92vh;
  padding: calc(var(--header-h) + 60px) 0 90px;
  overflow: hidden;
  color: #fff;
}
.hero__bg { position: absolute; inset: 0; }
.hero > .container { flex: 1 1 100%; min-width: 0; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 22s ease-in-out infinite alternate;
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(15, 23, 41, .94) 8%, rgba(22, 36, 77, .82) 48%, rgba(15, 23, 41, .62) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .accent { color: var(--gold); }
.hero p { color: rgba(255, 255, 255, .84); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-stat {
  position: absolute;
  right: 20px; bottom: 42px;
  z-index: 2;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 26px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}
.hero-stat__num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--gold); line-height: 1; }
.hero-stat__label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }

/* Inner page banner */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 74px) 0 78px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 41, .9), rgba(22, 36, 77, .88));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 640px; margin-inline: auto; }

/* ---------- 6. Components ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .93rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 8px 22px rgba(226, 167, 46, .32); }
.btn--gold:hover { background: var(--gold-light); box-shadow: 0 12px 30px rgba(226, 167, 46, .42); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-soft); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .42); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

.eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { font-size: 1.02rem; }

.card {
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(226, 167, 46, .5); }
.card h3 { margin-bottom: .4em; }
.card p { margin-bottom: 0; font-size: .94rem; }

.icon-badge {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: 18px;
  border-radius: 15px;
  background: var(--gold-pale);
  color: var(--gold);
}
.icon-badge--navy { background: rgba(22, 36, 77, .08); color: var(--navy); }
.section--navy .icon-badge { background: rgba(226, 167, 46, .16); color: var(--gold); }

.pill {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--gold-pale);
  color: #a3761a;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.media:hover img { transform: scale(1.05); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 68px); align-items: center; }

.quote-block {
  padding: 26px 28px;
  border-left: 3px solid var(--gold);
  background: var(--gold-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--navy);
}
.section--navy .quote-block { background: rgba(255, 255, 255, .06); color: var(--cream); }

.belief-item {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.belief-item:hover { transform: translateX(6px); border-color: var(--gold); }
.belief-item svg { flex-shrink: 0; color: var(--gold); margin-top: 3px; }
.belief-item span { font-size: .95rem; color: var(--text); }
.section--navy .belief-item { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.section--navy .belief-item span { color: rgba(255, 255, 255, .9); }

.flag { font-size: 2.1rem; line-height: 1; margin-bottom: 14px; }

.avatar {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: .95rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: #dfe3ea;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item::after {
  content: "View";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #fff;
  background: rgba(15, 23, 41, .55);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(9, 14, 26, .93);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; animation: fadeIn .3s var(--ease); }
.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: zoomIn .35s var(--ease);
}
.lightbox__btn {
  position: absolute;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, .14);
  border: 0; border-radius: 50%;
  color: #fff; cursor: pointer;
  transition: background .25s var(--ease);
}
.lightbox__btn:hover { background: var(--gold); color: var(--navy-deep); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Marquee (Give page) */
.marquee { overflow: hidden; padding: 14px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 18px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  min-width: 240px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
}
.marquee__item strong { display: block; color: #fff; font-family: var(--font-display); margin-bottom: 4px; }
.marquee__item span { font-size: .88rem; color: rgba(255, 255, 255, .7); }

/* ---------- 8. Forms ---------- */
.form-card {
  padding: clamp(26px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: #fbfcfd;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(226, 167, 46, .18);
}
.form-note { margin-top: 14px; font-size: .82rem; color: var(--muted); }
.form-status {
  display: none;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
}
.form-status.is-visible { display: block; animation: fadeUp .4s var(--ease); }
.form-status--ok { background: #e9f7ef; color: #1c6b40; border: 1px solid #bfe6cf; }

/* ---------- 9. Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); padding: 68px 0 26px; }
.site-footer h4 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 42px; }
.site-footer a { color: rgba(255, 255, 255, .74); transition: color .25s var(--ease), padding-left .25s var(--ease); }
.site-footer a:hover { color: var(--gold); }
.footer-links li { margin-bottom: 9px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; }
.footer-links a:hover { padding-left: 4px; }
.footer-tagline { font-family: var(--font-display); font-style: italic; color: rgba(255, 255, 255, .55); font-size: .9rem; }
.footer-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 46px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .92rem;
}
.footer-cta a { color: var(--gold); font-weight: 600; }
.footer-bottom {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .84rem;
  color: rgba(255, 255, 255, .55);
}
.footer-bottom a { color: var(--gold); text-decoration: underline; }

/* ---------- 10. Chat assistant ---------- */
.chat-launcher {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 1000;
  display: grid; place-items: center;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: #fff;
  border: 0; border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(59, 130, 246, .55);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
  animation: chatFloat 2.8s ease-in-out infinite;
  will-change: transform;
}
.chat-launcher::after {
  content: "";
  position: absolute;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(99, 179, 255, .6);
  animation: chatPulse 2s ease-out infinite;
  pointer-events: none;
}
.chat-launcher:hover { animation-play-state: paused; transform: translateY(-4px) scale(1.1); box-shadow: 0 10px 34px rgba(59, 130, 246, .7); }
.chat-launcher.is-hidden { opacity: 0; pointer-events: none; animation: none; transform: scale(.6); }

.chat-panel {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  width: min(370px, 92vw);
  height: min(520px, calc(100vh - 48px));
  background: #0f172a;
  border: 1px solid rgba(99, 179, 255, .25);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 60px rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(.95);
  transform-origin: bottom right;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.chat-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  animation: chatPanelIn .42s var(--ease) both;
}

.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
}
.chat-avatar {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  font-size: 20px; line-height: 1;
  animation: avatarBreathe 2.4s ease-in-out infinite;
}
.chat-header strong { display: block; font-size: .94rem; font-weight: 700; }
.chat-header small { display: block; font-size: .69rem; color: rgba(255, 255, 255, .6); }
.chat-close {
  margin-left: auto;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  background: none;
  border: 0; border-radius: 50%;
  color: rgba(255, 255, 255, .6); cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.chat-close:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.chat-body { flex: 1; overflow-y: auto; padding: 14px 14px 8px; background: #0f172a; }
.chat-msg { display: flex; margin-bottom: 10px; animation: fadeUp .3s var(--ease); }
.chat-msg__bubble {
  max-width: 82%;
  padding: 9px 13px;
  font-size: .82rem;
  line-height: 1.55;
  border-radius: 16px;
}
.chat-msg--bot .chat-msg__bubble {
  background: rgba(255, 255, 255, .08);
  color: rgba(225, 235, 255, .9);
  border: 1px solid rgba(255, 255, 255, .1);
  border-bottom-left-radius: 4px;
}
.chat-msg--user { justify-content: flex-end; }
.chat-msg--user .chat-msg__bubble {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg__bubble a { color: #fff; font-weight: 600; text-decoration: underline; }
.chat-msg--bot .chat-msg__bubble a { color: #8ab8ff; }

.chat-typing { display: flex; gap: 4px; padding: 12px 14px; }
.chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(225, 235, 255, .7);
  animation: dotBounce 1s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }

.chat-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 10px; background: #0f172a; }
.chat-chip {
  padding: 6px 11px;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  color: rgba(225, 235, 255, .9);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.chat-chip:hover { background: rgba(59, 130, 246, .35); border-color: rgba(99, 179, 255, .6); color: #fff; }

.chat-form { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid rgba(255, 255, 255, .08); background: #0f172a; }
.chat-form input {
  flex: 1;
  padding: 9px 13px;
  font-family: var(--font-body);
  font-size: .82rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
}
.chat-form input::placeholder { color: rgba(225, 235, 255, .45); }
.chat-form input:focus { outline: none; border-color: rgba(99, 179, 255, .6); }
.chat-send {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
  border: 0; border-radius: 50%;
  cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.chat-send:hover { transform: scale(1.08); }

/* ---------- 11. Animations ---------- */
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn   { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes marquee  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes dotBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes chatPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes chatFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(-11px) rotate(-3deg); }
  55% { transform: translateY(-11px) rotate(3deg); }
}
@keyframes chatPanelIn {
  0% { opacity: 0; transform: translateY(32px) scale(.88); }
  70% { opacity: 1; transform: translateY(-5px) scale(1.015); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes avatarBreathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, .15); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
}
@keyframes base44-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes base44-scale-in { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
@keyframes badge-spin { to { transform: rotate(360deg); } }
@keyframes softPulse { 50% { opacity: .5; } }
.animate-fade-in { animation: base44-fade-in .6s var(--ease) both; }
.animate-scale-in { animation: base44-scale-in .5s var(--ease) both; }
.animate-pulse-soft { animation: softPulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.badge-spin { animation: badge-spin 12s linear infinite; }

/* Logo bounce loop */
@keyframes logoBounce {
  0%, 100% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(-11px) rotate(-2deg); }
  55% { transform: translateY(-11px) rotate(2deg); }
}
.logo-bounce {
  animation: logoBounce 2.35s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}

/* Deliberate floating action used by the Give page's primary buttons. */
@keyframes actionFloat {
  0%, 100% { transform: translateY(0); box-shadow: 0 8px 22px rgba(226, 167, 46, .32); }
  50% { transform: translateY(-9px); box-shadow: 0 18px 34px rgba(226, 167, 46, .48); }
}
.btn--float {
  animation: actionFloat 2.6s ease-in-out infinite;
  will-change: transform;
}
.btn--float:hover {
  animation-play-state: paused;
  transform: translateY(-5px) scale(1.04);
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal--scale { transform: translateY(18px) scale(.96); }
.reveal--left { transform: translateX(-32px); }
.reveal--right { transform: translateX(32px); }
.reveal--scale.is-visible,
.reveal--left.is-visible,
.reveal--right.is-visible { transform: none; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  /* Keep requested identity/status motion gentle and visible. */
  .logo-bounce { animation: logoBounce 4s ease-in-out infinite !important; }
  .chat-launcher { animation: chatFloat 4.5s ease-in-out infinite !important; }
  .chat-launcher::after { animation: chatPulse 3s ease-out infinite !important; }
  .btn--float { animation: actionFloat 4.5s ease-in-out infinite !important; }
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--flip > *:first-child { order: 2; }
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 48px);
    flex-direction: column;
    align-items: stretch;
  }
  .hero-stat {
    position: static;
    display: inline-flex;
    margin: 30px auto 0;
    width: calc(100% - 2 * var(--gutter));
    max-width: 420px;
    justify-content: center;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 560px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .brand__tagline { display: none; }
  .brand__name { font-size: 1.05rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .chat-panel { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100vh - 24px); }
  .chat-launcher { right: 14px; bottom: 14px; }
}

/* ---------- 12. Give page: Kingdom Partnership 3D LOOP GALLERY ---------- */
.page-hero--left { text-align: left; }
.page-hero--left p { margin-inline: 0; }

.showcase {
  position: relative;
  overflow: hidden;
  padding: 66px 0 54px;
  background: #060b1a;
  perspective: 1500px;
}
.showcase__bg { position: absolute; inset: 0; }
.showcase__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.showcase__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 25%, rgba(6, 11, 26, .35), rgba(6, 11, 26, .92));
}
.showcase__inner { position: relative; z-index: 2; }

/* Tilted glass panel */
.showcase__panel {
  position: relative;
  max-width: 1080px;
  margin: 0 auto 26px;
  padding: 40px 46px 54px;
  border-radius: 18px;
  border: 1px solid rgba(126, 240, 209, .55);
  background: linear-gradient(135deg, rgba(9, 18, 38, .78), rgba(9, 18, 38, .42));
  box-shadow: 0 0 46px rgba(94, 234, 212, .18), inset 0 0 40px rgba(94, 234, 212, .05);
  backdrop-filter: blur(6px);
  transform: rotateX(9deg) rotateZ(-1.4deg);
  transform-origin: center bottom;
  animation: showcase-float 7s ease-in-out infinite;
}
.showcase__panel .eyebrow {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .85);
}
.showcase__panel h2 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.06;
  margin: 16px 0 14px;
}
.showcase__panel h2 .accent { color: #8ff0d0; display: block; }
.showcase__panel p {
  color: rgba(255, 255, 255, .8);
  font-style: italic;
  max-width: 620px;
  margin: 0;
}

/* ===== 3D looping ring gallery ===== */
.ring3d {
  position: relative;
  height: 480px;
  margin-top: 10px;
  perspective: 2000px;
  perspective-origin: 50% 42%;
}
.ring3d__stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  animation: ring3d-spin 34s linear infinite;
}
.ring3d:hover .ring3d__stage,
.ring3d:focus-within .ring3d__stage { animation-play-state: paused; }

.ring3d__cell {
  position: absolute;
  left: -98px;
  top: -120px;
  width: 196px;
  height: 240px;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--neon, #5eead4);
  background: #04091a;
  box-shadow: 0 0 22px color-mix(in srgb, var(--neon, #5eead4) 45%, transparent);
  transform: rotateY(calc(var(--i) * var(--step, 36deg))) translateZ(var(--ring-r, 430px));
  transition: box-shadow .35s ease, border-color .35s ease;
  backface-visibility: hidden;
}
.ring3d__cell:hover { box-shadow: 0 0 44px color-mix(in srgb, var(--neon, #5eead4) 80%, transparent); }
.ring3d__cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.ring3d__cell .neon-card__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 9, 20, .05) 30%, rgba(4, 9, 20, .92));
}
.ring3d__cell .neon-card__body { position: absolute; left: 14px; right: 14px; bottom: 14px; }
.ring3d__cell .neon-card__body strong {
  display: block;
  font-size: .88rem;
  font-weight: 800;
  color: var(--neon, #5eead4);
  text-shadow: 0 0 10px color-mix(in srgb, var(--neon, #5eead4) 55%, transparent);
}
.ring3d__cell .neon-card__body span {
  display: block; font-size: .74rem; line-height: 1.35; color: rgba(255, 255, 255, .86);
}

/* reflective floor glow under the ring */
.ring3d::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 6px;
  width: 78%; height: 90px;
  transform: translateX(-50%) rotateX(78deg);
  background: radial-gradient(ellipse at center, rgba(94, 234, 212, .28), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.showcase__dots { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.showcase__dots i {
  display: block; width: 9px; height: 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .28);
}
.showcase__dots i.is-active { width: 34px; background: #22d3ee; box-shadow: 0 0 12px rgba(34, 211, 238, .8); }

@keyframes ring3d-spin {
  from { transform: rotateX(-7deg) rotateY(0deg); }
  to   { transform: rotateX(-7deg) rotateY(-360deg); }
}
@keyframes showcase-float {
  0%, 100% { transform: rotateX(9deg) rotateZ(-1.4deg) translateY(0); }
  50%      { transform: rotateX(9deg) rotateZ(-1.4deg) translateY(-14px); }
}

@media (max-width: 980px) {
  .ring3d { height: 340px; }
  .ring3d__cell { --ring-r: 330px; left: -84px; top: -108px; width: 168px; height: 216px; }
}
@media (max-width: 720px) {
  .showcase { padding: 44px 0 38px; }
  .showcase__panel { padding: 26px 20px 34px; border-radius: 14px; transform: rotateX(6deg); animation: none; }
  .ring3d { height: 280px; perspective: 900px; }
  .ring3d__cell { --ring-r: 240px; left: -62px; top: -82px; width: 124px; height: 164px; border-radius: 12px; }
  .ring3d__cell .neon-card__body strong { font-size: .74rem; }
  .ring3d__cell .neon-card__body span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase__panel { animation: none !important; }
  .ring3d__stage { animation: none !important; transform: rotateX(-7deg); }
}

/* ===== Angelica assistant: in-chat action buttons (matches existing chip style) ===== */
.chat-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0 12px 6px; }
.chat-actions .chat-chip { animation: fadeUp .3s var(--ease) both; }
.chat-actions .chat-chip--primary {
  background: rgba(59, 130, 246, .38);
  border-color: rgba(99, 179, 255, .6);
  color: #fff;
}
