/*
Theme Name: St. Felix Parish Editorial
Theme URI: https://stfelixntenefor.org
Author: Muuve Consulting & St. Felix Parish
Description: A modern, stately, and elegant WordPress block theme designed for St. Felix Catholic Parish, Ntenefor – Bamenda, Cameroon. Featuring Financial Times-inspired serif typography, subtle minimalist stone and parchment tones, and modular, volunteer-friendly block patterns.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: st-felix-editorial
Tags: block-theme, full-site-editing, custom-colors, custom-typography, editorial, church, two-columns, responsive-layout
*/

/* -------------------------------------------------------------
   Editorial Typography & Polish (Financial Times & Biblical Style)
   ------------------------------------------------------------- */

:root {
  --stf-paper: #FBF9F5;
  --stf-paper-subtle: #F4EFEB;
  --stf-paper-card: #FFFFFF;
  --stf-ink: #181818;
  --stf-ink-muted: #555555;
  --stf-ink-subtle: #7A7A7A;
  --stf-border: #E5DFC5;
  --stf-border-subtle: #ECE8D9;
  --stf-marian-blue: #1A365D;
  --stf-burgundy: #6B1D2F;
  --stf-gold: #B3862A;
  --stf-gold-light: #F7F1E1;
  --stf-font-serif: "Newsreader", "Source Serif 4", "EB Garamond", Georgia, serif;
  --stf-font-display: "Cinzel", "Playfair Display", "Times New Roman", serif;
  --stf-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--stf-paper);
  color: var(--stf-ink);
  font-family: var(--stf-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
}

/* Stately headlines */
h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.wp-block-post-title {
  font-family: var(--stf-font-serif);
  color: inherit;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

/* Explicit text contrast rules for dark containers */
.text-white,
h1.text-white, h2.text-white, h3.text-white, h4.text-white, h5.text-white, h6.text-white,
p.text-white, span.text-white, div.text-white {
  color: #FFFFFF !important;
}

.text-blue-100 { color: #DBEAFE !important; }
.text-blue-200 { color: #BFDBFE !important; }
.text-blue-300 { color: #93C5FD !important; }
.text-amber-300 { color: #FCD34D !important; }
.text-amber-400 { color: #FBBF24 !important; }
.text-slate-300 { color: #CBD5E1 !important; }
.text-slate-400 { color: #94A3B8 !important; }

/* Parish Motto Banner Styling */
.parish-motto-callout {
  font-family: var(--stf-font-serif);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Mass Times Quick Table & Card */
.mass-times-card {
  background-color: var(--stf-paper-card);
  border: 1px solid var(--stf-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mass-times-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Editorial subtle borders */
.editorial-rule {
  border: 0;
  border-top: 1px solid var(--stf-border);
  margin: 2rem 0;
}

.editorial-rule-double {
  border: 0;
  border-top: 3px double var(--stf-border);
  margin: 2.5rem 0;
}

/* Top utility bar */
.top-utility-bar {
  background-color: var(--stf-marian-blue);
  color: #FFFFFF;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top-utility-bar a {
  color: #FFFFFF;
  text-decoration: none;
}

.top-utility-bar a:hover {
  text-decoration: underline;
}

/* Cards for Groups, Schools & Sacraments */
.stfelix-card {
  background: #FFFFFF;
  border: 1px solid var(--stf-border-subtle);
  border-top: 3px solid var(--stf-marian-blue);
  padding: 1.75rem;
  transition: all 0.2s ease;
}

.stfelix-card.accent-burgundy {
  border-top-color: var(--stf-burgundy);
}

.stfelix-card.accent-gold {
  border-top-color: var(--stf-gold);
}

.stfelix-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(27, 54, 93, 0.06);
}

/* Financial Times-style lead article style */
.editorial-lead {
  font-family: var(--stf-font-serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--stf-ink-muted);
}

/* Drop-cap for stories */
.has-drop-cap:not(:focus):first-letter {
  font-family: var(--stf-font-display);
  float: left;
  font-size: 4.8rem;
  line-height: 0.72;
  margin: 0.08em 0.15em 0 0;
  color: var(--stf-marian-blue);
}

/* Clean accessible focus indicators */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--stf-gold);
  outline-offset: 2px;
}

/* Explicit Navigation Link styling with active bottom border */
header a, footer a,
header h1, header h2, header h3, header h4,
footer h1, footer h2, footer h3, footer h4,
.stfelix-site-header a,
.stfelix-site-footer a,
.stfelix-site-header h1, .stfelix-site-header h2, .stfelix-site-header h3, .stfelix-site-header h4,
.stfelix-site-footer h1, .stfelix-site-footer h2, .stfelix-site-footer h3, .stfelix-site-footer h4,
.stfelix-site-header a.stfelix-nav-link,
.stfelix-nav-link {
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 0.8125rem !important;
  letter-spacing: 0.06em !important;
  border-bottom: 2px solid transparent !important;
  padding-bottom: 0.35rem !important;
  padding-top: 0.35rem !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
}

.stfelix-site-header a.stfelix-nav-link:hover,
.stfelix-nav-link:hover,
footer a:hover {
  color: #93C5FD !important;
  border-bottom-color: #FFFFFF !important;
}

.stfelix-site-header a.stfelix-nav-link.active,
.stfelix-nav-link.active {
  color: #FFFFFF !important;
  border-bottom-color: #FFFFFF !important;
  font-weight: 700 !important;
}

/* Zero-gap merge between header and hero section */
body, body > .wp-site-blocks,
.wp-site-blocks,
.wp-site-blocks > *,
.wp-block-template-part,
header.wp-block-template-part,
header.stfelix-site-header,
main {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
  padding-top: 0 !important;
}

/* ========================================================
   GLOBAL BUTTON CONVENTIONS (Unified Across St. Felix Parish)
   - Every button is a rounded pill (border-radius: 9999px)
   - Dark background: White outline, inverts on hover
   - White/light background: Dark (#0B2545) outline, inverts on hover
   ======================================================== */

.btn-pill-light,
.stfelix-pill-button,
a.btn-pill-light {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  border: 2px solid #FFFFFF !important;
  border-radius: 9999px !important;
  color: #FFFFFF !important;
  background-color: transparent !important;
  padding: 0.625rem 1.5rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  white-space: nowrap !important;
}

.btn-pill-light:hover,
.stfelix-pill-button:hover,
a.btn-pill-light:hover {
  background-color: #FFFFFF !important;
  color: #0B2545 !important;
  border-color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.3) !important;
}

.btn-pill-light * {
  color: inherit !important;
}

.btn-pill-dark,
a.btn-pill-dark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  border: 2px solid #0B2545 !important;
  border-radius: 9999px !important;
  color: #0B2545 !important;
  background-color: transparent !important;
  padding: 0.625rem 1.5rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: 0 1px 3px rgba(11, 37, 69, 0.06) !important;
  white-space: nowrap !important;
}

.btn-pill-dark:hover,
a.btn-pill-dark:hover {
  background-color: #0B2545 !important;
  color: #FFFFFF !important;
  border-color: #0B2545 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.2) !important;
}

.btn-pill-dark * {
  color: inherit !important;
}
