/*
Theme Name: CharityRaffles Child
Theme URI: https://charityraffles.org
Description: GeneratePress child theme for charityraffles.org, the umbrella
  charitable-raffle authority published by The Chance2Win Team. Churches are
  the deepest featured vertical; food banks, veteran posts, medical and
  cancer charities, domestic violence organizations, animal rescues, and
  civic clubs are the other six.
Author: The Chance2Win Team
Author URI: https://chance2win.org
Template: generatepress
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: charityraffles-child
*/

/* ==========================================================================
   1. TOKENS
   Locked palette, approved from concept art July 2026. Do not blend red
   directly into navy; gold is an accent only, never a body-text color.
   ========================================================================== */

:root {
  /* Locked brand palette */
  --cr-navy:        #0B1D3A;
  --cr-navy-deep:   #071328;
  --cr-red:         #B11226;
  --cr-red-dark:    #8C0E1E;
  --cr-cream:       #F7F3E8;
  --cr-cream-2:     #EFE9D8;
  --cr-slate:       #52607A;
  --cr-gold:        #C9A44D;
  --cr-gold-wash:   #F6EBD2;

  /* Surface and text */
  --cr-ink:         #20232E;
  --cr-muted:       #565B6B;
  --cr-faint:       #8A8E9C;
  --cr-line:        #E1DACB;
  --cr-line-soft:   #ECE7D9;
  --cr-white:       #FFFFFF;

  /* Type */
  --cr-display: "Fraunces", Georgia, "Times New Roman", serif;
  --cr-body:    "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --cr-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Measure and rhythm */
  --cr-measure: 40rem;
  --cr-wide:    58rem;
  --cr-section: 4.25rem;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */

.cr-page {
  background: var(--cr-cream);
  color: var(--cr-ink);
  font-family: var(--cr-body);
  font-size: 1.03125rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.cr-page *,
.cr-page *::before,
.cr-page *::after { box-sizing: border-box; }

.cr-page p,
.cr-page li { font-family: var(--cr-body); }

.cr-page a {
  color: var(--cr-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.cr-page a:hover { color: var(--cr-red); }
.cr-page a:focus-visible {
  outline: 3px solid var(--cr-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.cr-wrap {
  max-width: var(--cr-wide);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.cr-prose { max-width: var(--cr-measure); }
.cr-prose p + p { margin-top: 1rem; }

/* ==========================================================================
   3. TYPE SCALE
   ========================================================================== */

.cr-page h1,
.cr-page h2,
.cr-page h3,
.cr-page h4 {
  font-family: var(--cr-display);
  color: var(--cr-navy);
  line-height: 1.14;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

.cr-h1 { font-size: clamp(2.3rem, 5.2vw, 3.5rem); font-weight: 700; letter-spacing: -0.018em; }
.cr-h2 { font-size: clamp(1.65rem, 3.2vw, 2.15rem); font-weight: 600; letter-spacing: -0.012em; margin-top: 0; }
.cr-h3 { font-size: clamp(1.15rem, 2vw, 1.3rem); font-weight: 600; }

.cr-eyebrow {
  font-family: var(--cr-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cr-red);
  margin: 0 0 0.7rem;
  display: block;
}
.cr-eyebrow--navy { color: var(--cr-navy); }
.cr-eyebrow--gold { color: var(--cr-gold); }

.cr-lede {
  font-family: var(--cr-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
  line-height: 1.48;
  color: var(--cr-slate);
  max-width: 34rem;
}

/* ==========================================================================
   4. MASTHEAD + LOGO LOCKUP
   ========================================================================== */

.cr-masthead {
  background: var(--cr-cream);
  padding: 1.4rem 0 1rem;
}
.cr-masthead__inner {
  max-width: var(--cr-wide);
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.cr-logo { display: flex; align-items: center; gap: 0.6rem; }
.cr-logo__ticket { width: 34px; height: 22px; flex-shrink: 0; }
.cr-logo__word {
  font-family: var(--cr-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.015em;
  color: var(--cr-navy);
}
.cr-logo__word .cr-org { color: var(--cr-red); }
.cr-logo__word a { color: inherit; text-decoration: none; }
.cr-byline {
  font-family: var(--cr-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cr-slate);
}
.cr-flag-rule {
  height: 2px;
  margin-top: 0.3rem;
  background: linear-gradient(90deg, transparent, var(--cr-red) 20%, var(--cr-red) 80%, transparent);
}

/* ==========================================================================
   5. HERO
   ========================================================================== */

.cr-hero {
  background: var(--cr-cream);
  padding: clamp(2.25rem, 5.5vw, 3.5rem) 0 clamp(1.75rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--cr-line);
}
.cr-hero__deck {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--cr-ink);
  max-width: 36rem;
}
.cr-hero__byline {
  font-size: 0.8125rem;
  color: var(--cr-faint);
  margin-top: 0.5rem;
}

/* ==========================================================================
   6. SECTIONS
   ========================================================================== */

.cr-section { padding: var(--cr-section) 0; }
.cr-section + .cr-section { border-top: 1px solid var(--cr-line); }
.cr-section--tint { background: var(--cr-cream-2); }
.cr-section--navy {
  background: var(--cr-navy);
  color: #D7DCEA;
  border-top: 0;
}
.cr-section--navy h2,
.cr-section--navy h3 { color: var(--cr-white); }
.cr-section--navy a { color: var(--cr-gold); }
.cr-section--navy .cr-eyebrow { color: var(--cr-gold); }

/* ==========================================================================
   7. WHO WE SERVE — seven verticals, churches featured
   ========================================================================== */

.cr-verticals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 1.25rem;
}
@media (max-width: 820px) { .cr-verticals { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cr-verticals { grid-template-columns: 1fr; } }

.cr-vcard {
  background: var(--cr-white);
  border: 1px solid var(--cr-line);
  border-radius: 8px;
  padding: 0.9rem;
}
.cr-vcard--lead {
  border: 2px solid var(--cr-gold);
  background: var(--cr-gold-wash);
}
.cr-vcard__icon {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cr-cream-2);
  border-radius: 6px;
  margin-bottom: 0.6rem;
}
.cr-vcard__icon svg { width: 28px; height: 28px; stroke: var(--cr-navy); fill: none; stroke-width: 1.6; }
.cr-vcard__tag {
  font-family: var(--cr-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cr-red);
  display: block;
  margin-bottom: 0.35rem;
}
.cr-vcard h3 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.cr-vcard p { font-size: 0.8125rem; color: var(--cr-muted); margin-bottom: 0.4rem; }
.cr-vcard__status {
  font-size: 0.6875rem;
  font-style: italic;
  color: var(--cr-faint);
}
.cr-vcard__status--live {
  font-family: var(--cr-mono);
  font-style: normal;
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: 0.03em;
  color: var(--cr-red);
}

/* ==========================================================================
   8. FACTS LIST
   ========================================================================== */

.cr-facts { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.cr-facts > li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0 0.9rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--cr-line);
}
.cr-facts > li:last-child { border-bottom: 1px solid var(--cr-line); }
.cr-facts__n {
  font-family: var(--cr-mono);
  font-weight: 600;
  color: var(--cr-red);
  font-size: 0.78rem;
  padding-top: 0.15rem;
}
.cr-facts__t { font-size: 1.05rem; font-weight: 600; color: var(--cr-navy); margin: 0 0 0.3rem; }
.cr-facts__b { margin: 0; color: var(--cr-ink); }

/* ==========================================================================
   9. ONE DRAWING POOL SIGNATURE
   ========================================================================== */

.cr-pool { margin: 1.25rem 0 0; border: 1px solid var(--cr-line); background: var(--cr-white); border-radius: 8px; overflow: hidden; }
.cr-pool__head {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--cr-line);
  font-family: var(--cr-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cr-muted);
}
.cr-pool__body { padding: 1.1rem; }
.cr-pool__ins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.55rem; }
@media (max-width: 640px) { .cr-pool__ins { grid-template-columns: repeat(2, 1fr); } }
.cr-pool__in {
  border: 1px solid var(--cr-line);
  border-top: 3px solid var(--cr-navy);
  background: var(--cr-cream);
  padding: 0.6rem;
  text-align: center;
  font-size: 0.78rem;
}
.cr-pool__in b { display: block; font-size: 0.8125rem; color: var(--cr-navy); }
.cr-pool__in span { display: block; font-size: 0.6875rem; color: var(--cr-muted); margin-top: 0.15rem; }
.cr-pool__basin {
  border: 2px solid var(--cr-navy);
  border-left: 6px solid var(--cr-gold);
  background: var(--cr-gold-wash);
  padding: 0.8rem 0.95rem;
  margin-top: 0.8rem;
}
.cr-pool__basin b { display: block; font-family: var(--cr-display); font-size: 1.05rem; color: var(--cr-navy); }
.cr-pool__basin span { display: block; margin-top: 0.2rem; font-size: 0.8125rem; color: var(--cr-muted); }

/* ==========================================================================
   10. REALITY BLOCK
   ========================================================================== */

.cr-reality {
  background: var(--cr-navy-deep);
  color: #D7DCEA;
  border-left: 5px solid var(--cr-gold);
  padding: 1.4rem 1.5rem;
  margin: 1.25rem 0 0;
}
.cr-reality .cr-eyebrow { color: var(--cr-gold); }
.cr-reality h3 { color: var(--cr-white); font-size: 1.2rem; margin-bottom: 0.5rem; }
.cr-reality p { margin: 0 0 0.65rem; }
.cr-reality p:last-child { margin-bottom: 0; }
.cr-reality strong { color: var(--cr-white); }
.cr-reality__kicker {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 0.75rem;
  margin-top: 0.85rem;
  font-size: 0.9rem;
}

/* ==========================================================================
   11. CARDS AND FORMAT GRID
   ========================================================================== */

.cr-grid { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.cr-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .cr-grid--2 { grid-template-columns: 1fr; } }

.cr-card { background: var(--cr-white); border: 1px solid var(--cr-line); border-radius: 8px; padding: 1rem; }
.cr-card__tag {
  font-family: var(--cr-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cr-red);
  display: block;
  margin-bottom: 0.35rem;
}
.cr-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.cr-card p { font-size: 0.875rem; color: var(--cr-muted); margin-bottom: 0.4rem; }
.cr-card__status { font-size: 0.75rem; font-style: italic; color: var(--cr-faint); }

/* ==========================================================================
   12. CALLOUT
   ========================================================================== */

.cr-callout {
  background: var(--cr-gold-wash);
  border-left: 4px solid var(--cr-gold);
  padding: 1rem 1.1rem;
  margin: 1.4rem 0 0;
}
.cr-callout p { margin: 0; }
.cr-callout p + p { margin-top: 0.5rem; }

.cr-note {
  border-top: 1px solid var(--cr-line);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.8125rem;
  color: var(--cr-muted);
  max-width: var(--cr-measure);
}

/* ==========================================================================
   13. TABLE
   ========================================================================== */

.cr-tablewrap { overflow-x: auto; margin-top: 1.25rem; }
.cr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--cr-white);
  border: 1px solid var(--cr-line);
}
.cr-table th, .cr-table td {
  padding: 0.65rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--cr-line-soft);
  vertical-align: top;
}
.cr-table thead th {
  background: var(--cr-navy);
  color: var(--cr-white);
  font-family: var(--cr-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.cr-table tbody tr:last-child td { border-bottom: 0; }
.cr-table td b { color: var(--cr-navy); }
.cr-table .cr-yes { color: #1B6B3A; font-weight: 700; }
.cr-table .cr-no { color: var(--cr-red); font-weight: 700; }

/* ==========================================================================
   14. CTA
   Locked CTA order: Start Your Raffle, Watch the Demo, Try a Live Demo, Call.
   Never the word Free in a CTA.
   ========================================================================== */

.cr-cta-box {
  background: var(--cr-navy);
  color: var(--cr-white);
  border-radius: 10px;
  padding: 2rem;
  margin-top: 1.25rem;
  text-align: center;
}
.cr-cta-box h2 { color: var(--cr-white); }
.cr-cta-box p { color: #C3CAE0; max-width: 36rem; margin: 0 auto 1.1rem; }

.cr-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.25rem; align-items: center; justify-content: center; }
.cr-btn {
  display: inline-block;
  font-family: var(--cr-body);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.78rem 1.35rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cr-btn--primary { background: var(--cr-red); color: var(--cr-white); border-color: var(--cr-red); }
.cr-btn--primary:hover { background: var(--cr-red-dark); border-color: var(--cr-red-dark); color: var(--cr-white); }
.cr-btn--ghost { background: transparent; color: var(--cr-white); border-color: rgba(255,255,255,0.5); }
.cr-btn--ghost:hover { background: var(--cr-white); color: var(--cr-navy); border-color: var(--cr-white); }
.cr-phone {
  font-family: var(--cr-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cr-gold);
  text-decoration: none;
  padding: 0.78rem 0.25rem;
}

/* ==========================================================================
   15. NEXT LINKS
   ========================================================================== */

.cr-next { margin-top: 1.25rem; display: grid; gap: 0; }
.cr-next a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--cr-line);
  text-decoration: none;
  color: var(--cr-navy);
  font-family: var(--cr-display);
  font-weight: 600;
  font-size: 1rem;
}
.cr-next a:last-child { border-bottom: 1px solid var(--cr-line); }
.cr-next a:hover { color: var(--cr-red); }
.cr-next a span {
  font-family: var(--cr-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--cr-faint);
  text-align: right;
  flex-shrink: 0;
}
.cr-next a.cr-stub { color: var(--cr-faint); }
.cr-next a.cr-stub span { font-style: italic; }

/* ==========================================================================
   16. FOOTER
   ========================================================================== */

.cr-foot {
  background: var(--cr-navy-deep);
  color: #A9AFC4;
  padding: 2rem 0 1.6rem;
  font-size: 0.8125rem;
  text-align: center;
}
.cr-foot a { color: var(--cr-white); }

/* ==========================================================================
   17. QUALITY FLOOR
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .cr-page *, .cr-page *::before, .cr-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .cr-section--navy, .cr-reality, .cr-cta-box { background: var(--cr-white) !important; color: #000 !important; }
  .cr-reality { border-left: 3px solid #000; }
  .cr-cta { display: none; }
}
