/* SBC Design System — shared tokens & components
   Extracted from scottsdalebible.com (real CSS), 2026-05-06
   Free-font substitutes: Fraunces, Inter, Montserrat, EB Garamond */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800;9..144,900&family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@500;600;700&family=Montserrat:wght@500;600;700;800&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  /* color */
  --brand: #0095d5;
  --brand-bright: #00b2ff;
  --brand-deep: #006b9a;
  --ink: #1d2a3b;
  --ink-soft: #272727;
  --ink-muted: #3e3e3e;
  --ink-quiet: #6a7280;
  --accent-warm: #f0523d;
  --bg: #ffffff;
  --surface: #f6f6f6;
  --surface-2: #ececec;
  --border: #e7e7e7;
  --border-strong: #d0d0d0;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255,255,255,0.72);

  /* type */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-condensed: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-eyebrow: 'Montserrat', sans-serif;
  --font-scripture: 'EB Garamond', Georgia, serif;

  /* layout */
  --container: 1200px;
  --container-narrow: 880px;
  --gutter: 32px;
  --section: 120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }

/* TYPOGRAPHY ----------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "opsz" 144;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "opsz" 96;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.4em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "opsz" 72;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 36;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
}
.eyebrow {
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 16px;
  display: inline-block;
}
.eyebrow.on-dark { color: var(--brand-bright); }
.lede {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0 0 32px;
  max-width: 56ch;
}
p { margin: 0 0 1.1em; max-width: 72ch; }
.scripture {
  font-family: var(--font-scripture);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 36ch;
}
.scripture .ref {
  display: block;
  font-style: normal;
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--brand);
  margin-top: 24px;
}

/* BUTTONS -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid var(--brand);
  background: var(--brand);
  color: #fff;
  border-radius: 5px;
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  cursor: pointer;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn.secondary { background: transparent; color: var(--brand); }
.btn.secondary:hover { background: var(--brand); color: #fff; }
.btn.on-dark { background: #fff; border-color: #fff; color: var(--ink); }
.btn.on-dark:hover { background: var(--brand-bright); border-color: var(--brand-bright); color: #fff; }
.btn.warm { background: var(--accent-warm); border-color: var(--accent-warm); }
.btn.warm:hover { background: #d33d2a; border-color: #d33d2a; }
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  text-decoration: none;
  transition: color 160ms ease;
}
.btn-arrow .arrow {
  display: inline-block;
  transition: transform 200ms ease;
}
.btn-arrow:hover { color: var(--brand-bright); }
.btn-arrow:hover .arrow { transform: translateX(4px); }
.btn-arrow.on-dark { color: #fff; }
.btn-arrow.on-dark:hover { color: var(--brand-bright); }

/* VERTICAL LINE DIVIDER (signature) ----------------------- */
.vline {
  width: 1px;
  background: var(--ink);
  margin: 0 auto;
}
.vline.short { height: 56px; }
.vline.tall  { height: 220px; }
.vline.on-dark { background: rgba(255,255,255,0.4); }

/* LAYOUT --------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section) 0; }
.section-sm { padding: 64px 0; }

/* NAVIGATION ----------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: transparent;
  transition: background 220ms ease, box-shadow 220ms ease;
}
.nav.scrolled {
  background: #fff;
  box-shadow: 0 1px 0 var(--border);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.nav-brand img {
  height: 38px;
  width: auto;
}
.nav-brand .wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: color 140ms ease;
}
.nav-links a:hover { color: var(--brand); }
.nav.over-dark .nav-links a,
.nav.over-dark .nav-brand .wordmark { color: #fff; }
.nav.over-dark.scrolled .nav-links a,
.nav.over-dark.scrolled .nav-brand .wordmark { color: var(--ink); }

.nav-cta { /* small primary CTA in nav */
  padding: 10px 18px;
  font-size: 11px;
  letter-spacing: 0.14em;
}

