/* RSG Shop Page: page styles, moved from the old plugin template. Menu and footer rules removed (they live in base.css). */
:root {
  --rsg-black:    #000000;
  --rsg-ink:      #1A1E2D;
  --rsg-white:    #FFFFFF;
  --rsg-paper:    #F2F2F2;
  --rsg-red:      #BE3431;
  --rsg-red-soft: #D55F5B;
  --rsg-grey-700: #595959;
  --rsg-grey-500: #888888;
  --rsg-grey-100: #E3E3E3;
  --font: "Red Hat Display", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font) !important; font-weight: 300;
  color: var(--rsg-black); background: var(--rsg-white);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* NAV */

/* HERO */
.rsg-hero {
  background: var(--rsg-black); padding: 140px 56px 80px;
  position: relative; overflow: hidden;
}
.rsg-grid-overlay {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.032) 1px, transparent 1px);
  background-size: 64px 64px;
}
.rsg-hero-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.rsg-hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.rsg-hero-eyebrow-line { width: 40px; height: 2px; background: var(--rsg-red); }
.rsg-hero-eyebrow-text { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rsg-red); }
.rsg-hero-headline { font-size: clamp(40px, 5vw, 64px); font-weight: 900; line-height: 1.02; color: var(--rsg-white); letter-spacing: -0.02em; }
.rsg-hero-sub { font-size: 16px; font-weight: 300; line-height: 1.65; color: rgba(255,255,255,0.5); max-width: 420px; margin-top: 16px; }
.rsg-hero-scan-line { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--rsg-red), transparent); opacity: 0.4; }

/* FILTER BAR */
.rsg-filter-bar {
  background: var(--rsg-ink); border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 56px; display: flex; align-items: center; gap: 4px; overflow-x: auto;
}
.rsg-filter-btn {
  padding: 16px 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  border: none; background: none; cursor: pointer;
  font-family: var(--font); white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s;
  text-decoration: none; display: inline-flex; align-items: center;
}
.rsg-filter-btn:hover { color: rgba(255,255,255,0.8); }
.rsg-filter-btn.active { color: var(--rsg-white); border-bottom-color: var(--rsg-red); }

/* WORSHIP THREAT TRACKER BANNER */
.rsg-wtt-banner {
  background: var(--rsg-ink); border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 40px 56px;
}
.rsg-wtt-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.rsg-wtt-left { display: flex; flex-direction: column; gap: 8px; }
.rsg-wtt-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rsg-red);
}
.rsg-wtt-title {
  font-size: clamp(18px, 2vw, 24px); font-weight: 900; color: var(--rsg-white);
  letter-spacing: -0.02em; line-height: 1.2;
}
.rsg-wtt-desc {
  font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.5); line-height: 1.65; max-width: 560px;
}
.rsg-wtt-btn {
  display: inline-block; background: transparent; color: var(--rsg-white);
  border: 1px solid rgba(255,255,255,0.25); padding: 13px 28px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
.rsg-wtt-btn:hover { border-color: var(--rsg-red); background: rgba(201,30,30,0.1); color: #fff; }
.rsg-wtt-meta {
  display: flex; gap: 32px; flex-wrap: wrap;
}
.rsg-wtt-stat { display: flex; flex-direction: column; gap: 3px; }
.rsg-wtt-stat-num { font-size: 13px; font-weight: 700; color: var(--rsg-white); letter-spacing: 0.04em; }
.rsg-wtt-stat-lbl { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.35); letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 768px) {
  .rsg-wtt-banner { padding: 32px 24px; }
  .rsg-wtt-inner { flex-direction: column; align-items: flex-start; }}

/* FEATURED STRIP */
.rsg-featured-strip { background: var(--rsg-paper); padding: 64px 56px 0; }
.rsg-featured-inner { max-width: 1200px; margin: 0 auto; }
.rsg-section-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rsg-red); margin-bottom: 20px; }
.rsg-featured-card {
  background: var(--rsg-ink); display: grid; grid-template-columns: 1fr 480px;
  gap: 0; overflow: hidden;
}
.rsg-featured-body { padding: 56px; display: flex; flex-direction: column; }
.rsg-featured-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rsg-red); margin-bottom: 16px; }
.rsg-featured-title { font-size: clamp(22px, 2.5vw, 32px); font-weight: 900; color: var(--rsg-white); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 16px; }
.rsg-featured-excerpt { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.5); line-height: 1.75; flex: 1; margin-bottom: 32px; }
.rsg-featured-price-row { display: flex; align-items: center; gap: 24px; }
.rsg-featured-price { font-size: 36px; font-weight: 900; color: var(--rsg-white); letter-spacing: -0.03em; line-height: 1; }
.rsg-btn-featured {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rsg-red); color: #fff;
  padding: 14px 28px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.2s;
}
.rsg-btn-featured:hover { background: var(--rsg-red-soft); }
.rsg-featured-img { position: relative; overflow: hidden; min-height: 320px; }
.rsg-featured-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.rsg-featured-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #1a1e2d 0%, #2d3450 100%); display: flex; align-items: center; justify-content: center; }
.rsg-bestseller-badge {
  position: absolute; top: 24px; right: 24px;
  background: var(--rsg-red); color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 5px 10px;
}

