/* ============================================================
   GOSPEL HERALD — global.css
   Variables · Reset · Typography · Utilities
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,400&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&family=Barlow+Condensed:wght@400;500;600;700&display=swap');

/* ── VARIABLES ── */
:root {
  --gold:        #C9973A;
  --gold-light:  #F0C96B;
  --gold-dim:    #7a5a1e;
  --deep:        #12121F;
  --deep-2:      #1A1A2E;
  --slate:       #2E2E4A;
  --slate-2:     #3D3D5C;
  --crimson:     #8B1A1A;
  --crimson-2:   #A52020;
  --forest:      #1E6B3C;
  --navy:        #1A3A5C;
  --ivory:       #FAF6EF;
  --ivory-2:     #F2EBE0;
  --border:      #E0D8CC;
  --text-main:   #1A1A2E;
  --text-muted:  #7A7A99;
  --white:       #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-ui:      'Barlow Condensed', sans-serif;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.18);

  --radius:     3px;
  --trans:      all .25s ease;

  --container:  100%;
  --gap:        24px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  margin: 0;
  padding: 0 16px;
}
@media (max-width: 768px) { .container { padding: 0 10px; } }

/* ── SECTION HEADER ── */
.section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.section-hd h2 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--crimson);
  padding: 5px 14px;
  position: relative;
}
.section-hd h2::after {
  content: '';
  position: absolute;
  right: -8px; top: 50%;
  transform: translateY(-50%);
  border-left: 8px solid var(--crimson);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}
.section-hd .see-all {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--crimson);
  text-transform: uppercase;
  border-bottom: 1px solid var(--crimson);
  transition: var(--trans);
}
.section-hd .see-all:hover { color: var(--gold); border-color: var(--gold); }

/* ── CATEGORY TAGS ── */
.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.tag {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  padding: 3px 8px;
  color: var(--white);
  text-transform: uppercase;
  border-radius: 1px;
}
.tag-revival   { background: var(--crimson); }
.tag-mission   { background: var(--navy); }
.tag-worship   { background: var(--forest); }
.tag-theology  { background: #5a3e7a; }
.tag-community { background: #7a4a1a; }
.tag-youth     { background: #1a6e6e; }
.tag-media     { background: #2a5a2a; }
.tag-events    { background: #6a3a1a; }

/* ── ARTICLE META ── */
.art-meta {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.art-meta .author { color: var(--crimson); font-weight: 600; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 22px;
  transition: var(--trans);
  border-radius: var(--radius);
}
.btn-gold   { background: var(--gold); color: var(--deep); }
.btn-gold:hover { background: var(--gold-light); }
.btn-dark   { background: var(--deep); color: var(--gold); border: 1px solid var(--gold); }
.btn-dark:hover { background: var(--slate); }
.btn-outline { background: transparent; color: var(--crimson); border: 2px solid var(--crimson); }
.btn-outline:hover { background: var(--crimson); color: white; }

/* ── CARD BASE ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--trans);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ── VERSE STRIP ── */
.verse-strip {
  background: var(--deep-2);
  color: var(--gold-light);
  text-align: center;
  padding: 20px 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}
.verse-strip cite {
  display: block;
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-top: 6px;
  text-transform: uppercase;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.anim-up  { animation: fadeUp .5s ease both; }
.anim-in  { animation: fadeIn .4s ease both; }
.delay-1  { animation-delay: .1s; }
.delay-2  { animation-delay: .2s; }
.delay-3  { animation-delay: .3s; }
.delay-4  { animation-delay: .4s; }
.delay-5  { animation-delay: .5s; }

/* ── HELPERS ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 28px; }
.mb-lg { margin-bottom: 28px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ── SIDEBAR WIDGET ── */
.widget {
  background: var(--white);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.widget-head {
  background: var(--deep-2);
  color: var(--gold);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 16px;
}
.widget-body { padding: 16px; }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 32px;
}
.pagination a, .pagination span {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  color: var(--slate-2);
  transition: var(--trans);
}
.pagination a:hover, .pagination .active {
  background: var(--crimson);
  color: white;
  border-color: var(--crimson);
}

/* ── BREADCRUMB ── */
.breadcrumb {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: .5px;
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 10px 0;
}
.breadcrumb a { color: var(--crimson); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: #ccc; }

/* ── SCROLL TO TOP ── */
#scrollTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--crimson);
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: var(--trans);
  z-index: 999;
}
#scrollTop.show { opacity: 1; pointer-events: all; }
#scrollTop:hover { background: var(--gold); color: var(--deep); }
