/* Rock Ministries Custom Styles */

:root {
  --navy: #0A1628;
  --gold: #D4A843;
  --stone: #F5F1EB;
  --white: #ffffff;
  --gray-100: #f7fafc;
  --gray-600: #718096;
  --gray-800: #2d3748;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2840 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: #c59832;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 168, 67, 0.4);
}

.card {
  background: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Print styles for sermon pages */
@media print {
  nav, footer, .no-print {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  p, blockquote {
    page-break-inside: avoid;
  }

  @page {
    margin: 1in;
  }
}

/* Screen reader only class for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Enhanced focus styles for accessibility */
a:focus, button:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Sermon content formatting */
.sermon-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
}

.sermon-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}

.sermon-content p {
  margin-bottom: 1rem;
  line-height: 1.75;
}

.sermon-content blockquote {
  border-left: 4px solid var(--gold);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--gray-600);
}

.sermon-content hr {
  margin: 2rem 0;
  border-top: 2px solid var(--stone);
}

/* Calendar styles */
.calendar-event {
  transition: transform 0.2s;
}

.calendar-event:hover {
  transform: translateY(-2px);
}
