/*
Theme Name: hev-custom
Theme URI: https://harmoniceggvictoria.ca
Template: Divi
Author: Mary Newell
Author URI: https://marynewell.ca
Description: Custom website for Harmonic Egg Victoria
Version: 5.0.0-public-alpha.18.1.1751389055
Updated: 2025-07-01 16:57:35
*/
/*
Theme Name: hev-custom
Theme URI: https://harmoniceggvictoria.ca
Template: Divi
Author: Mary Newell
Author URI: https://marynewell.ca
Description: Custom website for Harmonic Egg Victoria
Version: 5.0.0
Updated: 2025-10-11
*/

/* ---------------------------------------------------
 * Global Typography
 * --------------------------------------------------- */
@font-face {
  font-family: 'Open Sans v23';
  font-style: normal;
  font-weight: 400;
  src: url('/wp-content/uploads/et-fonts/open-sans-v43-latin-regular.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-display: swap;
  font-family: 'Nephlim';
  font-style: normal;
  font-weight: 400;
  src: url('/wp-content/uploads/et-fonts/nephilm-webfont.woff2') format('woff2');
}

body, p {
  font-family: 'Open Sans v23', sans-serif;
}
h1, h2, h3, h4, h5,
.et_pb_module_header {
  font-family: 'Nephlim', serif;
}

/* ---------------------------------------------------
 * Custom Bulleted Lists
 * --------------------------------------------------- */
.flower-list ul,
.white-flower-list ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0;
}
.flower-list li,
.white-flower-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}
.flower-list li::before,
.white-flower-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.2rem;
  height: 1.2rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.flower-list li::before {
  background-image: url('/wp-content/uploads/2025/07/Harmonic-Egg-Victoria-Sacred-Geometry-1.svg');
}
.white-flower-list li::before {
  background-image: url('/wp-content/uploads/2025/07/light-icon.svg');
}
.flower-list li::marker,
.white-flower-list li::marker {
  display: none;
}


/* ---------------------------------------------------
 * Hero Visual
 * --------------------------------------------------- */
.hero-visual {
  perspective: 800px;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 100%;
  overflow: hidden;
}
.svg-wrapper {
  position: absolute; inset: 0; z-index: 0;
}
.hero-visual-inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
}
.hero-visual-inner img,
.hero-visual-inner svg {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}
.hero-egg-img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  z-index: 1;
}

/* ---------------------------------------------------
 * Bio, Quotes, Guides
 * --------------------------------------------------- */
.block-quote {
  font-family: 'Nephlim', serif;
  font-size: 1.05rem;
  color: #292727;
  border-left: 4px solid #be2226;
  margin: 1.5em 0;
  padding: 0 0 1em 1em;
  display: block;
}
.guide-list { list-style-type: "— "; margin: 1em 0 0 0; padding: 0; }
.guide-list li { margin-bottom: 0.5em; }

/* ---------------------------------------------------
 * Guardian Details (plus/minus style)
 * --------------------------------------------------- */
.guardian-details {
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  margin-top: 1rem;
  padding: 0;
}
.guardian-details summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: #f7f7f7;
  position: relative;
}
.guardian-details summary::before {
  content: "+";
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  transition: all 0.15s ease;
}
.guardian-details[open] summary::before { content: "–"; }
.guardian-details p { padding: 0 1rem 1rem; margin: 0; }

/* ---------------------------------------------------
 * Tree of Life Background + Protocols
 * --------------------------------------------------- */
.tree-of-life-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  text-align: center;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  transform: scale(0.8);
}
.tree-of-life-bg svg {
  max-width: 400px;
  margin: 0 auto;
}

/* Protocols grid + card styling kept intact from your original version (no changes) */
/* ...[retain your existing protocol and YARPP grid rules here exactly as-is]... */

/* ---------------------------------------------------
 * Clean Fixed Header (Single Source of Truth)
 * --------------------------------------------------- */
.site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  will-change: background-color, box-shadow;
}
.site-header.custom-fixed-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
  padding-block: 0.25rem;
}
.site-header.custom-fixed-header .et_pb_menu__logo img {
  transform: scale(0.75);
  transition: transform 0.3s ease;
  opacity: 1; visibility: visible;
}
.site-header.custom-fixed-header .et_pb_menu__wrap { align-items: center; }
.site-header.custom-fixed-header .et_pb_menu__menu,
.site-header.custom-fixed-header .et_mobile_nav_menu {
  color: #2b2c34;
}
@media (max-width: 980px) {
  .site-header.custom-fixed-header {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding-block: 0.4rem;
  }
  .site-header.custom-fixed-header .et_pb_menu__logo img { transform: scale(0.85); }
}
.et-l--header { transform: none !important; }
.site-header.custom-fixed-header .et_pb_section,
.site-header.custom-fixed-header .et_pb_row,
.site-header.custom-fixed-header .et_pb_menu__wrap {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
/* Force instant visibility to prevent first-load flashing */
.site-header img,
.hero-section img {
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
}
/* ---------------------------------------------------
 * YARPP Related Content Grids (Protocols & Testimonials)
 * --------------------------------------------------- */

/* Section Heading */
.yarpp-heading {
  margin: 2rem 0 1rem;
  font-size: clamp(1.1rem, 0.6rem + 1vw, 1.5rem);
  line-height: 1.25;
  color: #292727;
}

/* Shared container: Flex-based for Divi reliability */
.yarpp-mixed-grid,
.yarpp-text-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Each Card */
.yarpp-card {
  flex: 1 1 calc(33.333% - 1rem); /* 3 per row desktop */
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.yarpp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* Thumbnail (if present) */
.yarpp-card__thumb {
  margin: -1.25rem -1.25rem 1rem;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.yarpp-card__thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Title & Excerpt */
.yarpp-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  line-height: 1.3;
}
.yarpp-card__title a {
  text-decoration: none;
  color: #292727;
}
.yarpp-card__title a:hover {
  text-decoration: underline;
}

.yarpp-card__excerpt {
  font-size: 0.95rem;
  color: #555;
  margin: 0.5rem 0 0;
}

/* Read More Button */
.yarpp-card__button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: #292727;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.yarpp-card__button:hover {
  background: #000;
  transform: translateY(-2px);
}

/* Theming by Post Type */
body.single-testimonial .yarpp-card { border-color: #4b3b78; background: #f6f4f9; }
body.single-testimonial .yarpp-card__button { background: #4b3b78; }
body.single-protocols .yarpp-card { border-color: #248aa0; background: #f1fafa; }
body.single-protocols .yarpp-card__button { background: #248aa0; }

/* Responsiveness */
@media (max-width: 992px) {
  .yarpp-card { flex: 1 1 calc(50% - 1rem); }
}
@media (max-width: 600px) {
  .yarpp-card { flex: 1 1 100%; }
}


