/* =========================
   Base + Palette
   ========================= */
:root {
  --black: #000;
  --charcoal: #1c1c1c;
  --nav-gray: #3E5557;
  --mid-gray: #A9A9A9;
  --light-gray: #E5E5E5;
  --white: #FFFFFF;
  --accent-red: #500;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--black);
  color: var(--white);
}

/* =========================
   Hero
   ========================= */
.hero {
  background-color: var(--black);
  color: var(--white);
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 10px;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.logo-wrap {
  width: 200px;
  height: 200px;
  margin: auto;
}

.logo-wrap img {
  width: 100%;
  height: 100%;
  display: block;
}

.foundations-logo-wrap {
  width: 100%;
  height: auto;
  margin: auto;
}

.foundations-logo-wrap img {
  width: 100%;
  height: 100%;
  display: block;
}

.site-title {
  font-family: 'Anton', 'Bebas Neue', system-ui, sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.25em;
  margin: 0 0 5px;
}

.site-subtitle {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--mid-gray);
  margin: 20px 0 20px;
}

.hero-nav {
  display: inline-flex;
  gap: 15px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid var(--white);
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-nav a:hover {
  background-color: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* =========================
   Sections
   ========================= */
.section {
  padding: 40px 20px;
}

.section-inner {
  max-width: 800px;
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 800px;
}

.section-dark {
  background-color: var(--charcoal);
  color: var(--white);
}

.section-light {
  background-color: var(--light-gray);
  color: var(--black);
}

.section-white {
  background-color: var(--white);
  color: var(--black);
}

.section-black {
  background-color: var(--black);
  color: var(--white);
}

.section h2 {
  font-family: 'Bebas Neue', 'Anton', system-ui, sans-serif;
  font-size: 2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.section p {
  line-height: 1.6;
  font-size: 0.98rem;
}

/* =========================
   Columns / Cards
   ========================= */
.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background-color: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 15px;
}

.section-light .card {
  background-color: #f3f3f3;
}

.card h3 {
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

/* =========================
   Projects Grid
   ========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project {
  border: 1px solid #ddd;
  padding: 15px;
  background-color: #fafafa;
}

.project h3 {
  font-family: 'Bebas Neue', system-ui, sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.project li {  
  display: list-item;
  margin-top: 10px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--black);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.project a {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.project a:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
}

/* =========================
   Philosophy / Contact
   ========================= */
.identity-line {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.6;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  color: var(--white);
  letter-spacing: 0.03em;
}

.identity-line .order {
  font-style: italic;
  font-weight: 300;
  opacity: 0.85;
}

.identity-line .chaos {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-line a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--white);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-line a:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
}

/* =========================
   Footer
   ========================= */
.footer {
  background-color: var(--black);
  color: var(--white);
  padding: 16px 20px;
  font-size: 0.8rem;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 800px) {
  .columns,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-nav a {
    margin-bottom: 6px;
  }

  .site-title {
    font-size: 2.2rem;
  }
}

/* =========================
   Slide Deck Layout
   ========================= */

/* Reset inherited layout */
.slide-body {
  margin: 0;
  padding: 30px;
  min-height: 100vh;
  background-color: var(--black);
  color: var(--white);

  /* Override any site-level grid/flex */
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  font-family: 'Inter', sans-serif;
}

/* Shared max-width for header, content, footer */
.slide-header,
.slide-content,
.slide-footer {
  width: 100%;
  max-width: 1000px;
}

/* Header */
.slide-header {
  text-align: center;
  margin-bottom: 20px;
}

.slide-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.slide-subtitle {
  font-size: 1rem;
  color: var(--mid-gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}

.splash-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
}

.splash-subtitle {
  font-size: 1.5rem;
  color: var(--mid-gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

/* Slide Content Container */
.slide-content {
  background-color: var(--charcoal);
  padding: 30px 30px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,0,0,0.4);

  /* widescreen presence */
  min-height: 50vh;
}

/* Typography inside slides */
.slide-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 20px;
}

.slide-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

.slide-content ul {
  margin: 20px 0;
  padding-left: 20px;
}

.slide-content li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

/* Links */
.slide-content a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--white);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.slide-content a:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
}

/* Navigation */
.slide-footer {
  text-align: center;
  margin-top: 20px;
}

.slide-nav {
  display: inline-flex;
  gap: 20px;
  margin-top: 20px;
  text-align: center;
}

.slide-nav-link {
  color: var(--white);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--white);
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.slide-nav-link:hover {
  background-color: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .slide-content {
    padding: 30px 25px;
  }

  .slide-title {
    font-size: 2.2rem;
  }

  .slide-content h2 {
    font-size: 1.6rem;
  }
}

.video-wrapper {
  width: 85%;
  max-width: 1000px;
  margin: 30px auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  display: block; /* ensures it behaves like a block-level container */
}

.audio-wrapper {
  width: 85%;
  max-width: 1000px;
  margin: 30px auto;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  display: block;
}
.audio-wrapper audio {
  width: 100%;
  height: auto;
  display: block;
}


.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* ← the correct choice for responsive video */
  display: block;
  background: #000; /* fills the letterbox space */
}

.scripture-block {
  background: var(--secondary-b); /* your warm cream */
  padding: 2px 2px;
  border-radius: 8px;
  line-height: 1.5;
  font-size: 1rem;
  max-width: 900px;
  margin: 0 auto 5px auto;
  color: var(--primary); /* deep green text for strong contrast */
}

