/*
 Theme Name: Titi-Ofei Theology Child
 Theme URI: https://REPLACE_WITH_THEOLOGY_DOMAIN
 Description: The Titi-Ofei Fellowship for Theological Education. Child theme
               for Divi. A fully funded, mandatory residential theology and
               ministry formation programme of the University of Gold Coast.
 Author: University of Gold Coast
 Author URI: https://ugc.edu.gh
 Template: Divi
 Version: 1.1.0
*/

/* ============================================================
   DESIGN TOKENS. Scripture Indigo and Champagne.

   A variation on the Gold Coast PhD system rather than a new brand.

   Kept from the PhD site, so the two read as one family:
     champagne gold as the single accent, warm cream ground,
     Montserrat display over Inter body, squared corners, 2px rules.

   Changed, so the Fellowship is its own thing:
     the dominant dark surface moves from near-black charcoal to a deep
     scripture indigo, which sits warmer against the same gold, and a
     muted olive carries the formation and fieldwork accents.
   ============================================================ */

:root {
  --indigo: #14213D;
  --indigo-mid: #1D2E52;
  --indigo-deep: #0D1729;
  --indigo-tint: #24365C;

  --gold: #d1aa66;
  --gold-soft: #e6c891;
  --gold-deep: #A8862F; /* gold that passes AA on cream */

  --olive: #55603F;
  --olive-soft: #7C8760;

  --cream: #FAF6EE;
  --parchment: #F1E9DA;
  --white: #FFFFFF;
  --ink: #1B1F27;
  --ink-soft: #5A6270;
  --line: #DED3BF;
  --line-dark: rgba(255,255,255,0.14);

  --radius: 2px;
  --shadow-card: 0 1px 2px rgba(20,33,61,0.04), 0 8px 24px rgba(20,33,61,0.06);
  --shadow-lift: 0 2px 4px rgba(20,33,61,0.06), 0 16px 40px rgba(20,33,61,0.10);
}

/* ============================================================
   BASE TYPE
   ============================================================ */

body,
.et_pb_text,
.et_pb_module p {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.et_pb_module h1, .et_pb_module h2, .et_pb_module h3, .et_pb_module h4 {
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  color: var(--indigo);
  letter-spacing: -0.015em;
  line-height: 1.18;
}

/* ============================================================
   LUCIDE ICONS

   Icons arrive as <i data-lucide="name"></i> and are replaced with an
   inline <svg> at runtime (see functions.php). Sizing has to target both
   forms, or every icon jumps once the script lands.
   ============================================================ */

[data-lucide],
.tof-i svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
  vertical-align: -0.18em;
  flex-shrink: 0;
}

/* Reserve the space before the SVG swaps in, so nothing reflows. */
i[data-lucide] {
  display: inline-block;
  width: 20px;
  height: 20px;
}

/* The framed icon used above section headings and on cards. */
.tof-icon-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: var(--white);
  color: var(--gold-deep);
  margin-bottom: 20px;
}
.tof-icon-frame svg,
.tof-icon-frame [data-lucide] { width: 24px; height: 24px; }

/* On dark grounds the frame inverts. */
.tof-section-dark .tof-icon-frame,
.tof-section-deep .tof-icon-frame {
  background: rgba(255,255,255,0.04);
  border-color: var(--line-dark);
  border-top-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   EYEBROW
   ============================================================ */

.tof-eyebrow p,
.tof-eyebrow {
  font-family: "Inter", sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--gold-deep) !important;
  margin-bottom: 14px !important;
  display: flex;
  align-items: center;
  gap: 9px;
}
.tof-eyebrow[data-align="center"] p,
.tof-eyebrow.tof-eyebrow--center p { justify-content: center; }

.tof-section-dark .tof-eyebrow p,
.tof-section-deep .tof-eyebrow p,
.tof-hero .tof-eyebrow p { color: var(--gold) !important; }

/* Section-title rule, sits under a heading. */
.tof-rule {
  height: 2px;
  width: 96px;
  background: linear-gradient(90deg, var(--gold), rgba(209,170,102,0));
  margin: 0 0 26px;
}
.tof-rule--center { margin-left: auto; margin-right: auto; }

/* ============================================================
   SECTION SURFACES
   ============================================================ */

.tof-section-cream { background-color: var(--cream); }
.tof-section-parch { background-color: var(--parchment); }
.tof-section-dark { background-color: var(--indigo); }
.tof-section-deep { background-color: var(--indigo-deep); }

