/*
Theme Name: Heroic Change — Borrow A Geek
Theme URI: https://borrowageek.ie/
Author: Borrow A Geek
Author URI: https://borrowageek.ie/
Description: Custom responsive WordPress and WooCommerce theme for Heroes of Change by Philip Molebash. Built by Borrow A Geek. Uses the editable WordPress block editor, original Heroic Change title artwork, SendFox newsletter integration, responsive video and page-preserving starter setup.
Version: 3.8.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: heroic-change-bag
Tags: e-commerce, block-styles, custom-logo, custom-menu, featured-images, full-width-template, responsive-layout, translation-ready
*/

:root{
  --hc-navy:#062e3e;
  --hc-navy-deep:#021f2b;
  --hc-navy-dark:#011923;
  --hc-navy-soft:#123d4c;
  --hc-gold:#d69a2b;
  --hc-gold-light:#e9b54c;
  --hc-gold-dark:#aa7016;
  --hc-cream:#f7f3ed;
  --hc-paper:#fcfaf6;
  --hc-ink:#0c2b3a;
  --hc-muted:#596870;
  --hc-white:#fff;
  --hc-content:1220px;
  --hc-narrow:820px;
  --hc-shadow:0 22px 52px rgba(2,31,43,.22);
  --hc-radius:10px;
  --hc-heading-font:var(--wp--preset--font-family--sans,Arial,Helvetica,sans-serif);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--hc-cream);color:var(--hc-ink);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.62;-webkit-font-smoothing:antialiased}
