/*
Theme Name: Calvary Baptist Church v2
Theme URI: https://www.calvaryli.org
Author: Calvary Baptist Church
Description: The official Calvary Baptist Church of Medford, NY theme — crimson & cream, Cormorant Garamond + DM Sans. Includes Home, About, Sermons, Events, Give and Contact page templates. Activate to auto-create the site's pages.
Version: 2.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: calvary
*/

/* ==========================================================================
   Calvary Baptist Church — site stylesheet (plain CSS, no build step)
   Edit colors, fonts and spacing in the :root block below — every page
   updates. Used by index/about/sermons/events/give/contact .html.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand */
  --red: #B91C1C;
  --red-dark: #7F1D1D;
  --red-bright: #EF4444;
  --red-soft: #FCA5A5;
  --red-tint: #FEF2F2;
  /* Ink & surfaces */
  --black: #0A0202;
  --ink: #111827;
  --ink-2: #374151;
  --gray: #6B7280;
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --border: #E5E7EB;
  /* Success */
  --success: #15803D;
  --success-bg: #F0FDF4;
  --success-border: #BBF7D0;
  /* Type */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Layout */
  --nav-h: 100px;
  --pad-x: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { width: 88px; height: 88px; border-radius: 50%; box-shadow: 0 2px 8px rgba(185,28,28,0.3); }