/* CARDS ---------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -18px rgba(29,42,59,0.18);
}
.card .img {
  aspect-ratio: 16/10;
  background: var(--surface);
  background-size: cover;
  background-position: center;
}
.card .body { padding: 28px 28px 32px; }

/* CHIP / TAG ----------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(0,149,213,0.08);
  border: 1px solid rgba(0,149,213,0.18);
  color: var(--brand-deep);
  font-family: var(--font-eyebrow);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
}
.chip.warm {
  background: rgba(240,82,61,0.08);
  border-color: rgba(240,82,61,0.22);
  color: var(--accent-warm);
}

/* DARK SECTION (footer, feature block) -------------------- */
.dark {
  background: var(--ink);
  color: var(--text-on-dark);
}
.dark .h1, .dark .h2, .dark .h3, .dark .display { color: #fff; }
.dark .lede { color: var(--text-on-dark-muted); }
.dark .scripture { color: #fff; }
.dark .scripture .ref { color: var(--brand-bright); }

/* FOOTER --------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 80px 0 40px;
}
.footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer h4 {
  font-family: var(--font-eyebrow);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-bright);
  margin: 0 0 20px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 12px; }
.footer ul a { color: rgba(255,255,255,0.78); font-size: 14px; transition: color 140ms; }
.footer ul a:hover { color: #fff; }
.footer .footer-brand img { height: 44px; margin-bottom: 20px; }
.footer .footer-brand p { color: rgba(255,255,255,0.6); font-size: 14px; max-width: 320px; }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom .socials { display: flex; gap: 18px; }
.footer-bottom .socials a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: rgba(255,255,255,0.7);
  transition: all 160ms ease;
}
.footer-bottom .socials a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* HERO ----------------------------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: 160px 0 90px;
  color: #fff;
  overflow: hidden;
}
.hero .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29,42,59,0.4) 0%, rgba(29,42,59,0.1) 30%, rgba(29,42,59,0.85) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero .display { color: #fff; max-width: 16ch; }
.hero .lede { color: rgba(255,255,255,0.88); max-width: 50ch; }

/* RESPONSIVE ---------------------------------------------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 80px 0; }
}

/* ============ SIGNATURE PATTERNS ============ */
/* SBC-only extensions to the canonical section catalog.
   Per brand-spec.md → "Signature patterns (SBC-only)". */

/* WAYFINDING PHOTO -----------------------------------------
   Full-width campus photo with an absolute-positioned arrow
   glyph overlay. Arrow position is set per-instance via
   inline custom properties --arrow-x and --arrow-y on the
   element (e.g. style="--arrow-x:62%; --arrow-y:48%"). */
.sig-wayfinding-photo {
  --arrow-x: 50%;
  --arrow-y: 50%;
  --arrow-size: clamp(48px, 6vw, 96px);
  position: relative;
  width: 100%;
  margin: 0 0 28px;
}
.sig-wayfinding-photo .photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  overflow: hidden;
}
.sig-wayfinding-photo .photo::after {
  /* subtle scrim so the overlay arrow always reads */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29,42,59,0) 55%, rgba(29,42,59,0.18) 100%);
  pointer-events: none;
}
.sig-wayfinding-photo .arrow-overlay {
  position: absolute;
  left: var(--arrow-x);
  top: var(--arrow-y);
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--arrow-size);
  line-height: 1;
  color: #fff;
  text-shadow: 0 4px 20px rgba(29,42,59,0.55), 0 1px 2px rgba(29,42,59,0.4);
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.04em;
}
.sig-wayfinding-photo .caption {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 36;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  margin: 24px 0 8px;
}
.sig-wayfinding-photo .address-line {
  font-family: var(--font-eyebrow);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  margin: 0;
}

/* VERTICAL RULE DIVIDER (signature, sig-vrule) -------------
   Independent of the older .vline component. Centered 1px
   navy hairline; short = 50px, tall = 300px. Generous
   margin-block for breathing room between sections. */
.sig-vrule {
  width: 1px;
  background: var(--ink);
  margin: 56px auto;
  display: block;
}
.sig-vrule--short { height: 50px; }
.sig-vrule--tall  { height: 300px; margin: 96px auto; }
.sig-vrule.on-dark { background: rgba(255,255,255,0.4); }
