/* =====================================================================
   COMPEL CAMPUS MINISTRY — STYLE
   Design tokens live at the top. Change a value here and it updates
   everywhere on the site.
   ===================================================================== */

:root {
  /* Colors */
  --purple-deep: #3B1F5C;
  --purple:      #6E3FA3;
  --purple-soft: #B79FD6;
  --cream:       #F7F1E4;
  --cream-dim:   #EFE6D2;
  --white:       #FFFFFF;
  --ink:         #1C1A1F;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1120px;
  --radius-arch: 240px 240px 8px 8px;
  --shadow-soft: 0 20px 50px -20px rgba(59, 31, 92, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--purple-deep);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--purple);
  margin-bottom: 0.75em;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color .2s ease;
}
.btn-primary { background: var(--purple-deep); color: var(--white); }
.btn-primary:hover { background: var(--purple); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--purple-deep); border-color: var(--purple-deep); }
.btn-outline:hover { background: var(--purple-deep); color: var(--white); transform: translateY(-2px); }
.btn-light { background: var(--cream); color: var(--purple-deep); }
.btn-light:hover { background: var(--white); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 228, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(59, 31, 92, 0.12);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 40px; height: 40px;
  border-radius: var(--radius-arch);
  background: linear-gradient(160deg, var(--purple) 0%, var(--purple-deep) 100%);
  flex: 0 0 auto;
}
.brand-mark-img {
  object-fit: cover;
  background: var(--white);
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--purple-deep);
  letter-spacing: -0.01em;
}
.brand-text span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); opacity: 0.65; }

nav.primary-nav { display: flex; align-items: center; gap: 6px; }
nav.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
nav.primary-nav a:hover, nav.primary-nav a.active { background: var(--purple-deep); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--purple-deep);
  border-radius: 10px;
  width: 44px; height: 40px;
  cursor: pointer;
  color: var(--purple-deep);
  font-size: 1.2rem;
}

@media (max-width: 820px) {
  nav.primary-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 28px 20px;
    border-bottom: 1px solid rgba(59,31,92,0.12);
    box-shadow: var(--shadow-soft);
  }
  nav.primary-nav.open { display: flex; }
  nav.primary-nav a { padding: 12px 10px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: 0.35em; }
.hero p.lead { font-size: 1.15rem; max-width: 46ch; color: rgba(28,26,31,0.8); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }
.hero-meeting {
  margin-top: 2.2em;
  padding: 18px 22px;
  background: var(--white);
  border-radius: 18px;
  border-left: 5px solid var(--purple);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-meeting span { display: block; font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--purple); margin-bottom: 4px; }

/* ---------- Gallery (arch frame, signature element) ---------- */
.gallery-frame {
  position: relative;
  border-radius: var(--radius-arch);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-soft);
  background: var(--purple-deep);
}
.gallery-frame::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius-arch);
  border: 10px solid var(--white);
  pointer-events: none;
}
.gallery-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.gallery-slide.is-active { opacity: 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots {
  position: absolute;
  bottom: 22px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
}
.gallery-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.55);
  cursor: pointer; padding: 0;
}
.gallery-dots button.is-active { background: var(--white); width: 22px; border-radius: 5px; }
.gallery-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); font-family: var(--font-display); font-size: 1.1rem;
  text-align: center; padding: 20px;
}

/* ---------- Full-width rotating band on other pages ---------- */
.gallery-strip {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 21 / 8;
  box-shadow: var(--shadow-soft);
  background: var(--purple-deep);
}
.gallery-strip .gallery-slide img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- This Week (dual campus) ---------- */
.week-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
@media (max-width: 820px) { .week-grid { grid-template-columns: 1fr; } }
.week-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--purple);
  display: flex;
  flex-direction: column;
}
.week-card .eyebrow { margin-bottom: 0.2em; }
.week-card h3 { margin-bottom: 1em; }
.week-body {
  background: var(--cream);
  border-radius: 14px;
  overflow: hidden;
  min-height: 300px;
  margin-bottom: 1.4em;
  flex: 1;
}
.week-iframe { width: 100%; height: 300px; border: 0; display: block; }
.week-fallback {
  padding: 26px 22px;
  text-align: center;
}
.week-fallback p { font-family: var(--font-display); font-size: 1.15rem; color: var(--purple-deep); margin-bottom: 0.5em; }
.week-fallback-note { font-family: var(--font-body) !important; font-size: 0.82rem !important; color: rgba(28,26,31,0.55) !important; }
.week-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.week-actions .btn { padding: 11px 20px; font-size: 0.88rem; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-dark {
  background: var(--purple-deep);
  color: var(--cream);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--purple-soft); }

.section-head { max-width: 60ch; margin-bottom: 2.4em; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--purple);
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: rgba(28,26,31,0.75); margin-bottom: 0; }

/* ---------- Find Us page ---------- */
.back-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--purple);
  text-decoration: none;
  margin-bottom: 1.4em;
}
.back-link:hover { text-decoration: underline; }

.campus-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  padding-bottom: 20px;
}
@media (max-width: 820px) { .campus-choice-grid { grid-template-columns: 1fr; } }
.campus-choice-card {
  display: block;
  text-decoration: none;
  background: var(--white);
  border-radius: 24px;
  padding: 44px 32px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border-top: 5px solid var(--purple);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.campus-choice-card:hover { transform: translateY(-4px); }
.campus-choice-mark {
  display: block;
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: var(--radius-arch);
  background: linear-gradient(160deg, var(--purple) 0%, var(--purple-deep) 100%);
}
.campus-choice-card h3 { margin-bottom: 0.3em; }
.campus-choice-card p { color: rgba(28,26,31,0.7); margin-bottom: 1.2em; }
.campus-choice-arrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--purple-deep);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 820px) { .info-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex; gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(59,31,92,0.14);
}
.info-list .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--purple); flex: 0 0 auto; margin-top: 8px;
}
.info-list strong { display: block; color: var(--purple-deep); font-family: var(--font-display); }
.map-embed {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 8px solid var(--white);
}
.map-embed iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- Calendar / Form pages ---------- */
.embed-shell {
  background: var(--white);
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}
.embed-shell iframe { width: 100%; border: 0; border-radius: 16px; display: block; }
.embed-missing {
  padding: 60px 30px;
  text-align: center;
  border: 2px dashed var(--purple-soft);
  border-radius: 16px;
  color: var(--purple-deep);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.page-hero {
  padding: 56px 0 8px;
}
.page-hero .eyebrow { margin-bottom: 0.3em; }

.campus-switch {
  display: inline-flex;
  background: var(--white);
  border-radius: 999px;
  padding: 5px;
  gap: 4px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 2.2em;
}
.campus-switch a {
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--purple-deep);
}
.campus-switch a.active { background: var(--purple-deep); color: var(--white); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 56px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1em; }
.footer-grid a { display: block; color: rgba(247,241,228,0.75); text-decoration: none; margin-bottom: 10px; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(247,241,228,0.15);
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(247,241,228,0.55);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-lg { margin-top: 2.5em; }
