/* ==========================================================================
   Healing From Within: block layer
   Maps core block markup (groups, buttons, images, lists) onto the approved
   design in site.css, styles inner pages, and aligns Kadence's palette so
   WooCommerce and default Kadence screens match the brand.
   ========================================================================== */

/* Kadence palette -> brand (affects Kadence/WooCommerce defaults only) */
:root{
  --global-palette1:#0b2c38; --global-palette2:#164351; --global-palette3:#08242e;
  --global-palette4:#24414b; --global-palette5:#556b72; --global-palette6:#8d6534;
  --global-palette7:#f0e8d9; --global-palette8:#f6f2ea; --global-palette9:#ffffff;
  --hfw-gold-text:#8d6534;
}
body.hfw-site{background:var(--ivory);color:var(--ink);font-family:Arial,Helvetica,sans-serif}
body.hfw-site .site{background:transparent}
.admin-bar .nav{top:auto}

/* Legacy group inner wrappers must not break the grid/flex layouts */
.hfw-blocks .wp-block-group__inner-container{display:contents}
/* Dark sections: headings inherit the light section color (Kadence sets h1-h6 colors) */
.hfw-blocks :is(.hero,.order,.quote-band,.hfw-page-hero,.hfw-cta-band) :is(h1,h2,h3,h4){color:inherit}
.footer .brand-name{color:#f7f2e8}

/* Neutralise core flow-layout gaps inside designed sections; design rules set spacing */
.hfw-blocks :where(.is-layout-flow,.is-layout-constrained) > *{margin-block-start:0;margin-block-end:0}
.hfw-blocks .wp-block-group{box-sizing:border-box}
.hfw-blocks figure.wp-block-image{margin:0}
.hfw-blocks p:empty{display:none}

/* Accessible text tones for gold-on-light labels (WCAG AA at small sizes) */
.section-intro .eyebrow,.about-text .eyebrow,.dual-panel .eyebrow,.card .number,
.hfw-product-tag,.detail-head .eyebrow,.hfw-prose .eyebrow{color:var(--hfw-gold-text)}

/* Header additions */
.nav-links a[aria-current="page"]{color:var(--gold)}
.nav-mobile-cta{display:none}
@media(max-width:900px){
  .nav-links .nav-mobile-cta{display:inline-flex;margin-top:6px;border:1px solid var(--gold);color:var(--gold);padding:12px 16px;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
  .nav-links a{font-size:14px}
}

/* ---------- Buttons (core/button) ---------- */
.hfw-blocks .wp-block-buttons{display:flex;flex-wrap:wrap;gap:16px;align-items:center}
.hfw-blocks .wp-block-button{margin:0}
.hfw-blocks .wp-block-button .wp-block-button__link{
  display:inline-flex;justify-content:center;align-items:center;min-height:52px;padding:16px 26px;
  border:1px solid var(--gold);background:var(--gold);color:#132831;border-radius:2px;
  text-transform:uppercase;font-size:11px;letter-spacing:.14em;font-weight:800;line-height:1.3;
  text-decoration:none;box-shadow:none;transition:transform .18s ease,background .18s ease}
.hfw-blocks .wp-block-button .wp-block-button__link:hover{transform:translateY(-2px);background:#f2d4a0;color:#132831}
.hfw-blocks .wp-block-button.is-style-hfw-ghost .wp-block-button__link{background:transparent;color:#f3efe4;border-color:rgba(255,255,255,.5)}
.hfw-blocks .wp-block-button.is-style-hfw-ghost .wp-block-button__link:hover{border-color:var(--gold);color:var(--gold);background:transparent}
.hfw-blocks .wp-block-button.is-style-hfw-dark .wp-block-button__link{background:#0b2c38;color:#fff;border-color:#0b2c38}
.hfw-blocks .wp-block-button.is-style-hfw-dark .wp-block-button__link:hover{background:#164351;color:#fff}
.hfw-blocks .wp-block-button.is-style-outline .wp-block-button__link{background:transparent;color:#0b2c38;border-color:#0b2c38}
.hfw-blocks .wp-block-buttons.is-content-justification-center{justify-content:center}
.hfw-blocks .wp-block-button__link:focus-visible{outline:3px solid var(--rose);outline-offset:4px}

/* ---------- Hero ---------- */
.hero .hero-copy > .actions{margin-top:0}
.hero .hero-fine{display:flex;gap:12px;align-items:center;color:#a9bebd;font-size:12px;margin-top:26px}
.hero .hero-fine::before{content:"";display:block;flex:0 0 35px;height:1px;background:var(--gold)}
.book-stage .wp-block-image{position:relative;z-index:1;width:75%;max-width:350px}
.book-stage .wp-block-image img{display:block;width:100%;height:auto;aspect-ratio:.66;object-fit:cover;
  box-shadow:30px 40px 75px rgba(0,0,0,.58),-5px 1px 1px rgba(255,255,255,.15);transform:rotate(1.1deg)}
.book-stage p.side-ribbon{position:absolute;z-index:2;right:2%;bottom:15%;margin:0;background:#f5ead5;color:#193b44;
  padding:11px 14px;box-shadow:0 6px 28px #0005;font-size:10px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;transform:rotate(-4deg)}
@media(max-width:900px){.book-stage .wp-block-image{width:87%}}
@media(max-width:680px){
  .book-stage .wp-block-image{max-width:250px;width:67%}
  .book-stage p.side-ribbon{right:3%;bottom:11%;font-size:9px}
  .hero .actions .wp-block-button{width:100%}
  .hero .actions .wp-block-button__link{width:100%}
  .hero .hero-fine{justify-content:center}
}

/* Trust strip */
.trust-inner p{margin:0;font-family:Georgia,serif;font-size:18px;color:#29424a}
.trust-inner p::before{content:"\2726";color:#b98f53;padding-right:13px;font-size:19px}
@media(max-width:900px){.trust-inner p{font-size:16px}}
@media(max-width:680px){.trust-inner p{font-size:15px}}

/* ---------- Section intro & cards ---------- */
.section-intro h2{margin:0 0 22px}
.section-intro .eyebrow{margin-bottom:18px}
.cards.cards-4{grid-template-columns:repeat(4,1fr)}
.cards.cards-4 .card{padding:32px 26px}
.cards.cards-4 .card h3{font-size:23px}
.card .number{margin:0}
@media(max-width:1020px){.cards.cards-4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.cards.cards-4{grid-template-columns:1fr}}

/* Statement band (book subtitle) */
.quote-band .quote-statement{font:normal clamp(28px,3.5vw,43px)/1.34 Georgia,serif;letter-spacing:-.025em;max-width:780px;margin:0 auto 25px}
.quote-band .quote-cite{font-size:12px;color:var(--gold);letter-spacing:.16em;text-transform:uppercase;margin:0}

/* ---------- Shop ---------- */
.hfw-shop .section-intro p{margin:0 auto}
.hfw-product a.hfw-cta.hfw-secondary{background:transparent;color:#0b2c38;border-color:#0b2c38}
.hfw-product a.hfw-cta.hfw-secondary:hover{background:#0b2c38;color:#fff}
.hfw-shop-note{text-align:center;font-size:12px;color:#6f7b80;margin-top:26px !important}

/* ---------- About ---------- */
.about-photo .wp-block-image img{width:100%;display:block;aspect-ratio:4/5;object-fit:cover;object-position:center 30%;box-shadow:20px 20px 0 #e1ceab}
.about-text h2{margin:0 0 18px}
.about-text .wp-block-separator.line{border:0;height:1px;background:#dccbb0;width:110px;margin:27px 0;opacity:1}
.about-text .wp-block-buttons{margin-top:4px}

/* ---------- Chapter One (order) ---------- */
.order .order-text{margin:0 0 16px}
.order-details .detail-head .eyebrow{margin:0}
.order-details .detail-head p.price{margin:0}
.order-details .tiny{margin:8px 0 0}
.order-details .details-list{list-style:none;padding:0;margin:12px 0 24px}
.order-details .wp-block-buttons .wp-block-button{width:100%}
.order-details .wp-block-buttons .wp-block-button__link{width:100%}
.order-details .status-note{margin:15px 0 0}

/* ---------- Groups / bookstores ---------- */
.dual-panel h3{margin:15px 0 12px}
.dual-panel p{margin:0}
.dual-panel p.panel-link{margin-top:13px}
.dual-panel ul{color:#667579;line-height:1.8;font-size:14px;padding-left:18px;margin:10px 0 0}
.groups-cta{margin-top:40px !important}

/* ---------- Signup ---------- */
.hfw-signup-band{background:#f0e8d9;border-top:1px solid #e2d7c5;border-bottom:1px solid #e2d7c5;padding:84px 0}
.hfw-signup-band .section-intro{margin-bottom:30px}
.hfw-signup{max-width:560px;margin:0 auto}
.hfw-signup-row{display:flex;gap:10px}
.hfw-signup input[type=email]{flex:1;min-height:52px;padding:0 16px;border:1px solid #cdbfa9;background:#fbf8f2;color:#55666b;font:inherit;font-size:15px;border-radius:2px}
.hfw-signup .btn[disabled]{background:#d1c7b7;border-color:#d1c7b7;color:#4f4840;cursor:not-allowed;transform:none}
.hfw-signup-note{text-align:center;font-size:12px;color:#5f6c70;margin:14px 0 0}
@media(max-width:560px){.hfw-signup-row{flex-direction:column}}

/* ---------- Footer additions ---------- */
.footer .footer-contact{margin:6px 0 0}
.footer .footer-contact a{color:var(--gold);border-bottom:1px solid rgba(228,196,134,.4);padding-bottom:2px}
.footer-link{flex-wrap:wrap;justify-content:flex-end}
.footer-link a:hover,.footer-legal a:hover{color:var(--gold)}
.footer-legal{display:flex;flex-wrap:wrap;gap:18px}
@media(max-width:680px){.footer-link{justify-content:flex-start}}

/* ==========================================================================
   Inner pages
   ========================================================================== */
.hfw-page-hero{color:#fff;padding:84px 0 76px;background:radial-gradient(ellipse 50% 90% at 85% 30%,rgba(26,103,113,.38),transparent 72%),linear-gradient(130deg,#06202a 3%,#082c38 60%,#061923 100%)}
.hfw-page-hero .eyebrow{color:var(--gold);margin-bottom:18px}
.hfw-page-hero h1{font:normal clamp(38px,4.4vw,60px)/1.12 Georgia,'Times New Roman',serif;letter-spacing:-.035em;margin:0 0 18px;max-width:820px}
.hfw-page-lead{color:#d3dcd9;font-size:17px;line-height:1.85;max-width:640px;margin:0}
.hfw-page-body > .section:first-child{padding-top:80px}

.hfw-prose{max-width:760px;margin:0 auto}
.hfw-prose > * + *{margin-block-start:1.1em !important}
.hfw-prose p,.hfw-prose li{color:#3f5860;font-size:17px;line-height:1.85}
.hfw-prose h2{font:normal clamp(28px,3vw,38px)/1.2 Georgia,serif;letter-spacing:-.02em;color:var(--ink);margin-block-start:1.6em !important}
.hfw-prose h2:first-child{margin-block-start:0 !important}
.hfw-prose h3{font:normal 24px/1.25 Georgia,serif;color:var(--ink);margin-block-start:1.4em !important}
.hfw-prose a:not(.wp-block-button__link){color:#0b2c38;text-decoration:underline;text-decoration-color:var(--gold-strong);text-underline-offset:3px}
.hfw-prose a:not(.wp-block-button__link):hover{color:#8d6534}
.hfw-prose ul,.hfw-prose ol{padding-left:1.2em}
.hfw-prose strong{color:#183946}

.hfw-callout{background:#fff;border:1px solid #eadfd0;border-left:3px solid var(--gold-strong);padding:26px 30px}
.hfw-callout p{font-size:15px !important;margin:0}
.hfw-callout p + p{margin-top:10px !important}
.hfw-callout .eyebrow{font-size:11px !important;color:var(--hfw-gold-text);margin-bottom:8px !important}

.hfw-split{display:grid;grid-template-columns:.8fr 1.2fr;gap:64px;align-items:center}
.hfw-split .wp-block-image img{width:100%;height:auto;display:block;box-shadow:20px 20px 0 #e1ceab}
.hfw-split.is-book .wp-block-image{max-width:340px;margin:0 auto}
.hfw-split.is-book .wp-block-image img{box-shadow:24px 30px 60px rgba(8,36,46,.35)}
@media(max-width:780px){.hfw-split{grid-template-columns:1fr;gap:44px}}

.hfw-cta-band{background:linear-gradient(145deg,#0a2b36,#061e28);color:#f9f4eb;padding:76px 0;text-align:center}
.hfw-cta-band h2{font:normal clamp(30px,3.4vw,44px)/1.18 Georgia,serif;margin:0 0 16px}
.hfw-cta-band p{color:#b8cacc;line-height:1.85;max-width:620px;margin:0 auto 28px}
.hfw-cta-band .eyebrow{color:var(--gold);margin-bottom:16px}

/* WooCommerce screens under Kadence: brand buttons */
.woocommerce a.button,.woocommerce button.button,.woocommerce .single_add_to_cart_button{background:#0b2c38;color:#fff;border-radius:2px;text-transform:uppercase;letter-spacing:.12em;font-size:12px}

/* ---- v0.2.2 polish: re-assert design spacing over the flow-gap reset ---- */
.hfw-blocks :is(h1,h2,h3,h4){font-weight:400}
.hfw-blocks .section-intro{margin:0 auto 55px}
.hfw-blocks .hfw-shop .section-intro{margin-bottom:34px}
.hfw-blocks .hfw-signup-band .section-intro{margin-bottom:30px}
.hfw-blocks .hero .hero-sub{margin:0 0 34px}
.hfw-blocks .hero-copy .eyebrow{margin-bottom:26px}
.hfw-blocks .about-text p{margin:0 0 18px}
.hfw-blocks .order h2{margin:0 0 19px}
.hfw-blocks .order-details .detail-head{margin-bottom:18px}
.hfw-blocks .quote-band .eyebrow{margin-bottom:22px}
.hfw-blocks .quote-band .quote-statement{margin:0 auto 25px}
.hfw-blocks .hfw-page-body .hfw-callout{margin-bottom:8px}
.hfw-signup .btn[disabled]{opacity:1;color:#4f4840}
@media(max-width:680px){.hfw-blocks .section-intro{margin-bottom:34px}}

/* ---- v0.2.3: prose rhythm when WP adds group inner-container wrappers ---- */
.hfw-prose > .wp-block-group__inner-container > * + *{margin-block-start:1.1em !important}
.hfw-prose > .wp-block-group__inner-container > h2{margin-block-start:1.6em !important}
.hfw-prose > .wp-block-group__inner-container > h2:first-child,
.hfw-prose > .wp-block-group__inner-container > :first-child{margin-block-start:0 !important}
.hfw-prose > .wp-block-group__inner-container > h3{margin-block-start:1.4em !important}
.hfw-prose .wp-block-buttons{margin-top:1.4em !important}
.hfw-callout > .wp-block-group__inner-container > p + p{margin-top:10px !important}
.hfw-split .hfw-prose .eyebrow{margin-bottom:0}

/* ==========================================================================
   v0.3.0: forms, pre-order notes, upgrade offer
   ========================================================================== */
.hfw-form-wrap{background:#fff;border:1px solid #eadfd0;padding:32px 34px;margin-top:1.6em !important}
.hfw-signup-band .hfw-form-wrap{max-width:620px;margin:0 auto !important;background:#fbf8f2;border-color:#e2d7c5}
.hfw-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px}
.hfw-form-grid.is-inline{grid-template-columns:1fr 1.3fr}
.hfw-field{display:flex;flex-direction:column;gap:7px;margin:0 !important}
.hfw-field.is-wide,.hfw-field-textarea,.hfw-submit{grid-column:1 / -1}
.hfw-field label,.hfw-field legend{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#24414b}
.hfw-field input[type=text],.hfw-field input[type=email],.hfw-field input[type=tel],.hfw-field input[type=number],.hfw-field input[type=date],.hfw-field select,.hfw-field textarea{
  width:100%;min-height:50px;padding:12px 14px;border:1px solid #cdbfa9;background:#fffdf9;color:#14313a;font:inherit;font-size:16px;border-radius:2px;box-shadow:none}
.hfw-field textarea{min-height:130px;resize:vertical}
.hfw-field input:focus,.hfw-field select:focus,.hfw-field textarea:focus{outline:3px solid rgba(219,173,98,.55);outline-offset:1px;border-color:#a2763e}
.hfw-field fieldset{border:0;padding:0;margin:0}
.hfw-check{display:flex !important;gap:10px;align-items:flex-start;text-transform:none !important;letter-spacing:0 !important;font-weight:400 !important;font-size:15px !important;color:#3f5860 !important;margin-top:6px;line-height:1.5}
.hfw-check input{margin-top:4px;width:18px;height:18px;flex:0 0 18px;accent-color:#0b2c38}
.hfw-consent span{font-size:14px;line-height:1.6}
.hfw-consent a{color:#0b2c38;text-decoration:underline;text-decoration-color:var(--gold-strong)}
.hfw-hp{position:absolute !important;left:-10000px;width:1px;height:1px;overflow:hidden}
.hfw-form-wrap .btn.hfw-btn-dark,.hfw-btn-dark{background:#0b2c38;color:#fff;border-color:#0b2c38;min-width:220px}
.hfw-form-wrap .btn.hfw-btn-dark:hover,.hfw-btn-dark:hover{background:#164351;color:#fff}
.hfw-signup-band .hfw-submit .btn{width:100%}
.hfw-form-success,.hfw-form-error{padding:16px 18px;margin-bottom:18px;border-left:3px solid}
.hfw-form-success{background:#eef5f1;border-color:#2f6b52;color:#1d4a37}
.hfw-form-error{background:#fbefee;border-color:#a3423f;color:#7a2a28}
.hfw-form-success p,.hfw-form-error p{margin:0 !important;font-size:15px !important;color:inherit !important}
.hfw-form-admin-note{font-size:12px !important;background:#fff6e0;border:1px dashed #d4ac5c;padding:8px 12px;margin:0 0 18px !important;color:#6b5320 !important}
@media(max-width:620px){.hfw-form-grid,.hfw-form-grid.is-inline{grid-template-columns:1fr}.hfw-form-wrap{padding:24px 20px}.hfw-form-wrap .btn.hfw-btn-dark{width:100%}}

.hfw-preorder-note{margin:18px 0;padding:14px 18px;background:#f6f2ea;border-left:3px solid var(--gold-strong)}
.hfw-preorder-note p{margin:0 0 4px;font-size:14px;line-height:1.6;color:#24414b}
.hfw-preorder-note .eyebrow{font-size:10px;color:var(--hfw-gold-text)}
.hfw-preorder-note.is-forthcoming{border-color:#8a9a9c}

.hfw-offer{display:grid;grid-template-columns:.7fr 1.3fr;gap:44px;align-items:center;background:#fff;border:1px solid #eadfd0;padding:36px;box-shadow:0 16px 32px rgba(8,36,46,.08)}
.hfw-offer-art img{width:100%;height:auto;display:block}
.hfw-offer h2{font:normal 32px/1.2 Georgia,serif;margin:8px 0 12px}
.hfw-offer-price{font-weight:700;color:#123540}
.hfw-offer-actions{display:flex;flex-direction:column;gap:14px;align-items:flex-start;margin-top:20px}
.hfw-offer-decline{font-size:14px;color:#24414b;text-decoration:underline;text-underline-offset:3px}
@media(max-width:700px){.hfw-offer{grid-template-columns:1fr;padding:24px}}
/* WooCommerce single product: brand typography */
.single-product .product_title{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.02em;color:var(--ink)}
.single-product .woocommerce-tabs h2,.single-product .related h2,.single-product .upsells h2{font-family:Georgia,serif;font-weight:400}
.single-product .woocommerce-product-details__short-description p{line-height:1.75;color:#3f5860}
