/* ── Church Site Theme ─────────────────────────────────────────────────────── */

/* Fonts fallback — loaded via Google Fonts in base.html */
:root {
  --primary:    #1a237e;
  --secondary:  #e8b400;
  --caller-bg:  #0288D1;
  --caller-text:#FFFFFF;
  --dark:       #111827;
  --light-bg:   #f8f9fa;
  font-family: 'Lato', sans-serif;
}

body {
  font-family: 'Lato', sans-serif;
  color: #333;
}

h1, h2, h3, h4, .section-title, .hero-title,
.navbar-church-name, .footer-church-name {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ── Ticker Bar ──────────────────────────────────────────────────────────── */
.ticker-bar {
  background: var(--secondary);
  color: #111;
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-item {
  padding: 0 3rem;
  font-size: .85rem;
  font-weight: 600;
}

.ticker-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.church-navbar {
  background: var(--primary);
  padding-top: .75rem;
  padding-bottom: .75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.church-navbar .nav-link,
.church-navbar .navbar-church-name {
  color: rgba(255,255,255,.85) !important;
  font-size: .92rem;
  transition: color .15s;
}

.church-navbar .nav-link:hover {
  color: #fff !important;
}

.navbar-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.navbar-church-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.navbar-toggler {
  border-color: rgba(255,255,255,.4);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* ── Live Dot Badge ─────────────────────────────────────────────────────── */
.live-dot-badge {
  display: inline-flex;
  align-items: center;
  background: #d32f2f;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 2px 8px;
  border-radius: 20px;
  animation: pulse-live 1.8s ease-in-out infinite;
}

.live-dot-large {
  font-size: .85rem;
  padding: 4px 14px;
}

.live-overlay-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #d32f2f;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .06em;
  animation: pulse-live 1.8s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50%       { opacity: .65; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #283593 50%, #1a237e 100%);
  background-attachment: fixed;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  opacity: .85;
}

.btn-hero-primary {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #111;
  font-weight: 700;
  border-radius: 50px;
  transition: transform .2s, box-shadow .2s;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  background: #f5c800;
  color: #111;
}

.btn-hero-outline {
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
  background: transparent;
  border-radius: 50px;
  font-weight: 600;
  transition: background .2s;
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: #fff;
}

/* ── Page Hero (inner pages) ────────────────────────────────────────────── */
.page-hero-section {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, #283593 100%);
  padding: 3rem 1rem;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

.page-hero-section .container {
  position: relative;
  z-index: 2;
}

/* ── Section headings ───────────────────────────────────────────────────── */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--primary);
}

.section-sub {
  font-size: 1rem;
}

/* ── Service Cards ──────────────────────────────────────────────────────── */
.service-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform .2s;
  background: #fff;
}

.service-card:hover {
  transform: translateY(-3px);
}

.service-card-header {
  background: var(--primary);
  color: #fff;
  padding: .6rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.service-card-body {
  padding: 1rem;
}

/* ── Announcement Cards ─────────────────────────────────────────────────── */
.announcement-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  background: #fff;
  transition: transform .2s, box-shadow .2s;
}

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

.announcement-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* ── Sermon Cards ───────────────────────────────────────────────────────── */
.sermon-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  background: #fff;
  transition: transform .2s, box-shadow .2s;
}

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

.sermon-thumb-wrap {
  position: relative;
  overflow: hidden;
}

.sermon-thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform .3s;
}

.sermon-card:hover .sermon-thumb {
  transform: scale(1.04);
}

.sermon-duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: .75rem;
  padding: 2px 8px;
  border-radius: 20px;
}

/* ── Event Cards ────────────────────────────────────────────────────────── */
.event-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  background: #fff;
  transition: transform .2s, box-shadow .2s;
}

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

.event-img-wrap {
  position: relative;
  overflow: hidden;
}

.event-img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  transition: transform .3s;
}

.event-card:hover .event-img {
  transform: scale(1.04);
}

.event-featured-img {
  height: 280px;
  object-fit: cover;
}

.event-date-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 4px 10px;
  border-radius: 8px;
  min-width: 48px;
  line-height: 1.2;
}

.event-date-day {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.event-date-month {
  display: block;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── Live Preview ───────────────────────────────────────────────────────── */
.live-preview-wrap {
  min-height: 200px;
  background: #000;
}

.offline-card {
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  padding: 3rem 1rem;
}

/* ── About ──────────────────────────────────────────────────────────────── */
.blockquote-church {
  border-left: 4px solid var(--secondary);
  padding-left: 1.2rem;
  font-style: italic;
  font-size: 1.1rem;
  color: #555;
}

.about-logo-large {
  max-height: 280px;
  max-width: 100%;
  object-fit: contain;
  opacity: .85;
}

.vm-card {
  background: #fff;
}

/* ── Team Cards ─────────────────────────────────────────────────────────── */
.team-card {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  padding: 1.5rem 1rem;
  transition: transform .2s, box-shadow .2s;
}

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

.team-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--secondary);
}

