/* ==========================================================================
   Calvary Chapel Bangalore — cc-theme
   Mipler-inspired design system: clean, light, blue/teal, generous whitespace.
   Loaded LAST in the cascade; replaces the Churx theme (style.css/responsive.css).
   Structural libraries kept: Bootstrap grid, FontAwesome, Swiper, Fancybox.
   ========================================================================== */

:root {
  --cc-ink:        #0f1b2d;   /* primary dark / headings */
  --cc-ink-soft:   #16243a;   /* dark panels / footer */
  --cc-muted:      #5b6b7f;   /* body / secondary text */
  --cc-blue:       #2d6cdf;   /* primary accent */
  --cc-blue-d:     #1f57bd;   /* primary accent, hover */
  --cc-teal:       #15b8a6;   /* secondary accent */
  --cc-bg:         #ffffff;
  --cc-surface:    #f5f8fc;   /* light section background */
  --cc-tint:       #eaf1fd;   /* icon chips / soft fills */
  --cc-tint-teal:  #e2f7f3;
  --cc-border:     #e6ecf3;
  --cc-line:       #eef2f7;

  --cc-radius-sm:  10px;
  --cc-radius:     16px;
  --cc-radius-lg:  22px;
  --cc-pill:       999px;

  --cc-shadow:     0 10px 34px rgba(15, 27, 45, .08);
  --cc-shadow-h:   0 22px 48px rgba(15, 27, 45, .16);
  --cc-shadow-sm:  0 6px 20px rgba(15, 27, 45, .06);

  --cc-font:       "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --cc-header-h:   92px;
  --cc-container:  1200px;
}

/* ----- Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--cc-font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--cc-muted);
  background: var(--cc-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cc-font);
  color: var(--cc-ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1rem; }

a { color: var(--cc-blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cc-blue-d); }

img { max-width: 100%; height: auto; }

ul { margin: 0; padding: 0; }

::selection { background: var(--cc-blue); color: #fff; }

:focus-visible { outline: 2px solid var(--cc-blue); outline-offset: 2px; }

/* ----- Layout primitives --------------------------------------------------- */

.container { max-width: var(--cc-container); padding-left: 20px; padding-right: 20px; }

.gap { padding: 100px 0; }
.gap.no-top { padding-top: 0; }
.gap.no-bottom { padding-bottom: 0; }

/* Inner pages have no hero banner — offset content below the fixed header */
body.cc-inner { padding-top: 97px; }

/* a light, recessed band */
.cc-soft { background: var(--cc-surface); }

/* ----- Section headings ---------------------------------------------------- */

.heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.heading span {
  order: -1;                      /* eyebrow sits above the title */
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cc-blue);
  margin-bottom: 14px;
}
.heading h2 {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  margin: 0;
}

/* left-aligned heading used inside heading-flex */
.heading.two { align-items: flex-start; text-align: left; margin: 0; max-width: none; }

.heading-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}

/* ----- Buttons ------------------------------------------------------------- */

.btn,
a.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: var(--cc-pill);
  background: var(--cc-blue);
  color: #fff;
  font-family: var(--cc-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  transition: background .22s ease, transform .22s ease, box-shadow .22s ease, color .22s ease, border-color .22s ease;
  box-shadow: 0 8px 20px rgba(45, 108, 223, .22);
}
.btn span { color: inherit; }
.btn i { font-size: 0.85em; }
.btn:hover {
  background: var(--cc-blue-d);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(45, 108, 223, .30);
}

/* secondary / ghost variant */
.btn.is-dark { background: var(--cc-ink); box-shadow: 0 8px 20px rgba(15, 27, 45, .18); }
.btn.is-dark:hover { background: var(--cc-ink-soft); }

.btn.is-ghost {
  background: transparent;
  color: var(--cc-ink);
  border-color: var(--cc-border);
  box-shadow: none;
}
.btn.is-ghost:hover { background: var(--cc-surface); color: var(--cc-blue); border-color: var(--cc-blue); }

/* keep WhatsApp brand colour */
.btn.is-wa { background: #25D366; box-shadow: 0 8px 20px rgba(37, 211, 102, .25); color: #fff; }
.btn.is-wa:hover { background: #1ebe5a; }

/* ----- Header / navigation (light) ---------------------------------------- */

header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--cc-border);
  padding: 16px 0;
  transition: padding .3s ease, box-shadow .3s ease;
}
header .bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header .top-bar { display: none; }

header .navbar { display: flex; }
header .navbar-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
header .navbar-links > li > a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cc-ink);
  border-radius: var(--cc-radius-sm);
}
header .navbar-links > li > a:hover { color: var(--cc-blue); background: var(--cc-surface); }
header .navbar-links > li > a.active { color: var(--cc-blue); background: var(--cc-tint); }

/* ----- Logo ---------------------------------------------------------------- */

.cc-logo { display: inline-flex; align-items: center; gap: 14px; }
.cc-logo .cc-logo__dove { height: 64px; width: auto; display: block; }
.cc-logo .cc-logo__text { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.cc-logo .cc-logo__name {
  font-family: var(--cc-font);
  font-weight: 700; font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--cc-ink);
}
.cc-logo .cc-logo__place {
  font-family: var(--cc-font);
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--cc-blue);
  margin-top: 6px;
}

