/*
Theme Name: HTTAYS - Divi Child
Theme URI: https://www.howtotalkamongstyourselves.com/
Description: Divi child theme for How to Talk Amongst Your Selves.
Author: Guy Reichard
Author URI: https://www.heartrich.ca/
Template: Divi
Version: 1.0.0
Text Domain: httays-divi-child
*/

/* Traditional parent stylesheet import — intentionally matches the THOV setup. */
@import url("../Divi/style.css");

/* ==============================================================
   HTTAYS — SHARED DIVI STYLES

   PRINCIPLES
   1. Prefer Divi module Design-tab settings for layout and appearance.
   2. Use child-theme CSS only for shared defaults, reusable enhancements,
      or effects that Divi cannot conveniently express.
   3. Reuse THOV Divi Cloud layouts as starting points; modules may retain
      their existing Design-tab styles without relying on these classes.
   4. Use the httays- prefix for site-specific classes.
   5. Document new reusable classes and the modules that use them.

   INITIAL STATE
   This is a minimal foundation, not a full migration of the original
   one-page HTML <style> block. Add component rules as each section is
   rebuilt and tested. Keep the live homepage unchanged until launch.
   ============================================================== */

:root {
  --httays-purple: #382d7b;
  --httays-purple-dark: #2a2060;
  --httays-purple-deeper: #1e1650;
  --httays-purple-pale: #f0eef9;
  --httays-purple-mid: #6b5ec7;
  --httays-green: #8bbd5a;
  --httays-green-dark: #6a9c40;
  --httays-green-pale: #f2f8eb;
  --httays-cream: #faf8f3;
  --httays-warm-white: #ffffff;
  --httays-text-dark: #1a1530;
  --httays-text-body: #3d3556;
  --httays-text-muted: #7a7297;
  --httays-border-light: rgba(56, 45, 123, 0.12);
}

/* ==============================================================
   GLOBAL TYPE — ONLY DEFAULTS, NOT MODULE DESIGN OVERRIDES

   Keep disabled until we check the imported THOV homepage styles.
   If necessary, we can enable these individually after testing.

   body { font-family: 'Lato', sans-serif; }
   h1, h2, h3, h4 { font-family: 'Rosario', Georgia, serif; }
   ============================================================== */
.httays-hero .httays-hero-author {
  font-family: 'Rosario', Georgia, serif;
  font-size: 19px;
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}
/* ==============================================================
   REUSABLE COMPONENTS
   Add rules here only as Divi components are migrated and approved.
   ============================================================== */

/* ==========================================
   HTTAYS — REUSABLE TEXT ELEMENTS
   ========================================== */

/* Eyebrow: small uppercase section label */
.et_pb_text p.httays-eyebrow {
    font-family: 'Rosario', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6fa342;
    margin: 0 0 14px;
    padding: 0;
}

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

/* Pullquote: solid purple background */
.et_pb_text blockquote.httays-pullquote {
    background: #382d7b;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 24px 28px;
    margin: 28px 0;
    font-family: 'Rosario', Georgia, serif;
    font-size: 19px;
    font-weight: 600;
    font-style: italic;
    line-height: 1.5;
}

/* Ensure paragraph text inside quote is white */
.et_pb_text blockquote.httays-pullquote p {
    color: #ffffff;
    padding: 0;
    margin: 0;
}

/* Green-accent alternative */
.et_pb_text blockquote.httays-pullquote-green {
    background: transparent;
    color: #1a1530;
    border-left: 4px solid #8bbd5a;
    border-radius: 0;
    padding: 12px 20px;
}

.et_pb_text blockquote.httays-pullquote-green p {
    color: #1a1530;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .et_pb_text p.httays-eyebrow {
        font-size: 11px;
    }

    .et_pb_text blockquote.httays-pullquote {
        font-size: 17px;
        padding: 20px 22px;
    }
}


/* ==========================================
   HTTAYS — THREE TRUTHS CARD
   Native Divi Text Module + styled numbered list
   ========================================== */

.httays-three-truths ol {
    list-style: none;
    counter-reset: truth;
    margin: 0;
    padding: 0;
}

.httays-three-truths ol li {
    counter-increment: truth;
    position: relative;
    list-style: none;
    margin: 0 0 18px;
    padding: 2px 0 0 44px;
    min-height: 30px;
    color: #3d3556;
    font-size: 15px;
    line-height: 1.65;
}

.httays-three-truths ol li:last-child {
    margin-bottom: 0;
}