.nav__brand strong { display: block; font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--red-dark); line-height: 1.1; white-space: nowrap; }
.nav__brand small { font-size: 10px; color: var(--gray); letter-spacing: 0.08em; text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a { font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 8px 11px; border-radius: 6px; white-space: nowrap; }
.nav__links a:hover { color: var(--red); }
.nav__links a.is-active { color: var(--red); background: var(--red-tint); }
.nav__cta { display: flex; gap: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 500; font-size: 14px; line-height: 1; cursor: pointer;
  padding: 13px 28px; border-radius: 4px; border: 1.5px solid var(--red);
  transition: background .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn--sm { padding: 8px 18px; font-size: 13px; }
.btn--lg { padding: 15px 36px; font-size: 15px; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 2px 8px rgba(185,28,28,0.3); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--outline { background: transparent; color: var(--red); }
.btn--outline:hover { background: var(--red-tint); }
.btn--ghost { background: transparent; color: rgba(255,255,255,0.88); border-color: rgba(255,255,255,0.3); }
.btn--ghost:hover { border-color: #fff; }
.btn--pill { border-radius: 100px; }
.btn--block { width: 100%; }

/* ---------- Badges / eyebrows ---------- */
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.eyebrow--dark { color: var(--red-soft); letter-spacing: 0.14em; }
.tag { display: inline-block; font-size: 10px; font-weight: 600; color: var(--red); background: var(--red-tint); padding: 5px 12px; border-radius: 100px; letter-spacing: 0.04em; }
.live { display: inline-flex; align-items: center; gap: 8px; background: rgba(185,28,28,0.2); border: 1px solid rgba(185,28,28,0.5); color: var(--red-soft);
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 14px; border-radius: 100px; }
.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red-bright); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---------- Layout ---------- */
main { padding-top: var(--nav-h); }
.section { padding: 80px var(--pad-x); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--black); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.section__head h2 { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--ink); line-height: 1.2; margin: 8px 0 0; }
.section--dark .section__head h2 { color: #fff; }
.section__head a { font-size: 13px; font-weight: 500; color: var(--red); white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 560px; background: var(--black); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center top; opacity: 0.38; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,2,2,0.95) 0%, rgba(10,2,2,0.65) 55%, rgba(10,2,2,0.2) 100%); }
.hero__body { position: relative; z-index: 2; padding: 60px var(--pad-x) 56px; max-width: 820px; }
.hero h1 { font-family: var(--serif); font-size: 72px; font-weight: 700; color: #fff; line-height: 1.0; margin: 24px 0 20px; letter-spacing: -0.01em; }
.hero h1 em { color: var(--red-soft); font-style: italic; }
.hero p { font-size: 17px; font-weight: 300; color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 500px; margin: 0 0 40px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Service bar ---------- */
.servicebar { background: var(--red); padding: 20px var(--pad-x); display: flex; align-items: center; flex-wrap: wrap; gap: 0 64px; }
.servicebar__item small { display: block; font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.65); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 3px; }
.servicebar__item span { font-size: 15px; font-weight: 500; color: #fff; }

/* ---------- Sermon feature ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; background: #0f0404; }
.feature__media { position: relative; overflow: hidden; min-height: 380px; display: flex; align-items: center; justify-content: center; text-align: center; }
.feature__media .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.4; }
.feature__media .shade { position: absolute; inset: 0; background: rgba(10,2,2,0.55); }
.feature__media .inner { position: relative; z-index: 2; padding: 48px; }
.feature__media .series { font-family: var(--serif); font-size: 32px; font-weight: 700; color: #fff; margin: 16px 0 8px; }
.feature__media .by { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 32px; }
.play { width: 64px; height: 64px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; margin: 0 auto; box-shadow: 0 4px 24px rgba(185,28,28,0.5); }
.play::after { content: ''; width: 0; height: 0; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 20px solid #fff; margin-left: 5px; }
.feature__text { padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; }
.feature__text h3 { font-family: var(--serif); font-size: 28px; font-weight: 700; color: #fff; line-height: 1.2; margin: 14px 0 10px; }
.feature__text .by { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 18px; }
.feature__text p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.75; margin: 0 0 28px; }
.feature__text .link { color: var(--red-soft); font-size: 13px; font-weight: 500; }

/* ---------- Event cards ---------- */
.events { display: flex; flex-direction: column; gap: 14px; }
.event { display: flex; align-items: center; gap: 20px; padding: 20px 24px; border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: all .2s; }
.event:hover { border-color: var(--red); box-shadow: 0 4px 20px rgba(185,28,28,0.08); transform: translateX(3px); }
.event__date { width: 56px; height: 64px; background: var(--red); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.event__date small { font-size: 9px; font-weight: 600; color: rgba(255,255,255,0.75); letter-spacing: 0.1em; text-transform: uppercase; }
.event__date strong { font-family: var(--serif); font-size: 28px; font-weight: 600; color: #fff; line-height: 1; }
.event__body { flex: 1; }
.event__body .t { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 5px; }
.event__body .m { font-size: 13px; color: var(--gray); }

/* ---------- Photo grid ---------- */
.photogrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photogrid img { width: 100%; height: 260px; object-fit: cover; border-radius: 10px; }

/* ---------- Ministry grid ---------- */
.ministries { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.ministry { border: 1px solid var(--border); border-radius: 12px; padding: 32px 24px; text-align: center; background: #fff; transition: all .2s; }
.ministry:hover { border-color: var(--red); box-shadow: 0 4px 20px rgba(185,28,28,0.08); }
.ministry .ic { font-size: 36px; margin-bottom: 16px; line-height: 1; }
.ministry .nm { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.ministry .ds { font-size: 13px; color: var(--gray); line-height: 1.7; }

/* ---------- Page header (inner pages) ---------- */
.pagehead { background: var(--black); padding: 80px var(--pad-x) 60px; position: relative; overflow: hidden; }
.pagehead::after { content: ''; position: absolute; top: -50px; right: -50px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(185,28,28,0.12) 0%, transparent 70%); }
.pagehead .in { position: relative; z-index: 2; }
.pagehead h1 { font-family: var(--serif); font-size: 56px; font-weight: 700; color: #fff; line-height: 1.1; margin: 12px 0 14px; }
.pagehead p { font-size: 16px; color: rgba(255,255,255,0.5); line-height: 1.7; max-width: 560px; margin: 0; }

/* ---------- Forms / cards ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 40px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 7px; letter-spacing: 0.03em; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 18px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: var(--sans); background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); }
.notice { background: var(--success-bg); border: 1px solid var(--success-border); border-radius: 8px; padding: 20px; font-size: 14px; color: var(--success); line-height: 1.6; }
.amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.amounts button { padding: 14px 0; border-radius: 8px; border: 1.5px solid var(--border); background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; font-family: var(--sans); }
.amounts button.is-on { border-color: var(--red); background: var(--red-tint); color: var(--red); }
.quote { background: var(--red-tint); border-left: 3px solid var(--red); padding: 20px 24px; border-radius: 0 10px 10px 0; }
.quote p { font-size: 15px; color: var(--red-dark); font-style: italic; line-height: 1.7; margin: 0; }
.quote cite { display: block; font-size: 12px; color: var(--red); font-style: normal; font-weight: 600; margin-top: 10px; }

/* ---------- Footer ---------- */
.footer { background: var(--black); padding: 64px var(--pad-x) 32px; }
.footer__cols { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer__brand span { font-family: var(--serif); font-size: 18px; color: #fff; font-weight: 700; }
.footer .mission { font-size: 13px; color: rgba(255,255,255,0.35); font-style: italic; line-height: 1.85; margin-bottom: 14px; }
.footer .addr { font-size: 13px; color: rgba(255,255,255,0.3); line-height: 2.2; margin-bottom: 16px; }
.footer .social { display: flex; gap: 10px; }
.footer .social span { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 13px; color: rgba(255,255,255,0.45); }
.footer h4 { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin: 0 0 16px; }
.footer__cols a { display: block; font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 11px; }
.footer__cols a:hover { color: var(--red-soft); }
.footer__bar { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; font-size: 10px; color: rgba(255,255,255,0.2); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact__row { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 24px; }
.contact__row .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--red-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.contact__row .t { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.contact__row .v { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__links a { padding: 8px 8px; font-size: 12.5px; }
  .nav__cta .btn { padding: 8px 14px; }
}
/* Sermon cards (clickable video thumbnails) */
.sermon-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.sermon-card:hover { border-color: var(--red); box-shadow: 0 4px 20px rgba(185,28,28,0.10); transform: translateY(-2px); }
.sc-thumb { position: relative; width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#7F1D1D 0%,#0A0202 100%); }
.sc-thumb img { width: 44px; height: 44px; border-radius: 50%; position: absolute; top: 14px; left: 14px; }
.sc-play { width: 54px; height: 54px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(185,28,28,0.5); }
.sc-play::after { content: ''; width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 15px solid #fff; margin-left: 4px; }
.sc-meta { padding: 14px 16px; }
.sc-title { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.sc-sub { display: block; font-size: 12px; color: var(--gray); }

@media (max-width: 1040px) {
  .nav__links { display: none; }
}
@media (max-width: 860px) {
  :root { --pad-x: 24px; }
  .hero h1 { font-size: 48px; }
  .feature, .contact, .serm-grid, .watch-grid { grid-template-columns: 1fr; }
  .photogrid { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .section__head h2 { font-size: 32px; }
  .pagehead h1 { font-size: 40px; }
}


/* Scripture references — highlighted red on the What We Believe page */
.scripture { color: var(--red-dark); background: var(--red-tint); padding: 0 5px; border-radius: 4px; font-weight: 600; white-space: nowrap; }


/* ---------- Accessibility ---------- */
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.section--dark :focus-visible, .hero :focus-visible, .pagehead :focus-visible, .footer :focus-visible { outline-color: #fff; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 2000; background: var(--red); color: #fff; padding: 12px 22px; border-radius: 0 0 8px 8px; font-weight: 600; font-size: 14px; transition: top .15s ease; }
.skip-link:focus { top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}


/* ---------- WordPress admin bar offset (logged-in users only) ---------- */
.admin-bar .nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
}
