/* ============================================================
   CRC WORCESTER — components.css
   Nav · Buttons · Cards · Footer · All reusable UI pieces
   ============================================================ */

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: transparent;
  color: var(--red);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--red);
  border-color: var(--red);
}

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-nav);
  transition: background var(--transition);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

.nav-logo-badge {
  width: 36px;
  height: 36px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

/* ── HAMBURGER ───────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE MENU ─────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(1, 0, 39, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: color var(--transition);
  text-decoration: none;
}

.mobile-menu a:last-of-type {
  border-bottom: none;
}
.mobile-menu a:hover {
  color: var(--white);
}
.mobile-menu a.cta-link {
  color: var(--red);
  margin-top: 8px;
}

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform var(--transition),
    border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
}

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  font-family: var(--font-primary);
  font-weight: 600;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-badge {
  display: inline-block;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--red-light);
  color: var(--red);
  margin-bottom: 10px;
}

.card-badge.badge-kids {
  background: var(--kids-bg);
  color: var(--kids-text);
}
.card-badge.badge-youth {
  background: var(--youth-bg);
  color: var(--youth-text);
}
.card-badge.badge-outreach {
  background: var(--outreach-bg);
  color: var(--outreach-text);
}
.card-badge.badge-worship {
  background: var(--worship-bg);
  color: var(--worship-text);
}
.card-badge.badge-women {
  background: var(--women-bg);
  color: var(--women-text);
}
.card-badge.badge-ushers {
  background: var(--ushers-bg);
  color: var(--ushers-text);
}
.card-badge.badge-media {
  background: var(--media-bg);
  color: var(--media-text);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.card-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-text {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* ── ICON CARDS ──────────────────────────────────────────── */
.icon-card {
  padding: 36px 28px;
  text-align: center;
}

.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--red-light);
  border: 1.5px solid rgba(216, 12, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}

.icon-badge {
  width: 104px;
  height: 104px;
  object-fit: contain;
  display: block;
  margin: 0 auto 20px;
}

.icon-card h3 {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.icon-card p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
}

/* ── SERVICE TIMES STRIP ─────────────────────────────────── */
.times-strip {
  background: var(--red);
  padding: 20px 0;
}

.times-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.time-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.time-label {
  font-family: var(--font-primary);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

.time-val {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.time-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.3);
}

/* ── STATS STRIP ─────────────────────────────────────────── */
.stats-strip {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 16px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--white);
}

.stat-num span {
  color: var(--red);
}

.stat-label {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── SCRIPTURE ───────────────────────────────────────────── */
.scripture {
  text-align: center;
  padding: 64px 0;
}

.scripture blockquote {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  max-width: 680px;
  margin: 0 auto 16px;
  font-style: italic;
}

.scripture cite {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-style: normal;
}

/* ── SERMON BLOCK ────────────────────────────────────────── */
.sermon-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sermon-block-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.sermon-info-panel {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sermon-spotify-panel {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  background: rgba(30, 215, 96, 0.03);
}

.spotify-embed-placeholder {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #121212;
  border: 1px solid rgba(30, 215, 96, 0.15);
}

.spotify-embed-placeholder iframe {
  width: 100%;
  display: block;
  border: none;
}

.spotify-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spotify-icon {
  width: 40px;
  height: 40px;
  background: #1db954;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spotify-icon svg {
  width: 20px;
  height: 20px;
  fill: #000;
}

.spotify-cta-text h4 {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.spotify-cta-text p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ── CONNECT BANNER ──────────────────────────────────────── */
.connect-banner {
  background:
    radial-gradient(
      ellipse 80% 100% at 60% 50%,
      rgba(216, 12, 55, 0.2) 0%,
      transparent 70%
    ),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 72px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.connect-banner::before {
  content: "LOVE";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 20vw;
  color: rgba(255, 255, 255, 0.025);
  letter-spacing: -0.04em;
  pointer-events: none;
  white-space: nowrap;
}

.connect-banner h2 {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.connect-banner p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.connect-banner-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: #000018;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 32px;
}

.footer-col-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.footer-links li a:hover {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 260px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-family: var(--font-primary);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.social-icon:hover {
  border-color: var(--red);
  color: var(--red);
}

.social-icon.icon-facebook:hover {
  border-color: #1877f2;
  color: #1877f2;
}

.social-icon.icon-instagram:hover {
  border-color: #e1306c;
  color: #e1306c;
}

.social-icon.icon-spotify:hover {
  border-color: #1db954;
  color: #1db954;
}

.social-icon.icon-youtube:hover {
  border-color: #ff0000;
  color: #ff0000;
}

/* ── SOCIAL TOOLTIP (YouTube "coming soon") ──────────────── */
.social-tooltip {
  position: relative;
}

.social-tooltip-text {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-family: var(--font-primary);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--transition),
    transform var(--transition);
  z-index: 5;
}

.social-tooltip:hover .social-tooltip-text,
.social-tooltip:focus .social-tooltip-text,
.social-tooltip:focus-visible .social-tooltip-text {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.25);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── PAGE HERO (shared across inner pages) ───────────────── */
.page-hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 80% at 80% 50%,
      rgba(216, 12, 55, 0.14) 0%,
      transparent 60%
    ),
    linear-gradient(
      90deg,
      rgba(1, 0, 39, 0.9) 0%,
      rgba(1, 0, 39, 0.55) 45%,
      rgba(1, 0, 39, 0.35) 100%
    ),
    url("../assets/images/header_img.jpg") center/cover no-repeat;
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

/* ── RESPONSIVE — COMPONENTS ─────────────────────────────── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  #nav-cta {
    display: none !important;
  }

  .times-inner {
    gap: 24px;
  }
  .time-divider {
    display: none;
  }

  .sermon-block-inner {
    grid-template-columns: 1fr;
  }
  .sermon-info-panel {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 36px 28px;
  }
  .sermon-spotify-panel {
    padding: 36px 28px;
  }

  .connect-banner {
    padding: 48px 28px;
  }
  .connect-banner::before {
    font-size: 32vw;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .stat-num {
    font-size: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .btn {
    padding: 12px 20px;
    font-size: 0.72rem;
  }
  .icon-card {
    padding: 28px 20px;
  }
}
