/* CCF Fort Wayne — shared "fancy page" components (Receive section build, 2026-07-21)
   Tokens sourced from /images/pub/style-guide.json
   Reused across: Grant Opportunities, Legacy of Faith, Legacy of Faith Grants, Endowment Distributions, Impact Reports, Financial Information */

.sc-page {
  --sc-primary: rgb(28, 58, 82);
  --sc-secondary: rgb(124, 143, 61);
  --sc-tertiary: rgb(247, 244, 235);
  --sc-white: rgb(255, 255, 255);
  --sc-text: rgb(38, 46, 54);
  --sc-font-body: 'Open Sans', Arial, sans-serif;
  --sc-font-display: 'Playfair Display', Georgia, serif;
  font-family: var(--sc-font-body);
  color: var(--sc-text);
  max-width: 1600px;
  margin: 0 auto;
}

/* Sections */
.sc-section { margin: 2.5rem 0; }
.sc-section:first-child { margin-top: 0; }

.sc-section-title {
  font-family: var(--sc-font-display);
  color: var(--sc-primary);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sc-secondary);
  display: inline-block;
}

.sc-subheader {
  font-weight: 700;
  color: var(--sc-primary);
}

/* Pull-quote — stylized italic tagline (replaces plain <em> paragraphs, 2026-07-31) */
.sc-quote {
  font-family: var(--sc-font-display);
  font-style: italic;
  color: var(--sc-primary);
  font-size: 1.25rem;
  line-height: 1.5;
  border-left: 4px solid var(--sc-secondary);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.25rem 0 1.5rem;
}

/* Stat band — highlights a real figure already stated in the page copy (2026-07-31).
   Never introduce a number here that isn't already written out in the article text. */
.sc-stat-band {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
.sc-stat {
  background: var(--sc-tertiary);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  flex: 1 1 200px;
  text-align: center;
}
.sc-stat-number {
  display: block;
  font-family: var(--sc-font-display);
  color: var(--sc-primary);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
}
.sc-stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sc-secondary);
  font-weight: 700;
}

/* Quick nav — circular icon links to in-page sections (Endowment Distributions, 2026-07-31),
   modeled on the client's kcfoundation.org/grants/keys-grants/ "View More Grant Resources"
   reference. Anchors must target real section ids already on the page — never invent a link. */
.sc-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}
.sc-quick-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 112px;
  text-decoration: none;
}
.sc-quick-nav-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sc-tertiary);
  border: 2px solid var(--sc-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--sc-primary);
  margin-bottom: 0.5rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.sc-quick-nav-item:hover .sc-quick-nav-icon {
  transform: translateY(-4px);
  background: var(--sc-secondary);
  color: var(--sc-white);
}
.sc-quick-nav-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sc-primary);
  line-height: 1.25;
}

/* Optional custom header band — most pages rely on the site's native title/hero,
   this is only for pages that need an extra intro line under the title */
.sc-page-header {
  text-align: center;
  padding: 1rem 0 2rem;
}
.sc-page-header p {
  font-family: var(--sc-font-display);
  font-style: italic;
  color: var(--sc-primary);
  font-size: 1.1rem;
}

/* Buttons */
.sc-btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.sc-btn:hover {
  opacity: 0.92;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(28, 58, 82, 0.18);
}
.sc-btn:active { transform: translateY(0); box-shadow: none; }
.sc-btn--primary { background: var(--sc-secondary); color: var(--sc-white); }
.sc-btn--outline {
  background: transparent;
  border-color: var(--sc-primary);
  color: var(--sc-primary);
}

/* Button grid — wrapped row of buttons (e.g. Impact Reports archive-by-year links, 2026-07-31) */
.sc-btn-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0; }

/* Document row — paired document-download buttons (2026-07-31), modeled on the client's
   kcfoundation.org/grants/keys-grants/ "Required Documents" reference. Use sc-btn anchors
   for real links; use sc-doc-btn--pending (a non-link span) for documents CCF hasn't
   uploaded yet — never fabricate a document URL. */