.scripture-block p {
  margin: 0 0 0 0;
}

.scripture-block strong {
  color: var(--accent);
  font-weight: 600;
  margin-right: 4px;
}

/* Styles for the bibles.org / GlobalBible widget to match Scripture blocks */
.passage-widget {
  /* fall back colors provided in case the theme vars are not available */
  background: var(--black, #000000);
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.6;
  font-size: 1rem;
  max-width: 900px;
  margin: 0 auto 12px auto;
  color: var(--white, #FFFFFF);
  font-family: inherit;
}

/* Ensure any iframe or widget container fills the passage-widget area */
.passage-widget iframe,
.passage-widget .gb-widget,
.passage-widget .globalbible,
.passage-widget .gb-passage {
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  display: block !important;
}

/* Attempt to inherit typography into any text nodes the widget exposes (best-effort; cross-origin iframes cannot be styled from here) */
.passage-widget,
.passage-widget * {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
}

/* Small responsive tweak so the widget doesn't overflow on narrow screens */
@media (max-width: 600px) {
  .passage-widget {
    padding: 10px 12px;
    font-size: 0.98rem;
  }
}

/* Additional best-effort rules for GlobalBible / bibles.org widget classes */
.passage-widget .gb-widget,
.passage-widget .globalbible,
.passage-widget .gb-passage,
.passage-widget .gb-passage-wrap,
.passage-widget .gb-passages {
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}

/* Verse blocks / inline verses */
.passage-widget .gb-verse,
.passage-widget .gb-verses,
.passage-widget .gb-verse-text,
.passage-widget .gb-verse-line,
.passage-widget .gb-verse-wrap {
  display: block;
  margin: 6px 0;
  color: inherit !important;
  font-weight: 400;
}

/* Verse numbers */
.passage-widget .gb-verse-num,
.passage-widget .gb-vnum,
.passage-widget .gb-num {
  color: var(--mid-gray, #8f8f8f);
  font-weight: 600;
  margin-right: 6px;
  font-size: 0.9em;
  vertical-align: baseline;
}

/* Headings / book/chapter labels */
.passage-widget .gb-heading,
.passage-widget .gb-book,
.passage-widget .gb-chapter,
.passage-widget .gb-header {
  font-weight: 600;
  color: var(--accent, #3a6b5a);
  margin-bottom: 8px;
}

/* Inline emphasis for "Jesus' words" if present */
.passage-widget .jesus-words,
.passage-widget .gb-jesus {
  color: #b94a48;
  font-weight: 600;
}

/* Defensive catch-all to attempt typography/color inheritance (may be blocked by cross-origin iframes) */
.passage-widget,
.passage-widget * {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
}

/* Small additional responsive tweaks */
@media (max-width: 600px) {
  .passage-widget { padding: 10px 12px; font-size: 0.98rem; }
  .passage-widget .gb-verse { margin: 4px 0; }
}

.jesus-words {
  color: #b94a48; /* soft, warm red */
  font-weight: 600;
}

.reflection-block {
  background: var(--secondary-b);
  padding: 24px 28px;
  border-radius: 8px;
  max-width: 900px;
  margin: 20px auto 30px auto;
  font-size: 1.15rem; /* slightly larger */
  line-height: 1.7;
  color: var(--primary);
}

.reflection-block ul {
  padding-left: 24px;
  margin: 0;
}

.reflection-block li {
  margin-bottom: 16px;
  font-size: 1.2rem; /* larger bullets */
}

.inline-reflection {
  margin: 20px 0;
  padding: 0 0 0 18px;
  border-left: 3px solid var(--secondary-b);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--primary);
  opacity: 0.9;
}

.inline-reflection ul {
  margin: 0;
  padding-left: 18px;
  list-style-type: disc;
}

.inline-reflection li {
  margin: 4px 0;
  font-weight: 400;
}

.scripture-attribution {
  font-size: 0.75rem;
  color: var(--mid-gray);
  text-align: center;
  margin-top: 6px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.site-copyright {
  font-size: 0.75rem;
  color: var(--white);
  text-align: center;
  margin-top: 20px;
}

.audio-wrapper {
  width: 75%;
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: var(--charcoal);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.audio-wrapper audio {
  width: 100%;
  display: block;
}

.media-attribution {
  font-size: 0.75rem;
  color: var(--mid-gray);
  text-align: center;
  margin-top: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.media-attribution a {
  color: var(--mid-gray);
  text-decoration: underline;
}

/* Quiet text — matches your subtle instructional tone */
.quiet {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin: 0.5rem 0 1.25rem;
  font-weight: 400;
}

.quiet.small {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.75rem;
}


/* Responsive iframe wrapper for ESV embeds */
.iframe-wrapper {
  position: relative;
  width: 100%;
  padding-top: 65vh; /* Adjust height as needed */
  background: var(--gray-050);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 1.5rem 0;
}

.iframe-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* Optional: match your video wrapper spacing + shadow */
.video-wrapper video {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.design-pattern-block {
  background: var(--gray);
  color: var(--white);
  padding: 18px 24px;
  border-radius: 8px;
  max-width: 900px;
  margin: 25px auto;
  text-align: center;
  font-style: italic;

  font-family: 'Inter', sans-serif; /* body font */
  font-size: 1.6rem;                /* similar visual weight to H2 */
  font-weight: 600;                 /* strong but not shouty */
  letter-spacing: 0.04em;           /* subtle spacing for clarity */
  line-height: 1.3;
}
