/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-warm: #faf8f4;
  --bg-cream: #f4efe5;
  --bg-card: #fffefb;
  --burgundy: #692038;
  --burgundy-light: #843050;
  --burgundy-soft: #9c4a64;
  --gold: #a88a1a;
  --gold-bright: #c49a1c;
  --gold-light: #d9b84a;
  --gold-muted: rgba(168, 138, 26, 0.12);
  --text-dark: #1a1410;
  --text-body: #42342a;
  --text-muted: #7a6b5d;
  --border-warm: #e2d8c8;
  --shadow-warm: 0 1px 3px rgba(44, 24, 16, 0.04), 0 2px 8px rgba(44, 24, 16, 0.03);
  --shadow-card: 0 2px 6px rgba(44, 24, 16, 0.05), 0 8px 24px rgba(44, 24, 16, 0.06);
  --shadow-hover: 0 4px 12px rgba(44, 24, 16, 0.07), 0 12px 32px rgba(44, 24, 16, 0.08);
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-warm);
  color: var(--text-body);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== LAYOUT ========== */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 88px 0;
  position: relative;
}

/* ========== CROSS SVG SEPARATOR ========== */
.cross-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 0;
  opacity: 0;
  animation: separatorFade 0.8s var(--ease-out) forwards;
}

.cross-separator__line {
  flex: 1;
  max-width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-warm), transparent);
}

.cross-separator svg {
  flex-shrink: 0;
}

@keyframes separatorFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== DECORATIVE CROSS BORDER ========== */
.cross-border {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  max-width: 400px;
}

.cross-border__segment {
  flex: 1;
  height: 1px;
  background: var(--border-warm);
}

.cross-border__dot {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ========== FADE-IN ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-d1 { transition-delay: 0.08s; }
.fade-in-d2 { transition-delay: 0.16s; }
.fade-in-d3 { transition-delay: 0.24s; }
.fade-in-d4 { transition-delay: 0.32s; }
.fade-in-d5 { transition-delay: 0.40s; }
.fade-in-d6 { transition-delay: 0.48s; }

/* ========== SECTION TITLES ========== */
.section-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 10px;
  opacity: 0.85;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 40px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ========== IMAGE PLACEHOLDERS ========== */
.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(226, 216, 200, 0.25);
  border: 1.5px dashed var(--border-warm);
  border-radius: 16px;
  color: var(--text-muted);
  font-size: 15px;
  min-height: 200px;
  padding: 36px;
  cursor: default;
}

.photo-placeholder svg {
  opacity: 0.4;
}

.photo-placeholder span {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 28px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 50% 40%, rgba(168,138,26,0.05) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-cream) 100%);
}

.hero__photo-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__photo-placeholder .photo-placeholder {
  height: 100%;
  min-height: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

/* Hero brand lockup: sjrm [flame] praise */
.hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 16px;
}

.hero__brand-text {
  font-family: var(--font-heading);
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 400;
  color: var(--burgundy);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.hero__brand-flame {
  width: clamp(40px, 8vw, 64px);
  height: auto;
  margin: 0 6px 0 8px;
  filter: brightness(0) saturate(100%) invert(18%) sepia(30%) saturate(1200%) hue-rotate(330deg) brightness(0.95);
  opacity: 0.8;
  position: relative;
  top: -2px;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(11px, 2.2vw, 14px);
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.hero__rule {
  width: 48px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  margin: 0 auto 48px;
  border: none;
}

.hero__scripture {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(18px, 3.8vw, 26px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.hero__verse {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--burgundy);
  opacity: 0.7;
  margin-bottom: 0;
}



/* ========================================
   LSS BANNER
   ======================================== */
.lss-banner {
  padding: 56px 0;
  background: var(--bg-cream);
}

.lss-banner__card {
  position: relative;
  text-align: center;
  padding: 56px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.lss-banner__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 5%, var(--gold) 30%, var(--gold-bright) 50%, var(--gold) 70%, transparent 95%);
}

.lss-banner__eyebrow {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lss-banner__date {
  font-family: var(--font-body);
  font-size: clamp(17px, 3vw, 21px);
  color: var(--burgundy);
  font-weight: 600;
  margin-bottom: 24px;
}

.lss-banner__cross {
  margin: 0 auto;
}

/* Hidden link styling */
.lss-banner__hidden-link {
  color: inherit;
  text-decoration: none;
  cursor: default;
  pointer-events: auto;
}

.lss-banner__hidden-link:hover,
.lss-banner__hidden-link:focus,
.lss-banner__hidden-link:active {
  color: inherit;
  text-decoration: none;
  cursor: default;
  outline: none;
}

/* ========================================
   MUSIC RESOURCES
   ======================================== */
.music-section {
  background: var(--bg-warm);
}

#resources-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.resource-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring), border-color 0.3s var(--ease-spring);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-warm);
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(168, 138, 26, 0.3);
}

.resource-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-warm);
  transition-duration: 0.1s;
}