.tof-section-dark h1, .tof-section-dark h2, .tof-section-dark h3,
.tof-section-deep h1, .tof-section-deep h2, .tof-section-deep h3 { color: var(--white); }
.tof-section-dark p, .tof-section-deep p { color: rgba(250,246,238,0.82); }

.tof-seam { border-top: 1px solid var(--line) !important; }
.tof-seam-gold { border-top: 2px solid var(--gold) !important; }

/* ============================================================
   HERO

   Indigo ground with a soft radial lift behind the headline, so the
   type has somewhere to sit even before a background photograph is
   added. When a photo goes in, it reads as an overlay rather than
   fighting it.
   ============================================================ */

.tof-hero {
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(120% 90% at 12% 0%, rgba(36,54,92,0.85) 0%, rgba(20,33,61,0) 62%),
    linear-gradient(180deg, var(--indigo) 0%, var(--indigo-deep) 100%);
}

/* A hairline gold seam along the very bottom of the hero. */
.tof-hero:after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(209,170,102,0.15) 55%, rgba(209,170,102,0) 100%);
}

.tof-hero h1 { color: var(--white); font-weight: 600; }

/* ============================================================
   HERO META BAR

   The four-fact strip beneath the hero headline: duration, residence,
   placement, funding. Icon over figure over label.
   ============================================================ */

.tof-meta-bar { border-top: 1px solid var(--line-dark); }
.tof-meta .et_pb_column {
  border-left: 1px solid var(--line-dark);
  padding: 26px 24px !important;
}
.tof-meta .et_pb_column:first-child { border-left: 0; }

.tof-meta-icon p { color: var(--gold) !important; margin: 0 0 12px !important; line-height: 1 !important; }
.tof-meta-icon svg, .tof-meta-icon [data-lucide] { width: 22px; height: 22px; }

.tof-meta-figure p {
  font-family: "Montserrat", sans-serif !important;
  font-size: 26px !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  color: var(--white) !important;
  margin: 0 0 6px !important;
}
.tof-meta-label p {
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: rgba(250,246,238,0.62) !important;
  margin: 0 !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.tof-btn-gold.et_pb_button,
.tof-btn-gold .et_pb_button {
  background-color: var(--gold) !important;
  color: var(--indigo) !important;
  border: 0 !important;
  border-radius: var(--radius) !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase;
  padding: 16px 34px !important;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.tof-btn-gold.et_pb_button:hover {
  background-color: var(--gold-soft) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(209,170,102,0.28);
}

.tof-btn-ghost.et_pb_button {
  background-color: transparent !important;
  color: var(--gold-soft) !important;
  border: 1px solid rgba(209,170,102,0.55) !important;
  border-radius: var(--radius) !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase;
  padding: 16px 34px !important;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.tof-btn-ghost.et_pb_button:hover {
  border-color: var(--gold) !important;
  color: var(--white) !important;
  background-color: rgba(209,170,102,0.08) !important;
}

.tof-section-cream .tof-btn-ghost.et_pb_button,
.tof-section-parch .tof-btn-ghost.et_pb_button {
  color: var(--gold-deep) !important;
  border-color: rgba(168,134,47,0.5) !important;
}
.tof-section-cream .tof-btn-ghost.et_pb_button:hover,
.tof-section-parch .tof-btn-ghost.et_pb_button:hover {
  color: var(--indigo) !important;
  border-color: var(--gold-deep) !important;
}

/* Divi adds an arrow glyph on hover; this system doesn't use one. */
.tof-btn-gold.et_pb_button:after,
.tof-btn-ghost.et_pb_button:after { display: none !important; }

/* ============================================================
   CARDS
   ============================================================ */

.tof-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 36px 32px !important;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tof-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tof-card h3 { font-size: 21px; margin-bottom: 12px; }
.tof-card p { font-size: 16px; color: var(--ink-soft); }

.tof-card--alt { border-top-color: var(--olive); }
.tof-card--alt .tof-icon-frame { color: var(--olive); border-top-color: var(--olive); }

/* ============================================================
   PATHWAY TIERS

   The two academic routes. Deliberately unequal weight: the MA is the
   principal pathway, the Level 6 diploma is the selective alternative,
   and the design should say so before the copy does.
   ============================================================ */

.tof-tier {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  padding: 42px 40px !important;
  height: 100%;
  box-shadow: var(--shadow-card);
}
.tof-tier--alt { border-left-color: var(--olive); }

.tof-tier-num p {
  font-family: "Montserrat", sans-serif !important;
  font-style: italic;
  font-size: 15px !important;
  letter-spacing: 0.24em !important;
  text-transform: uppercase;
  color: var(--gold-deep) !important;
  margin: 0 0 16px !important;
}
.tof-tier--alt .tof-tier-num p { color: var(--olive) !important; }

/* "Selective" / "Principal pathway" badge. */
.tof-badge p {
  display: inline-block;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
  padding: 6px 12px !important;
  background: rgba(209,170,102,0.16);
  color: var(--gold-deep) !important;
  margin: 0 0 18px !important;
  line-height: 1.4 !important;
}
.tof-badge--alt p { background: rgba(85,96,63,0.14); color: var(--olive) !important; }

/* ============================================================
   STAGE TIMELINE

   The three stages of the 18-month journey, as a connected sequence
   rather than three unrelated boxes.
   ============================================================ */

.tof-stage {
  position: relative;
  padding: 0 0 0 74px !important;
  margin-bottom: 0 !important;
}
.tof-stage:before {
  content: "";
  position: absolute;
  left: 25px; top: 56px; bottom: -34px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(209,170,102,0.25) 100%);
}
.tof-stage:last-child:before { display: none; }

.tof-stage-num p {
  position: absolute;
  left: 0; top: 0;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--indigo);
  color: var(--gold) !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.tof-stage h3 { font-size: 20px; margin-bottom: 8px; }
.tof-stage p { color: var(--ink-soft); font-size: 16px; }

/* ============================================================
   ICON LIST

   Replaces plain bullets. Each item gets a gold icon in its own
   column so multi-line text stays aligned.
   ============================================================ */

.tof-iconlist ul { list-style: none; padding-left: 0; margin: 0; }
.tof-iconlist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  line-height: 1.65;
}
.tof-iconlist li:before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
}

