/* ==========================================================================
   One Truth Ministries — shared stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --red:        #7C1D2C;
  --red-dark:   #4A1420;
  --red-ink:    #3B0F17;
  --gold:       #B8892B;
  --gold-light: #D9B65C;
  --cream:      #FAF5E9;
  --paper:      #FFFDF7;
  --ink:        #2A231C;
  --ink-soft:   #5B4C3D;
  --line:       #E4D9C3;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ----- skip link / focus ----- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--paper);
  color: var(--red);
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ----- typography ----- */
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--red);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; max-width: 62ch; }
p.lede { font-size: 1.15rem; color: var(--ink-soft); }

.eyebrow-plain {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
  margin: 0 0 0.4em;
  display: block;
}

/* ----- header / nav ----- */
.site-header {
  background: var(--red-ink);
  border-bottom: 3px solid var(--gold);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
  gap: 14px;
}

.wordmark {
  font-family: var(--display);
  color: var(--gold-light);
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark span { color: var(--gold-light); font-style: italic; font-weight: 700; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

@media (max-width: 640px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 10px;
  }
  .site-nav ul { gap: 16px 22px; }
  .site-nav a { font-size: 0.92rem; }
}

/* ----- buttons ----- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 3px;
  border: 2px solid transparent;
  font-size: 0.98rem;
}
.btn-gold {
  background: var(--gold);
  color: var(--red-ink);
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  border-color: var(--paper);
  color: var(--paper);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-outline-red {
  border-color: var(--red);
  color: var(--red);
}
.btn-outline-red:hover { background: rgba(124,29,44,0.06); }

/* ----- hero ----- */
.hero {
  background: var(--red);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  height: 620px;
  padding: 0;
}
.hero-card-back-wrap {
  position: absolute !important;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 316px;
  height: 620px;
  z-index: 5;
}
.hero-card-back {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 316px !important;
  height: 620px !important;
}



.hero .wrap {
  position: relative;
  z-index: 1;
  padding-left: 0;
  padding-right: 0;
  max-width: none;
  display: flex;
  flex: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 316px 1fr;
  align-items: stretch;
  flex: 1;
  width: 100%;
}

.hero-inner { grid-column: 1; }
.hero-card-back-wrap {
  grid-column: 2;
  width: 316px;
  height: 620px;
}

.hero-inner {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 44px 32px;
}

.hero-inner .hero-verses,
.hero-inner p.lede,
.hero-inner .hero-ctas { align-self: center; }

.hero-inner-link { cursor: pointer; }
.hero-inner-link:hover .hero-subteaching { text-decoration: underline; }

.hero-subteaching {
  color: var(--gold-light);
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  font-size: 1.6rem;
  margin-top: 14px;
  align-self: center;
}

.hero h1 {
  color: var(--paper);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 18px;
}

.hero-verses { margin-bottom: 18px; }

.hero-verse {
  font-family: var(--display);
  font-style: italic;
  color: #F2E4D2;
  font-size: 1.2rem;
  margin: 0 0 12px;
  max-width: 46ch;
}
.hero-verse span {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--gold-light);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  margin-top: 3px;
}

.hero p.lede {
  color: #F2E4D2;
  font-size: 1.25rem;
  max-width: 52ch;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-card-back {
  width: 316px;
  height: 620px;
  max-height: none;
  transform: none;
  box-shadow: none;
  border-radius: 0;
  object-fit: fill;
  margin: 0 auto;
  display: block;
}

@media (max-width: 920px) {
  .hero { height: auto; overflow: visible; }
  .hero .wrap { display: block; }
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    width: 100%;
  }
  .hero-inner, .hero-life-card { grid-column: auto; width: 100%; max-width: none; }
  .hero-card-back-wrap {
    position: relative !important;
    left: auto;
    transform: none;
    align-self: center;
    margin: 0 auto;
    width: 100%;
    max-width: 316px;
    height: 220px;
  }
  .hero-card-back { position: relative !important; height: 100%; width: 100%; max-height: none; }
}

/* ----- scripture block ----- */
.scripture {
  background: var(--paper);
  border-left: 4px solid var(--gold);
  padding: 22px 28px;
  font-family: var(--display);
  font-style: italic;
  color: var(--red-dark);
  font-size: 1.15rem;
  max-width: 62ch;
}
.scripture cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--gold);
  margin-top: 10px;
  font-size: 0.95rem;
}

