/*
Theme Name: The Heart of Values - Divi Child
Theme URI: https://www.theheartofvalues.com/
Description: Divi child theme for The Heart of Values.
Author: Guy Reichard
Author URI: https://www.heartrich.ca/
Template: Divi
Version: 1.0.0
*/

/* Traditional parent stylesheet import (current site setup). */
@import url("../Divi/style.css");

/* ==============================================================
   THE HEART OF VALUES — SHARED DIVI STYLES
   Used by the new homepage and the /resources page.

   - Global typography provides defaults; Divi module settings can
     deliberately override them.
   - Section classes style reusable purple sections and callouts.
   - Older .thov-section utilities are retained until a live-page
     class audit confirms whether they are unused.
   - Specialized one-off Code Module CSS remains in its own module.
   ============================================================== */

:root {
  --thov-purple: #382d7b;
  --thov-purple-light: #4e4099;
  --thov-purple-pale: #f0eef9;
  --thov-purple-mid: #e8e4f5;
  --thov-green: #8bbd5a;
  --thov-green-dark: #6fa342;
  --thov-green-pale: #f2f8ec;
  --thov-cream: #faf8f3;
  --thov-warm-white: #fffef9;
  --thov-text-dark: #1c1a2e;
  --thov-text-mid: #3d3857;
  --thov-text-light: #6e6a85;
  --thov-border: #e2dff0;
  --thov-border-light: #ede9f6;
  --thov-shadow-card: 0 8px 32px rgba(56,45,123,.09);
}


/* ==========================================
   THOV - GENERAL TYPOGRAPHY
   ========================================== */

/* Site-wide defaults */
body {
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #3d3857;
}

/* Heading defaults */
h1, h2, h3, h4 {
    font-family: 'Rosario', Georgia, serif;
    font-weight: 600;
    line-height: 1.25;
    color: #382d7b;
}

/* Divi Text module heading sizes */
.et_pb_text h1 { font-size: 42px; font-weight: 700; }
.et_pb_text h2 { font-size: 32px; }
.et_pb_text h3 { font-size: 23px; }
.et_pb_text h4 { font-size: 19px; }

/* Section eyebrow labels */
.et_pb_text p.thov-eyebrow {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6fa342;
    margin: 0 0 12px;
    padding: 0;
}

/* Purple eyebrow variation */
.et_pb_text p.thov-eyebrow.thov-eyebrow-purple {
    color: #4e4099;
}

/* Mobile typography */
@media (max-width: 767px) {
    .et_pb_text h1 { font-size: 30px; }
    .et_pb_text h2 { font-size: 27px; }
    .et_pb_text h3 { font-size: 21px; }
    .et_pb_text h4 { font-size: 18px; }
}


/* ==========================================
   THOV - BOOK STRUCTURE SECTION
   ========================================== */

.thov-book-structure .et_pb_text h2,
.thov-book-structure .et_pb_text h3,
.thov-book-structure .et_pb_text h4 {
    color: #ffffff;
}

.thov-book-structure .et_pb_text p {
    color: #e4e0f4;
}

.thov-book-structure .et_pb_text p.thov-eyebrow {
    color: #8bbd5a;
}


/* Book Structure cards */

.thov-book-structure .et_pb_text ul {
    padding-left: 20px;
    margin-top: 12px;
    margin-bottom: 0;
}

.thov-book-structure .et_pb_text li {
    color: #e4e0f4;
    font-size: 16px;
    line-height: 1.6;
    padding-bottom: 7px;
}

.thov-book-structure .et_pb_text hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.18);
    margin: 22px 0 16px;
}

.thov-book-structure .et_pb_text p.thov-part-number {
    font-family: 'Rosario', Georgia, serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    color: rgba(139,189,90,0.40);
    margin: 0 0 14px;
    padding: 0;
}

/* ==========================================
   THOV - INNER PAGE HERO TYPOGRAPHY
   ========================================== */

