/* ===========================================================================
   The Splitting Axe — main stylesheet
   ---------------------------------------------------------------------------
   Written "mobile first": the plain rules are for phones, and the
   @media (min-width: …) blocks add changes for bigger screens.

   Sections:
     1. Settings (colors, fonts, spacing)   ← change the look here
     2. Fonts
     3. Base / reset
     4. Layout helpers
     5. Buttons
     6. Header & navigation
     7. Footer
     8. Home page
     9. Legal pages (Privacy Policy, Terms of Service)
   =========================================================================== */


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

:root {
  /* Colors */
  --navy:        #14213d;   /* dark sections, gift card, check-list text */
  --orange:      #fca311;   /* ribbon, accent words, ✓ marks, small labels */
  --button:      #f5a300;   /* "Get The App" buttons */
  --button-edge: #ff8a00;   /* thin border around the orange buttons */
  --gray:        #666666;   /* "Donations" button */
  --give:        #00db72;   /* Tithe.ly "Give" button */
  --text:        #111111;   /* body text on white */
  --text-muted:  rgba(20, 33, 61, 0.7);   /* navy at 70% — intro text under headings */
  --footer:      #111111;
  --phone-edge:  #4f4f4f;   /* frame around the app screenshots */

  /* Fonts */
  --font-body:    "Geist", system-ui, sans-serif;              /* paragraphs, menu, buttons */
  --font-heading: "Libre Baskerville", Georgia, serif;         /* headings & Scripture */
  --font-label:   "Heebo", "Arial Black", sans-serif;          /* ✓ lists, counters, small caps labels */

  /* Sizes */
  --container:   1080px;    /* max page width */
  --narrow:      820px;     /* max width for long reading text */
  --header-height: 71px;
  --section-space: clamp(3.5rem, 7vw, 5.5rem);   /* top & bottom padding of each band */
}


/* ===== 2. Fonts (self-hosted — no Google requests) ======================= */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900;   /* one file covers every weight */
  font-display: swap;
}
@font-face {
  font-family: "Heebo";
  src: url("/assets/fonts/heebo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("/assets/fonts/libre-baskerville-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("/assets/fonts/libre-baskerville-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}


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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);  /* so #links aren't hidden under the header */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;       /* 18px */
  font-weight: 300;          /* the site's light, airy text */
  line-height: 1.5;
  color: var(--text);
  background: #fff;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.75rem); }     /* up to 60px */
h2 { font-size: clamp(2rem, 4.5vw, 2.95rem); }     /* up to 47px */
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

a { color: #0a6ebd; }

strong { font-weight: 600; }

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

/* Visible focus ring for keyboard users */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* "Skip to content" link — hidden until a keyboard user tabs to it */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: #fff;
}
.skip-link:focus { left: 0; }

/* Text only screen readers hear (e.g. "Menu" on the ☰ button) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


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

/* Centers content and keeps it from getting too wide */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container.narrow { max-width: var(--narrow); }

/* One full-width band of the page */
.section { padding-block: var(--section-space); }

/* Navy band with white text */
.section-dark {
  background: var(--navy);
  color: #fff;
}

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

/* Orange highlight on a word in a heading, e.g. Belief <span class="accent">Systems</span> */
.accent { color: var(--orange); }

/* Navy-gray intro text */
.muted { color: var(--text-muted); }

/* A photo that fills its section from behind (hero & legal banner).
   The section's ::after adds the navy tint on top of it. */
.bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}


/* ===== 5. Buttons ======================================================== */

.button {
  display: inline-block;
  padding: 0.4rem 1.25rem;
  border: 1px solid var(--button-edge);
  border-radius: 15px;
  background: var(--button);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 2.1;
  text-decoration: none;
  box-shadow: 6px 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, filter 0.2s;
}
.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.button-gray {
  background: var(--gray);
  border-color: var(--gray);
}

/* Buttons side by side, wrapping on small phones */
.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem clamp(1.5rem, 8vw, 7rem);
}