/* ----- sections ----- */
section { padding: 76px 0; }
.section-tight { padding: 56px 0; }

.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }
.section-red   { background: var(--red-ink); color: var(--paper); }
.section-red h2 { color: var(--gold-light); }
.section-red p { color: #E8DCC8; }

.section-head { max-width: 640px; margin-bottom: 44px; }

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0 0 44px;
}

/* ----- pillars (radiating branches concept) ----- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 34px 28px 34px 0;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.pillar:first-child { border-left: none; padding-left: 0; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { margin-bottom: 0; font-size: 0.98rem; color: var(--ink-soft); }

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-left: none; border-top: 1px solid var(--line); padding: 28px 0; }
  .pillar:first-child { border-top: none; padding-top: 0; }
}

/* ----- branches grid (ministry areas) ----- */
.branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.branch {
  background: var(--paper);
  padding: 30px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
}
.branch h3 { margin-bottom: 8px; }
.branch p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: auto; }
.branch-status {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--gold);
  margin-top: 18px;
}
.branch-link {
  margin-top: 18px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  width: fit-content;
}

@media (max-width: 860px) {
  .branches { grid-template-columns: 1fr; }
}

/* ----- teaching cards ----- */
.teaching-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.teaching-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 30px;
}
.teaching-card .scripture-ref {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 10px;
}
.teaching-card h3 { margin-bottom: 12px; }
.teaching-card p { font-size: 0.97rem; color: var(--ink-soft); }
.teaching-card .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--red);
  background: #F3E4C8;
  padding: 4px 10px;
  margin-bottom: 14px;
}
.teaching-card.featured {
  grid-column: span 2;
  background: var(--red);
  color: var(--paper);
  border: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.teaching-card.featured .scripture-ref { color: var(--gold-light); }
.teaching-card.featured h3 { color: var(--paper); font-size: 1.7rem; }
.teaching-card.featured p { color: #F2E4D2; }
.teaching-card.featured .tag { background: var(--gold); color: var(--red-ink); }

@media (max-width: 760px) {
  .teaching-grid { grid-template-columns: 1fr; }
  .teaching-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
}

/* ----- testimony chapter navigation ----- */
.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 8px;
  padding: 16px;
  background: var(--red);
  border: 2px solid var(--gold);
  border-radius: 8px;
}
.chapter-nav a {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--red-ink);
  background: var(--gold-light);
  border: 1px solid var(--gold);
  padding: 7px 12px;
  text-decoration: none;
  border-radius: 999px;
}
.chapter-nav a:hover { background: var(--gold); color: #fff; }
.chapter-nav .chapter-current {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
  background: var(--red-ink);
  border: 1px solid var(--gold-light);
  padding: 7px 12px;
  border-radius: 999px;
}
.chapter-next {
  text-align: right;
  margin-top: 8px !important;
}
.chapter-next a {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
  text-decoration: none;
}
.chapter-next a:hover { color: var(--gold-light); }

/* ----- teaching category navigation ----- */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.category-chip {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--red);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 9px 16px;
  text-decoration: none;
  border-radius: 999px;
}
.category-chip:hover { background: #F3E4C8; }

.category-section { padding-top: 10px; }
.category-heading {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 14px;
  margin-bottom: 30px;
}
.category-heading h2 {
  color: var(--red);
  margin-bottom: 6px;
}
.category-heading p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 720px;
}

.teaching-card .full-depth-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

.series-block {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 26px 30px;
  margin-top: 10px;
}
.series-block h4 {
  color: var(--red);
  margin-bottom: 6px;
}
.series-block p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 16px; }
.series-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.series-list a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 600;
}
.series-list a:hover { border-color: var(--gold); }
@media (max-width: 700px) {
  .series-list { grid-template-columns: 1fr; }
}

/* ----- about page specifics ----- */
.declaration-block {
  background: var(--red-ink);
  color: var(--paper);
  padding: 48px;
  border-left: 6px solid var(--gold);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 30px 0;
}
.compare > div { background: var(--paper); padding: 24px 28px; }
.compare .light { border-top: 3px solid var(--gold); }
.compare .dark { border-top: 3px solid var(--ink-soft); }
.compare h4 {
  font-family: var(--display);
  font-style: italic;
  color: var(--red);
  margin-bottom: 12px;
  font-size: 1.05rem;
}
.compare ul { margin: 0; padding-left: 20px; font-size: 0.95rem; color: var(--ink-soft); }
.compare li { margin-bottom: 6px; }

