/* ==========================================================
   THE BIBLE COLLECTIVE
   Clean homepage stylesheet – revision pass
   Focus: global width, hero proportions, campus section, and
   tighter section rhythm to better match the Figma.
   ========================================================== */

@font-face {
  font-family: "Editorial Today";
  src: url("../fonts/EditorialToday-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("../fonts/GothamBook.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("../fonts/GothamBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --charcoal: #111516;
  --gold: #F1AA41;
  --green: #6B7B67;
  --sand: #D4CFC7;
  --white: #FEFEFE;
  --ink: #111516;
  --muted: #777777;
  --line: rgba(17, 21, 22, .14);

  --font-display: "Editorial Today", "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --font-sans: "Gotham", "Avenir Next", "Montserrat", Arial, sans-serif;

  --shell: 1390px;
  --radius: 5px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(calc(100% - 64px), var(--shell)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.035em;
}
h2 { font-size: clamp(2.8rem, 4vw, 4.7rem); line-height: .96; margin-bottom: .35rem; }
h3 { line-height: 1.15; }
em { color: var(--gold); font-style: normal; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: .78rem;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); background: #f4b85e; }
.button-small { min-height: 38px; padding: 8px 18px; }
.button-outline { background: transparent; border-color: var(--gold); }
.button-outline-light { background: transparent; border-color: var(--gold); color: var(--white); }
.text-link { font-size: .78rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.text-link-light { color: var(--white); }
.button-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* Header */
.site-header { padding: 22px 0; background: var(--white); position: relative; z-index: 10; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand img { width: 150px; height: auto; }
.primary-nav { display: flex; align-items: center; gap: 34px; font-size: .72rem; font-weight: 700; }
.primary-nav > a:not(.button) { position: relative; }
.primary-nav > a:not(.button)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px;
  background: var(--gold); transition: width .18s ease;
}
.primary-nav > a:not(.button):hover::after { width: 100%; }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; }
.menu-toggle span:not(.sr-only) { display: block; width: 25px; height: 2px; background: var(--charcoal); margin: 5px 0; }

/* Hero */
.hero { padding: 22px 0 62px; overflow: hidden; }
.hero-inner { position: relative; }
.hero-copy { text-align: center; max-width: 980px; margin: 0 auto 42px; position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(4.8rem, 6.2vw, 6.6rem);
  line-height: .8;
  letter-spacing: -.05em;
  margin-bottom: 22px;
}
.hero-copy p { max-width: 650px; margin: 0 auto 24px; color: #666; font-size: .84rem; line-height: 1.55; }
.hero-image-wrap { border-radius: var(--radius); overflow: hidden; }
.hero-image-wrap img { aspect-ratio: 2.15 / 1; object-fit: cover; }

.scribble {
  position: absolute;
  font-family: "Bradley Hand", "Segoe Print", cursive;
  font-size: .72rem;
  line-height: 1.05;
  font-weight: 700;
  transform: rotate(-7deg);
  z-index: 1;
}
.scribble-one { left: .8%; top: 6px; }
.scribble-two { right: 1.6%; top: 40px; transform: rotate(8deg); }
.scribble-three { left: .8%; top: 142px; transform: rotate(-4deg); }
.scribble-four { right: 1%; top: 156px; transform: rotate(-8deg); }

/* Section heading */
.section-heading { margin-bottom: 28px; }
.section-heading h2 { font-size: clamp(3rem, 4.1vw, 4.6rem); }
.section-heading p { margin: 0; color: #6c6c6c; font-size: .92rem; }
.heading-row { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.heading-row > div { max-width: 760px; }
.section-heading-light h2, .section-heading-light p { color: var(--white); }

/* Campus */
.section-dark { background: var(--charcoal); color: var(--white); }
.campus-section {
  padding: 58px 0 66px;
  position: relative;
  overflow: hidden;
}
.campus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  position: relative;
  z-index: 2;
}
.campus-card {
  border: 1px solid rgba(255,255,255,.26);
  border-radius: var(--radius);
  overflow: hidden;
  background: #1B2122;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.campus-card > img {
  aspect-ratio: 1.86 / 1;
  object-fit: cover;
}
.card-body { padding: 18px 20px 20px; }
.campus-card .card-body { display: flex; flex: 1; flex-direction: column; }
.campus-card h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.02em;
}
.article-card h3, .event-card h3 { margin-bottom: 10px; font-size: 1.08rem; }
.meta {
  margin: 0 0 8px;
  color: inherit;
  opacity: .94;
  font-size: .88rem;
  line-height: 1.35;
}
.campus-card .meta {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 24px;
}
.campus-card .meta::first-letter { font-size: 0; }
.campus-card .meta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.campus-card .meta:nth-of-type(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23F1AA41' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='15' rx='2'/%3E%3Cpath d='M8 3.5v4M16 3.5v4M3.5 10h17'/%3E%3C/svg%3E");
}
.campus-card .meta:nth-of-type(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23F1AA41' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6-5.1-6-10a6 6 0 1 1 12 0c0 4.8-6 10-6 10Z'/%3E%3Ccircle cx='12' cy='11' r='2.2'/%3E%3C/svg%3E");
}
.campus-card .button { margin-top: auto; align-self: flex-start; padding: 9px 22px; }
.campus-card-cta {
  position: relative;
  display: flex;
  align-items: stretch;
  border-color: rgba(241,170,65,.75);
  background: #23292B;
}
.campus-card-cta::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 1.86 / 1;
  flex: 0 0 auto;
  background:
    linear-gradient(180deg, rgba(17,21,22,.10), rgba(17,21,22,.18)),
    url("../images/contact-campus.jpg") center/cover no-repeat;
  filter: blur(2.25px) saturate(.82);
  transform: scale(1.03);
  transform-origin: center;
}
.campus-card-cta .card-body { padding: 18px 20px 20px; }
.campus-card-cta h3 { margin-bottom: 10px; }
.campus-card-cta p {
  color: #E2E3E3;
  font-size: .9rem;
  line-height: 1.45;
  max-width: 270px;
  margin-bottom: 20px;
}

.wave {
  position: absolute;
  pointer-events: none;
  opacity: .96;
  background-repeat: no-repeat;
  background-size: contain;
}
.wave-left {
  width: 150px;
  height: 372px;
  left: -26px;
  top: 118px;
  background-image: url("../images/campus-lines-left.png");
  background-position: left top;
}
.wave-right {
  width: 360px;
  height: 210px;
  right: -26px;
  bottom: -8px;
  background-image: url("../images/campus-lines-right.png");
  background-position: right bottom;
}

/* Study */
.study-section { background: #F5F4F2; }
.study-grid {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.1fr);
  min-height: 640px;
}
.study-copy { padding: 70px 50px 68px 0; align-self: center; }
.study-copy h2 { font-size: clamp(2.95rem, 4.5vw, 4.6rem); line-height: .98; }
.study-copy .intro { color: #8A8A8A; max-width: 500px; font-size: .92rem; }
.study-photo { min-height: 640px; overflow: hidden; }
.study-photo img { width: 100%; height: 100%; object-fit: cover; }
.steps { margin: 26px 0 30px; }
.step { display: grid; grid-template-columns: 62px 1fr; gap: 15px; margin: 0 0 22px; }
.step-number { font-family: var(--font-display); color: var(--gold); font-size: 3rem; line-height: .9; }
.step h3 { margin-bottom: 5px; font-size: 1.05rem; }
.step p { color: #888; margin: 0; max-width: 500px; font-size: .92rem; }

/* Articles */
.articles-section, .testimonials-section, .events-section { padding: 72px 0; }
.article-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.article-card, .event-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.article-card img { aspect-ratio: 1.72/1; object-fit: cover; }
.article-card .card-body { padding: 16px 16px 18px; }
.article-card h3 { font-size: 1.06rem; }
.article-card p { color: #5F5F5F; font-size: .86rem; min-height: 78px; }
.article-card .button, .event-card .button { min-height: 36px; padding: 6px 15px; }

/* Testimonials */
.testimonials-section { padding-top: 18px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testimonial {
  margin: 0;
  border: 1px solid rgba(17,21,22,.12);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 268px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial > p { font-size: 1rem; line-height: 1.54; }
.testimonial footer { display: flex; align-items: center; gap: 11px; }
.testimonial footer span:last-child { display: flex; flex-direction: column; }
.testimonial small { color: #858585; font-size: .7rem; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--charcoal); color: var(--white); font-weight: 700;
}

/* Events */
.events-section { padding-top: 24px; }
.event-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.event-card img { aspect-ratio: 1.35/1; object-fit: cover; }
.event-card .card-body { padding: 15px; }
.event-card h3 { min-height: 44px; font-size: 1.03rem; }
.event-card .meta {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 22px;
  font-size: .8rem;
  color: #616161;
  opacity: 1;
}
.event-card .meta::first-letter { font-size: 0; }
.event-card .meta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.event-card .meta:nth-of-type(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23F1AA41' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='15' rx='2'/%3E%3Cpath d='M8 3.5v4M16 3.5v4M3.5 10h17'/%3E%3C/svg%3E");
}
.event-card .meta:nth-of-type(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23F1AA41' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6-5.1-6-10a6 6 0 1 1 12 0c0 4.8-6 10-6 10Z'/%3E%3Ccircle cx='12' cy='11' r='2.2'/%3E%3C/svg%3E");
}

/* CTA */
.final-cta { position: relative; overflow: hidden; }
.final-cta-inner {
  min-height: 304px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 54px;
  position: relative;
  z-index: 2;
}
.final-cta h2 {
  font-size: clamp(3.1rem, 4.7vw, 5rem);
  line-height: .97;
  margin: 0;
}
.wave-cta {
  width: 240px;
  height: 120px;
  left: 43%;
  bottom: 16px;
  opacity: .94;
  background-image: url("../images/campus-lines-right.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Footer */
.site-footer { padding: 42px 0 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 54px; }
.footer-brand img { width: 150px; }
.socials { display: flex; gap: 15px; margin-top: 18px; color: #555; }
.footer-column { display: flex; flex-direction: column; gap: 9px; font-size: .76rem; }
.footer-column strong { font-size: .72rem; margin-bottom: 3px; }
.footer-column a { color: #666; }

/* Responsive */
@media (max-width: 1100px) {
  .shell { width: min(calc(100% - 44px), var(--shell)); }
  .hero h1 { font-size: clamp(4.2rem, 7vw, 5.8rem); }
  .campus-grid { gap: 22px; }
  .event-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  .primary-nav {
    display: none; position: absolute; top: 77px; left: 24px; right: 24px;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px;
    background: var(--white); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.09);
  }
  .primary-nav.open { display: flex; }
  .primary-nav > a { padding: 13px 12px; }
  .primary-nav .button { margin-top: 6px; }
  .menu-toggle { display: block; }
  .scribble { display: none; }

  .hero { padding-top: 12px; }
  .hero-copy { max-width: 760px; }
  .hero h1 { font-size: clamp(3.8rem, 11vw, 5rem); }

  .campus-grid { grid-template-columns: 1fr 1fr; }
  .campus-card-cta { grid-column: 1 / -1; }
  .wave-left { left: -44px; top: 112px; opacity: .65; }
  .wave-right { right: -72px; bottom: -24px; opacity: .65; }

  .study-grid { grid-template-columns: 1fr; width: 100%; }
  .study-copy { width: min(calc(100% - 48px), var(--shell)); margin: auto; padding: 60px 0; }
  .study-photo { min-height: 480px; }

  .article-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .final-cta-inner { min-height: 340px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .hero { padding-bottom: 42px; }
  .hero-copy { margin-bottom: 26px; }
  .hero h1 { font-size: clamp(3.15rem, 13vw, 4rem); line-height: .84; }
  .hero-image-wrap img { aspect-ratio: 1.25 / 1; }

  .heading-row { align-items: flex-start; flex-direction: column; }
  .campus-grid, .event-grid { grid-template-columns: 1fr; }
  .campus-card-cta { grid-column: auto; }
  .campus-card > img, .campus-card-cta::before { aspect-ratio: 1.55 / 1; }
  .wave-left { width: 108px; height: 270px; left: -58px; top: 90px; }
  .wave-right { width: 260px; height: 160px; right: -92px; bottom: -12px; }

  .study-copy { padding: 48px 0; }
  .study-photo { min-height: 360px; }

  .articles-section, .testimonials-section, .events-section { padding: 52px 0; }
  .final-cta h2 { font-size: clamp(2.7rem, 12vw, 3.5rem); }
  .wave-cta { left: 50%; transform: translateX(-10%); bottom: -6px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
