/* CBA design tokens — matched to collinbaptist.com */
:root {
  --white: #ffffff;
  --black: #000000;
  --accent: hsl(143, 66%, 37%);
  --accent-hover: hsl(143, 66%, 32%);
  --light-accent: hsl(45, 12%, 87%);
  --dark-accent: hsl(111, 11%, 12%);
  --text-muted: hsl(111, 8%, 35%);
  --max-width: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Newsreader", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark-accent);
  padding: 1.1rem var(--gutter);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo img {
  height: 48px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--white);
  opacity: 0.9;
  transition: opacity 0.2s;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform 0.2s;
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 7rem) var(--gutter);
}

.section--dark {
  background: var(--dark-accent);
  color: var(--white);
}

.section--light {
  background: var(--light-accent);
  color: var(--black);
}

.section--white {
  background: var(--white);
  color: var(--black);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Hero */
.hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 31, 27, 0.55) 0%, rgba(28, 31, 27, 0.75) 100%),
    url("https://images.squarespace-cdn.com/content/v1/66031b93030aed6a378a6c61/57121ada-456a-41db-ab18-0fbe585b0bf0/CBA-Image-1.jpg") center / cover no-repeat;
  z-index: 0;
}

.hero .section-inner {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 1.5rem;
  max-width: 14ch;
  margin-inline: auto;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  opacity: 0.92;
  line-height: 1.55;
}

.hero-url {
  margin: 1.75rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.hero-url a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hero-url a:hover {
  opacity: 1;
}

/* Typography */
.display-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  text-align: center;
}

.section-lead {
  font-size: 1.2rem;
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3rem;
  color: var(--text-muted);
}

.section--dark .section-lead {
  color: rgba(255, 255, 255, 0.8);
}

.quote-block {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.45;
  text-align: center;
  max-width: 52rem;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--dark-accent);
}

.btn--dark {
  background: var(--dark-accent);
  color: var(--white);
  border-color: var(--dark-accent);
}

.btn--dark:hover {
  background: var(--black);
  border-color: var(--black);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Module grid */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.module-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.module-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.module-number {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.module-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
}

.module-card p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  flex: 1;
}

.module-card .btn {
  align-self: flex-start;
  padding: 0.65rem 1.25rem;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Feature columns */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-item {
  text-align: center;
}

.feature-item h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.feature-item p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.section--dark .feature-item p {
  color: rgba(255, 255, 255, 0.75);
}

/* Church CTA */
.church-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.church-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.church-cta p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 3.5rem var(--gutter) 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-contact p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  opacity: 0.6;
  text-align: center;
}

.site-copyright {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--dark-accent);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.25s, opacity 0.25s;
    pointer-events: none;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .church-cta {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