/* Checklist. The source copy uses ☐ glyphs; functions.php strips them
   and this draws a proper box instead. */
.tof-checklist ul { list-style: none; padding-left: 0; margin: 0; }
.tof-checklist li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 14px;
  line-height: 1.65;
}
.tof-checklist li:before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border: 1.5px solid var(--gold);
  background: var(--white);
}
.tof-checklist li:after {
  content: "";
  position: absolute;
  left: 6px; top: 9px;
  width: 6px; height: 10px;
  border: solid var(--gold-deep);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0.55;
}

/* ============================================================
   TILE GRID

   The "typical week" and "placement settings" grids: an icon, a short
   label, nothing else. Reads at a glance, which a bulleted list of
   eight items does not.
   ============================================================ */

.tof-tile {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px 20px !important;
  height: 100%;
  transition: border-color .18s ease, transform .18s ease;
}
.tof-tile:hover { border-color: var(--gold); transform: translateY(-2px); }
.tof-tile-icon p { color: var(--gold-deep) !important; margin: 0 0 12px !important; line-height: 1 !important; }
.tof-tile-icon svg, .tof-tile-icon [data-lucide] { width: 22px; height: 22px; }
.tof-tile p:last-child { font-size: 15px !important; line-height: 1.55 !important; margin: 0 !important; color: var(--ink) !important; }

/* ============================================================
   CALLOUT

   The source document's "COMPLETION RULE" / "IMPORTANT" boxes.
   ============================================================ */

.tof-callout {
  background: #FFF7E6;
  border: 1px solid rgba(209,170,102,0.4);
  border-left: 3px solid var(--gold);
  padding: 26px 30px !important;
}
.tof-callout p { color: var(--ink) !important; font-size: 16px !important; margin: 0 !important; }
.tof-callout strong {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-deep);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* The Level 6 caveat is a warning, not a highlight. It must never read
   as a benefit, so it gets its own ground. */
.tof-callout--caution {
  background: #FBF0EE;
  border-color: rgba(155,28,28,0.28);
  border-left-color: #9B1C1C;
}
.tof-callout--caution strong { color: #9B1C1C; }

/* ============================================================
   FOUNDER QUOTE
   ============================================================ */

.tof-quote { position: relative; padding-left: 54px !important; }
.tof-quote:before {
  content: "\201C";
  position: absolute;
  left: 0; top: -18px;
  font-family: "Montserrat", serif;
  font-size: 86px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
}
.tof-quote p {
  font-family: "Montserrat", sans-serif !important;
  font-style: italic;
  font-size: 22px !important;
  line-height: 1.62em !important;
  color: var(--cream) !important;
}
.tof-attrib p {
  font-size: 15px !important;
  letter-spacing: 0.04em;
  color: var(--gold) !important;
  margin: 14px 0 0 !important;
}

/* ============================================================
   STEPS

   Numbered application-process steps, counter-driven so the markup
   stays a plain ordered list.
   ============================================================ */

.tof-steps ol { list-style: none; counter-reset: tof-step; padding-left: 0; margin: 0; }
.tof-steps li {
  counter-increment: tof-step;
  position: relative;
  padding: 0 0 22px 56px;
  border-left: 1px solid var(--line);
  margin-left: 17px;
  line-height: 1.65;
}
.tof-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.tof-steps li:before {
  content: counter(tof-step, decimal-leading-zero);
  position: absolute;
  left: -17px; top: -2px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--indigo);
  color: var(--gold);
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 600;
}

