/* ── Grace Notes Ministries — Core Design System ── */

:root {
  /* ── Colors ── */
  --primary: #c9972a;
  --cream: #fdf8f0;
  --ink: #1a1208;
  --ink-2: #3d2b1a;
  --gold: #c9972a;
  --gold-light: #e8b84b;
  --muted: #7a6044;
  --footer-text: #c4a882;
  --surface-dark: #0d0906;
  --surface-dark-2: #1a1208;
  --surface-dark-3: #1e120a;
  --white: #ffffff;

  /* ── Derived Colors ── */
  --border: rgba(201, 151, 42, 0.2);
  --gold-tint-sm: rgba(201, 151, 42, 0.06);
  --gold-tint-md: rgba(201, 151, 42, 0.08);
  --gold-tint-lg: rgba(201, 151, 42, 0.12);
  --nav-bg: rgba(26, 18, 8, 0.97);
  --page-dot: rgba(201, 151, 42, 0.03);
  --nav-text: rgba(255, 255, 255, 0.7);
  --body-dim: rgba(255, 255, 255, 0.65);

  /* ── Rounded ── */
  --rounded-sm: 4px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-full: 100px;

  /* ── Spacing ── */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 48px;
  --space-2xl: 80px;

  /* ── Typography ── */
  --font-headline: 'Playfair Display', serif;
  --font-body: 'Lora', serif;
  --font-ui: 'Inter', sans-serif;
  --font-accent: 'Bangers', cursive; /* Used for comics and energetic headers */
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.85;
  background-color: var(--ink);
  color: var(--white);
  overflow-x: hidden;
  position: relative;
}

/* ── Page Texture ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, var(--page-dot) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.article-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
}

/* ── Typography Utility ── */
h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.2;
}

.headline-hero {
  font-size: clamp(36px, 8vw, 60px);
  font-weight: 900;
}

.headline-section {
  font-size: 26px;
}

.text-muted {
  color: var(--muted);
}

.label-caps {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ── Navigation ── */
nav.nav-strip {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 60px;
  padding: 0 var(--space-md);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
}

.nav-links-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.nav-links-scroll::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--nav-text);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  transition: color 0.2s, background 0.2s;
  border-radius: var(--rounded-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.05);
}

/* Special Nav Elements from index.html */
.nav-link-special {
  font-weight: 700;
  padding: 6px 16px;
}

