/* ================================================================
   SERVICES PAGE — CSS
   Tokens, font-family, and structural class names are identical
   to about.css so both pages look like the same site.
   ================================================================ */

/* ── 0. TOKENS ───────────────────────────────────────────────── */
:root {
  --ink:         #111111;
  --ink-soft:    #444444;
  --ink-muted:   #777777;
  --surface:     #ffffff;
  --surface-off: #f7f7f7;
  --surface-mid: #ececec;
  --border:      rgba(0,0,0,0.08);

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;

  --shadow-sm:   0 2px 8px  rgba(0,0,0,0.06);
  --shadow-md:   0 8px 24px rgba(0,0,0,0.09);

  --card-pad:    2.25rem;
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── 1. RESET + BASE FONT ────────────────────────────────────── */
/*
  font-family must be declared here so the services page uses
  Poppins just like about.css — not a system-font fallback.
*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--surface);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── 2. NAVBAR ───────────────────────────────────────────────── */
.navbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
}

.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-container { display: flex; align-items: center; gap: 10px; }
.church-logo { height: 40px; width: auto; object-fit: contain; }
.logo-text { font-size: 1.4rem; font-weight: 600; color: var(--ink); }

.nav-links {
  list-style: none; display: flex; gap: 1.5rem;
  transition: all 0.3s ease;
}

.nav-links li a {
  position: relative; text-decoration: none; color: #333;
  font-weight: 500; padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: color 0.3s ease; display: inline-block;
}

.nav-links li a::after {
  content: ""; position: absolute;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--ink);
  transition: width 0.3s ease;
}

.nav-links li a:hover { color: var(--ink); }
.nav-links li a:hover::after { width: 100%; }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.burger .line {
  width: 25px; height: 3px;
  background: #333; border-radius: 3px; transition: all 0.4s ease;
}
.burger.active .line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active .line:nth-child(2) { opacity: 0; }
.burger.active .line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
  .burger { display: flex; }
  .nav-links {
    flex-direction: column; position: absolute;
    top: 70px; right: 2rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1rem 0; width: 220px;
    box-shadow: var(--shadow-md); opacity: 0; transform: translateY(-20px);
    pointer-events: none; transition: all 0.3s ease;
  }
  .nav-links.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links li a { padding: 1rem 1.5rem; width: 100%; display: block; }
}

/* ── 3. HERO ─────────────────────────────────────────────────── */
/*
  Reuses .about-page-hero class so height, flex centering and
  overflow are identical to every about section hero.
*/
.about-page-hero {
  position: relative;
  height: 58vh;
  min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
  background: var(--ink);
}

/* Gradient hero — no photo, same as team/testimony in about.css */
.about-page-hero.hero--services {
  background: linear-gradient(155deg, #141414 0%, #1e1c18 55%, #141414 100%);
}

/* Overlay not needed on gradient heroes */
.about-page-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.52); z-index: 1; }
.about-page-hero.hero--services::before { display: none; }

/* SVG decorative layer */
.about-page-hero.hero--services svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* ── Hero content ─────────────────────────────────────────────
   EXACT same values as about.css .about-hero-content.
   Do NOT change font-weight here — Poppins 800 is correct for h1,
   300 for subtitle. The mismatch was caused by the old code setting
   font-weight on the wrong elements.
*/
.about-hero-content {
  position: relative; z-index: 2;
  max-width: 720px;
  padding: 2rem;
  animation: heroIn 0.85s var(--ease-out) both;
  /* Ensure font inherits from body, never from UA stylesheet */
  font-family: 'Poppins', sans-serif;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Eyebrow — identical to about.css */
.about-hero-content .eyebrow {
  display: block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.9rem;
  font-family: 'Poppins', sans-serif;
}

/* H1 — identical to about.css */
.about-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

/* Subtitle — identical to about.css hero p */
.about-hero-content .hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 0;
  font-family: 'Poppins', sans-serif;
}

