/* ===========================================================================
   ChurchBus.io home page
   ---------------------------------------------------------------------------
   Colors and fonts borrowed from rushvillebaptist.org (navy and gold),
   laid out like a software product page.
   Written "mobile first": plain rules are for phones, @media blocks add
   changes for bigger screens.

   Sections:
     1. Settings (colors, fonts, sizes)   <- change the look here
     2. Fonts
     3. Base
     4. Layout helpers
     5. Buttons, pills, tags, check lists
     6. Header
     7. Hero and the dashboard drawing
     8. Scripture band and "Why it matters"
     9. Feature cards
    10. Driver section and the phone drawing
    11. How it works
    12. Call to action
    13. Footer
   =========================================================================== */


/* ===== 1. Settings ======================================================= */

:root {
  /* Colors */
  --navy:        #243f82;   /* main blue: links, buttons */
  --navy-dark:   #14295e;   /* headings, dark bands */
  --gold:        #d4a73c;   /* accents; on dark backgrounds only for text */
  --gold-text:   #8a6414;   /* gold that is readable on white */
  --text:        #1f2433;
  --text-muted:  #5b6275;
  --bg:          #ffffff;
  --bg-tint:     #f3f5fa;   /* light blue-gray for alternating sections */
  --border:      #e1e5ef;

  /* Small status colors used in the app drawings */
  --green-bg: #e3f4e8;  --green: #1f7a3d;
  --red-bg:   #fde7e7;  --red:   #a12020;
  --amber-bg: #fdf1d8;  --amber: #8a5a00;

  /* Fonts */
  --font-heading: "Poppins", system-ui, sans-serif;
  --font-body:    "Open Sans", system-ui, sans-serif;
  --font-serif:   "Lora", Georgia, serif;   /* Scripture */

  /* Sizes */
  --container:   1160px;
  --narrow:      720px;
  --radius:      12px;
  --shadow:      0 10px 30px rgba(20, 41, 94, 0.12);
  --shadow-soft: 0 2px 10px rgba(20, 41, 94, 0.06);
}


/* ===== 2. Fonts (self-hosted, no outside requests) ======================= */

@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-variable.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/lora-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/lora-italic-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}


/* ===== 3. Base =========================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3 {
  margin: 0 0 0.75rem;
  color: var(--navy-dark);
  font-family: var(--font-heading);
  line-height: 1.15;
}

p { margin: 0 0 1rem; }

a { color: var(--navy); }

/* The hidden SVG that holds the icon drawings */
.icon-sprite { position: absolute; width: 0; height: 0; }


/* ===== 4. Layout helpers ================================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.narrow { max-width: var(--narrow); }
.center { text-align: center; }

.section      { padding: 4rem 0; }
.section-tint { background: var(--bg-tint); }

.eyebrow {
  margin-bottom: 0.5rem;
  color: var(--gold-text);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-title { max-width: 24ch; font-size: 1.8rem; }
.section-intro { max-width: 60ch; color: var(--text-muted); }

/* Two columns side by side on wide screens (text + picture) */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .section       { padding: 6rem 0; }
  .section-title { font-size: 2.4rem; }
  .split         { grid-template-columns: 1fr 1fr; gap: 4rem; }
}


/* ===== 5. Buttons, pills, tags, check lists ============================== */

.button {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.button:hover { background: var(--navy-dark); border-color: var(--navy-dark); }

.button-small { padding: 0.45rem 1.1rem; font-size: 0.9rem; }

.button-outline { background: transparent; color: var(--navy); }
.button-outline:hover { color: #fff; }

/* Gold button for the dark call-to-action band */
.button-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}
.button-gold:hover { background: #fff; border-color: #fff; color: var(--navy-dark); }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.button-row.center { justify-content: center; }

/* Rounded label above the hero headline */
.pill {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border: 1px solid #ecd9a8;
  border-radius: 999px;
  background: #fbf3df;
  color: var(--gold-text);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Small colored labels inside the app drawings */
.tag {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}
.tag-green { background: var(--green-bg); color: var(--green); }
.tag-red   { background: var(--red-bg);   color: var(--red); }
.tag-amber { background: var(--amber-bg); color: var(--amber); }
.tag-gray  { background: #eceef3;         color: var(--text-muted); }

/* "Coming soon" label on feature cards */
.badge {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: #fbf3df;
  color: var(--gold-text);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  vertical-align: middle;
  white-space: nowrap;
}

/* List with a gold check mark before each line */
.check-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  margin-bottom: 0.4rem;
  padding-left: 1.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-text);
  font-weight: 700;
}


/* ===== 6. Header ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy-dark);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}
/* ".io" in gold, right against "ChurchBus" */
.logo-text em { color: var(--gold-text); font-style: normal; }
.logo-icon { width: 2rem; height: 2rem; color: var(--gold); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}
.nav-link { color: var(--text); text-decoration: none; }
.nav-link:hover { color: var(--navy); }

.site-nav a { white-space: nowrap; }

/* Smaller screens: keep just "Sign in" and the button next to the logo */
@media (max-width: 799px) {
  .nav-link:not(.nav-signin) { display: none; }
}
/* Phones: the hero already has both buttons, so the header keeps only "Sign in" */
@media (max-width: 479px) {
  .nav-cta { display: none; }
}


/* ===== 7. Hero and the dashboard drawing ================================= */

.hero {
  padding: 3.5rem 0 4rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-tint) 100%);
}