.httays-three-truths ol li::before {
    content: counter(truth);
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #382d7b;
    color: #ffffff;
    font-family: 'Rosario', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 30px;
    text-align: center;
}

/* Third principle: green emphasis */
.httays-three-truths ol li:nth-child(3)::before {
    background: #8bbd5a;
}

/* Mobile */
@media (max-width: 767px) {
    .httays-three-truths ol li {
        padding-left: 40px;
        font-size: 14px;
    }
}

/* ==========================================
   HTTAYS — RECOGNIZABLE VOICES CARD
   ========================================== */

.httays-voices-card .httays-voices-title {
    font-family: 'Rosario', Georgia, serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #382d7b;
    margin: 0 0 16px;
    padding: 0;
}

.httays-voices-card ul.httays-voices-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.httays-voices-card .httays-voices-list li {
    position: relative;
    padding: 10px 0 10px 20px;
    margin: 0;
    border-bottom: 1px solid #e2dff0;
    color: #3d3556;
    line-height: 1.6;
}

.httays-voices-card .httays-voices-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.httays-voices-card .httays-voices-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 19px;
    width: 7px;
    height: 7px;
    background: #6b5ec7;
    border-radius: 50%;
}


/* ==========================================
   HTTAYS — INNER CREW CARDS
   ========================================== */

.httays-crew-card {
    background: #ffffff;
    border: 1px solid rgba(56,45,123,0.12);
    border-top: 3px solid #382d7b;
    border-radius: 8px;
    padding: 24px 20px;
    height: 100%;
    box-sizing: border-box;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.httays-crew-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(56,45,123,0.12);
}

/* Alternate green accent */
.httays-crew-card.httays-crew-card-green {
    border-top-color: #8bbd5a;
}

.httays-crew-card .httays-crew-number {
    font-family: 'Rosario', Georgia, serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7a7297;
    margin: 0 0 8px;
    padding: 0;
}

.httays-crew-card .httays-crew-name {
    font-family: 'Rosario', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #382d7b;
    margin: 0 0 10px;
    padding: 0;
}

.httays-crew-card .httays-crew-description {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #6e6a85;
    margin: 0;
    padding: 0;
}

@media (prefers-reduced-motion: reduce) {
    .httays-crew-card {
        transition: none;
    }

    .httays-crew-card:hover {
        transform: none;
    }
}


/* HTTAYS — Two-Part Book Structure */

.httays-part-card {
    position: relative;
    overflow: hidden;
}

.httays-part-card::after {
    position: absolute;
    top: 18px;
    right: 25px;
    font-family: 'Rosario', Georgia, serif;
    font-size: 66px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.httays-part-one::after {
    content: "I";
    color: rgba(255,255,255,0.16);
}

.httays-part-two::after {
    content: "II";
    color: rgba(111,163,66,0.14);
}

@media (max-width: 767px) {
    .httays-part-card::after {
        font-size: 52px;
        top: 16px;
        right: 18px;
    }
}


/* HTTAYS — Book Structure Lists */

.httays-part-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.httays-part-card ul li {
    position: relative;
    padding: 0 0 0 22px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.httays-part-card ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.65em;
    width: 7px;
    height: 7px;
    background: #8bbd5a;
    border-radius: 50%;
}

.httays-part-card ul li:last-child {
    margin-bottom: 0;
}


/* ==========================================
   HTTAYS — WHO THIS GUIDE IS FOR
   Styled bullets for audience cards
   ========================================== */

.httays-audience-card ul {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.httays-audience-card ul li {
    position: relative;
    list-style: none;
    margin: 0 0 12px;
    padding: 0 0 0 22px;
    line-height: 1.65;
}

.httays-audience-card ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.68em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #8bbd5a;
}

.httays-audience-card ul li:last-child {
    margin-bottom: 0;
}

/* HTTAYS Resources — Blurb description links */

.et_pb_blurb.httays-resource-card .et_pb_blurb_description a {
    color: #382d7b !important;
	font-size: 16px;    
  	font-weight: bold; 
    text-decoration: none;
    transition: color 0.2s ease;
}

.et_pb_blurb.httays-resource-card .et_pb_blurb_description a:hover,
.et_pb_blurb.httays-resource-card .et_pb_blurb_description a:focus-visible {
    color: #6a9c40 !important;
    text-decoration: underline;
}

/* ==============================================================
   RESPONSIVE ADJUSTMENTS
   Add only if needed after desktop/tablet/mobile testing.
   ============================================================== */