/* ----- Home hero ----------------------------------------------------------- */

/* swiper navigation arrows (sermons carousel; the hero defines its own) */
.swiper-button { display: flex; gap: 12px; }
.swiper-button > div,
.swiper-button-next, .swiper-button-prev,
.swiper-button-next-2, .swiper-button-prev-2 {
  position: static;
  width: 50px; height: 50px;
  margin: 0;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--cc-border);
  color: var(--cc-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all .22s ease;
}
.swiper-button > div::after { display: none; }
.swiper-button > div:hover,
.swiper-button-next:hover, .swiper-button-prev:hover {
  background: var(--cc-blue); color: #fff; border-color: var(--cc-blue);
  transform: translateY(-2px);
}
.hero-section .swiper-button {
  position: absolute;
  right: 20px; bottom: 40px;
  z-index: 5;
}

/* ----- Page hero (inner pages) — light ------------------------------------ */

.cc-page-hero {
  position: relative;
  padding: 150px 0 70px;
  text-align: center;
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--cc-border);
}
.cc-page-hero::before { display: none; }
.cc-page-hero__title {
  font-family: var(--cc-font);
  font-weight: 700;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  color: var(--cc-ink);
  margin: 0 0 14px;
}
.cc-page-hero__crumbs {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  font-size: 15px; font-weight: 600;
  color: var(--cc-muted);
}
.cc-page-hero__crumbs a { color: var(--cc-blue); }
.cc-page-hero__crumbs span { color: var(--cc-muted); }
.cc-page-hero__crumbs .cc-page-hero__current { color: var(--cc-ink); }

/* ----- Accordion (FAQ) ----------------------------------------------------- */

.accordion { display: flex; flex-direction: column; gap: 16px; }
.accordion-item {
  background: #fff;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow-sm);
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.accordion-item.active { border-color: #cdddf8; box-shadow: var(--cc-shadow); }
.accordion-item .heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0; max-width: none; text-align: left;
  flex-direction: row;
  padding: 22px 26px;
  cursor: pointer;
}
.accordion-item .heading .title {
  font-family: var(--cc-font);
  font-weight: 700;
  font-size: 18px;
  color: var(--cc-ink);
  flex: 1;
}
.accordion-item .heading .icon {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--cc-tint);
  color: var(--cc-blue);
  position: relative;
  transition: background .25s ease, color .25s ease;
}
.accordion-item .heading .icon::before,
.accordion-item .heading .icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.accordion-item .heading .icon::before { width: 13px; height: 2px; }
.accordion-item .heading .icon::after { width: 2px; height: 13px; transition: transform .25s ease; }
.accordion-item.active .heading .icon { background: var(--cc-blue); color: #fff; }
.accordion-item.active .heading .icon::after { transform: translate(-50%, -50%) scaleY(0); }
.accordion-item .content { display: none; padding: 0 26px 24px; }
.accordion-item .content p { margin: 0; color: var(--cc-muted); }

/* ----- Footer (navy) ------------------------------------------------------- */

footer {
  background: var(--cc-ink) !important;
  color: #aebacb;
  padding-top: 80px;
}
footer .footer-head {
  text-align: center;
  padding-bottom: 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
footer .footer-head .cc-logo { justify-content: center; margin-bottom: 22px; }
footer .footer-head .cc-logo__name { color: #fff; }
footer .footer-head .cc-logo__place { color: var(--cc-teal); }
footer .footer-head h3 {
  font-family: var(--cc-font);
  font-weight: 500; font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  color: #e7edf5;
  max-width: 720px; margin: 0 auto 8px;
  letter-spacing: 0;
}
footer .footer-head span { color: var(--cc-teal); font-weight: 700; font-style: italic; }

footer .footer-bottom { padding-bottom: 36px; }
footer .get-in-touch { display: flex; gap: 16px; align-items: flex-start; }
footer .get-in-touch > div:first-child i {
  display: inline-flex;
  flex: 0 0 auto;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
}
footer .get-in-touch > div:first-child i svg { width: 22px; height: 22px; display: block; }
footer .get-in-touch svg path { fill: var(--cc-teal); stroke: var(--cc-teal); }
footer .get-in-touch span { color: #8493a8; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
footer .get-in-touch h6 { margin: 4px 0 0; font-size: 16px; }
footer .get-in-touch h6 a { color: #fff; font-weight: 600; }
footer .get-in-touch h6 a:hover { color: var(--cc-teal); }
footer .get-in-touch p { margin: 4px 0 0; color: #aebacb; font-size: 15px; }

footer .social-media { display: flex; gap: 12px; list-style: none; }
footer .social-media li a {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .06);
  color: #cdd7e4;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}
footer .social-media li a:hover { background: var(--cc-blue); color: #fff; transform: translateY(-2px); }

footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 26px 0;
  text-align: center;
}
footer .copyright p { margin: 0; color: #8493a8; font-size: 14px; }

/* ----- nice-select (sermon filters) --------------------------------------- */

.nice-select { font-family: var(--cc-font); }
.nice-select .list { font-family: var(--cc-font); }
.nice-select .option:hover,
.nice-select .option.selected.focus { background: var(--cc-tint); }