.team-socials {
  display: flex;
  justify-content: center;
  gap: .5rem;
}

.team-social-link {
  color: #888;
  font-size: 1rem;
  transition: color .15s;
}

.team-social-link:hover {
  color: var(--primary);
}

/* ── Gallery ────────────────────────────────────────────────────────────── */
.gallery-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .5rem;
}

.gallery-strip-item {
  border-radius: 8px;
  overflow: hidden;
}

.gallery-strip-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform .3s, opacity .3s;
  display: block;
}

.gallery-strip-item:hover .gallery-strip-img {
  transform: scale(1.06);
  opacity: .9;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .3s;
  display: block;
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.05);
}

.gallery-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
  padding: 1rem .75rem .5rem;
  font-size: .8rem;
  opacity: 0;
  transition: opacity .25s;
}

.gallery-item:hover .gallery-caption-overlay {
  opacity: 1;
}

/* ── Giving CTA Section ─────────────────────────────────────────────────── */
.giving-cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #283593 100%);
}

.btn-giving-cta {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #111;
  font-weight: 700;
  border-radius: 50px;
  padding: .75rem 2.5rem;
  transition: transform .2s, box-shadow .2s;
}

.btn-giving-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  background: #f5c800;
  color: #111;
}

/* ── Newsletter Section ─────────────────────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, #1b1b2f 0%, var(--primary) 100%);
}

.newsletter-input {
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  color: #fff;
  padding: .6rem 1.25rem;
}

.newsletter-input::placeholder {
  color: rgba(255,255,255,.5);
}

.newsletter-input:focus {
  background: rgba(255,255,255,.15);
  border-color: var(--secondary);
  color: #fff;
  box-shadow: none;
}

.btn-newsletter {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #111;
  font-weight: 700;
  border-radius: 50px;
  padding: .6rem 1.5rem;
}

.btn-newsletter:hover {
  background: #f5c800;
  color: #111;
}

/* ── Church Caller Strip ────────────────────────────────────────────────── */
.church-caller-strip {
  padding: 2rem 0;
}

.caller-strip-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.caller-strip-icon {
  font-size: 1.5rem;
}

.caller-strip-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.caller-strip-sub {
  opacity: .75;
  font-size: .9rem;
}

.caller-strip-hours {
  opacity: .6;
  font-size: .8rem;
  display: block;
}

.caller-number-block {
  line-height: 1.3;
}

.caller-number-label {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .7;
}

.caller-number-link {
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.caller-strip-btn {
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.5);
  color: inherit;
  border-radius: 50px;
  padding: .5rem 1.5rem;
  font-weight: 600;
  transition: background .2s;
}

.caller-strip-btn:hover {
  background: rgba(255,255,255,.35);
  color: inherit;
}

/* ── Floating Call Button ───────────────────────────────────────────────── */
.church-caller-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 1050;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.church-caller-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0,0,0,.4);
}

.caller-fab-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--caller-bg);
  opacity: 0;
  animation: fab-ring 2s ease-out infinite;
}

@keyframes fab-ring {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ── Contact page ───────────────────────────────────────────────────────── */
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-icon {
  font-size: 1.3rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.church-footer {
  background: #0f1625;
  color: rgba(255,255,255,.75);
  padding: 4rem 0 2rem;
}

.footer-logo {
  height: 44px;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(.8);
}

.footer-church-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.footer-about-text {
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
}

.footer-social-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.footer-social-icon:hover {
  background: var(--secondary);
  color: #111;
}

.footer-heading {
  color: #fff;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
  font-family: 'Lato', sans-serif;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: .4rem;
}

.footer-links a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .88rem;
  transition: color .15s;
}

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

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .75rem;
  font-size: .88rem;
}

.footer-contact-icon {
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-list a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
}

.footer-contact-list a:hover {
  color: var(--secondary);
}

.footer-divider {
  border-color: rgba(255,255,255,.1);
  margin: 2rem 0 1rem;
}

.footer-copy {
  color: rgba(255,255,255,.4);
  font-size: .8rem;
}

/* ── Utilities ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section { min-height: 100svh; }
  .hero-content { padding: 1rem; }
  .church-caller-fab { width: 50px; height: 50px; font-size: 1.2rem; }
}

/* Bootstrap overrides for primary */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: color-mix(in srgb, var(--primary) 85%, black);
  border-color: color-mix(in srgb, var(--primary) 85%, black);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background-color: var(--primary);
}
.text-primary { color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.bg-primary-light { background-color: rgba(26,35,126,.08); }
