/* ==========================================================================
   The Love Trumpet · Heart Coherence Page Enhancements
   File: css/heart-enhancements.css
   Load AFTER the site's existing stylesheets on heart-coherence.html.
   All classes use the "thc-" prefix so nothing collides with existing styles.
   ========================================================================== */

:root {
  --thc-navy: #0a1d30;
  --thc-navy-2: #123a5c;
  --thc-gold: #c9a84c;
  --thc-gold-text: #7A5F28;
  --thc-cream: #f4f1e9;
  --thc-bg: #fdfcf9;
  --thc-serif: "Cormorant Garamond", serif;
  --thc-sans: Inter, sans-serif;
}

/* ---------- 1. Blue hero with moving frequency line ---------- */
.thc-hero {
  position: relative; text-align: center; color: #fff;
  background: radial-gradient(circle at 50% 30%, var(--thc-navy-2), var(--thc-navy) 70%);
  padding: 200px 0 100px; /* top padding clears the fixed site header; bottom is half that, below the wave */
}
.thc-hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: 0 24px; }
.thc-hero-eyebrow { font: 600 .97rem var(--thc-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--thc-gold); margin: 0 0 18px; }
.thc-hero h1 { font: 500 clamp(42px, 6vw, 68px)/1.05 var(--thc-serif); color: #fff; margin: 0 0 18px; }
.thc-hero-tag { font: italic 500 clamp(24px, 2.6vw, 32px)/1.3 var(--thc-serif); color: #fff; margin: 0; }
/* Wave band: sits directly below the quote, in normal flow (never overlapping it) */
.thc-hero canvas { display: block; width: 100%; height: 150px; margin: 46px 0 0; pointer-events: none; }
/* The first original section no longer needs room for the header */
.thc-hero + section { padding-top: 70px !important; }

/* ---------- 2. Alternating section backgrounds ---------- */
.thc-band {
  background: var(--thc-cream);
  box-shadow: 0 0 0 100vmax var(--thc-cream);  /* full-bleed cream band */
  clip-path: inset(0 -100vmax);
  padding: 70px 0 60px; margin: 60px 0 0;
}
.thc-section-cream { background: var(--thc-cream) !important; }

/* ---------- 4. Science section ---------- */
.thc-toc { background: var(--thc-cream); border-radius: 14px; padding: 22px 26px; margin: 30px 0 10px; }
.thc-toc-title { font: 600 .97rem var(--thc-sans) !important; letter-spacing: .2em; text-transform: uppercase; color: var(--thc-gold-text) !important; margin: 0 0 12px !important; text-align: left !important; }
.thc-toc ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; counter-reset: thc; }
.thc-toc li { counter-increment: thc; }
.thc-toc a { display: flex; gap: 10px; align-items: baseline; font: 500 14px var(--thc-sans); color: var(--thc-navy); text-decoration: none; }
.thc-toc a::before { content: counter(thc, decimal-leading-zero); font: 500 16px var(--thc-serif); color: var(--thc-gold-text); }
.thc-toc a:hover, .thc-toc a:focus-visible { color: var(--thc-gold-text); }

.thc-h3 { display: flex; align-items: center; }
.thc-num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%; margin-right: 14px;
  background: var(--thc-cream); border: 1px solid rgba(201, 168, 76, .6);
  color: var(--thc-gold-text); font: 500 17px var(--thc-serif);
}
.thc-pull { margin: 30px 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--thc-gold); font: italic 500 28px/1.35 var(--thc-serif); color: var(--thc-navy); }

.thc-diagram { margin: 34px 0; background: #fff; border: 1px solid rgba(10, 29, 48, .08); border-radius: 16px; padding: 26px; text-align: center; box-shadow: 0 8px 24px rgba(10, 29, 48, .05); }
.thc-diagram svg { width: 100%; max-width: 920px; height: auto; }
.thc-diagram-cap { font: 500 20px var(--thc-serif) !important; color: #000 !important; margin: 8px 0 0 !important; text-align: center !important; }
.thc-diagram-credit { font: 400 13px var(--thc-sans) !important; color: #9aa1a8 !important; margin: 6px 0 0 !important; text-align: center !important; }
.thc-up { stroke-dasharray: 7 12; animation: thc-up 1.4s linear infinite; }
.thc-down { stroke-dasharray: 4 15; animation: thc-down 2.6s linear infinite; }
.thc-beat { transform-box: fill-box; transform-origin: center; animation: thc-beat 1.1s ease-in-out infinite; }
@keyframes thc-up { to { stroke-dashoffset: -38; } }
@keyframes thc-down { to { stroke-dashoffset: -38; } }
@keyframes thc-beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.05); } 28% { transform: scale(1); } }

/* ---------- 7. "Learn More" as a clear gold button ---------- */
summary.thc-learn {
  display: inline-flex !important; align-items: center; gap: 8px; list-style: none; cursor: pointer;
  font: 600 13px var(--thc-sans) !important; letter-spacing: .06em; text-transform: uppercase;
  color: var(--thc-navy) !important; border: 1.5px solid var(--thc-gold); border-radius: 100px;
  padding: 11px 20px !important; margin: 6px 0 10px; transition: background .2s ease;
}
summary.thc-learn::-webkit-details-marker { display: none; }
summary.thc-learn:hover, summary.thc-learn:focus-visible { background: rgba(201, 168, 76, .12); }
details[open] > summary.thc-learn .thc-learn-arrow { transform: rotate(180deg); }
.thc-learn-arrow { display: inline-block; transition: transform .2s ease; }