.hero-grid { display: grid; gap: 3rem; align-items: center; }

.hero h1 {
  margin-top: 1rem;
  font-size: 2.4rem;
}
.hero h1 em {
  color: var(--navy);
  font-style: normal;
  /* Gold underline under the second half of the headline */
  background: linear-gradient(transparent 70%, rgba(212, 167, 60, 0.35) 70%);
}
.hero-text { max-width: 54ch; color: var(--text-muted); font-size: 1.125rem; }

@media (min-width: 900px) {
  .hero      { padding: 5rem 0 6rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
  .hero h1   { font-size: 3.4rem; }
}

/* Browser-window drawing of the dashboard */
.app-window {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.app-window-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--border);
}
.app-window-bar span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #d5dae6;
}
.app-window-bar p {
  margin: 0 0 0 0.75rem;
  padding: 0.1rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.app-window-body { padding: 1.25rem; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.stat {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
}
.stat p      { margin: 0; color: var(--text-muted); font-size: 0.75rem; }
.stat strong { color: var(--navy-dark); font-family: var(--font-heading); font-size: 1.5rem; }

.rider-list { margin: 0; padding: 0; list-style: none; font-size: 0.9rem; }
.rider-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
.rider-list li:last-child { border-bottom: 0; }
.rider-list b { margin-right: auto; font-weight: 600; }


/* ===== 8. Scripture band and "Why it matters" ========================== */

.verse-band {
  padding: 3.5rem 0;
  background: var(--navy-dark);
}
.verse-band blockquote { margin: 0; }
.verse-band p {
  margin-bottom: 0.75rem;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.5;
}
.verse-band cite {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .verse-band   { padding: 4.5rem 0; }
  .verse-band p { font-size: 1.85rem; }
}

/* Three purposes, each with its verse, separated by a thin gold rule */
.purpose-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}
@media (min-width: 900px) { .purpose-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

.purpose {
  padding-top: 1.25rem;
  border-top: 3px solid var(--gold);
}
.purpose h3 { font-size: 1.3rem; }
.purpose p  { color: var(--text-muted); }

.purpose .purpose-verse {
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
}
.purpose .purpose-verse cite {
  display: block;
  margin-top: 0.15rem;
  color: var(--gold-text);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
}


/* ===== 9. Feature cards ================================================== */

.card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.card h3 { font-size: 1.1rem; }
.card p  { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  padding: 0.6rem;
  border-radius: 10px;
  background: var(--bg-tint);
  color: var(--navy);
}


/* ===== 10. Driver section and the phone drawing ========================== */

.phone {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 0.75rem;
  border-radius: 2.25rem;
  background: var(--navy-dark);
  box-shadow: var(--shadow);
}
.phone-screen {
  padding: 1.5rem 1rem 1rem;
  border-radius: 1.6rem;
  background: #fff;
  font-size: 0.85rem;
}
.phone-title { margin: 0; color: var(--navy-dark); font-family: var(--font-heading); font-weight: 600; }
.phone-sub   { color: var(--text-muted); font-size: 0.75rem; }

.stop {
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
}
.stop-address { margin: 0; color: var(--navy); font-weight: 600; text-decoration: underline; }
.stop-note    { margin: 0 0 0.6rem; color: var(--amber); font-size: 0.75rem; }

.stop-kids { margin: 0; padding: 0; list-style: none; }
.stop-kids li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
}
/* Check box drawn before each child; filled in when they got on */
.stop-kids li::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid #c3c9d8;
  border-radius: 5px;
}
.stop-kids li.on::before {
  content: "✓";
  display: grid;
  place-items: center;
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
}

.phone-button {
  margin: 1rem 0 0;
  padding: 0.6rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-align: center;
}


/* ===== 11. How it works ================================================== */

.steps {
  display: grid;
  gap: 1.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.steps li { counter-increment: step; }

/* Step number ("01", "02", ...) above each step */
.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
}
.steps h3 { font-size: 1.1rem; }
.steps p  { color: var(--text-muted); font-size: 0.97rem; }


/* ===== 12. Call to action ================================================ */

.cta {
  padding: 4.5rem 0;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #dfe5f3;
}
.cta h2 { color: #fff; font-size: 2rem; }
.cta-note { margin: 2rem auto 0; max-width: 52ch; color: #aab5d0; font-size: 0.9rem; }

@media (min-width: 900px) {
  .cta    { padding: 6rem 0; }
  .cta h2 { font-size: 2.6rem; }
}


/* ===== 13. Footer ======================================================== */

.site-footer {
  padding: 2rem 0;
  background: #0d1c44;
  color: #9aa6c4;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.footer-inner p   { margin: 0; }
.footer-inner nav { display: flex; gap: 1.5rem; }
.site-footer a    { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

.logo-small { color: #fff; font-size: 1.1rem; }
.logo-small .logo-text em { color: var(--gold); }
.logo-small .logo-icon { width: 1.6rem; height: 1.6rem; }