.sc-doc-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.5rem 0 0; }
.sc-doc-btn--pending {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--sc-primary);
  background: rgba(28, 58, 82, 0.06);
  border: 1px dashed rgba(28, 58, 82, 0.3);
}
.sc-doc-btn--pending em { font-style: normal; opacity: 0.75; }

/* Tile grid (Grant Opportunities / future opportunity tiles) */
.sc-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
/* Fixed 3-per-row variant (Methods of Giving, 2026-07-27) — the default auto-fit grid can
   stretch to more than 3 columns on very wide screens; this modifier locks it to exactly
   3 so each tile keeps more breathing room for text, and steps down responsively. */
.sc-tile-grid--fixed3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .sc-tile-grid--fixed3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .sc-tile-grid--fixed3 { grid-template-columns: 1fr; }
}
.sc-tile {
  background: var(--sc-white);
  border: 1px solid rgba(28, 58, 82, 0.12);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 380px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sc-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(28, 58, 82, 0.16);
}
.sc-tile-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
}
.sc-tile-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.sc-tile-title {
  font-family: var(--sc-font-display);
  color: var(--sc-primary);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}
.sc-tile-desc { flex: 1; margin: 0 0 1rem; font-size: 0.95rem; }

/* Gift-type tile (Methods of Giving) — title + one-line plain-language definition, then
   clearly subordinate uppercase labels for the detail lists. Distinct from the generic
   .sc-tile-title/.sc-tile-desc pair so the gift-type name reads as the clear top of the
   hierarchy and "Form of Gift"/"Benefit to You" read as minor in-card labels, not headings.
   No icon — Font Awesome <i> icons are NOT used in article body content on this site because
   the icon webfont isn't loaded inside the Joomla TinyMCE editor iframe, so they render as
   broken/missing glyphs when a person opens the article to edit it, even though the tag
   itself survives save and looks fine on the live frontend. Purely CSS-driven decoration
   (like the border-bottom divider below) is safe; icon glyphs requiring markup in the
   article body are not. */
.sc-gift-title {
  font-family: var(--sc-font-display);
  color: var(--sc-primary);
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
.sc-gift-desc {
  font-size: 0.92rem;
  margin: 0 0 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(28, 58, 82, 0.12);
}
.sc-gift-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sc-secondary);
  margin: 1rem 0 0.4rem;
}
.sc-gift-label:first-of-type { margin-top: 0; }
.sc-gift-list { margin: 0 0 0.25rem; padding-left: 1.15rem; font-size: 0.92rem; }
.sc-gift-list li { margin-bottom: 0.25rem; }

/* Link list (e.g. "Other Area Funders") */
.sc-link-list { list-style: none; padding: 0; margin: 1rem 0; }
.sc-link-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(28, 58, 82, 0.12);
  transition: padding-left 0.2s ease;
}
.sc-link-list li:has(a):hover { padding-left: 0.35rem; }
.sc-link-list a { color: var(--sc-primary); font-weight: 700; text-decoration: none; }
.sc-link-list a:hover { text-decoration: underline; }

/* Contact tile — redesigned 2026-07-31 to match the client's referenced
   olphconcordia.org/sacramental-prep format: a solid label block + bordered info panel,
   rather than the original accent-border card. */
.sc-contact-tile {
  display: flex;
  align-items: stretch;
  background: var(--sc-white);
  border: 1px solid rgba(28, 58, 82, 0.15);
  border-radius: 4px;
  overflow: hidden;
  max-width: 360px;
  margin: 1.5rem 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sc-contact-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(28, 58, 82, 0.12);
}
.sc-contact-tile-label {
  flex: 0 0 auto;
  background: var(--sc-primary);
  color: var(--sc-white);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  padding: 0 1.1rem;
}
.sc-contact-tile-info { flex: 1; padding: 0.9rem 1.1rem; }
.sc-contact-tile-name { font-weight: 700; color: var(--sc-primary); margin: 0 0 0.15rem; }
.sc-contact-tile-role { font-size: 0.9rem; margin: 0 0 0.6rem; }
.sc-contact-tile-line { margin: 0.2rem 0; font-size: 0.9rem; }
.sc-contact-tile-line a { color: var(--sc-text); text-decoration: none; }
.sc-contact-tile-line i { color: var(--sc-secondary); width: 1.2rem; text-align: center; margin-right: 0.4rem; }