h1,h2,h3,h4,h5,h6,.wp-block-heading{font-family:var(--hc-heading-font)!important}
img{max-width:100%;height:auto}
a{color:var(--hc-navy);text-underline-offset:.18em}
a:hover{color:var(--hc-gold-dark)}
button,input,select,textarea{font:inherit}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.screen-reader-text:focus{background:#fff;clip:auto!important;clip-path:none;color:#000;display:block;height:auto;left:8px;padding:14px 18px;top:8px;width:auto;z-index:100000}

/* Header — intentionally close to the original heroic-change.org treatment. */
.site-header{position:relative;z-index:50;background:linear-gradient(90deg,#021e29,#052f40 60%,#052d3e);border-bottom:1px solid rgba(255,255,255,.08)}
.site-header__inner{width:min(calc(100% - 48px),var(--hc-content));min-height:82px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:34px}
.site-branding{display:flex;align-items:center;min-width:300px}
.custom-logo-link,.hc-original-logo{display:flex;align-items:center;text-decoration:none}
.custom-logo,.hc-original-logo img{width:auto;max-width:330px;max-height:48px;object-fit:contain}
.primary-navigation{margin-left:auto}
.primary-menu{display:flex;align-items:center;gap:32px;list-style:none;margin:0;padding:0}
.primary-menu a{display:block;color:#fff;font-size:.78rem;font-weight:800;letter-spacing:.065em;text-decoration:none;text-transform:uppercase;white-space:nowrap}
.primary-menu a:hover,.primary-menu .current-menu-item>a,.primary-menu .current_page_item>a{color:var(--hc-gold)}
.menu-toggle{display:none;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.35);border-radius:5px;background:transparent;color:#fff;padding:8px 11px;font-size:.8rem;font-weight:800;text-transform:uppercase;cursor:pointer}

.site-main{min-height:55vh;overflow:hidden}
.entry-content{margin:0}
.alignwide{width:min(calc(100vw - 40px),var(--hc-content));max-width:none;margin-left:50%;transform:translateX(-50%)}
.alignfull{width:100vw;max-width:none;margin-left:50%;transform:translateX(-50%)}
.content-shell{width:min(calc(100% - 40px),900px);margin:0 auto;padding:64px 0}
.content-shell--wide{width:min(calc(100% - 40px),var(--hc-content))}
.entry-title{margin:0 0 28px;color:var(--hc-navy);font-family:var(--hc-heading-font);font-size:clamp(2.4rem,5vw,4.3rem);line-height:1.05}

/* Approved homepage hero: original Heroic Change artwork over a real photograph. */
.hc-home-hero{--hc-hero-photo:none;position:relative;isolation:isolate;overflow:hidden;min-height:650px;padding:54px 24px 46px;color:#fff;background-color:#072d3c;background-image:linear-gradient(90deg,rgba(2,27,38,.92) 0%,rgba(2,27,38,.78) 38%,rgba(2,27,38,.42) 67%,rgba(2,27,38,.2) 100%),var(--hc-hero-photo);background-size:cover;background-position:center 47%}
.hc-home-hero:after{content:"";position:absolute;inset:auto 0 0;height:38%;z-index:-1;background:linear-gradient(180deg,transparent,rgba(1,21,29,.44));pointer-events:none}
.hc-hero-overlay{display:none}
.hc-hero-columns{position:relative;z-index:2;width:min(100%,var(--hc-content));min-height:545px;margin:0 auto!important;gap:clamp(40px,5.5vw,80px);align-items:center!important}
.hc-hero-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.hc-hero-wordmark{margin:0!important;line-height:0}
.hc-hero-wordmark img{display:block;width:auto!important;height:auto!important;object-fit:contain}
.hc-hero-wordmark--author{width:min(74%,500px)!important;margin:0 0 16px!important}
.hc-hero-wordmark--title{width:min(100%,720px)!important;margin:0 0 17px!important}
.hc-hero-wordmark--subtitle{width:min(94%,680px)!important;margin:0 0 28px!important}
.hc-hero-description{max-width:620px;margin:0 0 28px!important;color:#fff;font-size:clamp(1.05rem,1.55vw,1.3rem);line-height:1.55;text-shadow:0 2px 12px rgba(0,0,0,.28)}
.hc-hero-buttons{gap:14px!important;margin:0!important}
.hc-button .wp-block-button__link,.hc-subscribe-form button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.wc-block-components-button{min-height:48px;display:inline-flex;align-items:center;justify-content:center;padding:11px 27px;border:2px solid var(--hc-gold);border-radius:28px;background:var(--hc-gold);color:#051e29!important;font-size:.82rem;font-weight:900;letter-spacing:.055em;text-decoration:none;text-transform:uppercase;transition:transform .18s ease,background .18s ease,color .18s ease}
.hc-button.is-style-outline .wp-block-button__link,.is-style-outline.hc-button .wp-block-button__link{background:rgba(0,24,33,.46);color:#fff!important}
.hc-button .wp-block-button__link:hover,.hc-subscribe-form button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,.wc-block-components-button:hover{transform:translateY(-2px);background:var(--hc-gold-light);border-color:var(--hc-gold-light);color:var(--hc-navy-deep)!important}
.hc-book-visual{position:relative;min-height:530px;display:flex;align-items:center;justify-content:center}
.hc-hero-book{position:relative;z-index:2;width:min(79%,385px)!important;margin:0!important;transform:perspective(1100px) rotateY(-7deg) rotateZ(1.25deg);filter:drop-shadow(0 36px 32px rgba(0,0,0,.44))}
.hc-hero-book img{display:block;width:100%;border-radius:3px 7px 7px 3px}
.hc-five-note{position:absolute;z-index:5;left:2%;bottom:38px;width:min(76%,286px);padding:14px 18px;border:1px solid rgba(255,255,255,.32);border-radius:9px;background:rgba(2,28,38,.88);box-shadow:0 16px 30px rgba(0,0,0,.24);backdrop-filter:blur(5px);text-align:center}
.hc-five-note p{margin:0!important;color:#fff;font-size:.78rem;line-height:1.55;text-align:center}
.hc-five-note strong{display:block;margin-bottom:4px;color:var(--hc-gold);font-family:var(--hc-heading-font);font-size:.86rem;letter-spacing:.07em;text-align:center;text-transform:uppercase}
.hc-five-note__line{display:block;white-space:nowrap;text-align:center}

/* Shared home sections. */
.hc-section{padding:clamp(42px,5vw,68px) 24px}
.hc-section>*{width:min(100%,var(--hc-content));margin-left:auto!important;margin-right:auto!important}
.hc-section-heading{display:flex;align-items:center;justify-content:center;gap:28px;width:100%!important;margin:0 auto 28px!important;color:var(--hc-navy);font-family:var(--hc-heading-font);font-size:clamp(2rem,3.5vw,3rem);font-weight:700;line-height:1.05;text-align:center;text-transform:uppercase}
.hc-section-heading:before,.hc-section-heading:after{content:"";height:1px;flex:1 1 180px;max-width:210px;background:var(--hc-gold)}

/* Video */
.hc-video-section{padding-top:38px;padding-bottom:34px;background:linear-gradient(180deg,#fcfaf7,#f3eee7)}
.hc-video-shell{width:min(100%,1045px)!important;margin:auto!important}
.hc-youtube{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border:2px solid var(--hc-gold);border-radius:10px;background:#061f2a;box-shadow:0 17px 35px rgba(2,31,43,.25)}
.hc-youtube iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.hc-youtube__poster{position:absolute;inset:0;width:100%;height:100%;display:block;border:0;padding:0;background:#061f2a;cursor:pointer;color:#fff;overflow:hidden}
.hc-youtube__poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.hc-youtube__poster:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.12) 55%,rgba(0,0,0,.34));pointer-events:none}
.hc-youtube__label{position:absolute;z-index:3;left:18px;top:14px;padding:7px 10px;border-radius:4px;background:rgba(2,24,33,.88);font-size:.76rem;font-weight:700}
.hc-youtube__play{position:absolute;z-index:3;left:50%;top:50%;width:76px;height:76px;border-radius:50%;background:rgba(225,164,52,.94);box-shadow:0 9px 28px rgba(0,0,0,.3);transform:translate(-50%,-50%)}
.hc-youtube__play:before{content:"";position:absolute;left:52%;top:50%;border-top:13px solid transparent;border-bottom:13px solid transparent;border-left:21px solid #fff;transform:translate(-44%,-50%)}
.hc-youtube--fallback .hc-youtube__poster{background:linear-gradient(135deg,#113d4e,#061f2a)}
.hc-video-caption{margin:15px auto 0!important;color:#213943;font-family:Georgia,"Times New Roman",serif;font-size:1rem}

/* About the book */
.hc-about-book{background:radial-gradient(circle at 15% 30%,rgba(13,75,96,.34),transparent 34%),linear-gradient(105deg,#042b3a,#01212d);color:#fff}
.hc-about-book>.wp-block-columns{gap:clamp(45px,8vw,100px);align-items:center!important}
.hc-about-book h2{position:relative;margin:0 0 28px;color:#fff;font-family:var(--hc-heading-font);font-size:clamp(2rem,3vw,2.8rem);text-transform:uppercase}
.hc-about-book h2:after{content:"";position:absolute;left:0;bottom:-12px;width:72px;height:2px;background:var(--hc-gold)}
.hc-about-book p{max-width:570px;color:rgba(255,255,255,.95)}
.hc-about-book .wp-block-buttons{margin-top:26px}
.hc-about-book .hc-button .wp-block-button__link{border-radius:4px;color:#fff!important}
.hc-editorial-card{position:relative;padding:36px 34px 30px!important;border:2px solid var(--hc-gold);border-radius:9px;text-align:center;background:rgba(2,29,40,.34)}
.hc-editorial-card .hc-quote-mark{color:var(--hc-gold);font-family:Georgia,"Times New Roman",serif;font-size:5rem;line-height:.55}
.hc-editorial-card p{max-width:100%;margin:18px auto 0!important;font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.1rem,1.7vw,1.45rem);line-height:1.52}
.hc-editorial-card p:last-child{color:var(--hc-gold);font-family:Arial,Helvetica,sans-serif;font-size:.93rem}


/* Dynamic homepage review slider — Reviews are managed under Reviews in wp-admin. */
.hc-review-slider{min-height:330px;display:flex;align-items:center;justify-content:center;padding:38px 38px 32px!important}
.hc-review-slider__viewport{width:100%;display:grid;align-items:center}
.hc-review-slide{grid-area:1/1;margin:0;opacity:0;visibility:hidden;transition:opacity .55s ease,visibility .55s ease}
.hc-review-slide.is-active{opacity:1;visibility:visible}
.hc-review-quote{margin:0;padding:0;border:0}
.hc-editorial-card .hc-review-quote p{max-width:780px;margin:0 auto!important;color:#fff;font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.35rem,2vw,2rem);font-style:italic;font-weight:700;line-height:1.46;text-wrap:balance}
.hc-review-quote__mark{color:#fff;font-family:Georgia,"Times New Roman",serif}
.hc-reviewer{margin-top:28px;color:var(--hc-gold);font-family:var(--hc-heading-font);font-size:clamp(.98rem,1.25vw,1.12rem);font-style:normal;font-weight:800;letter-spacing:.01em;text-align:center}
@media(prefers-reduced-motion:reduce){.hc-review-slide{transition:none}}

/* Five movements */
.hc-movements{padding:22px 24px;background:linear-gradient(180deg,#fffdf9,#f8f4ed);border-top:1px solid rgba(6,46,62,.12);border-bottom:1px solid rgba(6,46,62,.12)}
.hc-movements>.wp-block-columns{width:min(100%,var(--hc-content));margin:0 auto!important;gap:0}
.hc-movement{min-height:132px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:14px 14px;border-right:1px solid rgba(6,46,62,.14);text-align:center}
.hc-movements .wp-block-column:last-child .hc-movement{border-right:0}
.hc-movement-icon{height:60px;display:grid;place-items:center;color:var(--hc-gold)}
.hc-movement-icon svg{width:54px;height:54px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.hc-movement h3{margin:8px 0 0;color:var(--hc-ink);font-family:var(--hc-heading-font);font-size:clamp(1.05rem,1.5vw,1.3rem);font-weight:500}

/* Newsletter — centered and photographic. */
.hc-newsletter{--hc-hero-photo:none;position:relative;isolation:isolate;padding-top:38px;padding-bottom:32px;background-color:#072c3a;background-image:linear-gradient(rgba(3,35,47,.77),rgba(3,35,47,.87)),var(--hc-hero-photo);background-size:cover;background-position:center 64%;color:#fff}
.hc-newsletter .hc-section-heading{color:#fff;margin-bottom:14px!important}
.hc-newsletter-intro{margin:0 auto 22px!important;color:#fff;font-size:1rem}
.hc-subscribe-form{width:min(100%,1045px);margin:0 auto;display:grid;grid-template-columns:1fr 1fr 1.25fr auto;gap:12px;align-items:start}
.hc-field label{position:absolute;width:1px;height:1px;clip:rect(0 0 0 0);overflow:hidden}
.hc-field input{width:100%;height:48px;padding:0 14px;border:1px solid rgba(255,255,255,.65);border-radius:5px;background:rgba(255,255,255,.96);color:var(--hc-ink);outline:none}
.hc-field input:focus{border-color:var(--hc-gold);box-shadow:0 0 0 3px rgba(214,154,43,.2)}
.hc-form-actions button{height:48px;border-radius:5px;color:#fff!important}
.hc-consent{grid-column:1/-1;display:flex;justify-content:center;margin-top:2px;color:rgba(255,255,255,.88);font-size:.74rem}
.hc-consent label{display:flex;align-items:flex-start;gap:7px}
.hc-consent input{margin-top:3px}
.hc-form-message{width:min(100%,1045px);margin:12px auto!important;padding:11px 14px;border-radius:5px;background:rgba(255,255,255,.94);color:var(--hc-ink);text-align:center}
.hc-form-message--success{border-left:4px solid #2b8a52}.hc-form-message--error{border-left:4px solid #b64133}
.hc-form-message a{color:var(--hc-navy);font-weight:700}

/* Interior pages. Existing live page content is rendered unchanged inside these theme styles. */
.hc-interior-hero{--hc-hero-photo:none;position:relative;isolation:isolate;padding:clamp(72px,9vw,128px) 24px;color:#fff;text-align:center;background-color:#073040;background-image:linear-gradient(rgba(2,31,43,.78),rgba(2,31,43,.84)),var(--hc-hero-photo);background-size:cover;background-position:center}
.hc-interior-hero>*{width:min(100%,920px);margin-left:auto!important;margin-right:auto!important}
.hc-interior-hero h1{margin-top:0!important;margin-bottom:14px!important;color:#fff;font-family:var(--hc-heading-font);font-size:clamp(2.6rem,5.7vw,5rem);line-height:1.03}
.hc-interior-hero p{margin-bottom:0!important;color:var(--hc-gold-light);font-size:clamp(1.05rem,1.7vw,1.35rem)}
.hc-page-section{padding:clamp(46px,6vw,78px) 24px}
.hc-page-section.alignwide{width:min(calc(100% - 40px),var(--hc-content));margin-left:auto!important;margin-right:auto!important;transform:none}
.hc-page-section h2{color:var(--hc-navy);font-family:var(--hc-heading-font);font-size:clamp(2rem,3.2vw,3rem);line-height:1.08}
.hc-prose{max-width:900px!important}
.hc-prose p{font-size:1.05rem}
.hc-lead{font-size:clamp(1.15rem,1.7vw,1.38rem)!important}
.hc-book-detail>.wp-block-columns{gap:clamp(36px,7vw,90px)}
.hc-book-page-cover{max-width:350px;margin:auto!important;filter:drop-shadow(0 24px 28px rgba(2,31,43,.28))}
.hc-subscribe-wrap{max-width:1045px!important}
.hc-subscribe-wrap .hc-subscribe-form{grid-template-columns:1fr 1fr 1.25fr auto}
.hc-subscribe-wrap .hc-field input{border-color:rgba(6,46,62,.2);background:#fff}
.hc-subscribe-wrap .hc-consent{color:var(--hc-muted)}



/* Inner page system — preserves WordPress page content while giving the live
   About, Book and Institute pages a consistent Heroic Change presentation. */
.hc-inner-page{background:var(--hc-paper)}
.hc-inner-page-hero{position:relative;isolation:isolate;overflow:hidden;padding:clamp(48px,6vw,76px) 24px;background:linear-gradient(110deg,#021f2b 0%,#06384a 62%,#0b4255 100%);color:#fff;text-align:center;border-bottom:3px solid var(--hc-gold)}
.hc-inner-page-hero:before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 78% 22%,rgba(214,154,43,.12),transparent 30%),radial-gradient(circle at 18% 78%,rgba(255,255,255,.045),transparent 33%)}
.hc-inner-page-hero__inner{width:min(100%,var(--hc-content));margin:0 auto}
.hc-inner-page-title{margin:0!important;color:#fff!important;font-family:var(--hc-heading-font)!important;font-size:clamp(2.35rem,5vw,4.45rem)!important;font-weight:800;letter-spacing:-.025em;line-height:1.02;text-align:center;text-transform:uppercase}
.hc-inner-page-title:after{content:"";display:block;width:84px;height:3px;margin:22px auto 0;border-radius:2px;background:var(--hc-gold)}
.hc-inner-page-shell{width:min(calc(100% - 48px),1080px);margin:0 auto;padding:clamp(44px,6vw,78px) 0 clamp(60px,7vw,92px)}
.hc-inner-content{display:flow-root;width:100%;max-width:100%;margin:0 auto;color:#203843;font-size:1.055rem;line-height:1.78}
.hc-inner-content>*:first-child{margin-top:0}
.hc-inner-content>*:last-child{margin-bottom:0}
.hc-inner-content p{margin-top:0;margin-bottom:1.35em}
.hc-inner-content h2,.hc-inner-content h3,.hc-inner-content h4,.hc-inner-content .wp-block-heading{color:var(--hc-navy);font-family:var(--hc-heading-font)!important;line-height:1.12}
.hc-inner-content h2{margin:1.65em 0 .65em;font-size:clamp(1.85rem,3.2vw,2.8rem);font-weight:800}
.hc-inner-content h3{margin:1.5em 0 .55em;font-size:clamp(1.4rem,2.4vw,2rem);font-weight:800}
.hc-inner-content h4{margin:1.4em 0 .5em;font-size:clamp(1.15rem,1.8vw,1.45rem);font-weight:800}
.hc-inner-content h2:after{content:"";display:block;width:58px;height:2px;margin-top:12px;background:var(--hc-gold)}
.hc-inner-content ul,.hc-inner-content ol{margin:0 0 1.55em;padding-left:1.4em}
.hc-inner-content li{margin:.3em 0}
.hc-inner-content a:not(.wp-block-button__link){font-weight:700;text-decoration-color:rgba(214,154,43,.7)}
.hc-inner-content figure{max-width:100%}
.hc-inner-content img{height:auto}
.hc-inner-content .alignwide,.hc-inner-content .alignfull{width:100%;max-width:100%;margin-left:auto!important;margin-right:auto!important;transform:none!important}
.hc-inner-content>.wp-block-group,.hc-inner-content>.wp-block-columns,.hc-inner-content>.wp-block-cover{max-width:100%}
.hc-inner-content .wp-block-columns{gap:clamp(26px,4vw,48px)}
.hc-inner-content .wp-block-separator{width:100%;margin:clamp(32px,5vw,52px) auto;border-color:rgba(6,46,62,.18)}

/* Standardise all inner-page Gutenberg buttons to the approved theme button. */
body .hc-inner-content .wp-block-button__link,
body .hc-inner-content a.wp-element-button,
body .hc-inner-content .wp-block-button a{
  min-height:48px;display:inline-flex;align-items:center;justify-content:center;padding:11px 27px!important;border:2px solid var(--hc-gold)!important;border-radius:28px!important;background:var(--hc-gold)!important;color:var(--hc-navy-deep)!important;box-shadow:none!important;font-family:var(--hc-heading-font)!important;font-size:.82rem!important;font-weight:900!important;letter-spacing:.055em;text-decoration:none!important;text-transform:uppercase;transition:transform .18s ease,background .18s ease,border-color .18s ease
}
body .hc-inner-content .wp-block-button__link:hover,
body .hc-inner-content a.wp-element-button:hover,
body .hc-inner-content .wp-block-button a:hover{transform:translateY(-2px);background:var(--hc-gold-light)!important;border-color:var(--hc-gold-light)!important;color:var(--hc-navy-deep)!important}
body .hc-inner-content .wp-block-buttons{margin-top:26px;margin-bottom:30px;gap:12px}
body .hc-inner-content .wp-block-buttons.is-content-justification-center{justify-content:center}

/* The Book — keep every existing block within a readable content measure. */
.hc-book-page .hc-inner-page-shell{max-width:1080px}
.hc-book-content{max-width:1020px}
.hc-book-content>p,.hc-book-content>ul,.hc-book-content>ol{max-width:900px;margin-left:auto;margin-right:auto}
.hc-book-content>h2,.hc-book-content>h3,.hc-book-content>h4,.hc-book-content>.wp-block-heading{max-width:900px;margin-left:auto;margin-right:auto}
.hc-book-content>.wp-block-buttons{max-width:900px;margin-left:auto;margin-right:auto}
.hc-book-content>.wp-block-image:not(.alignwide):not(.alignfull){max-width:900px;margin-left:auto;margin-right:auto}
.hc-book-content blockquote,.hc-book-content .wp-block-quote,.hc-book-content .wp-block-pullquote{max-width:900px;margin:clamp(32px,5vw,52px) auto!important;padding:26px clamp(24px,4vw,40px)!important;border:0!important;border-left:5px solid var(--hc-gold)!important;border-radius:7px;background:#eef1ef;color:var(--hc-navy)}

/* Institute — polished editorial treatment while retaining the existing content. */
.hc-institute-page .hc-inner-page-shell{max-width:1040px}
.hc-institute-content{max-width:960px}
.hc-institute-content>p,.hc-institute-content>ul,.hc-institute-content>ol{max-width:900px;margin-left:auto;margin-right:auto}
.hc-institute-content>h2,.hc-institute-content>h3,.hc-institute-content>h4,.hc-institute-content>.wp-block-heading{max-width:900px;margin-left:auto;margin-right:auto}
.hc-institute-content>.wp-block-buttons{max-width:900px;margin-left:auto;margin-right:auto}
.hc-institute-content>.wp-block-group.has-background,.hc-institute-content>.wp-block-cover{margin:clamp(32px,5vw,54px) auto!important;padding:clamp(28px,4vw,44px)!important;border-radius:8px;overflow:hidden}
.hc-institute-content blockquote,.hc-institute-content .wp-block-quote,.hc-institute-content .wp-block-pullquote{max-width:900px;margin:clamp(34px,5vw,58px) auto!important;padding:clamp(26px,4vw,40px)!important;border:0!important;border-left:5px solid var(--hc-gold)!important;border-radius:7px;background:linear-gradient(105deg,#042f3f,#01232f);color:#fff}
.hc-institute-content blockquote p,.hc-institute-content .wp-block-quote p,.hc-institute-content .wp-block-pullquote p{color:#fff!important}

/* About the Author — clean, page-specific treatment.
   The live WordPress copy is deliberately left editable and untouched. */
.hc-author-page .hc-inner-page-shell{max-width:1120px}
.hc-author-content{display:flow-root;max-width:1080px;margin:0 auto}
.hc-author-content>h2:first-child,.hc-author-content>.wp-block-heading:first-child{margin:0 0 26px;color:var(--hc-gold-dark);font-size:clamp(2rem,3.4vw,3.15rem);line-height:1.05;text-align:left}
.hc-author-content p{margin-top:0;margin-bottom:1.35em;color:#203843;font-size:1.06rem;line-height:1.78}
.hc-author-content>p:first-of-type{font-size:clamp(1.12rem,1.55vw,1.28rem);line-height:1.72}

/* Portraits may have been inserted using the classic alignleft/alignright controls.
   Keep that editorial feel on desktop, but contain the float so later sections cannot
   disappear behind it. */
.hc-author-content figure.wp-block-image.alignleft,
.hc-author-content img.alignleft{
  position:relative;z-index:1;float:left;clear:left;width:min(39%,390px);max-width:390px;margin:4px clamp(28px,4vw,52px) 26px 0!important
}
.hc-author-content figure.wp-block-image.alignright,
.hc-author-content img.alignright{
  position:relative;z-index:1;float:right;clear:right;width:min(39%,390px);max-width:390px;margin:4px 0 26px clamp(28px,4vw,52px)!important
}
.hc-author-content figure.wp-block-image.alignleft img,
.hc-author-content figure.wp-block-image.alignright img,
.hc-author-content>figure.wp-block-image:first-of-type img{
  display:block;width:100%;border-radius:8px;box-shadow:0 20px 42px rgba(2,31,43,.20)
}
.hc-author-content figure.wp-block-image figcaption{margin:9px 0 0;color:var(--hc-muted);font-size:.78rem;line-height:1.45;text-align:center}

/* Quote / pull-quote bars must start below the portrait, never behind it. */
.hc-author-content blockquote,
.hc-author-content .wp-block-quote,
.hc-author-content .wp-block-pullquote{
  position:relative;z-index:6;clear:both;width:100%;max-width:none;margin:clamp(34px,5vw,58px) 0!important;padding:clamp(28px,4vw,42px) clamp(28px,5vw,58px)!important;border:0!important;border-left:6px solid var(--hc-gold)!important;border-radius:7px;background:linear-gradient(105deg,#042f3f,#01232f);box-shadow:0 18px 36px rgba(2,31,43,.18);color:#fff
}
.hc-author-content blockquote:before,
.hc-author-content .wp-block-quote:before,
.hc-author-content .wp-block-pullquote:before{
  content:'“';position:absolute;left:22px;top:12px;color:rgba(214,154,43,.25);font-family:Georgia,'Times New Roman',serif;font-size:6rem;font-weight:700;line-height:1;pointer-events:none
}
.hc-author-content blockquote p,
.hc-author-content .wp-block-quote p,
.hc-author-content .wp-block-pullquote p{
  position:relative;z-index:1;margin:0!important;color:#fff!important;font-family:var(--hc-heading-font)!important;font-size:clamp(1.28rem,2vw,1.78rem)!important;font-weight:700;line-height:1.45;text-align:center
}
.hc-author-content blockquote cite,
.hc-author-content .wp-block-quote cite,
.hc-author-content .wp-block-pullquote cite{
  position:relative;z-index:1;display:block;margin-top:14px;color:var(--hc-gold-light);font-size:.85rem;font-style:normal;font-weight:700;letter-spacing:.04em;text-align:center
}

/* Some older page-builder/content blocks use a coloured Group/Cover as their quote bar.
   Give those full-width callouts the same stacking protection. */
.hc-author-content>.wp-block-group.has-background,
.hc-author-content>.wp-block-cover{
  position:relative;z-index:5;clear:both
}
.hc-author-content>.wp-block-separator{clear:both;margin:38px 0;border-color:rgba(6,46,62,.16)}

@media(min-width:901px){
  .hc-author-content>figure.wp-block-image:first-of-type:not(.alignwide):not(.alignfull):not(.alignright){float:left;clear:left;width:min(39%,390px);margin:4px clamp(28px,4vw,52px) 26px 0!important}
}

@media(max-width:900px){
  .hc-author-content figure.wp-block-image.alignleft,
  .hc-author-content figure.wp-block-image.alignright,
  .hc-author-content img.alignleft,
  .hc-author-content img.alignright,
  .hc-author-content>figure.wp-block-image:first-of-type:not(.alignwide):not(.alignfull){float:none;clear:both;width:min(100%,420px);max-width:420px;margin:0 auto 30px!important}
  .hc-author-content>h2:first-child,.hc-author-content>.wp-block-heading:first-child{text-align:center}
}

@media(max-width:620px){
  .hc-author-content p{font-size:1rem;line-height:1.7}
  .hc-author-content blockquote,
  .hc-author-content .wp-block-quote,
  .hc-author-content .wp-block-pullquote{margin:30px 0!important;padding:28px 20px!important;border-left-width:4px!important}
  .hc-author-content blockquote:before,
  .hc-author-content .wp-block-quote:before,
  .hc-author-content .wp-block-pullquote:before{left:12px;top:10px;font-size:4.4rem}
}


@media(max-width:900px){
  .hc-inner-page-shell{width:min(calc(100% - 36px),1080px);padding-top:42px;padding-bottom:62px}
  .hc-inner-content{font-size:1.025rem;line-height:1.73}
  .hc-inner-page-hero{padding:44px 20px}
}
@media(max-width:600px){
  .hc-inner-page-hero{padding:36px 16px}
  .hc-inner-page-title{font-size:clamp(2rem,10vw,2.75rem)!important}
  .hc-inner-page-title:after{width:64px;margin-top:16px}
  .hc-inner-page-shell{width:min(calc(100% - 30px),1080px);padding:34px 0 48px}
  .hc-inner-content{font-size:1rem;line-height:1.7}
  .hc-inner-content h2{font-size:1.7rem}
  .hc-inner-content h3{font-size:1.35rem}
  body .hc-inner-content .wp-block-button,body .hc-inner-content .wp-block-button__link{width:100%}
  body .hc-inner-content .wp-block-button__link{justify-content:center}
}

/* WooCommerce */
.heroic-change-commerce .site-main{padding:48px 24px;background:var(--hc-paper)}
.heroic-change-commerce .site-main>.woocommerce,.heroic-change-commerce .woocommerce{width:min(100%,var(--hc-content));margin:auto}
.woocommerce div.product{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(36px,6vw,82px)}
.woocommerce div.product div.images,.woocommerce div.product div.summary{width:auto;float:none;margin:0}
.woocommerce div.product .product_title,.woocommerce-page h1,.woocommerce-page h2{color:var(--hc-navy);font-family:var(--hc-heading-font)}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--hc-gold-dark);font-weight:800}
.woocommerce div.product form.cart{display:flex;gap:12px;align-items:center}
.woocommerce .quantity .qty{min-height:48px}

/* Footer */
.site-footer{background:#011923;color:#fff}
.site-footer__top{width:min(calc(100% - 48px),var(--hc-content));min-height:92px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:30px}
.site-footer__brand img{display:block;width:auto;max-width:250px;max-height:37px}
.site-footer__menu{display:flex;align-items:center;justify-content:flex-end;gap:25px;list-style:none;margin:0;padding:0}
.site-footer__menu a{color:#fff;font-size:.72rem;font-weight:750;letter-spacing:.04em;text-decoration:none;text-transform:uppercase}
.site-footer__menu a:hover{color:var(--hc-gold)}
.site-footer__bottom{border-top:1px solid rgba(255,255,255,.08)}
.site-footer__bottom-inner{width:min(calc(100% - 48px),var(--hc-content));margin:auto;padding:13px 0 16px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 24px;color:rgba(255,255,255,.72);font-size:.7rem}
.site-footer a{color:var(--hc-gold)}
.site-footer p{margin:0}.bag-credit strong{color:#fff}

@media(max-width:1100px){
  .site-header__inner{width:min(calc(100% - 36px),var(--hc-content))}.site-branding{min-width:260px}.custom-logo,.hc-original-logo img{max-width:285px}.primary-menu{gap:22px}.primary-menu a{font-size:.7rem}
  .hc-hero-columns{gap:34px}.hc-hero-wordmark--title{width:100%!important}.hc-five-note{left:1%}
}

@media(max-width:900px){
  .site-header__inner{min-height:74px}.site-branding{min-width:0}.custom-logo,.hc-original-logo img{max-width:250px;max-height:40px}
  .menu-toggle{display:inline-flex}.primary-navigation{display:none;position:absolute;top:68px;left:18px;right:18px;padding:12px 16px;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:rgba(1,25,35,.98);box-shadow:0 20px 38px rgba(0,0,0,.34)}.primary-navigation.is-open{display:block}.primary-menu{align-items:stretch;flex-direction:column;gap:0}.primary-menu a{padding:10px 7px;font-size:.78rem}
  .hc-home-hero{min-height:auto;padding:46px 22px 52px;background-position:60% center}.hc-hero-columns{min-height:0;flex-wrap:wrap!important}.hc-hero-columns>.wp-block-column{flex-basis:100%!important}.hc-hero-copy{max-width:720px;margin:0 auto;align-items:center;text-align:center}.hc-hero-wordmark--author{width:min(64%,430px)!important}.hc-hero-wordmark--title{width:min(88%,650px)!important}.hc-hero-wordmark--subtitle{width:min(88%,610px)!important}.hc-hero-description{margin-left:auto!important;margin-right:auto!important}.hc-hero-buttons{justify-content:center}.hc-book-visual{min-height:430px;max-width:570px;margin:18px auto 0}.hc-hero-book{width:min(60%,315px)!important}.hc-five-note{left:9%;bottom:20px}
  .hc-movements>.wp-block-columns{flex-wrap:wrap!important}.hc-movements .wp-block-column{flex-basis:33.333%!important}.hc-movement{border-bottom:1px solid rgba(6,46,62,.14)}.hc-movements .wp-block-column:nth-child(3) .hc-movement{border-right:0}
  .hc-subscribe-form,.hc-subscribe-wrap .hc-subscribe-form{grid-template-columns:1fr 1fr}.hc-form-actions{grid-column:2}.hc-consent{grid-column:1/-1}
  .site-footer__top{flex-direction:column;justify-content:center;padding:23px 0}.site-footer__menu{justify-content:center;flex-wrap:wrap}
  .woocommerce div.product{grid-template-columns:1fr}
}

@media(max-width:620px){
  body{font-size:15.5px}.site-header__inner{width:min(calc(100% - 28px),var(--hc-content));min-height:68px}.custom-logo,.hc-original-logo img{max-width:210px;max-height:34px}.menu-toggle{padding:7px 9px}.menu-toggle span:last-child{display:none}.primary-navigation{top:63px}
  .hc-home-hero{padding:34px 16px 40px;background-position:62% center}.hc-home-hero:before{content:"";position:absolute;inset:0;z-index:-1;background:rgba(2,28,38,.12)}.hc-hero-wordmark--author{width:min(78%,360px)!important;margin-bottom:13px!important}.hc-hero-wordmark--title{width:min(100%,500px)!important;margin-bottom:13px!important}.hc-hero-wordmark--subtitle{width:min(100%,500px)!important;margin-bottom:22px!important}.hc-hero-description{font-size:1.02rem}.hc-hero-buttons{display:grid!important;grid-template-columns:1fr 1fr;width:100%;gap:10px!important}.hc-hero-buttons .wp-block-button,.hc-hero-buttons .wp-block-button__link{width:100%}.hc-button .wp-block-button__link{padding-left:14px;padding-right:14px}.hc-book-visual{min-height:360px}.hc-hero-book{width:min(66%,250px)!important}.hc-five-note{left:3%;bottom:14px;width:min(82%,258px);padding:11px 13px}.hc-five-note p{font-size:.68rem}.hc-five-note strong{font-size:.8rem}
  .hc-section{padding-left:16px;padding-right:16px}.hc-section-heading{gap:14px;font-size:1.85rem}.hc-section-heading:before,.hc-section-heading:after{max-width:62px}
  .hc-youtube{border-radius:7px}.hc-youtube__label{left:9px;top:8px;font-size:.65rem}.hc-youtube__play{width:58px;height:58px}.hc-youtube__play:before{border-top-width:10px;border-bottom-width:10px;border-left-width:17px}
  .hc-about-book>.wp-block-columns{flex-wrap:wrap!important}.hc-about-book .wp-block-column{flex-basis:100%!important}.hc-editorial-card{margin-top:10px}.hc-review-slider{min-height:280px;padding:30px 22px 26px!important}.hc-editorial-card .hc-review-quote p{font-size:clamp(1.2rem,5.2vw,1.55rem)}.hc-reviewer{margin-top:22px}
  .hc-movements{padding:12px 10px}.hc-movements .wp-block-column{flex-basis:50%!important}.hc-movements .wp-block-column:nth-child(2n) .hc-movement{border-right:0}.hc-movements .wp-block-column:nth-child(3) .hc-movement{border-right:1px solid rgba(6,46,62,.14)}.hc-movements .wp-block-column:last-child{flex-basis:100%!important}.hc-movements .wp-block-column:last-child .hc-movement{border-right:0}.hc-movement{min-height:108px}.hc-movement-icon{height:45px}.hc-movement-icon svg{width:43px;height:43px}
  .hc-newsletter{padding-top:30px;padding-bottom:26px}.hc-newsletter .hc-section-heading{font-size:1.9rem}.hc-subscribe-form,.hc-subscribe-wrap .hc-subscribe-form{grid-template-columns:1fr}.hc-form-actions,.hc-consent{grid-column:1;grid-row:auto}.hc-form-actions button{width:100%}
  .hc-interior-hero{padding:66px 18px}.hc-page-section{padding-left:18px;padding-right:18px}.hc-book-detail>.wp-block-columns{flex-wrap:wrap!important}.hc-book-detail .wp-block-column{flex-basis:100%!important}
  .site-footer__top,.site-footer__bottom-inner{width:min(calc(100% - 28px),var(--hc-content));text-align:center;align-items:center}.site-footer__bottom-inner{flex-direction:column}.site-footer__menu{gap:14px}.site-footer__brand img{max-width:220px}
  .woocommerce div.product form.cart{align-items:stretch;flex-direction:column}
}

/* v3.8 — Subscribe and newsletter-success page presentation.
   Existing page content stays editable; these rules only provide the theme shell. */
.hc-subscribe-page .hc-inner-page-shell{max-width:960px}
.hc-subscribe-content{max-width:860px;margin-left:auto;margin-right:auto}
.hc-subscribe-content>h2:first-child,
.hc-subscribe-content>h3:first-child,
.hc-subscribe-content>.wp-block-heading:first-child{margin-top:0;text-align:center}
.hc-subscribe-content>h2:first-child:after,
.hc-subscribe-content>h3:first-child:after,
.hc-subscribe-content>.wp-block-heading:first-child:after{content:"";display:block;width:64px;height:2px;margin:14px auto 0;background:var(--hc-gold)}
.hc-subscribe-content>p:first-of-type{max-width:680px;margin-left:auto;margin-right:auto;text-align:center;color:var(--hc-muted);font-size:1.1rem}

/* Give the theme shortcode and ordinary newsletter forms the same polished card. */
.hc-subscribe-content .hc-subscribe-form,
.hc-subscribe-content form:not(.search-form){width:100%;max-width:820px;margin:30px auto 0;padding:clamp(24px,4vw,40px);display:grid;grid-template-columns:1fr 1fr;gap:18px 20px;align-items:start;border:1px solid rgba(6,46,62,.13);border-top:4px solid var(--hc-gold);border-radius:10px;background:#fff;box-shadow:0 18px 44px rgba(2,31,43,.11)}
.hc-subscribe-content .hc-field label{position:static;width:auto;height:auto;clip:auto;clip-path:none;overflow:visible;display:block;margin:0 0 7px;color:var(--hc-navy);font-family:var(--hc-heading-font);font-size:.79rem;font-weight:800;letter-spacing:.055em;text-transform:uppercase}
.hc-subscribe-content .hc-field:nth-of-type(3){grid-column:1/-1}
.hc-subscribe-content .hc-field input,
.hc-subscribe-content form input[type="text"],
.hc-subscribe-content form input[type="email"],
.hc-subscribe-content form input[type="tel"]{width:100%;min-height:52px;padding:10px 14px;border:1px solid rgba(6,46,62,.24);border-radius:6px;background:#fff;color:var(--hc-ink);box-shadow:none;outline:none}
.hc-subscribe-content .hc-field input:focus,
.hc-subscribe-content form input[type="text"]:focus,
.hc-subscribe-content form input[type="email"]:focus,
.hc-subscribe-content form input[type="tel"]:focus{border-color:var(--hc-gold);box-shadow:0 0 0 3px rgba(214,154,43,.18)}
.hc-subscribe-content .hc-consent{grid-column:1/-1;justify-content:flex-start;margin:1px 0 0;color:var(--hc-muted);font-size:.82rem;line-height:1.5}
.hc-subscribe-content .hc-consent label{align-items:flex-start}
.hc-subscribe-content .hc-form-actions{grid-column:1/-1;display:flex;justify-content:center;margin-top:3px}
.hc-subscribe-content .hc-form-actions button,
.hc-subscribe-content form button[type="submit"],
.hc-subscribe-content form input[type="submit"]{min-width:210px;min-height:50px;padding:11px 28px;border:2px solid var(--hc-gold);border-radius:28px;background:var(--hc-gold);color:var(--hc-navy-deep)!important;font-family:var(--hc-heading-font);font-size:.82rem;font-weight:900;letter-spacing:.055em;text-transform:uppercase;cursor:pointer;transition:transform .18s ease,background .18s ease,border-color .18s ease}
.hc-subscribe-content .hc-form-actions button:hover,
.hc-subscribe-content form button[type="submit"]:hover,
.hc-subscribe-content form input[type="submit"]:hover{transform:translateY(-2px);background:var(--hc-gold-light);border-color:var(--hc-gold-light)}
.hc-subscribe-content .hc-form-message{max-width:820px;margin:18px auto!important;border:1px solid rgba(6,46,62,.12);box-shadow:0 10px 30px rgba(2,31,43,.08)}
.hc-subscribe-content>p:last-child{max-width:700px;margin:24px auto 0;text-align:center;color:var(--hc-muted);font-size:.88rem}

/* Success page: a simple confirmation card in the same visual language. */
.hc-success-page .hc-inner-page-shell{max-width:860px}
.hc-success-content{position:relative;max-width:760px;margin:0 auto;padding:clamp(34px,5vw,54px);border:1px solid rgba(6,46,62,.13);border-top:4px solid var(--hc-gold);border-radius:10px;background:#fff;box-shadow:0 18px 44px rgba(2,31,43,.11);text-align:center}
.hc-success-content:before{content:"✓";display:grid;place-items:center;width:68px;height:68px;margin:0 auto 24px;border:2px solid var(--hc-gold);border-radius:50%;background:rgba(214,154,43,.08);color:var(--hc-gold-dark);font-family:Arial,Helvetica,sans-serif;font-size:2rem;font-weight:800;line-height:1}
.hc-success-content>h2:first-child,
.hc-success-content>h3:first-child,
.hc-success-content>.wp-block-heading:first-child{margin:0 0 14px!important;color:var(--hc-navy);font-family:var(--hc-heading-font)!important;font-size:clamp(1.8rem,3.4vw,2.55rem);font-weight:800;text-align:center}
.hc-success-content>h2:first-child:after,
.hc-success-content>h3:first-child:after,
.hc-success-content>.wp-block-heading:first-child:after{display:none}
.hc-success-content>p{max-width:620px;margin-left:auto;margin-right:auto;color:#36505b;font-size:clamp(1.02rem,1.6vw,1.16rem)}
.hc-success-content>p:first-child{margin-top:0;color:var(--hc-navy);font-family:var(--hc-heading-font);font-size:clamp(1.65rem,3vw,2.3rem);font-weight:800;line-height:1.15}
.hc-success-content .wp-block-buttons{justify-content:center}

@media(max-width:620px){
  .hc-subscribe-content .hc-subscribe-form,
  .hc-subscribe-content form:not(.search-form){grid-template-columns:1fr;padding:24px 18px;gap:15px}
  .hc-subscribe-content .hc-field:nth-of-type(3),
  .hc-subscribe-content .hc-consent,
  .hc-subscribe-content .hc-form-actions{grid-column:1}
  .hc-subscribe-content .hc-form-actions button,
  .hc-subscribe-content form button[type="submit"],
  .hc-subscribe-content form input[type="submit"]{width:100%;min-width:0}
  .hc-success-content{padding:30px 20px}
  .hc-success-content:before{width:58px;height:58px;margin-bottom:20px;font-size:1.65rem}
}