@media (max-width: 700px) {
  .compare { grid-template-columns: 1fr; }
  .declaration-block { padding: 30px; font-size: 1.1rem; }
}

.founder {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
.founder-mark {
  width: 220px;
  height: 220px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--gold);
}
.founder-mark video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.founder-mark span {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold-light);
  font-size: 3.2rem;
}
@media (max-width: 700px) {
  .founder { grid-template-columns: 1fr; }
  .founder-mark { width: 140px; height: 140px; }
  .founder-mark span { font-size: 2.2rem; }
}

/* ----- contact page ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h3 { margin-top: 30px; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p { color: var(--ink-soft); }

form { display: flex; flex-direction: column; gap: 18px; }
label {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
  display: block;
  color: var(--red-dark);
}
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 140px; }
.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: -6px;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ----- footer ----- */
.site-footer {
  background: var(--red-ink);
  color: #CBB899;
  padding: 48px 0 32px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}
.site-footer h4 {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #CBB899; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(217,182,92,0.2);
  margin-top: 36px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: #9C8768;
}

/* ----- hero third-panel card: A Life Changed by Christ ----- */
.hero-life-card {
  grid-column: 3;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 380px;
  padding: 14px 20px 26px;
  text-align: center;
  color: var(--paper);
  box-sizing: border-box;
  white-space: normal;
}
.hero-life-card h3 {
  color: var(--gold-light);
  font-size: 1.9rem;
  font-weight: 700;
  font-style: italic;
  margin: 0 0 6px;
  line-height: 1.1;
  white-space: nowrap;
}
.hero-life-card .hlc-sub {
  font-size: 0.95rem;
  color: #F2E4D2;
  opacity: 0.9;
  font-style: italic;
  margin: 0 0 18px;
}
.hero-life-card svg { margin: 4px auto 2px; width: 190px; height: 54px; display: block; }
.hero-life-card .hlc-flow {
  font-size: 1.6rem;
  color: var(--gold-light);
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  margin: 16px 0 0;
  letter-spacing: 0.03em;
}
.hero-life-card:hover .hlc-flow { text-decoration: underline; }
.hero-life-card .hlc-onm {
  font-size: 2.2rem;
  color: var(--paper);
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
  margin: 0 0 18px;
}
.hero-life-card .hlc-scripture {
  font-size: 0.86rem;
  line-height: 1.6;
  color: #F5E8D4;
  font-style: italic;
  margin: 0 0 10px;
}
.hero-life-card .hlc-ref {
  font-size: 0.85rem;
  color: var(--gold-light);
  font-weight: 700;
  font-style: normal;
}

/* ----- page hero (interior pages) ----- */
.page-hero {
  background: var(--red);
  color: var(--paper);
  padding: 56px 0 60px;
  border-bottom: 3px solid var(--gold);
  position: relative;
}
.page-hero h1 { color: var(--paper); font-style: italic; font-weight: 400; }
.page-hero p.lede { color: #F2E4D2; max-width: 60ch; }

/* ----- tier nav (Bible Study / Teaching / Expanded tabs) ----- */
.tier-nav {
  display: flex;
  gap: 28px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.tier-link {
  color: #F2E4D2;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-bottom: 6px;
  margin-right: 28px;
  border-bottom: 2px solid transparent;
}
.tier-link:last-child { margin-right: 0; }
.tier-link:hover { color: var(--paper); }
.tier-link.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

/* ----- mini life-changed diagram (teachings page, Four Ones card) ----- */
.hlc-mini {
  text-align: center;
  color: var(--paper);
  padding: 10px 14px;
}
.hlc-mini h4 {
  color: var(--gold-light);
  font-size: 1.3rem;
  font-weight: 700;
  font-style: italic;
  margin: 0 0 4px;
  line-height: 1.1;
}
.hlc-mini .hlc-mini-sub {
  font-size: 0.85rem;
  color: #F2E4D2;
  opacity: 0.9;
  font-style: italic;
  margin: 0 0 12px;
}
.hlc-mini svg { margin: 4px auto 2px; width: 150px; height: 44px; display: block; }
.hlc-mini .hlc-mini-onm {
  font-size: 1.5rem;
  color: var(--paper);
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
  margin: 10px 0 0;
}