/* Contact row — lay 2+ contact tiles side by side (Legacy of Faith Grants, 2026-07-31) */
.sc-contact-row { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.sc-contact-row .sc-contact-tile { margin: 0; flex: 1 1 300px; }

/* Colored CTA block (donate/plan two-button block, reused across pages) */
.sc-cta-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  background: var(--sc-tertiary);
  border-radius: 6px;
  padding: 2rem;
  margin: 2.5rem 0;
}
.sc-cta-block-image { flex: 1 1 260px; max-width: 320px; overflow: hidden; border-radius: 4px; }
.sc-cta-block-image img { width: 100%; border-radius: 4px; display: block; transition: transform 0.5s ease; }
.sc-cta-block-image:hover img { transform: scale(1.05); }
.sc-cta-block-body { flex: 2 1 320px; }
.sc-cta-block-body p { margin: 0 0 1.25rem; }
.sc-cta-block-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Accordion / "Chapter" expander (used by Legacy of Faith + Legacy of Faith Grants) */
.sc-accordion { margin: 1rem 0; border-top: 1px solid rgba(28, 58, 82, 0.15); }
.sc-accordion-item { border-bottom: 1px solid rgba(28, 58, 82, 0.15); }
.sc-accordion-trigger {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 0.25rem;
  font-family: var(--sc-font-display);
  color: var(--sc-primary);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  padding-right: 2rem;
  transition: color 0.2s ease;
}
.sc-accordion-trigger:hover { color: var(--sc-secondary); }
.sc-accordion-trigger i {
  position: absolute;
  right: 0.25rem;
  top: 1.1rem;
  color: var(--sc-secondary);
  transition: transform 0.3s ease;
}
.sc-accordion-item.sc-is-open .sc-accordion-trigger i { transform: rotate(180deg); }
/* Height is animated via inline max-height set by sc-scroll.js (CSS can't transition to "auto") */
.sc-accordion-panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 0.25rem;
  transition: max-height 0.35s ease, padding-bottom 0.35s ease;
}
.sc-accordion-item.sc-is-open .sc-accordion-panel { padding-bottom: 1.25rem; }

/* Timeline / dates list (Legacy of Faith Grants — application timeline) */
.sc-timeline { list-style: none; padding: 0; margin: 1.5rem 0 1.5rem 0.5rem; border-left: 3px solid var(--sc-secondary); }
.sc-timeline-item { position: relative; padding: 0 0 1.5rem 1.5rem; }
.sc-timeline-item:last-child { padding-bottom: 0; }
.sc-timeline-item::before {
  content: '';
  position: absolute;
  left: -0.44rem;
  top: 0.3rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--sc-secondary);
  transition: transform 0.25s ease;
}
.sc-timeline-item:hover::before { transform: scale(1.35); }
.sc-timeline-date { font-family: var(--sc-font-display); color: var(--sc-primary); font-weight: 700; margin: 0 0 0.2rem; }
.sc-timeline-desc { margin: 0; }

/* Photo strip (e.g. Legacy of Faith — 3 real photos across the bottom of the page) */
.sc-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.sc-photo-strip-item { overflow: hidden; border-radius: 6px; display: block; }
.sc-photo-strip-item img,
.sc-photo-strip img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  transition: transform 0.45s ease;
}
.sc-photo-strip-item:hover img { transform: scale(1.07); border-radius: 0; }
@media (max-width: 640px) {
  .sc-photo-strip { grid-template-columns: 1fr; }
}

/* Scroll fade-in (generic, driven by sc-scroll.js). Per-item transition-delay for
   staggered reveals is assigned inline by the JS for children of the grid/list
   components listed in its STAGGER_GROUPS selector. */
.sc-animate { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.sc-animate.sc-in { opacity: 1; transform: translateY(0); }

@media (max-width: 640px) {
  .sc-cta-block { padding: 1.25rem; }
  .sc-contact-tile { flex-direction: column; }
  .sc-contact-tile-label { padding: 0.5rem 1.1rem; }
}
