@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400&display=swap');

:root {
  --ink: #222;
  --muted: #686868;
  --paper: #fff;
  --dark: #161616;
  --accent: #a0522d;
  --accent-light: #bd6a42;
  --line: #e7e1dc;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
a { color: var(--accent); }
a:hover { color: var(--accent-light); }
.site-header {
  background: var(--dark);
  color: #f7f7f7;
}
.header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  color: #ff6900;
  text-decoration: none;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.site-nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
}
.site-nav a {
  color: #f7f7f7;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--accent-light);
  border-bottom: 1px solid var(--accent-light);
}
main { flex: 1; }
.hero {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 64px 24px;
  background:
    linear-gradient(rgba(0,0,0,.30), rgba(0,0,0,.30)),
    url('../images/image_fx.jpg') center/cover no-repeat;
}
.hero-card {
  width: min(820px, 100%);
  background: rgba(255,255,255,.94);
  padding: 42px 48px;
  box-shadow: 0 10px 35px rgba(0,0,0,.22);
}
.hero h1,
.page-title,
.section-title {
  margin: 0 0 24px;
  color: var(--accent);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.25;
}
.hero h1 { font-size: clamp(30px, 4vw, 46px); }
.hero ul { margin: 0; padding-left: 24px; }
.hero li + li { margin-top: 14px; }
.content-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 72px;
}
.page-title {
  text-align: center;
  font-size: clamp(30px, 4vw, 42px);
}
.author-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 48px;
  align-items: start;
}
.author-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
}
.prose { font-size: 18px; }
.prose p { margin-top: 0; margin-bottom: 20px; }
.books-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  font-size: 19px;
}
.external-link {
  display: inline-block;
  margin-top: 18px;
  overflow-wrap: anywhere;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.download-card {
  min-height: 180px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #000;
  color: #fff;
}
.download-card h2 {
  margin: 0 0 4px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 400;
}
.download-card .file-type { color: #e2e2e2; margin-bottom: 18px; }
.download-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 2px;
}
.download-button:hover { background: var(--accent-light); color: #fff; }
.site-footer {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 24px;
  font-size: 14px;
}
@media (max-width: 850px) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  .site-nav ul { gap: 14px 20px; }
  .author-grid { grid-template-columns: 1fr; }
  .author-photo { max-width: 420px; margin: 0 auto; display: block; }
  .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .brand { font-size: 19px; }
  .hero { min-height: 0; padding: 36px 16px; }
  .hero-card { padding: 28px 24px; }
  .content-wrap { padding: 44px 18px 54px; }
  .download-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   Home page fidelity pass
   Recreates the visual structure of the migrated home page
   without retaining generated builder markup, classes, or scripts.
   ------------------------------------------------------------------ */
.home-page {
  background: #161616;
}
.home-header {
  background: #161616;
  color: #fff;
}
.home-header-inner {
  width: 100%;
  min-height: 104px;
  margin: 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.home-brand {
  max-width: 520px;
  color: #ff6900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.16;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
}
.home-brand:hover { color: #ff6900; }
.home-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}
.home-nav a {
  display: inline-block;
  padding: 12px 0 10px;
  color: #a4a4a4;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
}
.home-nav a:hover,
.home-nav a[aria-current='page'] {
  color: #fff;
}
.home-nav a[aria-current='page'] {
  border-bottom: 1px solid #ff6900;
}
.home-hero {
  min-height: 75vh;
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, .30), rgba(0, 0, 0, .30)),
    url('../images/image_fx.jpg');
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
}
.home-intro {
  background: #161616;
  padding: 56px 0;
}
.home-intro-inner {
  width: min(100% - 48px, 1160px);
  margin: 0 auto;
}
.home-intro h1 {
  margin: 0 0 40px;
  color: #a0522d;
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 36px;
  line-height: 1.4;
  font-weight: 400;
}
.home-intro ul {
  max-width: 980px;
  margin: 0 auto;
  padding-left: 30px;
  color: #a4a4a4;
  font-size: 20px;
  line-height: 1.5;
}
.home-intro li + li {
  margin-top: 16px;
}
.home-page .site-footer {
  background: #a0522d;
}

@media (max-width: 900px) {
  .home-header-inner {
    min-height: 0;
    padding: 24px 0;
    flex-direction: column;
    align-items: flex-start;
  }
  .home-nav ul {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 20px;
  }
  .home-hero { min-height: 60vh; }
}

@media (max-width: 560px) {
  .home-header-inner {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .home-intro-inner {
    width: min(100% - 32px, 1160px);
  }
  .home-brand { font-size: 19px; }
  .home-nav { width: 100%; }
  .home-nav ul { display: block; }
  .home-nav a { padding: 7px 0; }
  .home-hero { min-height: 500px; }
  .home-intro { padding: 48px 0; }
  .home-intro h1 { font-size: 30px; }
  .home-intro ul { font-size: 18px; }
}

/* ------------------------------------------------------------------
   Books & DVDs fidelity pass
   Recreates the original gallery/carousel interaction without GoDaddy.
   ------------------------------------------------------------------ */
.books-page { background: #161616; color: #a4a4a4; }
.books-page .site-header { background: #161616; }
.books-gallery-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 62px 24px 72px;
}
.books-gallery-title {
  margin: 0 0 34px;
  text-align: center;
  color: #a0522d;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.2;
}
.books-carousel {
  max-width: 980px;
  margin: 0 auto;
}
.books-stage {
  position: relative;
  min-height: 590px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.035), transparent 48%),
    #161616;
}
.books-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(36%, 350px);
  height: 500px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.72);
  filter: brightness(.28);
  transition: transform .42s ease, opacity .42s ease, filter .42s ease;
  pointer-events: none;
  cursor: pointer;
}
.books-slide.is-active {
  z-index: 3;
  width: min(43%, 410px);
  height: 540px;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  filter: brightness(1);
  pointer-events: auto;
  cursor: default;
}
.books-slide.is-prev,
.books-slide.is-next {
  z-index: 2;
  opacity: .52;
  filter: brightness(.43);
  pointer-events: auto;
}
.books-slide.is-prev {
  transform: translate(-142%, -50%) scale(.78);
}
.books-slide.is-next {
  transform: translate(42%, -50%) scale(.78);
}
.books-slide img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 8px 28px rgba(0,0,0,.30);
}
.books-slide.is-active img {
  box-shadow: 0 12px 38px rgba(0,0,0,.44);
}
.books-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 52px;
  height: 64px;
  border: 0;
  transform: translateY(-50%);
  background: transparent;
  color: #f2f2f2;
  font-size: 62px;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 300;
  line-height: .8;
  cursor: pointer;
  opacity: .92;
}
.books-arrow:hover,
.books-arrow:focus-visible {
  background: transparent;
  color: #bd6a42;
  outline: none;
}
.books-arrow.prev { left: 8px; }
.books-arrow.next { right: 8px; }
.books-caption {
  max-width: 900px;
  margin: 22px auto 0;
  text-align: center;
  color: #a4a4a4;
  font-size: 18px;
  line-height: 1.65;
}
.books-caption p { margin: 0 0 14px; }

