/* ============================
   LBC MINISTRY PAGES - SHARED STYLES
   Lighthouse Baptist Church

   SINGLE SOURCE OF TRUTH for all ministry page components:
   - Kids & Nursery
   - Teen & Youth
   - Adult Classes

   Pattern: Extracts common components from individual files
   Uses: CSS variables from lbc-tokens.css (NO :root redefinition)
   Load Order: After lbc-global.css, before page-specific CSS
   ============================ */

/* ============================
   1. HERO SECTION - Ministry Pages
   Common hero pattern for all ministry pages
   ============================ */
.ministry-hero {
  position: relative;
  min-height: 60vh;
  background: linear-gradient(135deg, var(--lbc-navy) 0%, var(--lbc-navy-soft) 50%, var(--lbc-navy) 100%);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ministry-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 16, 33, 0.85);
  z-index: 1;
}

.ministry-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.ministry-hero .hero-kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lbc-gold);
  margin-bottom: 1rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(208, 167, 95, 0.4);
  border-radius: 999px;
}

.ministry-hero .hero-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 1rem;
}

.ministry-hero .hero-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e5e7eb;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.ministry-hero .hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero responsive sizing */
@media (min-width: 641px) {
  .ministry-hero .hero-title {
    font-size: 2.75rem;
  }
}

@media (min-width: 900px) {
  .ministry-hero .hero-title {
    font-size: 3rem;
  }
}

/* ============================
   2. ANSWER BLOCK - AEO Optimization
   Quick answer section for voice assistants and AI search engines
   Appears immediately after hero on ministry pages
   ============================ */
.answer-block {
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--lbc-cream) 0%, #f9f6f1 100%);
  border-bottom: 1px solid rgba(208, 167, 95, 0.15);
}

.answer-block .container {
  max-width: 900px;
  margin: 0 auto;
}

.answer-content {
  background: white;
  border-left: 4px solid var(--lbc-gold);
  border-radius: var(--radius-lg, 1rem);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.06));
}

.answer-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--lbc-text, #1f2937);
  margin: 0;
  text-align: center;
}

.answer-text strong {
  color: var(--lbc-navy);
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: -0.01em;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .answer-block {
    padding: 2.5rem 1rem;
  }

  .answer-content {
    padding: 2rem 2.5rem;
  }

  .answer-text {
    font-size: 1.1rem;
  }
}

/* ============================
   3. TIMES SECTION - Service Cards
   ============================ */
.times-section {
  padding: 4rem 1rem;
  background: #fff;
}

.times-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.times-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .times-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .times-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.times-card {
  background: var(--lbc-cream);
  border-radius: var(--radius-2xl, 1.5rem);
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(208, 167, 95, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.times-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg, 0 10px 25px rgba(0,0,0,0.1));
}

.times-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--lbc-gold), var(--lbc-gold-hover, #b48e4d));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.times-icon svg {
  width: 28px;
  height: 28px;
  color: var(--lbc-navy);
}

.times-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--lbc-navy);
  margin: 0 0 0.5rem;
}

.times-ages {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lbc-gold-hover, #b48e4d);
  margin-bottom: 1rem;
}

.times-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  text-align: left;
}

.times-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
}

.times-list li:last-child {
  border-bottom: none;
}

.service-label {
  color: var(--lbc-navy);
  font-weight: 600;
}

.service-time {
  color: var(--lbc-text-soft, #4b5563);
}

.times-note {
  font-size: 0.85rem;
  color: var(--lbc-text-soft, #4b5563);
  font-style: italic;
  margin: 0;
}

/* ============================
   4. EXPECT SECTION - What to Expect Cards
   ============================ */
.expect-section {
  padding: 5rem 1rem;
  background: var(--lbc-cream);
}

.expect-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.expect-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.expect-kicker {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lbc-gold-hover, #b48e4d);
  margin-bottom: 0.75rem;
}

.expect-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--lbc-navy);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.expect-lead {
  font-size: 1.1rem;
  color: var(--lbc-text-soft, #4b5563);
  line-height: 1.7;
}

.expect-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .expect-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .expect-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.expect-card {
  background: white;
  border-radius: var(--radius-2xl, 1.5rem);
  padding: 2rem;
  box-shadow: var(--shadow-md, 0 4px 15px rgba(0,0,0,0.08));
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.expect-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl, 0 15px 35px rgba(0,0,0,0.12));
}

/* Numbered variant (Adult Classes) */
.expect-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--lbc-navy), var(--lbc-navy-soft));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--lbc-gold);
}

/* Icon variant (Teens/Kids) */
.expect-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--lbc-navy), var(--lbc-navy-soft));
  border-radius: var(--radius-lg, 1rem);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.expect-icon svg {
  color: var(--lbc-gold);
}

.expect-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lbc-navy);
  margin: 0 0 0.75rem;
}