/* Hero text colours */
.thov-inner-hero .et_pb_text h1 {
    color: #ffffff;
}

.thov-inner-hero .et_pb_text p {
    color: #e4e0f4;
}

/* Green hero eyebrow */
.thov-inner-hero .et_pb_text p.thov-eyebrow {
    color: #8bbd5a;
}

/* ==========================================
   THOV - COMPANION PACK SECTION
   ========================================== */

.thov-companion-pack .et_pb_text h2 {
    color: #ffffff;
}

.thov-companion-pack .et_pb_text p,
.thov-companion-pack .et_pb_text li {
    color: #e4e0f4;
}

.thov-companion-pack .et_pb_text p.thov-eyebrow {
    color: #8bbd5a;
}

.thov-companion-pack .et_pb_text ul {
    padding-left: 22px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.thov-companion-pack .et_pb_text li {
    padding-bottom: 8px;
    line-height: 1.55;
}

/* --------------------------------------------------------------
   LEGACY / OPTIONAL .thov-section UTILITIES — RETAIN FOR NOW
   Originally drafted for early inner-page layout. These rules are
   harmless where the class is absent, but may still serve saved or
   live Divi modules. Verify actual class usage before removing.
   -------------------------------------------------------------- */
.thov-section {
  color: var(--thov-text-mid);
  background-color: var(--thov-warm-white);
}
.thov-section h1,
.thov-section h2,
.thov-section h3,
.thov-section h4 {
  font-family: 'Rosario', Georgia, serif;
  color: var(--thov-purple);
  font-weight: 600;
  line-height: 1.2;
}
.thov-section h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
.thov-section h2 { font-size: clamp(1.65rem, 3.5vw, 2.3rem); }
.thov-section h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
.thov-section p,
.thov-section li {
  font-family: 'Lato', Georgia, serif;
  color: var(--thov-text-mid);
  font-size: 17px;
  line-height: 1.72;
}
.thov-section .thov-section-label {
  font-family: 'Lato', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--thov-green-dark);
}
.thov-section .thov-intro p { font-size: 1.08rem; line-height: 1.7; }
.thov-section .thov-muted p { color: var(--thov-text-light); }

/* --------------------------------------------------------------
   INNER-PAGE HERO ENHANCEMENTS
   The circle decoration uses .thov-inner-hero independently.
   The .thov-section-prefixed spacing applies only if both classes
   are present on the Section.
   -------------------------------------------------------------- */
.thov-section.thov-inner-hero {
  background-color: var(--thov-purple);
  padding-top: 76px;
  padding-bottom: 76px;
  position: relative;
  overflow: hidden;
}
.thov-inner-hero::before {
  content: '';
  position: absolute;
  top: -130px;
  right: -100px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: rgba(139,189,90,.06);
  pointer-events: none;
}
.thov-inner-hero .et_pb_row { position: relative; z-index: 1; }
.thov-section.thov-inner-hero h1 {
  color: #fff;
  max-width: 840px;
  margin-bottom: 18px;
}
.thov-section.thov-inner-hero .thov-section-label {
  color: var(--thov-green);
  margin-bottom: 16px;
}
.thov-section.thov-inner-hero p {
  color: rgba(255,255,255,.82);
}
.thov-section.thov-inner-hero .thov-hero-lead p {
  font-size: clamp(1.06rem, 2vw, 1.2rem);
  line-height: 1.7;
  max-width: 730px;
}

/* --------------------------------------------------------------
   BUTTONS
   Add to the DIVI BUTTON MODULE's CSS Class field, not its text.
   -------------------------------------------------------------- */
