/* ═══════════════════════════════════════════════════════════════
   THE PEARLY GATE — Custom Styles
   Enterprise-grade security. Kingdom soul.
   Navy / Gold / White premium design system
   ═══════════════════════════════════════════════════════════════ */

/* ─── Base ─── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

::selection {
  background-color: #d4a020;
  color: #0a101b;
}

/* ─── Header States ─── */
#header {
  background: transparent;
}

#header.scrolled {
  background: rgba(10, 16, 27, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3), 0 0 1px rgba(212, 160, 32, 0.1);
}

#header.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.7);
}

/* ─── Fade-Up Entrance Animation ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.animation-delay-100 { animation-delay: 0.15s; }
.animation-delay-200 { animation-delay: 0.3s; }
.animation-delay-300 { animation-delay: 0.45s; }
.animation-delay-400 { animation-delay: 0.6s; }

/* ─── Hero Product Float ─── */
.hero-product-float {
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ─── Scroll Reveal ─── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in product grid */
.scroll-reveal:nth-child(2) { transition-delay: 0.08s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.16s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.24s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.32s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.40s; }

/* ─── Progress Bar Shimmer ─── */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.animate-shimmer {
  animation: shimmer 2.5s infinite;
}

/* ─── Product Card Glow on Hover ─── */
.product-card {
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(212, 160, 32, 0), rgba(212, 160, 32, 0));
  z-index: -1;
  transition: background 0.5s ease;
}

.product-card:hover::before {
  background: linear-gradient(135deg, rgba(212, 160, 32, 0.15), rgba(212, 160, 32, 0.05));
}

/* ─── Tabular Numbers for Counter ─── */
#funding-amount {
  font-variant-numeric: tabular-nums;
}

/* ─── Mobile Menu ─── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.open {
  max-height: 320px;
  display: block;
}

/* ─── Newsletter Success ─── */
#newsletter-success.show {
  display: block;
  animation: fadeUp 0.5s ease forwards;
}

/* ─── Modal Transitions ─── */
#product-modal .modal-backdrop {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#product-modal.active .modal-backdrop {
  opacity: 1;
}

#product-modal #modal-content {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#product-modal.active #modal-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #060c14;
}

::-webkit-scrollbar-thumb {
  background: #1a2744;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d4a020;
}

/* ─── Focus Styles ─── */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(212, 160, 32, 0.5);
  outline-offset: 2px;
}

input:focus {
  outline: none;
}

/* ─── Gold Divider Glow ─── */
section .bg-gradient-to-r.from-transparent.via-gold-500.to-transparent {
  opacity: 0.6;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.5rem;
  }
}

/* ─── Gabriel Chat Widget ─── */
#gabriel-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.gabriel-scroll::-webkit-scrollbar {
  width: 4px;
}
.gabriel-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.gabriel-scroll::-webkit-scrollbar-thumb {
  background: rgba(212, 160, 32, 0.15);
  border-radius: 4px;
}
.gabriel-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 160, 32, 0.3);
}

#gabriel-input {
  field-sizing: content;
}

.gabriel-msg-enter {
  animation: gabrielMsgIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes gabrielMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Gabriel message typography — luminous, structured, scripture-forward */
.gabriel-prose {
  font-feature-settings: "kern" 1, "liga" 1;
}

.gabriel-para {
  margin: 0 0 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.gabriel-para:last-child {
  margin-bottom: 0;
}

.gabriel-para--lead {
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.01em;
}

.gabriel-para--lead::first-letter {
  float: left;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.35rem;
  line-height: 0.85;
  padding-right: 0.35rem;
  margin-top: 0.06em;
  color: #d4a020;
  font-weight: 600;
  text-shadow: 0 0 28px rgba(212, 160, 32, 0.25);
}

.gabriel-cite-line {
  margin: -0.35rem 0 0.95rem;
  padding: 0.5rem 0 0 0.85rem;
  border-left: 2px solid rgba(212, 160, 32, 0.45);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(212, 176, 100, 0.92);
}

.gabriel-scripture {
  position: relative;
  margin: 0.35rem 0 1.1rem;
  padding: 0.85rem 1rem 0.95rem 1.15rem;
  background: linear-gradient(
    135deg,
    rgba(212, 160, 32, 0.07) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(10, 16, 27, 0.4) 100%
  );
  border: 1px solid rgba(212, 160, 32, 0.18);
  border-radius: 0.65rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gabriel-scripture__mark {
  position: absolute;
  left: 0.65rem;
  top: 0.55rem;
  width: 3px;
  height: calc(100% - 1.1rem);
  border-radius: 2px;
  background: linear-gradient(180deg, #e4b63f 0%, rgba(212, 160, 32, 0.35) 100%);
  box-shadow: 0 0 12px rgba(212, 160, 32, 0.35);
}

.gabriel-scripture__text {
  margin: 0 0 0.55rem;
  padding-left: 0.5rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.65;
  font-style: italic;
  color: rgba(255, 252, 245, 0.92);
}

.gabriel-scripture__cite {
  display: block;
  padding-left: 0.5rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(212, 160, 32, 0.85);
}

.gabriel-hr {
  margin: 1rem 0;
  height: 1px;
  border: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 160, 32, 0.35) 20%,
    rgba(212, 160, 32, 0.55) 50%,
    rgba(212, 160, 32, 0.35) 80%,
    transparent
  );
  opacity: 0.9;
}

.gabriel-list,
.gabriel-olist {
  margin: 0.35rem 0 1rem;
  padding-left: 0;
  list-style: none;
}

.gabriel-list li,
.gabriel-olist li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1.15rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.76);
}

.gabriel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #e4b63f 0%, rgba(212, 160, 32, 0.4) 100%);
  box-shadow: 0 0 8px rgba(212, 160, 32, 0.4);
}

.gabriel-olist {
  counter-reset: goli;
}

.gabriel-olist li {
  counter-increment: goli;
}

.gabriel-olist li::before {
  content: counter(goli);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.1rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(212, 160, 32, 0.9);
  font-variant-numeric: tabular-nums;
}

.gabriel-response strong {
  color: rgba(230, 195, 120, 0.95);
  font-weight: 600;
}

.gabriel-response em {
  color: rgba(255, 255, 255, 0.58);
  font-style: italic;
}

.gabriel-response code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  font-size: 0.82em;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ─── Print ─── */
@media print {
  header, #funding, #newsletter, footer, #product-modal, #gabriel-fab, #gabriel-panel { display: none; }
  body { color: #000; background: #fff; }
  section { padding: 1rem 0; }
}