/* ── Meta row (time + location) ─────────────────────────────── */
.hero-meta {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem 1.75rem; flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-meta-item {
  font-size: 0.88rem; font-weight: 400;
  color: rgba(255,255,255,0.65);
  font-family: 'Poppins', sans-serif;
}

.hero-meta-sep {
  width: 1px; height: 16px;
  background: rgba(255,255,255,0.2);
}

/* ── Countdown ───────────────────────────────────────────────── */
.hero-countdown {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  margin-top: 1.75rem;
}

.cd-label {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  font-family: 'Poppins', sans-serif;
}

.cd-digits {
  display: flex; align-items: flex-start; gap: 0.25rem;
}

.cd-unit {
  display: flex; flex-direction: column; align-items: center;
  min-width: 44px;
}

/* 
  font-weight: 300 — matches the light weight used in about heroes.
  Using Poppins explicitly to override any UA monospace fallback.
*/
.cd-num {
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-weight: 300;
  line-height: 1;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-variant-numeric: tabular-nums;
}

.cd-unit-label {
  font-size: 0.56rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-top: 0.3rem;
  font-family: 'Poppins', sans-serif;
}

.cd-sep {
  font-size: 1.7rem; font-weight: 300;
  color: rgba(255,255,255,0.18); line-height: 1;
  margin-top: 0.05rem; user-select: none;
  font-family: 'Poppins', sans-serif;
}

/* ── Hero CTA buttons ────────────────────────────────────────── */
.hero-ctas {
  display: flex; gap: 0.9rem; flex-wrap: wrap;
  justify-content: center; margin-top: 1.75rem;
}

.hero-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.82rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-decoration: none; cursor: pointer; border: none;
  transition: background 0.28s ease, color 0.28s ease,
              border-color 0.28s ease, transform 0.28s ease;
}

.hero-btn--primary  { background: #fff; color: var(--ink); }
.hero-btn--primary:hover { background: var(--surface-off); transform: translateY(-2px); }

.hero-btn--secondary {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.hero-btn--secondary:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.55);
  transform: translateY(-2px);
}

/* ── 4. BODY ─────────────────────────────────────────────────── */
.about-page-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4.5rem 2rem 6rem;
}

/* Intro */
.about-intro-text {
  max-width: 700px; margin: 0 auto 3.5rem; text-align: center;
}

.about-intro-text p {
  font-size: 1.1rem; line-height: 1.85; color: var(--ink-soft);
  font-family: 'Poppins', sans-serif;
}

/* Eyebrow (body) */
.eyebrow {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 0.6rem;
  font-family: 'Poppins', sans-serif;
}

/* Section heading */
.about-heading {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700; color: var(--ink);
  line-height: 1.2; margin-bottom: 1.5rem;
  padding-bottom: 0.9rem; position: relative;
  font-family: 'Poppins', sans-serif;
}

.about-heading::after {
  content: ''; position: absolute;
  bottom: 0; left: 0;
  width: 36px; height: 3px;
  background: var(--ink); border-radius: 2px;
}

/* ── 5. CARDS ────────────────────────────────────────────────── */
.about-block {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.about-block:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.about-block.accented::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--ink); border-radius: 0 2px 2px 0;
}

.about-block p {
  font-size: 1.02rem; line-height: 1.85;
  color: var(--ink-soft); margin-bottom: 1.1rem;
  font-family: 'Poppins', sans-serif;
}
.about-block p:last-child { margin-bottom: 0; }

/* Service card = about-block with image pane */
.service-card {
  display: flex;
  flex-direction: row;
  padding: 0; /* image bleeds to edge */
}

.service-card .card-img {
  flex: 0 0 36%;
  position: relative; overflow: hidden;
  min-height: 240px;
}

.service-card .card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 1.1s var(--ease-out);
}

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

.card-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--ink); color: #fff;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 20px; z-index: 2;
  font-family: 'Poppins', sans-serif;
}