.resource-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-muted);
  color: var(--gold);
  transition: background 0.3s var(--ease-spring), color 0.3s var(--ease-spring);
}

/* Platform-specific icon colors */
.resource-card__icon--spotify { background: rgba(30, 215, 96, 0.12); color: #1DB954; }
.resource-card__icon--youtube { background: rgba(255, 0, 0, 0.08); color: #e33; }
.resource-card__icon--gdrive { background: rgba(66, 133, 244, 0.10); color: #4285F4; }
.resource-card__icon--facebook { background: rgba(24, 119, 242, 0.10); color: #1877F2; }
.resource-card__icon--instagram { background: rgba(225, 48, 108, 0.10); color: #E1306C; }

.resource-card:hover .resource-card__icon--spotify { background: rgba(30, 215, 96, 0.2); }
.resource-card:hover .resource-card__icon--youtube { background: rgba(255, 0, 0, 0.15); }
.resource-card:hover .resource-card__icon--gdrive { background: rgba(66, 133, 244, 0.18); }
.resource-card:hover .resource-card__icon--facebook { background: rgba(24, 119, 242, 0.18); }
.resource-card:hover .resource-card__icon--instagram { background: rgba(225, 48, 108, 0.18); }

.resource-card:hover .resource-card__icon {
  background: rgba(168, 138, 26, 0.18);
}

.resource-card__body { flex: 1; min-width: 0; }

.resource-card__platform {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 4px;
  opacity: 0.8;
}

.resource-card__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 3px;
  line-height: 1.35;
}

.resource-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.resource-card__arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 22px;
  align-self: center;
  transition: transform 0.3s var(--ease-spring), color 0.3s var(--ease-spring);
  opacity: 0.65;
}

.resource-card:hover .resource-card__arrow {
  transform: translateX(4px);
  color: var(--burgundy);
  opacity: 1;
}

/* ========================================
   UPCOMING PRACTICES
   ======================================== */
.practice-section {
  background: var(--bg-warm);
}

.practice-card {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow-warm);
}

.practice-card + .practice-card {
  margin-top: 16px;
}

.practice-card__header {
  margin-bottom: 28px;
}

.practice-card__date {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4.5vw, 28px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 5px;
  letter-spacing: -0.02em;
}

.practice-card__location {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.practice-card__lineup {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.5;
}

.practice-card__mat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 12px;
  opacity: 0.8;
}

.practice-card__materials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.practice-mat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-warm);
  border: 1px solid var(--border-warm);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s var(--ease-spring), border-color 0.3s var(--ease-spring), transform 0.3s var(--ease-spring);
}

.practice-mat:hover {
  background: rgba(168, 138, 26, 0.06);
  border-color: rgba(168, 138, 26, 0.25);
  transform: translateY(-1px);
}

.practice-mat:active {
  transform: scale(0.98);
  transition-duration: 0.1s;
}

.practice-mat__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.practice-mat__icon--chords { background: rgba(139, 69, 62, 0.08); color: var(--burgundy); }
.practice-mat__icon--lyrics { background: rgba(168, 138, 26, 0.10); color: var(--gold); }
.practice-mat__icon--spotify { background: rgba(30, 215, 96, 0.12); color: #1DB954; }

.practice-mat__body {
  flex: 1;
  min-width: 0;
}

.practice-mat__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  display: block;
  line-height: 1.3;
}

.practice-mat__status {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  display: block;
  margin-top: 1px;
}

.practice-mat--active .practice-mat__status {
  color: var(--burgundy);
  font-style: normal;
  font-weight: 500;
}

@media (max-width: 640px) {
  .practice-card { padding: 24px 20px; }
  .practice-card__materials { grid-template-columns: 1fr; gap: 8px; }
  .practice-mat { padding: 12px 14px; }
}