/* DOWNLOADS SECTION */
.rsg-downloads-section { background: var(--rsg-paper); padding: 56px 56px 72px; }
.rsg-downloads-inner { max-width: 1200px; margin: 0 auto; }
.rsg-section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rsg-grey-500); margin-bottom: 32px; }
.rsg-download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }

/* DOWNLOAD CARD */
.rsg-dl-card { background: var(--rsg-white); display: flex; flex-direction: column; transition: background 0.2s; }
.rsg-dl-card:hover { background: #f8f8f8; }
.rsg-dl-thumb { width: 100%; aspect-ratio: 1/1; overflow: hidden; background: var(--rsg-ink); position: relative; }
.rsg-dl-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s; }
.rsg-dl-card:hover .rsg-dl-thumb img { transform: scale(1.02); }
.rsg-dl-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.rsg-dl-price-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
  padding: 5px 12px; z-index: 2;
}
.rsg-dl-price-badge.free { background: var(--rsg-ink); color: rgba(255,255,255,0.85); }
.rsg-dl-price-badge.paid { background: var(--rsg-black); color: #fff; }
.rsg-dl-body { padding: 28px 28px 24px; flex: 1; display: flex; flex-direction: column; }
.rsg-dl-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rsg-red); margin-bottom: 10px; }
.rsg-dl-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; color: var(--rsg-black); margin-bottom: 10px; }
.rsg-dl-excerpt { font-size: 13px; font-weight: 300; line-height: 1.7; color: var(--rsg-grey-700); flex: 1; margin-bottom: 20px; }
.rsg-dl-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rsg-grey-100); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rsg-dl-price-inline { font-size: 18px; font-weight: 900; color: var(--rsg-black); letter-spacing: -0.02em; }
.rsg-dl-price-inline.free { font-size: 13px; font-weight: 700; color: var(--rsg-grey-500); letter-spacing: 0.05em; text-transform: uppercase; }
.rsg-btn-dl {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--rsg-red); color: #fff; padding: 10px 18px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.2s; white-space: nowrap;
}
.rsg-btn-dl:hover { background: var(--rsg-red-soft); }
.rsg-btn-dl-outline {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--rsg-grey-700); padding: 10px 18px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--rsg-grey-200); transition: border-color 0.2s, color 0.2s; white-space: nowrap;
}
.rsg-btn-dl-outline:hover { border-color: var(--rsg-red); color: var(--rsg-red); }

/* EDD button override */
.rsg-dl-card .edd-submit,
.rsg-dl-card .edd_go_to_checkout,
.rsg-featured-card .edd-submit { display: none; } /* hidden, we use our own button links */

/* FREE CALLOUT */
.rsg-free-section { background: var(--rsg-ink); padding: 56px; }
.rsg-free-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3px; }
.rsg-free-card { background: rgba(255,255,255,0.04); padding: 32px; display: flex; flex-direction: column; gap: 12px; transition: background 0.2s; }
.rsg-free-card:hover { background: rgba(255,255,255,0.07); }
.rsg-free-card-label { font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rsg-red); }
.rsg-free-card-title { font-size: 16px; font-weight: 700; color: var(--rsg-white); line-height: 1.35; letter-spacing: -0.01em; }
.rsg-free-card-excerpt { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.45); line-height: 1.7; flex: 1; }
.rsg-btn-free {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.6); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.2s; align-self: flex-start;
  border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 2px;
}
.rsg-btn-free:hover { color: var(--rsg-white); border-bottom-color: rgba(255,255,255,0.5); }

/* CTA STRIP */
.rsg-cta-strip { background: var(--rsg-black); padding: 80px 56px; text-align: center; position: relative; overflow: hidden; }
.rsg-cta-strip-headline { font-size: clamp(24px, 3vw, 40px); font-weight: 900; color: var(--rsg-white); letter-spacing: -0.02em; margin-bottom: 16px; }
.rsg-cta-strip-sub { font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.5); max-width: 440px; margin: 0 auto 32px; line-height: 1.65; }
.rsg-btn-primary { display: inline-block; background: var(--rsg-red); color: #fff; padding: 16px 36px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; transition: background 0.2s; }
.rsg-btn-primary:hover { background: var(--rsg-red-soft); }

/* FOOTER */

/* RESPONSIVE */
@media (max-width: 1024px) {
  .rsg-hero { padding: 120px 24px 64px; }
  .rsg-filter-bar, .rsg-featured-strip, .rsg-downloads-section { padding-left: 24px; padding-right: 24px; }
  .rsg-featured-card { grid-template-columns: 1fr; }
  .rsg-featured-img { min-height: 200px; }
  .rsg-free-section { padding: 48px 24px; }
  .rsg-free-inner { grid-template-columns: 1fr 1fr; }
  .rsg-download-grid { grid-template-columns: 1fr 1fr; }
  .rsg-cta-strip { padding: 64px 24px; }}
@media (max-width: 640px) {
  .rsg-hero { padding: 100px 16px 56px; }
  .rsg-filter-bar { padding: 0 16px; }
  .rsg-featured-strip, .rsg-downloads-section { padding-left: 16px; padding-right: 16px; }
  .rsg-featured-body { padding: 32px; }
  .rsg-free-section { padding: 40px 16px; }
  .rsg-free-inner, .rsg-download-grid { grid-template-columns: 1fr; }
  .rsg-cta-strip { padding: 56px 16px; }}