.service-card .card-body {
  flex: 1; padding: 2rem 2.25rem;
  display: flex; flex-direction: column;
}

.card-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 1rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}

.card-title {
  font-size: 1.3rem; font-weight: 700;
  color: var(--ink); line-height: 1.2;
  font-family: 'Poppins', sans-serif;
}

.card-sched {
  display: flex; align-items: center; gap: 5px;
  background: var(--surface-off); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 4px 11px;
  flex-shrink: 0; align-self: flex-start;
}

.card-sched-day  { font-size: 0.77rem; font-weight: 600; color: var(--ink); font-family: 'Poppins', sans-serif; }
.card-sched-sep  { width: 1px; height: 11px; background: var(--border); }
.card-sched-time { font-size: 0.77rem; font-weight: 400; color: var(--ink-muted); font-family: 'Poppins', sans-serif; }

.card-desc {
  font-size: 1rem; font-weight: 300;
  color: var(--ink-soft); line-height: 1.85;
  flex: 1; margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

/* Expand / collapse */
.card-detail {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.55s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease;
}

.service-card.open .card-detail { max-height: 600px; opacity: 1; }

.card-detail-body {
  padding-top: 1.1rem; border-top: 1px solid var(--border);
}

.card-detail-body p {
  font-size: 0.97rem; font-weight: 300;
  color: var(--ink-soft); line-height: 1.85;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}
.card-detail-body p:last-child { margin-bottom: 0; }

.card-highlight {
  background: var(--surface-off);
  border-left: 3px solid var(--ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.4rem; margin-top: 1rem;
}

.card-highlight-label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 0.5rem; display: block;
  font-family: 'Poppins', sans-serif;
}

.card-highlight p {
  font-size: 0.93rem; font-weight: 300;
  color: var(--ink-soft); line-height: 1.8; margin: 0;
  font-family: 'Poppins', sans-serif;
}

.card-toggle {
  align-self: flex-start; margin-top: 1rem;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.58rem 1.2rem;
  font-size: 0.83rem; font-weight: 600; color: var(--ink);
  cursor: pointer; display: flex; align-items: center; gap: 0.45rem;
  font-family: 'Poppins', sans-serif;
  transition: background 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, transform 0.25s ease;
}

.card-toggle:hover {
  background: var(--ink); color: #fff;
  border-color: var(--ink); transform: translateY(-1px);
}

.card-toggle-arrow {
  display: inline-block; font-size: 0.86rem; line-height: 1;
  transition: transform 0.35s var(--ease-out);
}

.service-card.open .card-toggle-arrow { transform: rotate(180deg); }

/* ── 6. CTA BLOCK ────────────────────────────────────────────── */
.about-cta-block {
  background: var(--ink); color: #fff;
  border-radius: var(--radius-lg); padding: 3rem 2rem;
  text-align: center; margin-top: 2rem;
}

.about-cta-block h3 {
  font-size: 1.7rem; font-weight: 700; margin-bottom: 0.7rem;
  font-family: 'Poppins', sans-serif;
}

.about-cta-block p {
  font-size: 1rem; color: rgba(255,255,255,0.75);
  line-height: 1.75; max-width: 480px;
  margin: 0 auto 1.75rem;
  font-family: 'Poppins', sans-serif;
}

.about-cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; color: var(--ink); text-decoration: none;
  padding: 0.85rem 1.9rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none; cursor: pointer;
}
.about-cta-btn:hover { background: var(--surface-off); transform: translateY(-2px); }