.nav-red { background: #ef4444; color: #fff; }
.nav-gold-border { border: 2px solid var(--gold); color: var(--gold); }
.nav-give { 
  background: linear-gradient(135deg, #7a1010, #4a0808); 
  color: #fff; 
  border: 2px solid rgba(220,60,60,0.7);
}

/* ── Components ── */

.grace-byline {
  background: var(--gold-tint-sm);
  border: 1px solid var(--border);
  border-radius: var(--rounded-lg);
  padding: 16px 20px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.grace-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

blockquote {
  background: var(--gold-tint-md);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-family: var(--font-body);
  font-style: italic;
}

blockquote cite {
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-style: normal;
  display: block;
  margin-top: 10px;
}

.cta-box {
  background: linear-gradient(135deg, var(--surface-dark), var(--surface-dark-2));
  border: 1px solid rgba(201, 151, 42, 0.3);
  border-radius: var(--rounded-xl);
  padding: 40px 32px;
  margin: 48px 0;
  text-align: center;
}

.cta-box h2 {
  color: var(--gold-light);
  font-size: 26px;
  margin-bottom: 16px;
}

.cta-box p {
  font-style: italic;
  color: var(--body-dim);
  margin-bottom: 24px;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.card {
  background: var(--white);
  border-radius: var(--rounded-lg);
  padding: 16px;
  transition: background 0.2s, box-shadow 0.2s;
}

.card:hover {
  background: var(--cream);
  box-shadow: 0 4px 12px var(--gold-tint-lg);
}

footer {
  background: var(--ink);
  color: var(--footer-text);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  border-top: 4px solid var(--gold);
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ── Animations ── */
@keyframes pulse-nav { 
  0%, 100% { opacity: 1; transform: scale(1); } 
  50% { opacity: 0.9; transform: scale(1.02); } 
}

@keyframes donate-pulse-nav {
  0%, 100% { box-shadow: 0 0 14px rgba(220,60,60,0.35); }
  50% { box-shadow: 0 0 28px rgba(220,60,60,0.65); }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .article-wrap {
    padding: var(--space-lg) var(--space-sm) var(--space-xl);
  }
}

/* ── Navigation More Dropdown ── */
.nav-strip-more {
  position: relative;
  display: inline-block;
}

.nav-strip-more .more-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--nav-text);
  padding: var(--space-xs) var(--space-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-strip-more .more-trigger:hover {
  color: var(--gold-light);
}

.nav-strip-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background: #120e0a;
  border: 1px solid var(--border);
  border-radius: var(--rounded-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  min-width: 190px;
  padding: 8px 0;
}

/* On desktop, show on hover */
@media (min-width: 769px) {
  .nav-strip-more:hover .nav-strip-dropdown {
    display: block;
  }
}

.nav-strip-dropdown.show {
  display: block !important;
}

.nav-dropdown-link {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 10px 16px;
  transition: all 0.2s;
  text-align: left;
  border-radius: 4px;
  margin: 0 4px;
}

.nav-dropdown-link:hover, .nav-dropdown-link.active {
  background: rgba(201, 151, 42, 0.08);
  color: var(--gold-light);
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-hide {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
}

/* ── Premium Site Navigation ── */
.site-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
}
.nav-utility {
  background: rgba(4, 2, 1, 0.97);
  border-bottom: 1px solid rgba(201, 151, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 34px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.nav-utility-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.68);
}
.nav-utility-left a {
  color: rgba(201, 151, 42, 0.8);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-utility-left a:hover {
  color: #e8b84b;
}
.nav-utility-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.nav-live-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: nav-blink 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes nav-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.nav-primary {
  background: rgba(10, 7, 4, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(201, 151, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 52px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.site-nav-wrap.scrolled .nav-primary {
  background: rgba(4, 2, 0, 0.99);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.85);
  border-bottom-color: rgba(201, 151, 42, 0.7);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand-cross {
  font-size: 16px;
  color: #c9972a;
}
.nav-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
}
.nav-brand-text span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: #e8b84b;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: flex-start;
}
.nav-a {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 5px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-a:hover, .nav-a.active {
  color: #e8b84b;
  background: rgba(201, 151, 42, 0.10);
}
.nav-a.active {
  border-bottom: 2px solid rgba(201, 151, 42, 0.6);
  border-radius: 5px 5px 0 0;
}
.nav-more-wrap {
  position: relative;
}
.nav-more-btn {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  background: none;
  border: none;
  padding: 6px 11px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s, background 0.2s;
}
.nav-more-btn:hover {
  color: #e8b84b;
  background: rgba(201, 151, 42, 0.08);
}
.nav-more-btn .nav-chevron {
  font-size: 9px;
  transition: transform 0.25s ease;
  display: inline-block;
}
.nav-more-wrap.open .nav-chevron {
  transform: rotate(180deg);
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(12, 8, 3, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 151, 42, 0.25);
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 300;
}
.nav-dropdown::-webkit-scrollbar {
  width: 4px;
}
.nav-dropdown::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}
.nav-dropdown::-webkit-scrollbar-thumb {
  background: rgba(201, 151, 42, 0.3);
  border-radius: 10px;
}
.nav-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 151, 42, 0.5);
}
.nav-more-wrap.open .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  cursor: pointer;
}
.nav-dd-item:hover {
  background: rgba(201, 151, 42, 0.12);
  color: #e8b84b;
}
.nav-dd-sep {
  height: 1px;
  background: rgba(201, 151, 42, 0.12);
  margin: 6px 4px;
}
.nav-dd-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-btn-grace {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9972a;
  border: 1.5px solid rgba(201, 151, 42, 0.5);
  background: rgba(201, 151, 42, 0.06);
  border-radius: 6px;
  padding: 6px 13px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.nav-btn-grace:hover {
  background: rgba(201, 151, 42, 0.15);
  border-color: rgba(201, 151, 42, 0.8);
  box-shadow: 0 0 16px rgba(201, 151, 42, 0.2);
}
.nav-btn-give {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #8b1010, #5a0808);
  border: 1.5px solid rgba(220, 60, 60, 0.5);
  border-radius: 6px;
  padding: 6px 13px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  animation: nav-give-pulse 3s ease-in-out infinite;
}
@keyframes nav-give-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
.nav-btn-give:hover {
  background: linear-gradient(135deg, #aa1414, #6e0a0a);
  box-shadow: 0 0 28px rgba(220, 60, 60, 0.55);
}
.nav-btn-mj {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d0802;
  background: linear-gradient(135deg, #e8b84b, #c9972a);
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(201, 151, 42, 0.35);
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-btn-mj:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(201, 151, 42, 0.55);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.06);
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(4, 2, 1, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 199;
  display: flex;
  flex-direction: column;
  padding: 90px 28px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-drawer.open {
  transform: translateX(0);
}
.nav-drawer-section {
  margin-bottom: 10px;
}
.nav-drawer-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201, 151, 42, 0.5);
  padding: 0 4px 8px;
  border-bottom: 1px solid rgba(201, 151, 42, 0.15);
  margin-bottom: 8px;
}
.nav-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 8px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.nav-drawer-item:hover {
  background: rgba(201, 151, 42, 0.1);
  color: #e8b84b;
}
.nav-drawer-item.primary {
  font-size: 17px;
  color: #e8b84b;
}
.nav-drawer-cta-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.nav-drawer-cta-row a, .nav-drawer-cta-row button {
  flex: 1;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.nav-drawer-grace {
  background: rgba(201, 151, 42, 0.1);
  border: 1.5px solid rgba(201, 151, 42, 0.5);
  color: #c9972a;
}
.nav-drawer-give {
  background: linear-gradient(135deg, #8b1010, #5a0808);
  border: none;
  color: #fff;
}
.nav-drawer-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
@media (max-width: 1595px) {
  .nav-a { font-size: 10.5px; padding: 6px 8px; }
}
@media (max-width: 1400px) {
  .nav-links .nav-a:nth-child(n+7) { display: none; }
}
@media (max-width: 1200px) {
  .nav-links .nav-a:nth-child(n+5) { display: none; }
  .nav-btn-grace { font-size: 10px; padding: 5px 10px; }
  .nav-btn-give { font-size: 10px; padding: 5px 10px; }
}
@media (max-width: 1020px) {
  .nav-links .nav-a:nth-child(n+3) { display: none; }
  .nav-brand-text { font-size: 11px; }
  .nav-primary { padding: 0 12px; }
}
@media (max-width: 920px) {
  .nav-btn-grace { display: none; }
  .nav-utility { display: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-more-wrap { display: none; }
  .nav-btn-grace { display: none; }
  .nav-hamburger { display: flex; }
  .nav-utility { display: none; }
  .nav-primary { height: 56px; padding: 0 16px; }
}
@media (min-width: 861px) {
  .nav-drawer { display: none !important; }
}

/* ── Toast Notifications ── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: white;
  padding: 12px 28px;
  border-radius: 40px;
  border: 2px solid var(--gold);
  font-family: 'Comic Neue', cursive;
  font-weight: 700;
  font-size: 15px;
  z-index: 1000;
  transition: transform 0.3s ease;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}
