/* ============================================================
   churches/styles.css
   Church-LP additions layered on top of ../turnkeycfo-v2/styles.css
   Inherits all design tokens, typography, and component system.
   Only church-specific additions live here.
   ============================================================ */

/* Header estimate button — compact size BUT preserves glow from .button-estimate-glow */
.button-estimate-glow.header-estimate-btn {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.94rem;
}

/* ── GLOWING GREEN INSTANT ESTIMATE BUTTON ───────────────── */
.button-estimate-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--tk-navy);
  background: linear-gradient(135deg, #ffffff 0%, #f6fffb 100%);
  border: 1.5px solid var(--tk-green-emerald);
  box-shadow:
    0 0 0 4px rgba(0, 230, 118, 0.12),
    0 0 24px rgba(0, 230, 118, 0.35),
    0 8px 22px rgba(4, 120, 87, 0.18);
  animation: estimate-pulse 2.4s ease-in-out infinite;
  transition: transform 180ms ease, box-shadow 180ms ease;
  text-decoration: none;
}
.button-estimate-glow span { position: relative; z-index: 2; }
.button-estimate-glow:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 6px rgba(0, 230, 118, 0.18),
    0 0 32px rgba(0, 230, 118, 0.55),
    0 12px 28px rgba(4, 120, 87, 0.26);
}
.button-estimate-glow:active { transform: translateY(0); }
@keyframes estimate-pulse {
  0%,100% {
    box-shadow:
      0 0 0 4px rgba(0, 230, 118, 0.12),
      0 0 24px rgba(0, 230, 118, 0.35),
      0 8px 22px rgba(4, 120, 87, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(0, 230, 118, 0.22),
      0 0 36px rgba(0, 230, 118, 0.55),
      0 10px 28px rgba(4, 120, 87, 0.24);
  }
}
@media (prefers-reduced-motion: reduce) {
  .button-estimate-glow { animation: none; }
}

/* Estimate CTA section wrapper (button-only, no iframe) */
.estimate-cta-wrap {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.estimate-cta-wrap .button-estimate-glow {
  min-height: 60px;
  padding: 18px 34px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.estimate-cta-note {
  color: var(--tk-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Live-dashboard preview button */
.button-dashboard-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 56px;
  padding: 16px 30px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.005em;
  color: #fff;
  background: linear-gradient(135deg, var(--tk-navy) 0%, var(--tk-navy-soft) 100%);
  border: 1px solid rgba(0, 38, 58, 0.3);
  box-shadow:
    0 10px 24px rgba(0, 38, 58, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.1);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.button-dashboard-preview:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px rgba(0, 38, 58, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.12);
  color: #fff;
}
.button-dashboard-preview:active { transform: translateY(0); }
@media (max-width: 760px) {
  .button-dashboard-preview { width: 100%; padding: 14px 20px; font-size: 0.98rem; }
}

/* Single-banner Dakota testimonial */
.testimonial-banner {
  margin: 0 auto;
  max-width: 860px;
  padding: 38px 40px;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.08), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(0, 230, 118, 0.22);
  border-left: 4px solid var(--tk-green-emerald);
  border-radius: 16px;
  box-shadow: var(--tk-shadow-soft);
  text-align: center;
}
.testimonial-stars {
  color: var(--tk-green);
  font-size: 1.4rem;
  letter-spacing: 0.24em;
  font-weight: 800;
  margin-bottom: 16px;
}
.testimonial-quote {
  margin: 0 0 18px !important;
  color: var(--tk-navy) !important;
  font-size: clamp(1.15rem, 2vw, 1.5rem) !important;
  line-height: 1.45 !important;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.testimonial-attribution {
  color: var(--tk-text-soft) !important;
  font-size: 0.98rem !important;
  margin: 0 !important;
}
.testimonial-attribution strong { color: var(--tk-navy); }

@media (max-width: 760px) {
  .testimonial-banner { padding: 26px 22px; }
  .estimate-cta-wrap .button-estimate-glow { width: 100%; min-height: 56px; padding: 16px 20px; font-size: 1rem; }
  .estimate-cta-wrap { align-items: stretch; }
  .estimate-cta-note { text-align: center; }
}

/* Footer legal strip — Google Ads compliance */
.footer-legal {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 38, 58, 0.08);
}
.footer-legal p {
  color: var(--tk-text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 0;
}
.footer-legal a {
  color: var(--tk-navy-soft);
  text-decoration: underline;
  text-decoration-color: rgba(0, 38, 58, 0.3);
}

/* Single-line trust strip under hero fact-row (compact, non-ornamental) */
.trust-strip {
  margin-top: 14px;
  color: var(--tk-text-muted);
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* Sticky mobile CTA — only visible on mobile, always accessible */
.mobile-sticky-cta {
  display: none;
}
@media (max-width: 760px) {
  /* Mobile: un-pin the header so it scrolls away with the page (reclaims fold space) */
  .topbar {
    position: static;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .mobile-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(0, 38, 58, 0.08);
    box-shadow: 0 -8px 24px rgba(7, 47, 69, 0.08);
  }
  .mobile-sticky-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
  }
  .mobile-sticky-cta-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--tk-green), var(--tk-green-bright));
    box-shadow: 0 6px 16px rgba(4, 120, 87, 0.22);
  }
  .mobile-sticky-cta-secondary {
    color: var(--tk-navy);
    background: linear-gradient(135deg, #ffffff 0%, #f6fffb 100%);
    border: 1.5px solid var(--tk-green-emerald);
    box-shadow:
      0 0 0 3px rgba(0, 230, 118, 0.14),
      0 0 18px rgba(0, 230, 118, 0.4),
      0 4px 12px rgba(4, 120, 87, 0.14);
    animation: estimate-pulse 2.4s ease-in-out infinite;
  }
  /* Push page content so sticky bar never covers footer */
  body { padding-bottom: 80px; }
  /* Hide the inline Calendly on mobile — the sticky "Book Call" bar routes there.
     This trims the hero fold dramatically and lifts LCP. */
  .hero-booking { display: none; }
  /* Tighten hero for mobile fold — CTAs get above the fold */
  .hero { padding-top: 24px; padding-bottom: 12px; }
  .hero-copy .lede { font-size: 1.02rem; line-height: 1.55; }
  .founder-strip { margin-top: 14px; }
  .fact-row { margin-top: 18px; padding-top: 14px; }
  .fact-row strong { font-size: 1.35rem; }
}

/* Aggregate proof stat above logo strip */
.proof-stat {
  margin-top: 22px;
  padding: 12px 18px;
  display: inline-block;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.22);
  border-radius: 999px;
  color: var(--tk-navy);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
}

/* ── Church logo strip (trust / proof) ───────────────────── */
.church-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 28px 0 36px;
}
.church-logo-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--tk-border);
  border-radius: 14px;
  box-shadow: var(--tk-shadow-soft);
}
.church-logo-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}
.church-logo-card span {
  color: var(--tk-navy);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

/* ── Expertise grid (church-finance authority block) ─────── */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.expertise-card {
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--tk-border);
  border-radius: 14px;
  box-shadow: var(--tk-shadow-soft);
  border-top: 3px solid var(--tk-green-emerald);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.expertise-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(7, 47, 69, 0.1);
}
.expertise-card h3 {
  color: var(--tk-navy);
  margin-bottom: 10px;
}
.expertise-card p {
  color: var(--tk-text-soft);
  font-size: 0.96rem;
  line-height: 1.65;
}
.expertise-card .expertise-lead {
  margin: 2px 0 10px;
  color: var(--tk-green);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

/* Check / X glyph lists for the "what we do / what's missed" comparison */
.check-list,
.x-list {
  list-style: none;
  padding: 0 !important;
  display: grid;
  gap: 10px;
}
.check-list li,
.x-list li {
  position: relative;
  padding-left: 30px;
  line-height: 1.55;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0, 230, 118, 0.18);
  color: var(--tk-green);
  font-weight: 800;
  border-radius: 6px;
  font-size: 0.9rem;
}
.x-list li::before {
  content: "✕";
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(180, 60, 60, 0.12);
  color: #b43c3c;
  font-weight: 800;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* Text-only logo card (used where no image asset is available) */
.church-logo-text .church-logo-placeholder {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--tk-green-emerald), var(--tk-green));
  color: #fff;
  border-radius: 10px;
  font-size: 1.6rem;
}

/* ── FAQ accordion ───────────────────────────────────────── */
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.faq-item {
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--tk-border);
  border-radius: 12px;
  box-shadow: var(--tk-shadow-soft);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--tk-navy);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--tk-green);
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 12px;
  color: var(--tk-text-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ── Instant Estimate embed ─────────────────────────────── */
.section-estimate {
  scroll-margin-top: 90px;
}
.estimate-shell {
  margin-top: 28px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--tk-border);
  border-radius: 14px;
  box-shadow: var(--tk-shadow-soft);
}
.estimate-shell iframe {
  width: 100%;
  height: 820px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  display: block;
}
.estimate-fallback {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--tk-border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.estimate-fallback p {
  color: var(--tk-text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .expertise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .estimate-shell iframe { height: 720px; }
}
@media (max-width: 760px) {
  .expertise-grid { grid-template-columns: 1fr; }
  .church-logos { grid-template-columns: 1fr; }
  .estimate-shell iframe { height: 720px; }
  .faq-item { padding: 16px 18px; }
  .faq-item summary { font-size: 1rem; }
}