/* ── 7. FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--surface); color: #333;
  padding: 4rem 2rem 2rem; border-top: 1px solid var(--border);
}

.footer-content {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 2rem; max-width: 1200px; margin: auto;
}

.footer-section { flex: 1; min-width: 240px; padding-top: 1rem; border-top: 2px solid #ccc; }
.footer-section h3 { font-size: 1.15rem; margin-bottom: 1rem; font-weight: 600; color: var(--ink); font-family: 'Poppins', sans-serif; }
.footer-section p,
.footer-section li { font-size: 0.95rem; color: #333; margin: 0.5rem 0; }
.footer-section a { color: #333; text-decoration: none; transition: color 0.3s ease; }
.footer-section a:hover { color: #0056b3; text-decoration: underline; }
.footer-section ul { list-style: none; }

.social-icons { display: flex; gap: 1rem; margin-top: 1rem; }
.social-icon { font-size: 1.4rem; color: #333; transition: color 0.3s ease, transform 0.3s ease; }
.social-icon:hover { color: #007bff; transform: translateY(-3px); }

.footer-bottom { margin-top: 2rem; text-align: center; color: var(--ink-muted); font-size: 0.9rem; }
.footer-bottom .divider { height: 1px; background: var(--border); margin-bottom: 1rem; }

@media (max-width: 768px) {
  .footer-content { flex-direction: column; align-items: center; text-align: center; }
  .social-icons { justify-content: center; }
}

/* ── 8. RESPONSIVE ───────────────────────────────────────────── */

/* ── Tablet (≤900px) ─ cards stack, hero meta hides separator ── */
@media (max-width: 900px) {
  .service-card          { flex-direction: column; }
  .service-card .card-img {
    flex: none; width: 100%;
    min-height: 220px; max-height: 280px;
  }
  .service-card .card-body { padding: 1.75rem; }
  .hero-meta-sep         { display: none; }
}

/* ── Large phone (≤600px) ────────────────────────────────────── */
@media (max-width: 600px) {
  /* Hero: shorter on phones */
  .about-page-hero {
    height: auto;
    min-height: 0;
    padding: 3.5rem 0 2.5rem;
  }

  /* Hide SVG decoration — overlaps text on narrow screens */
  .about-page-hero.hero--services svg { display: none; }

  /* Hero content: tighter horizontal padding */
  .about-hero-content { padding: 1.5rem 1.25rem; }

  /* H1 already uses clamp — just ensure no overflow */
  .about-hero-content h1 { word-break: break-word; }

  /* Meta row: stack vertically */
  .hero-meta { flex-direction: column; gap: 0.4rem; }

  /* CTAs: full-width stack */
  .hero-ctas          { flex-direction: column; width: 100%; padding: 0 1.25rem; }
  .hero-btn           { width: 100%; justify-content: center; }

  /* Body */
  .about-page-body    { padding: 2.5rem 1rem 4rem; }
  .about-block        { padding: 1.5rem 1.25rem; border-radius: var(--radius-md); margin-bottom: 1.25rem; }
  .about-intro-text   { margin-bottom: 2rem; }

  /* Card */
  .service-card .card-img  { min-height: 180px; max-height: 220px; }
  .service-card .card-body { padding: 1.25rem; }
  .card-top                { flex-direction: column; gap: 0.6rem; }
  .card-title              { font-size: 1.15rem; }
  .card-desc               { font-size: 0.95rem; }

  /* CTA block */
  .about-cta-block { padding: 2rem 1.25rem; }
  .about-cta-block h3 { font-size: 1.4rem; }
}

/* ── Small phone (≤400px) ────────────────────────────────────── */
@media (max-width: 400px) {
  .about-hero-content   { padding: 1.25rem 1rem; }
  .about-page-body      { padding: 2rem 0.75rem 3rem; }
  .about-block          { padding: 1.1rem 0.9rem; }
  .service-card .card-body { padding: 1rem; }

  /* Countdown numbers */
  .cd-num               { font-size: 1.55rem; }
  .cd-sep               { font-size: 1.4rem; }
  .cd-unit              { min-width: 38px; }
}

/* ── 9. PRINT ────────────────────────────────────────────────── */
@media print {
  .about-page-hero, .navbar, footer { display: none !important; }
  .service-card { break-inside: avoid; }
  .card-detail  { max-height: none !important; opacity: 1 !important; }
}

/* ── 10. REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}