/*
Theme Name: HPI Child
Theme URI: https://dev.hpi.prospus.com/
Description: Human Performance Intelligence child theme, built on Hello Elementor.
Author: Prospus
Author URI: https://prospus.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hpi-child
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/* === Base === */
body{background:#F8F9FA;color:#161D26;font-family:Inter,system-ui,sans-serif;margin:0}
a{color:#1A85BB;text-decoration:none}
img{max-width:100%;height:auto;display:block}

/* === Header === */
.hpi-sticky,#hpi-header{position:sticky;top:0;z-index:1000;transition:box-shadow .2s ease}
#hpi-header{background:#FFFFFF;border-bottom:1px solid #E0E4EA}
.hpi-header-inner{max-width:1280px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;padding:16px 40px;gap:24px}
.hpi-wordmark{color:#1A85BB;font-size:18px;font-weight:600;letter-spacing:-0.01em;transition:color .15s ease}
.hpi-wordmark:hover{color:#10284B}
.hpi-nav{display:flex;align-items:center;gap:32px}
.hpi-nav a{color:#10284B;font-size:14px;font-weight:500;transition:color .15s ease}
.hpi-nav a:hover{color:#1A85BB}
/* Plain icon-only toggle — no button chrome in any state. */
#hpi-header .hpi-search-toggle{
  -webkit-appearance:none;appearance:none;
  background:transparent!important;border:0;outline:0;box-shadow:none;
  color:#10284B;padding:4px;margin:0;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  font:inherit;line-height:1;
  transition:color .15s ease
}
#hpi-header .hpi-search-toggle:hover,
#hpi-header .hpi-search-toggle:focus,
#hpi-header .hpi-search-toggle:focus-visible,
#hpi-header .hpi-search-toggle[aria-expanded="true"]{
  background:transparent!important;color:#1A85BB;outline:0;box-shadow:none
}
#hpi-header .hpi-search-toggle svg{display:block}

/* Search overlay — covers the header bar (wordmark + nav) while active */
.hpi-search-panel{
  position:absolute;top:0;left:0;right:0;bottom:0;
  background:#FFFFFF;
  display:flex;align-items:center;
  opacity:0;pointer-events:none;
  transform:translateY(-8px);
  transition:opacity .18s ease,transform .2s ease;
  z-index:10
}
.hpi-search-panel.is-open{opacity:1;pointer-events:auto;transform:translateY(0)}
.hpi-search-form{
  width:100%;max-width:1280px;margin:0 auto;padding:0 40px;
  display:flex;gap:12px;align-items:center
}
.hpi-search-form input[type=search]{
  flex:1;min-width:0;padding:14px 18px;
  border:1px solid #E0E4EA;border-radius:8px;
  font-family:Inter,system-ui,sans-serif;font-size:16px;
  color:#10284B;background:#FFFFFF;outline:none;
  transition:border-color .15s ease,box-shadow .15s ease;
  -webkit-appearance:none;appearance:none
}
.hpi-search-form input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.hpi-search-form input[type=search]:focus{border-color:#1A85BB;box-shadow:0 0 0 3px rgba(26,133,187,.15)}
.hpi-search-submit{
  flex:0 0 auto;width:52px;
  background:#10284B;color:#FFFFFF;
  border:0;border-radius:8px;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  transition:background-color .15s ease
}
.hpi-search-submit:hover{background:#1A85BB}
.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media(max-width:640px){
  .hpi-search-form{padding:14px 20px;gap:8px}
  .hpi-search-form input[type=search]{padding:12px 14px;font-size:15px}
  .hpi-search-submit{width:44px}
}

/* === Main === */
#hpi-content{min-height:40vh}

/* === Page title banner (Research, About, Blog, Single) ===
   Inner container matches header/footer (1280px + 40px horizontal padding). */
.hpi-page-title,.hpi-post-hero{
  background-image:linear-gradient(160deg,#10284B 0%,#274267 60%,#1A85BB 100%);
  color:#FFFFFF;padding:96px 0 80px
}
.hpi-page-title-inner,.hpi-post-hero-inner{max-width:1280px;margin:0 auto;padding:0 40px}
.hpi-page-title-eyebrow,.hpi-post-hero-meta{
  font-family:Inter,sans-serif;font-size:12px;font-weight:600;
  letter-spacing:.25em;text-transform:uppercase;color:#47A3D1;margin:0 0 16px
}
.hpi-post-hero-meta{letter-spacing:.15em}
.hpi-post-hero-meta time{color:inherit}
.hpi-page-title-heading,.hpi-post-hero-title{
  font-family:"Playfair Display",Georgia,serif;font-size:56px;font-weight:700;
  line-height:1.1;letter-spacing:-.025em;color:#FFFFFF!important;margin:0
}
.hpi-page-title-subtitle{
  font-family:Inter,sans-serif;font-size:18px;line-height:1.625;
  color:#CBD5E0;max-width:720px;margin:24px 0 0
}
@media(max-width:767px){
  .hpi-page-title,.hpi-post-hero{padding:72px 0 56px}
  .hpi-page-title-inner,.hpi-post-hero-inner{padding:0 20px}
  .hpi-page-title-heading,.hpi-post-hero-title{font-size:36px}
  .hpi-page-title-subtitle{font-size:16px}
}

/* === Static page content (Research, About) ===
   Section is full-bleed; inner matches header 1280 max-width but reading column stays narrower. */
.hpi-page-content{background:#F8F9FA;padding:80px 0 120px}
.hpi-page-content-outer{max-width:1280px;margin:0 auto;padding:0 40px}
.hpi-page-content-inner{max-width:720px;margin:0 auto;font-size:17px;line-height:1.65;color:#374151}
.hpi-page-content-inner h2{
  font-family:"Playfair Display",Georgia,serif;font-size:32px;font-weight:700;
  color:#10284B;margin:48px 0 16px;letter-spacing:-.015em;line-height:1.2
}
.hpi-page-content-inner h3{
  font-family:"Playfair Display",Georgia,serif;font-size:22px;font-weight:700;
  color:#10284B;margin:32px 0 12px
}
.hpi-page-content-inner p{margin:0 0 20px}
.hpi-page-content-inner a{color:#1A85BB;border-bottom:1px solid rgba(26,133,187,.3)}
.hpi-page-content-inner a:hover{color:#10284B;border-color:#10284B}
.hpi-page-content-inner ul,.hpi-page-content-inner ol{padding-left:24px;margin:0 0 20px}
.hpi-page-content-inner li{margin-bottom:8px}
.hpi-page-content-inner blockquote{
  border-left:3px solid #1A85BB;margin:32px 0;padding:8px 0 8px 24px;
  font-style:italic;color:#10284B;font-size:20px;line-height:1.5
}

/* === Blog archive === */
.hpi-blog-archive{background:#F8F9FA;padding:80px 0 120px}
.hpi-blog-archive-inner{max-width:1280px;margin:0 auto;padding:0 40px}
.hpi-post-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:32px;align-items:stretch
}
.hpi-post-card{
  background:#FFFFFF;border:1px solid #E0E4EA;border-radius:12px;
  overflow:hidden;display:flex;flex-direction:column;
  transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease
}
.hpi-post-card:hover{border-color:#47A3D1;box-shadow:0 8px 24px rgba(16,40,75,.08);transform:translateY(-2px)}
.hpi-post-card-thumb{display:block;aspect-ratio:16/9;overflow:hidden;background:#F2F4F6}
.hpi-post-card-thumb img{width:100%;height:100%;object-fit:cover}
.hpi-post-card-body{padding:24px;display:flex;flex-direction:column;flex-grow:1}
.hpi-post-card-meta{font-size:12px;color:#6B7789;margin:0 0 8px;text-transform:uppercase;letter-spacing:.1em;font-weight:600}
.hpi-post-card-title{margin:0 0 12px;font-size:22px;line-height:1.3}
.hpi-post-card-title a{
  color:#10284B;font-family:"Playfair Display",Georgia,serif;
  font-weight:700;transition:color .15s ease
}
.hpi-post-card-title a:hover{color:#1A85BB}
.hpi-post-card-excerpt{color:#6B7789;font-size:14px;line-height:1.625;margin-bottom:16px;flex-grow:1}
.hpi-post-card-excerpt p{margin:0}
.hpi-post-card-more{color:#1A85BB;font-size:14px;font-weight:600;margin-top:auto}
.hpi-post-card-more:hover{color:#10284B}

.hpi-pagination{margin-top:56px;text-align:center}
.hpi-pagination .nav-links{display:inline-flex;gap:8px;flex-wrap:wrap;justify-content:center}
.hpi-pagination .page-numbers{
  display:inline-block;padding:8px 14px;border:1px solid #E0E4EA;
  border-radius:6px;color:#10284B;font-size:14px;font-weight:500;
  transition:color .15s ease,border-color .15s ease,background .15s ease
}
.hpi-pagination a.page-numbers:hover{border-color:#1A85BB;color:#1A85BB}
.hpi-pagination .page-numbers.current{background:#10284B;color:#FFFFFF;border-color:#10284B}

.hpi-empty{text-align:center;color:#6B7789;padding:80px 0}

/* === Single post === */
.hpi-single{background:#F8F9FA;padding:48px 40px 120px}
.hpi-single-featured{max-width:1280px;margin:0 auto 48px;border-radius:12px;overflow:hidden}
.hpi-single-content{max-width:720px;margin:0 auto;font-size:18px;line-height:1.75;color:#374151}
.hpi-single-content h2{
  font-family:"Playfair Display",Georgia,serif;font-size:32px;font-weight:700;
  color:#10284B;margin:48px 0 16px;letter-spacing:-.015em;line-height:1.2
}
.hpi-single-content h3{
  font-family:"Playfair Display",Georgia,serif;font-size:24px;font-weight:700;
  color:#10284B;margin:36px 0 12px
}
.hpi-single-content p{margin:0 0 24px}
.hpi-single-content blockquote{
  border-left:3px solid #1A85BB;margin:32px 0;padding:8px 0 8px 24px;
  font-style:italic;color:#10284B;font-family:"Playfair Display",Georgia,serif;
  font-size:22px;line-height:1.4
}
.hpi-single-content ul,.hpi-single-content ol{padding-left:24px;margin:0 0 24px}
.hpi-single-content li{margin-bottom:8px}
.hpi-single-content a{color:#1A85BB;border-bottom:1px solid rgba(26,133,187,.3)}
.hpi-single-content a:hover{color:#10284B;border-color:#10284B}
.hpi-single-content img{border-radius:8px;margin:24px auto}
.hpi-single-content code{
  background:#EBEFF4;padding:2px 6px;border-radius:4px;
  font-size:.9em;color:#10284B;font-family:ui-monospace,Menlo,Consolas,monospace
}
.hpi-single-content pre{
  background:#10284B;color:#E0E4EA;padding:20px;border-radius:8px;
  overflow-x:auto;font-size:14px;line-height:1.55;margin:24px 0
}
.hpi-single-content pre code{background:transparent;padding:0;color:inherit}
.hpi-single-footer{max-width:720px;margin:64px auto 0;padding-top:32px;border-top:1px solid #E0E4EA}
.hpi-back-link{color:#1A85BB;font-size:14px;font-weight:600}
.hpi-back-link:hover{color:#10284B}

/* === Media Kit page === */
.hpi-mediakit{background:#F8F9FA;padding:96px 0 120px}
.hpi-mediakit-inner{
  max-width:1280px;margin:0 auto;padding:0 40px;
  display:grid;grid-template-columns:1fr 1.2fr;gap:80px;align-items:start
}
.hpi-mediakit-title{
  font-family:"Playfair Display",Georgia,serif;font-size:64px;font-weight:700;
  line-height:1.08;letter-spacing:-.025em;color:#10284B;margin:0 0 24px
}
.hpi-mediakit-copy h2{
  font-family:"Playfair Display",Georgia,serif;font-size:22px;font-weight:700;
  color:#10284B;margin:0 0 20px;line-height:1.3
}
.hpi-mediakit-copy p{
  font-family:Inter,sans-serif;font-size:16px;line-height:1.65;color:#6B7789;
  margin:0 0 16px
}
.hpi-mediakit-copy a{color:#1A85BB;border-bottom:1px solid rgba(26,133,187,.3)}
.hpi-mediakit-copy a:hover{color:#10284B;border-color:#10284B}

.hpi-mediakit-card{
  background:#EBEFF4;border-radius:12px;padding:40px;margin:0
}
.hpi-resource-list{list-style:none;padding:0;margin:0 0 32px}
.hpi-resource-list li{margin:0 0 18px}
.hpi-resource-list li:last-child{margin-bottom:0}
.hpi-resource-list a{
  display:flex;gap:10px;align-items:flex-start;
  color:#10284B;font-family:Inter,sans-serif;font-size:15px;line-height:1.6;
  border:0;text-decoration:none;transition:color .15s ease
}
.hpi-resource-list a svg{flex:0 0 auto;margin-top:4px;color:#1A85BB;transition:color .15s ease}
.hpi-resource-list a:hover{color:#1A85BB}
.hpi-resource-list a:hover svg{color:#10284B}
.hpi-resource-list strong{font-weight:700;color:#10284B;transition:color .15s ease}
.hpi-resource-list a:hover strong{color:#1A85BB}
.hpi-dl-btn{
  display:inline-flex;align-items:center;gap:10px;
  background:#10284B;color:#FFFFFF!important;
  padding:14px 24px;border-radius:8px;
  font-family:Inter,sans-serif;font-size:13px;font-weight:700;
  text-transform:uppercase;letter-spacing:.08em;
  text-decoration:none;border:0;
  transition:background-color .15s ease
}
.hpi-dl-btn:hover{background:#1A85BB;color:#FFFFFF!important}
@media(max-width:767px){
  .hpi-mediakit{padding:72px 0 80px}
  .hpi-mediakit-inner{grid-template-columns:1fr;gap:48px;padding:0 20px}
  .hpi-mediakit-title{font-size:42px}
  .hpi-mediakit-card{padding:28px}
}

/* === Newsletter form (used inside page.php content) === */
.hpi-newsletter-form{max-width:520px;margin:24px 0}
.hpi-newsletter-row{display:flex;gap:12px;align-items:stretch}
.hpi-newsletter-form input[type=email]{
  flex:1;min-width:0;padding:14px 18px;border:1px solid #E0E4EA;border-radius:8px;
  font-family:Inter,system-ui,sans-serif;font-size:16px;color:#10284B;background:#FFFFFF;
  outline:none;transition:border-color .15s ease,box-shadow .15s ease;-webkit-appearance:none
}
.hpi-newsletter-form input[type=email]:focus{border-color:#1A85BB;box-shadow:0 0 0 3px rgba(26,133,187,.15)}
.hpi-newsletter-form button{
  background:#10284B;color:#FFFFFF;border:0;border-radius:8px;
  padding:14px 26px;font-family:Inter,sans-serif;font-size:13px;font-weight:700;
  text-transform:uppercase;letter-spacing:.08em;cursor:pointer;
  transition:background-color .15s ease
}
.hpi-newsletter-form button:hover{background:#1A85BB}
.hpi-newsletter-note{font-size:13px;color:#6B7789;margin:12px 0 0;line-height:1.5}
@media(max-width:640px){
  .hpi-newsletter-row{flex-direction:column}
  .hpi-newsletter-form button{width:100%}
}

/* === Footer === */
#hpi-footer{background:#FFFFFF;border-top:1px solid #E0E4EA}
.hpi-footer-inner{
  max-width:1280px;margin:0 auto;padding:28px 40px;
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px
}
.hpi-footer-brand{color:#10284B;font-size:14px;font-weight:600;margin:0;justify-self:start}
.hpi-footer-nav{display:flex;gap:24px;justify-self:center}
.hpi-footer-nav a{
  color:#10284B;font-size:13px;font-weight:600;
  text-transform:uppercase;letter-spacing:.08em;
  transition:color .15s ease
}
.hpi-footer-nav a:hover{color:#1A85BB}
.hpi-footer-copy{color:#6B7789;font-size:12px;margin:0;justify-self:end;text-align:right}
@media(max-width:640px){
  .hpi-header-inner{padding:14px 20px;gap:12px}
  .hpi-nav{gap:18px}
  .hpi-nav a{font-size:13px}
  .hpi-footer-inner{grid-template-columns:1fr;padding:24px 20px;text-align:center;gap:16px}
  .hpi-footer-brand,.hpi-footer-nav,.hpi-footer-copy{justify-self:center;text-align:center}
}

/* === Elementor Carry-overs (from earlier) === */
#hpi-header a{transition:color .15s ease}
#hpi-header a:hover{color:#1A85BB}
.e-con{transition:box-shadow .2s ease,border-color .2s ease}
#hpi-hero > .elementor-background-overlay{
  background-image:linear-gradient(160deg,#10284B 0%,#274267 60%,#1A85BB 100%)!important
}