.books-caption-item { display: none; }
.books-caption-item.is-active { display: block; }
.books-caption-item h2 {
  margin: 0 0 12px;
  color: #a4a4a4;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 400;
}
.books-store-link { margin-top: 14px !important; }
.books-page .external-link { color: #bd6a42; }
.books-page .external-link:hover { color: #f4ae9a; }
.books-thumbs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.books-thumb {
  width: 76px;
  height: 76px;
  padding: 3px;
  border: 1px solid #555;
  background: #161616;
  cursor: pointer;
  opacity: .72;
}
.books-thumb:hover { opacity: 1; }
.books-thumb[aria-current='true'] {
  border: 2px solid #bd6a42;
  opacity: 1;
}
.books-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
@media (max-width: 760px) {
  .books-gallery-wrap { padding: 44px 18px 54px; }
  .books-stage { min-height: 470px; }
  .books-slide { width: 70%; height: 420px; }
  .books-slide.is-active { width: 74%; height: 430px; }
  .books-slide.is-prev,
  .books-slide.is-next { opacity: 0; pointer-events: none; }
  .books-slide.is-prev { transform: translate(-120%, -50%) scale(.72); }
  .books-slide.is-next { transform: translate(20%, -50%) scale(.72); }
  .books-arrow { width: 42px; height: 54px; font-size: 52px; }
  .books-arrow.prev { left: 0; }
  .books-arrow.next { right: 0; }
  .books-thumb { width: 64px; height: 64px; }
}
@media (max-width: 520px) {
  .books-stage { min-height: 370px; }
  .books-slide,
  .books-slide.is-active { width: 78%; height: 340px; }
  .books-caption { font-size: 17px; }
  .books-thumbs { gap: 8px; }
  .books-thumb { width: 56px; height: 56px; }
}


/* ------------------------------------------------------------------
   Fidelity pass: About / Bible / Sermons
   Original GoDaddy pages used #161616 section backgrounds, with the
   About page presented as a dark text/image split and download pages
   sitting on the same dark field with black download tiles.
   ------------------------------------------------------------------ */
.legacy-dark-page {
  background: #161616;
  color: #d6d6d6;
}
.legacy-dark-page main {
  background: #161616;
}
.legacy-dark-page .page-title {
  color: #a0522d;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
}
.legacy-dark-page .site-footer {
  margin-top: 0;
}

/* About the Author: original split-panel treatment. */
.about-main {
  flex: 1;
  display: flex;
}
.about-split {
  width: 100%;
  min-height: 680px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #161616;
}
.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px clamp(36px, 6vw, 96px);
}
.about-title {
  text-align: left;
  margin-bottom: 28px;
  font-size: clamp(34px, 4vw, 48px);
}
.about-prose {
  max-width: 690px;
  color: #d0d0d0;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
}
.about-prose p {
  margin: 0 0 16px;
}
.about-image {
  min-height: 680px;
  background-image: url('../images/blob.png');
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
}

/* Bible and Sermons: match the original dark section and black tiles. */
.downloads-main {
  background: #161616;
}
.downloads-wrap {
  padding-top: 56px;
  padding-bottom: 72px;
}
.downloads-page .page-title {
  color: #a0522d;
  margin-bottom: 42px;
}
.downloads-page .download-grid {
  gap: 22px;
}
.downloads-page .download-card {
  min-height: 150px;
  background: #000;
  color: #d6d6d6;
  box-shadow: none;
}
.downloads-page .download-card h2 {
  color: #d6d6d6;
}
.downloads-page .download-card .file-type {
  color: #bcbcbc;
}
.downloads-page .download-button {
  background: transparent;
  color: #a0522d;
  padding: 4px 0;
  border-radius: 0;
  font-weight: 400;
  text-decoration: none;
}
.downloads-page .download-button::before {
  content: '↓ ';
}
.downloads-page .download-button:hover {
  background: transparent;
  color: #bd6a42;
  text-decoration: underline;
}

@media (max-width: 850px) {
  .about-split {
    grid-template-columns: 1fr;
  }
  .about-copy {
    order: 1;
    padding: 52px 28px 58px;
  }
  .about-image {
    order: 2;
    min-height: 520px;
    background-position: center 18%;
  }
}
@media (max-width: 560px) {
  .about-split { min-height: 0; }
  .about-image { min-height: 420px; }
  .downloads-wrap { padding-top: 44px; }
}

/* V8: keep homepage branding anchored identically to interior pages. */
.home-header-inner {
  min-height: 0;
  padding: 20px 12px;
}


/* V9: Bible and Sermons use the original-style simple file list. */
.downloads-page .download-list {
  width: min(100%, 760px);
  margin: 0 auto;
}
.downloads-page .download-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.downloads-page .download-row:first-child {
  border-top: 1px solid rgba(255,255,255,.13);
}
.downloads-page .download-name {
  color: #d6d6d6;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 400;
}
.downloads-page .download-name .file-type {
  margin-left: 5px;
  color: #aaa;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}
.downloads-page .download-row .download-button {
  flex: 0 0 auto;
}
@media (max-width: 560px) {
  .downloads-page .download-row { align-items: flex-start; gap: 14px; }
  .downloads-page .download-name { font-size: 18px; }
}