/* ========================================
   LYRICS & CHORDS GRID
   ======================================== */
.chords-section {
  background: var(--bg-cream);
}

.chords-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.chord-card {
  display: block;
  padding: 30px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  min-height: 130px;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring), border-color 0.3s var(--ease-spring);
  cursor: pointer;
  box-shadow: var(--shadow-warm);
}

.chord-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(168, 138, 26, 0.3);
}

.chord-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-warm);
  transition-duration: 0.1s;
}

.chord-card__day {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 8px;
  opacity: 0.8;
}

.chord-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.chord-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-muted);
  border: 1px solid rgba(168, 138, 26, 0.2);
  padding: 5px 14px;
  border-radius: 20px;
}

/* ========================================
   CALENDAR
   ======================================== */
.schedule-section {
  background: var(--bg-warm);
}

.calendar-month {
  margin-bottom: 40px;
}

.calendar-month:last-child { margin-bottom: 0; }

.calendar-month__label {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 16px;
  padding: 10px 0;
  border-bottom: 1.5px solid var(--border-warm);
  letter-spacing: -0.01em;
  position: sticky;
  top: 0;
  background: var(--bg-warm);
  z-index: 5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 3-column grid: date | event | time */
.cal-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(226, 216, 200, 0.45);
  transition: background 0.3s var(--ease-spring);
}

.cal-row:last-child { border-bottom: none; }

.cal-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cal-event {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.45;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

/* Event type dots — only stable recurring types */
.cal-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

.cal-dot--practice { background: var(--burgundy); }
.cal-dot--prayer { background: #5a8a6a; }

/* Time pill */
.cal-time {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(139, 69, 62, 0.08);
  padding: 2px 9px;
  border-radius: 12px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Highlight row (e.g. LSS Weekend) */
.cal-row--highlight {
  border-left: 3px solid var(--gold-bright);
  padding: 12px 0 12px 16px;
  margin: 2px 0;
  border-bottom: 1px solid rgba(226, 216, 200, 0.45);
}

.cal-row--highlight .cal-date {
  color: var(--burgundy);
  font-weight: 700;
}

.cal-row--highlight .cal-event {
  color: var(--burgundy);
  font-weight: 600;
}

.cal-row--highlight .cal-star {
  color: var(--gold-bright);
}

.tag-new {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #faf8f4;
  background: var(--burgundy);
  padding: 2px 8px;
  border-radius: 20px;
  vertical-align: middle;
}

.calendar-soon {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-style: italic;
  font-size: 15px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 56px 0 44px;
  text-align: center;
  background: var(--bg-cream);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer__link {
  font-size: 15px;
  color: var(--burgundy);
  text-decoration: none;
  transition: color 0.3s var(--ease-spring);
  font-weight: 500;
}

.footer__link:hover { color: var(--gold); }

.footer__parish {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 36px;
  font-weight: 400;
}

.footer__photo {
  max-width: 480px;
  margin: 0 auto;
}

.footer__photo .photo-placeholder {
  min-height: 160px;
}

/* ========== LOADING / TOAST ========== */
.section-loading {
  text-align: center;
  padding: 36px;
  color: var(--text-muted);
  font-style: italic;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--burgundy);
  color: #faf8f4;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 999;
  opacity: 0;
  transition: transform 0.5s var(--ease-spring), opacity 0.5s var(--ease-spring);
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(44, 24, 16, 0.15);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .container { padding: 0 22px; }
  .hero { padding: 72px 22px; }
  .lss-banner__card { padding: 40px 22px; }
  .cal-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 2px 8px;
    padding: 9px 0;
  }
  .cal-date { grid-column: 1; font-size: 13px; }
  .cal-time { grid-column: 2; grid-row: 1; }
  .cal-event { grid-column: 1 / -1; grid-row: 2; font-size: 14px; }
  .cal-row--highlight { padding: 10px 0 10px 14px; }
  #resources-container { grid-template-columns: 1fr; }
  .resource-card { padding: 20px 18px; }
  .chords-grid { grid-template-columns: 1fr; gap: 12px; }
  .chord-card { min-height: unset; padding: 24px 22px; }
  .footer__links { gap: 14px; flex-direction: column; }
  .section-title { margin-bottom: 32px; }
}

@media (min-width: 641px) and (max-width: 880px) {
  #resources-container { grid-template-columns: 1fr; }
}
