/*
Theme Name: Chasing Saints Relics
Theme URI: https://chasingsaints.com
Author: Chasing Saints Relics
Description: A reverent Catholic prayer ministry theme designed for Chasing Saints Relics, with dark espresso, parchment, antique gold, and burgundy styling.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: chasing-saints
*/

:root {
  --csr-bg: #140f0d;
  --csr-bg-2: #211713;
  --csr-paper: #fffaf1;
  --csr-paper-2: #f7efe1;
  --csr-ink: #211a16;
  --csr-muted: #6f6259;
  --csr-gold: #d7b45d;
  --csr-gold-2: #b9903b;
  --csr-burgundy: #651f27;
  --csr-burgundy-2: #8b2d38;
  --csr-line: rgba(84, 54, 35, 0.22);
  --csr-shadow: 0 24px 70px rgba(0,0,0,.26);
  --csr-radius: 18px;
  --csr-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--csr-paper);
  color: var(--csr-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
.csr-container { width: min(var(--csr-max), calc(100% - 32px)); margin: 0 auto; }

.csr-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(20, 15, 13, .88);
  border-bottom: 1px solid rgba(215,180,93,.22);
}
.csr-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.csr-brand { display: flex; align-items: center; gap: 12px; color: #fff8ec; text-decoration: none; }
.csr-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--csr-bg);
  background: linear-gradient(135deg, var(--csr-gold), #f5d987);
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(215,180,93,.1);
}
.csr-brand-text strong { display: block; font-family: Georgia, serif; font-size: 20px; line-height: 1.1; letter-spacing: .3px; }
.csr-brand-text span { display: block; font-size: 12px; color: rgba(255,248,236,.7); }
.csr-main-nav { display: flex; align-items: center; gap: 18px; color: #fff8ec; font-size: 14px; }
.csr-main-nav a { opacity: .86; text-decoration: none; }
.csr-main-nav a:hover { opacity: 1; color: var(--csr-gold); }

.csr-btn, .csr-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.csr-btn:hover { transform: translateY(-1px); }
.csr-btn-primary { background: linear-gradient(135deg, var(--csr-gold), #f0d782); color: #22140b; box-shadow: 0 14px 30px rgba(215,180,93,.25); }
.csr-btn-dark { background: var(--csr-burgundy); color: #fff8ec; box-shadow: 0 14px 34px rgba(101,31,39,.26); }
.csr-btn-ghost { background: rgba(255,255,255,.08); color: #fff8ec; border-color: rgba(255,255,255,.18); }
.csr-btn-outline { background: transparent; color: var(--csr-burgundy); border-color: rgba(101,31,39,.33); }
.csr-btn-small { min-height: 36px; padding: 8px 12px; font-size: 13px; }

.csr-hero { color: #fff8ec; padding: 84px 0 78px; }
.csr-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 38px; align-items: center; }
.csr-eyebrow { color: var(--csr-gold); text-transform: uppercase; letter-spacing: .17em; font-weight: 800; font-size: 12px; margin: 0 0 16px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; }
.csr-hero h1 { font-size: clamp(42px, 7vw, 78px); margin: 0 0 20px; letter-spacing: -.04em; color: #fff8ec; }
.csr-hero .csr-lead { font-size: clamp(18px, 2.1vw, 23px); color: rgba(255,248,236,.82); max-width: 720px; margin: 0 0 28px; }
.csr-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin: 28px 0; }
.csr-hero-note { max-width: 720px; padding: 16px 18px; border: 1px solid rgba(215,180,93,.26); border-radius: 16px; background: rgba(255,248,236,.07); color: rgba(255,248,236,.76); }
.csr-hero-card {
  border: 1px solid rgba(215,180,93,.32);
  background: linear-gradient(180deg, rgba(255,250,241,.12), rgba(255,250,241,.04));
  border-radius: 30px;
  padding: 28px;
  box-shadow: var(--csr-shadow);
  position: relative;
  overflow: hidden;
}
.csr-hero-card:before { content: ""; position: absolute; inset: -80px -80px auto auto; width: 220px; height: 220px; background: rgba(215,180,93,.12); border-radius: 50%; }
.csr-relic-table-visual { border-radius: 22px; min-height: 420px; background: linear-gradient(135deg, rgba(101,31,39,.84), rgba(29,18,13,.94)), radial-gradient(circle at 30% 30%, rgba(215,180,93,.38), transparent 28%); border: 1px solid rgba(215,180,93,.2); padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; }
.csr-visual-title { font-family: Georgia, serif; font-size: 30px; color: var(--csr-gold); margin: 0 0 10px; }
.csr-visual-text { color: rgba(255,248,236,.82); }

.csr-section { padding: 72px 0; }
.csr-section-light { background: var(--csr-paper); }
.csr-section-alt { background: var(--csr-paper-2); }
.csr-section-dark { background: #211713; color: #fff8ec; }
.csr-section-header { max-width: 850px; margin: 0 auto 36px; text-align: center; }
.csr-section-header h2 { font-size: clamp(32px, 4.6vw, 54px); margin: 0 0 14px; letter-spacing: -.02em; color: inherit; }
.csr-section-header p { color: var(--csr-muted); font-size: 18px; margin: 0; }
.csr-section-dark .csr-section-header p { color: rgba(255,248,236,.72); }
.csr-plugin-missing { background: #fff4d8; border: 1px solid rgba(215,180,93,.45); color: #4a3214; border-radius: 18px; padding: 18px; }

.csr-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.csr-card { background: #fff; border: 1px solid var(--csr-line); border-radius: var(--csr-radius); padding: 24px; box-shadow: 0 14px 44px rgba(74,48,31,.08); }
.csr-card h3 { font-size: 25px; margin: 0 0 10px; color: var(--csr-ink); }
.csr-card p { color: var(--csr-muted); margin: 0; }

.csr-bible-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.csr-verse { background: #fff; border: 1px solid var(--csr-line); border-radius: 20px; padding: 22px; }
.csr-verse strong { display: block; color: var(--csr-burgundy); margin-bottom: 10px; }

.csr-site-footer { background: #140f0d; color: rgba(255,248,236,.72); padding: 36px 0; }
.csr-footer-grid { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.csr-site-footer a { color: var(--csr-gold); text-decoration: none; }

.entry-content { width: min(var(--csr-max), calc(100% - 32px)); margin: 48px auto; }
.entry-content h1 { color: var(--csr-ink); font-size: clamp(34px, 5vw, 58px); }

@media (max-width: 980px) {
  .csr-hero-grid, .csr-cards, .csr-bible-grid { grid-template-columns: 1fr 1fr; }
  .csr-main-nav a:not(.csr-submit-link) { display: none; }
}
@media (max-width: 680px) {
  .csr-hero { padding: 56px 0; }
  .csr-hero-grid, .csr-cards, .csr-bible-grid { grid-template-columns: 1fr; }
  .csr-hero-card { display: none; }
  .csr-brand-text strong { font-size: 17px; }
}
.csr-main-nav ul, .csr-main-nav .menu { display: flex; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.csr-main-nav li { list-style: none; margin: 0; padding: 0; }


/* Version 1.3 safety: never show public admin/login links in the primary header. */
.csr-main-nav a[href*="wp-admin"],
.csr-main-nav a[href*="wp-login.php"] { display: none !important; }


/* Version 1.4 public page fixes and header language switcher support */
.csr-main-nav .csrpm-language-switcher { margin-left: 2px; }
.csr-main-nav .csrpm-language-toggle { min-height: 34px; padding-top: 7px; padding-bottom: 7px; }
.entry-content.csr-plugin-page-full { width: 100%; max-width: none; margin: 0; }
.entry-content.csr-plugin-page-full > .csrpm-saints-archive,
.entry-content.csr-plugin-page-full > .csrpm-favors-archive { width: 100%; }
.csr-prayer-table-public-note { max-width: 860px; margin: 26px auto 0; padding: 18px 22px; border: 1px solid rgba(215,180,93,.26); border-radius: 18px; background: rgba(255,250,241,.07); color: rgba(255,248,236,.78); text-align: center; }
@media (max-width: 980px) {
  .csr-main-nav .csrpm-language-switcher { display: inline-flex; }
}


/* Version 1.5 hero graphics fix
   The earlier body-level gradient could show a parchment band through the homepage hero on tall screens.
   Keep the body parchment, and give the hero its own full-height dark background. */
body {
  background: var(--csr-paper);
}
.csr-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 16% -8%, rgba(215,180,93,.18), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(101,31,39,.20), transparent 32%),
    linear-gradient(135deg, #130d0b 0%, #211713 58%, #261814 100%);
}
.csr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,15,13,.05), rgba(20,15,13,.46) 56%, rgba(20,15,13,.15)),
    radial-gradient(circle at 48% 38%, rgba(255,248,236,.05), transparent 28%);
}
.csr-hero h1,
.csr-hero .csr-lead,
.csr-hero-note,
.csr-hero-actions,
.csr-hero .csr-eyebrow,
.csr-hero-card {
  position: relative;
  z-index: 1;
}
.csr-section-light,
.csr-section-alt,
.csr-section-dark {
  position: relative;
  z-index: 2;
}
@media (max-width: 680px) {
  .csr-hero { padding-bottom: 54px; }
}