/* ===== 6. Header & navigation ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  max-width: 1400px;
}

/* "The Splitting Axe" — top left */
.brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}

/* ☰ button (phones only) */
.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
/* Three bars drawn with one element and its shadows */
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after  { top: 7px; }
/* Turns into an × when open */
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after  { transform: translateY(-7px) rotate(-45deg); }

/* Phone menu: drops down under the header */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}
.js .site-nav:not(.is-open) { display: none; }   /* starts closed when JavaScript is on */

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem 1rem;
}
.nav-list a {
  display: block;
  padding: 0.6rem 0;
  color: var(--text);
  text-decoration: none;
}
.nav-list a:hover { color: var(--orange); }

/* Desktop: menu sits in the header, no ☰ button */
@media (min-width: 800px) {
  .menu-toggle { display: none; }

  .site-nav,
  .js .site-nav:not(.is-open) {
    display: block;
    position: static;
    box-shadow: none;
  }

  .nav-list {
    display: flex;
    gap: 1.5rem;
    padding: 0;
  }
  .nav-list a { padding: 0.25rem 0; }
}


/* ===== 7. Footer ========================================================= */

.site-footer {
  padding: 1.5rem 0 1rem;
  background: var(--footer);
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-logo img { width: 300px; }

/* Copyright · legal links · credit — stacked on phones, one row on desktop */
.footer-bottom {
  display: grid;
  gap: 0.5rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a { text-decoration: none; opacity: 0.75; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }

@media (min-width: 900px) {
  .site-footer .container { max-width: 1400px; }

  .footer-bottom {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .footer-bottom > :first-child { text-align: left; }
  .footer-bottom > :last-child  { text-align: right; }
}


/* ===== 8. Home page ====================================================== */

/* ----- Hero: photo + navy tint, slogan, buttons, phone ------------------- */
.hero {
  position: relative;
  isolation: isolate;          /* keeps the photo & tint behind the text */
  padding: 3rem 0 6rem;
  color: #fff;
  text-align: center;
}
/* The navy tint over the photo */
.hero::after,
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(20, 33, 61, 0.9);
}

/* Orange strip across the top */
.ribbon {
  max-width: 900px;
  margin: 0 auto 1.25rem;
  padding: 0.5rem 1.5rem;
  background: var(--orange);
  color: #000;
  font-size: clamp(0.85rem, 1.6vw, 1.125rem);
  font-weight: 900;
  letter-spacing: 0.25em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* "Biblical & Clear / Share the truth." (home hero and legal banner) */
.slogan {
  margin: 0 0 1.5rem;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 500;
  line-height: 1.15;
}
.slogan em {
  display: block;
  color: var(--orange);
}

.hero-intro {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  line-height: 1.4;
}

.hero .phone { margin-top: 2.75rem; }

/* ----- App screenshot in a phone frame ({% phone %} shortcode) ----------- */
.phone {
  width: min(320px, 80vw);
  margin: 0 auto;
  border: 8px solid var(--phone-edge);
  border-radius: 40px;
  overflow: hidden;           /* rounds the screenshot's corners too */
  background: #000;
}
.phone img { width: 100%; }

/* The big one in the hero: darker frame that floats on a shadow */
.phone--hero {
  border: 10px solid #1c1c1c;
  border-radius: 30px;
  box-shadow: 0 2px 18px 1px #000;
}

/* ----- "Be Prepared" motto row ------------------------------------------- */
.section-dark h2 { color: #fff; }

.motto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 4rem;
  list-style: none;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  text-transform: uppercase;
}
@media (min-width: 800px) {
  .motto {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}

/* ----- Feature rows: phone + heading + ✓ list ---------------------------- */
.feature-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.feature-intro {
  color: var(--text-muted);
  font-size: 1.125rem;
}
.section-dark .feature-intro { color: rgba(255, 255, 255, 0.8); }
.section-dark .feature-intro strong { color: #fff; }

/* Twisted Verses: orange line along the bottom of the navy band */
.feature-underline { border-bottom: 8px solid var(--orange); }

@media (min-width: 800px) {
  /* A little wider than the rest of the page, with more room for the text */
  .feature-grid {
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    max-width: 1200px;
  }
  .feature-reverse .feature-grid { grid-template-columns: 3fr 2fr; }
  /* Phone on the right instead of the left */
  .feature-reverse .phone { order: 2; }
}

/* ✓ list — bold, spaced-out capitals */
.checklist {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--navy);
  font-family: var(--font-label);
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.35;
  text-transform: uppercase;
}
.checklist li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.9em;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
}
.section-dark .checklist { color: #fff; }

/* "Add your own data as you grow!" under the Bible row */
.grow { margin-top: var(--section-space); }
.grow p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ----- Theme verse + counters -------------------------------------------- */
.theme-verse {
  max-width: 1100px;
  margin: 0 auto 3.5rem;
  color: rgba(255, 255, 255, 0.52);   /* faint, but still readable (4.5:1) */
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.8vw, 1.375rem);
  font-style: italic;
  line-height: 1.4;
  text-align: center;
}
.theme-verse cite { font-style: inherit; }
.theme-verse cite::before { content: "– "; }

.counters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--orange);
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
}
.counter-number {
  display: block;
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: clamp(2.75rem, 5vw, 3.75rem);
  letter-spacing: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums;   /* digits don't wobble while counting */
}
@media (min-width: 800px) {
  .counters { grid-template-columns: repeat(4, 1fr); }
}

/* ----- Base Camp --------------------------------------------------------- */
/* Heading with a small label under it and a short orange line */
.heading-underline small {
  display: block;
  margin-top: 0.6rem;
  color: rgba(20, 33, 61, 0.68);
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.heading-underline::after {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  margin: 1rem auto 0;
  background: var(--orange);
}
.heading-underline { margin-bottom: 2rem; }

.coming-soon {
  margin: 2.5rem 0 0;
  color: var(--orange);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 2.95rem);
}

/* ----- Install ----------------------------------------------------------- */
#install p { margin-bottom: 1.75rem; }

/* ----- Support the Mission ----------------------------------------------- */
/* Small orange label above a heading */
.kicker {
  margin-bottom: 0.75rem;
  color: var(--orange);
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* Wide enough for the heading to fit on one line on desktop */
.support-intro { max-width: 960px; }
.support-intro p {
  max-width: 760px;
  margin-inline: auto;
}

.support-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin-top: 3rem;
  font-size: 1rem;
}
.support-text p { margin-bottom: 1.5em; }
.support-text a { text-decoration: none; }

@media (min-width: 800px) {
  .support-grid {
    grid-template-columns: 1fr 290px;
    gap: 5rem;
    max-width: 1000px;
  }
}

/* Navy card with the Give button */
.gift-card {
  width: 100%;
  max-width: 290px;
  margin-inline: auto;
  padding: 1.75rem 1.5rem;
  border-radius: 26px;
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.gift-card h3 { margin: 0.75rem 0 0.25rem; }

.gift-icon {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Tithe.ly's button — our styles replace its plain default look */
.give-button {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 4px;
  background: var(--give);
  color: #fff;
  font: 700 1.125rem var(--font-body);
  cursor: pointer;
  transition: filter 0.2s;
}
.give-button:hover { filter: brightness(1.08); }


/* ===== 9. Legal pages (Privacy Policy, Terms of Service) ================= */

/* Short navy banner with the slogan */
.banner {
  position: relative;
  isolation: isolate;
  padding: 3rem 1.25rem;
  color: #fff;
  text-align: center;
}
.banner .slogan { margin: 0; }

/* Long reading text */
.prose h1 {
  font-size: clamp(2rem, 4.5vw, 2.6rem);
}
.prose h2 {
  margin-top: 0.5em;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
}
.prose h3 {
  margin-top: 1.5em;
  font-size: 1.15rem;
}
.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}
.prose li { margin-bottom: 0.3em; }
.prose hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid #e5e5e5;
}