/* ---------- 9. "Pause with us" breathing flower ---------- */
.thc-breath-section { background: var(--thc-bg); padding: 90px 24px; }
.thc-breath {
  max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center;
  border-radius: 28px; padding: 40px 44px; color: #fff; background-color: #3a1656;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 95, 162, .85), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(255, 154, 60, .8), transparent 45%),
    radial-gradient(circle at 25% 90%, rgba(123, 108, 255, .9), transparent 50%),
    radial-gradient(circle at 90% 85%, rgba(62, 197, 255, .75), transparent 45%);
  box-shadow: rgba(58, 22, 86, .6) 0 30px 60px -30px;
}
.thc-orb { position: relative; width: 280px; height: 280px; }
.thc-flower { position: relative; width: 280px; height: 280px; animation: thc-spin 40s linear infinite; }
@keyframes thc-spin { to { transform: rotate(360deg); } }
.thc-petal-wrap { position: absolute; left: 140px; top: 140px; }
.thc-petal {
  position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%;
  opacity: .85; mix-blend-mode: screen; box-shadow: inset 0 0 30px rgba(255, 255, 255, .25);
  transform: translateX(26px) scale(.72);
  background-image: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .53), rgb(var(--c)) 55%, rgba(var(--c), 0) 100%);
}
.thc-cue { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.thc-cue b { display: block; font: italic 500 26px var(--thc-serif); color: #fff; }
.thc-cue small { display: block; font: 500 22px var(--thc-sans); color: #fff; min-height: 26px; }
.thc-breath-eyebrow { font: 600 14px var(--thc-sans) !important; letter-spacing: 3.36px; text-transform: uppercase; color: #ffe7a8 !important; margin: 0 0 10px !important; text-align: left !important; }
.thc-breath h4 { font: 500 34px/1.15 var(--thc-serif); color: #fff; margin: 0 0 12px; }
.thc-breath-text { font: 400 15px/1.7 var(--thc-sans) !important; color: rgba(255, 255, 255, .9) !important; margin: 0 0 20px !important; text-align: left !important; }
.thc-breath button {
  font: 600 13px var(--thc-sans); letter-spacing: .78px; color: #3a1656; border: 0; border-radius: 999px;
  padding: 14px 24px; cursor: pointer; background: linear-gradient(90deg, #ffd23f, #ff9a3c, #ff5fa2);
}

/* ---------- 10. Always-visible email signup card below the breathing section ---------- */
.thc-signup-section { background: var(--thc-bg); padding: 0 24px 56px; }
.thc-signup {
  max-width: 900px; margin: 0 auto;
  border-radius: 28px; padding: 40px 44px;
  display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap;
  background: var(--thc-navy);
}
.thc-signup-copy { flex: 1; min-width: 240px; max-width: 560px; }
.thc-signup-title { font: 500 26px/1.2 var(--thc-serif) !important; color: #fff !important; margin: 0 !important; text-align: left !important; }
.thc-signup-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-start; }
.thc-signup-input {
  font: 400 15px var(--thc-sans); color: var(--thc-navy);
  padding: 16px 20px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 100px;
  min-width: 220px; background: #fff;
}
.thc-signup-input:focus { outline: 2px solid var(--thc-gold); outline-offset: 1px; }
.thc-signup-btn {
  display: inline-block; background: var(--thc-gold); color: var(--thc-navy);
  font: 600 15px/1 var(--thc-sans); letter-spacing: .04em;
  padding: 17px 30px; border-radius: 100px; border: 0; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.thc-signup-btn:hover, .thc-signup-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(201, 168, 76, .4); }
.thc-signup-msg { font: italic 500 20px/1.4 var(--thc-serif); color: #fff; margin: 0; }
.thc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Motion + responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  .thc-up, .thc-down, .thc-beat, .thc-flower { animation: none; }
}
@media (max-width: 800px) {
  .thc-hero { padding: 160px 0 80px; }
  .thc-hero-inner { padding: 0 20px; }
  .thc-hero canvas { height: 120px; margin-top: 36px; }
  .thc-toc ol { grid-template-columns: 1fr; }
  .thc-breath { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 32px 24px; }
  .thc-breath-eyebrow, .thc-breath-text { text-align: center !important; }
}
@media (max-width: 380px) {
  .thc-orb, .thc-flower { width: 240px; height: 240px; }
  .thc-petal-wrap { left: 120px; top: 120px; }
}
@media (max-width: 760px) {
  .thc-signup-section { padding: 0 20px 40px; }
  .thc-signup { flex-direction: column; text-align: center; padding: 32px 24px; }
  .thc-signup-copy { text-align: center; max-width: none; }
  .thc-signup-title { text-align: center !important; }
  .thc-signup-form { justify-content: center; width: 100%; }
  .thc-signup-input { min-width: 0; width: 100%; }
  .thc-signup-form .thc-signup-btn { width: 100%; }
}