/* ============================================================
   TABLES
   ============================================================ */

.tof-table table { width: 100%; border-collapse: collapse; background: var(--white); box-shadow: var(--shadow-card); }
.tof-table th {
  background: var(--indigo);
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  padding: 15px 20px;
}
.tof-table td { border-bottom: 1px solid var(--line); padding: 15px 20px; font-size: 16px; vertical-align: top; }
.tof-table tr:last-child td { border-bottom: 0; }
.tof-table tbody tr:nth-child(even) td { background: #FCFAF5; }

/* ============================================================
   FAQ
   ============================================================ */

.tof-faq .et_pb_toggle {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  padding: 24px 0 !important;
}
.tof-faq .et_pb_toggle_title {
  font-family: "Montserrat", sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--indigo) !important;
  padding-left: 0 !important;
  padding-right: 44px !important;
}
.tof-faq .et_pb_toggle_title:before {
  color: var(--gold-deep) !important;
  right: 4px;
  font-size: 22px;
}
.tof-faq .et_pb_toggle_content { padding-left: 0 !important; color: var(--ink-soft); }
.tof-faq .et_pb_toggle_open { background: transparent !important; }
.tof-faq .et_pb_toggle_open .et_pb_toggle_title { color: var(--gold-deep) !important; }

/* ============================================================
   CTA BAND
   ============================================================ */

.tof-cta-band { position: relative; overflow: hidden; }
.tof-cta-band:before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 60%; height: 180%;
  background: radial-gradient(closest-side, rgba(209,170,102,0.10), rgba(209,170,102,0));
  pointer-events: none;
}

/* ============================================================
   HEADER
   ============================================================ */

#main-header {
  background-color: var(--indigo-deep) !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--line-dark);
}
#top-menu li a {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: rgba(250,246,238,0.78) !important;
  padding-bottom: 18px;
}
#top-menu li a:hover { color: var(--gold) !important; opacity: 1; }
#top-menu li.current-menu-item > a { color: var(--gold) !important; }

#top-menu li.tof-nav-cta > a {
  background: var(--gold);
  color: var(--indigo) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius);
  font-weight: 700;
}
#top-menu li.tof-nav-cta > a:hover { background: var(--gold-soft); }

.et_mobile_menu { background-color: var(--indigo) !important; border-top: 2px solid var(--gold); }
.et_mobile_menu li a { color: rgba(250,246,238,0.85) !important; border-color: var(--line-dark) !important; }

/* ============================================================
   FOOTER
   ============================================================ */

#main-footer, .tof-footer { background: var(--indigo-deep); }
.tof-footer p, .tof-footer li, .tof-footer a { color: rgba(250,246,238,0.72); }
.tof-footer a:hover { color: var(--gold); }
.tof-footer h4 { color: var(--gold); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {
  .tof-meta .et_pb_column {
    border-left: 0;
    border-top: 1px solid var(--line-dark);
    padding: 20px 0 !important;
  }
  .tof-meta .et_pb_column:first-child { border-top: 0; }
  .tof-quote p { font-size: 19px !important; }
  .tof-tier { padding: 32px 28px !important; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .tof-meta-figure p { font-size: 22px !important; }
  .tof-card { padding: 28px 24px !important; }
  .tof-stage { padding-left: 62px !important; }
  .tof-stage-num p { width: 44px; height: 44px; font-size: 15px !important; }
  .tof-stage:before { left: 21px; top: 48px; }
  .tof-quote { padding-left: 0 !important; padding-top: 42px !important; }
  .tof-quote:before { top: -8px; font-size: 68px; }
  /* Tables become the only horizontal scroller, never the page body. */
  .tof-table { overflow-x: auto; }
  .tof-table table { min-width: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  .tof-btn-gold.et_pb_button,
  .tof-card,
  .tof-tile { transition: none; }
  .tof-btn-gold.et_pb_button:hover,
  .tof-card:hover,
  .tof-tile:hover { transform: none; }
}