.thov-section .thov-btn-primary .et_pb_button,
.thov-section .et_pb_button.thov-btn-primary {
  background: var(--thov-green) !important;
  border: 1.5px solid var(--thov-green) !important;
  color: #fff !important;
  border-radius: 4px !important;
  font-family: 'Lato', sans-serif !important;
  font-weight: 700 !important;
  font-size: .92rem !important;
  letter-spacing: .04em;
  padding: 13px 27px !important;
  transition: background .2s, box-shadow .2s, transform .2s;
}
.thov-section .thov-btn-primary .et_pb_button:hover,
.thov-section .et_pb_button.thov-btn-primary:hover {
  background: var(--thov-green-dark) !important;
  border-color: var(--thov-green-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139,189,90,.3);
}
.thov-section .thov-btn-outline .et_pb_button,
.thov-section .et_pb_button.thov-btn-outline {
  background: transparent !important;
  color: var(--thov-purple) !important;
  border: 1.5px solid var(--thov-purple) !important;
  border-radius: 4px !important;
  font-family: 'Lato', sans-serif !important;
  font-size: .92rem !important;
  font-weight: 700 !important;
  padding: 13px 27px !important;
}
.thov-section .thov-btn-outline .et_pb_button:hover,
.thov-section .et_pb_button.thov-btn-outline:hover {
  background: var(--thov-purple) !important;
  color: #fff !important;
}
/* Prevent Divi's automatic hover arrow from shifting text. */
.thov-section .thov-btn-primary .et_pb_button::after,
.thov-section .thov-btn-outline .et_pb_button::after,
.thov-section .et_pb_button.thov-btn-primary::after,
.thov-section .et_pb_button.thov-btn-outline::after { display: none !important; }

/* --------------------------------------------------------------
   REUSABLE CARDS AND CALLOUTS
   Add classes to the native Divi COLUMN or TEXT MODULE.
   -------------------------------------------------------------- */
.thov-section .thov-resource-card {
  background: #fff;
  border: 1.5px solid var(--thov-border-light);
  border-radius: 6px;
  padding: 30px;
  box-shadow: var(--thov-shadow-card);
}
.thov-section .thov-resource-card h3 { margin-bottom: 12px; }
.thov-section .thov-resource-card p { color: var(--thov-text-light); font-size: .96rem; }
.thov-section .thov-resource-card a:not(.et_pb_button) {
  color: var(--thov-purple);
  text-decoration: underline;
  text-decoration-color: var(--thov-green);
  text-underline-offset: 3px;
  font-weight: 700;
}
.thov-section .thov-callout {
  background: var(--thov-purple-pale);
  border-top: 3px solid var(--thov-purple);
  border-radius: 0 0 4px 4px;
  padding: 30px 34px;
}
.thov-section .thov-callout p { color: var(--thov-text-dark); }
.thov-section .thov-callout-green {
  background: var(--thov-green-pale);
  border-left: 4px solid var(--thov-green);
  border-radius: 0 4px 4px 0;
  padding: 26px 30px;
}
.thov-section .thov-callout-green p { color: var(--thov-text-mid); }
.thov-section.thov-soft-section { background: var(--thov-cream); }

/* THOV resource navigation Blurb cards — icon on the right */

.thov-resource-nav .et_pb_blurb_content {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.thov-resource-nav .et_pb_main_blurb_image {
    flex: 0 0 auto;
    width: auto;
    margin: 3px 0 0;
}

.thov-resource-nav .et_pb_blurb_container {
    flex: 1;
    min-width: 0;
    padding-left: 0;
    text-align: left;
}

.thov-resource-nav .et_pb_module_header {
    padding-bottom: 5px;
    margin-bottom: 0;
}

/* --------------------------------------------------------------
   RESPONSIVE REFINEMENTS
   -------------------------------------------------------------- */
@media (max-width: 767px) {
  .thov-section.thov-inner-hero { padding-top: 54px; padding-bottom: 54px; }
  .thov-inner-hero::before {
    width: 230px;
    height: 230px;
    top: -95px;
    right: -110px;
  }
  .thov-section .thov-resource-card { padding: 24px; }
  .thov-section .thov-callout,
  .thov-section .thov-callout-green { padding: 22px 23px; }
  .thov-section .thov-intro p { font-size: 1rem; }
}