.expect-card p {
  color: var(--lbc-text-soft, #4b5563);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* ============================
   5. WHO SECTION - Age Groups / Audience
   ============================ */
.who-section {
  padding: 5rem 1rem;
  background: var(--lbc-navy);
  color: white;
}

.who-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.who-content {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .who-content {
    grid-template-columns: 1fr 1.5fr;
  }
}

.who-text {
  text-align: center;
}

@media (min-width: 900px) {
  .who-text {
    text-align: left;
  }
}

.who-kicker {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lbc-gold);
  margin-bottom: 0.75rem;
}

.who-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: white;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.who-text > p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.who-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .who-groups {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Two-column variant (Teens) - Mobile-first */
.who-grid.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .who-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.who-group,
.who-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl, 1.25rem);
  padding: 1.5rem;
  text-align: center;
  transition: background-color 0.2s ease;
}

.who-group:hover,
.who-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.who-group h4,
.who-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.25rem;
}

.who-group p,
.who-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin: 0;
}

/* Age badge (Teens) */
.who-age {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--lbc-gold);
  margin-bottom: 0.5rem;
}

.who-image {
  position: relative;
  border-radius: var(--radius-2xl, 1.5rem);
  overflow: hidden;
  box-shadow: var(--shadow-2xl, 0 25px 50px rgba(0,0,0,0.25));
  order: -1;
}

.who-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (min-width: 900px) {
  .who-image {
    order: 0;
  }
}

/* ============================
   6. VERSE SECTION - Featured Scripture
   REDESIGNED: Dark navy gradient background (matches sitewide pattern)
   ============================ */
.verse-section {
  padding: 5rem 1rem;
  background: linear-gradient(135deg, var(--lbc-navy) 0%, var(--lbc-navy-soft) 50%, var(--lbc-navy) 100%);
  text-align: center;
}

.verse-section .container {
  max-width: 900px;
  margin: 0 auto;
}

.featured-verse {
  position: relative;
  padding: 3rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
  margin: 0;
}

.featured-verse::before {
  content: '"';
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif;
  font-size: 8rem;
  color: var(--lbc-gold);
  opacity: 0.25;
  line-height: 1;
  pointer-events: none;
}

.featured-verse p {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  font-style: italic;
  color: var(--lbc-cream);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  position: relative;
}

.featured-verse cite {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  font-style: normal;
  color: var(--lbc-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================
   7. FAQ SECTION - Native <details> Accordion
   UPDATED: White background for contrast after dark verse section
   ============================ */
.faq-section {
  padding: 5rem 1rem;
  background: #fff;
}

.faq-section .container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-header,
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-kicker,
.section-kicker {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lbc-gold-hover, #b48e4d);
  margin-bottom: 0.75rem;
}

.faq-title,
.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--lbc-navy);
  margin: 0;
  line-height: 1.2;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--lbc-cream);
  border-radius: var(--radius-xl, 1.25rem);
  border: 1px solid rgba(208, 167, 95, 0.15);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-md, 0 4px 15px rgba(0,0,0,0.08));
}

.faq-item[open] {
  box-shadow: var(--shadow-lg, 0 10px 25px rgba(0,0,0,0.1));
  border-color: var(--lbc-gold);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lbc-navy);
  list-style: none;
  transition: background-color 0.2s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  background: rgba(208, 167, 95, 0.1);
}

.faq-question span:first-child {
  flex: 1;
  padding-right: 1rem;
}

.faq-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--lbc-gold);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--lbc-text-soft, #4b5563);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ============================
   8. CTA SECTION - Final Call to Action
   REDESIGNED: Dark navy background (matches sitewide CTA pattern)
   ============================ */
.cta-section {
  padding: 5rem 1rem;
  background: linear-gradient(135deg, var(--lbc-navy) 0%, var(--lbc-navy-soft) 100%);
  text-align: center;
}

.cta-section .container {
  max-width: 840px;
  margin: 0 auto;
}

.cta-content {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
}

.cta-kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lbc-gold);
  margin-bottom: 1rem;
  padding: 0.35rem 1rem;
  background: rgba(208, 167, 95, 0.2);
  border-radius: 999px;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: white;
  margin: 0 0 1rem;
}

.cta-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cta-actions,
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================
   9. MINISTRY BUTTONS
   Consistent button styles for all ministry pages
   ============================ */
.ministry-hero .btn-outline,
.ministry-hero .btn-outline:link,
.ministry-hero .btn-outline:visited {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.ministry-hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* CTA section outline buttons (UPDATED: dark navy background) */
.cta-section .btn-outline,
.cta-section .btn-outline:link,
.cta-section .btn-outline:visited {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.cta-section .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* ============================
   10. ACCESSIBILITY - Reduced Motion
   ============================ */
@media (prefers-reduced-motion: reduce) {
  .times-card,
  .expect-card,
  .who-group,
  .who-card,
  .faq-item,
  .faq-icon,
  .btn {
    transition: none;
  }
}
