/*
Theme Name: New Beginning Professional Services
Theme URI: https://nbpsllc.com/
Author: New Beginning Professional Services, LLC
Description: A custom, responsive NBPS consulting theme with WooCommerce compatibility, strategic partner links, contract-compliance services, and a built-in contact workflow.
Version: 1.6.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: nbps
*/

.alignwide { max-width: 1180px; margin-inline: auto; }
.alignfull { width: 100%; }
.wp-caption, .gallery-caption { color: #5b6877; }
.screen-reader-text { position: absolute; left: -9999px; }
.screen-reader-text:focus { left: 8px; top: 8px; z-index: 9999; background: white; padding: 10px; }
.woocommerce .products { margin-top: 2rem; }
.woocommerce ul.products li.product .button { background: #06376f; color: white; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: #43a62f; }
.notice-success { padding: 14px 18px; background: #eff9eb; border-left: 5px solid #43a62f; margin-bottom: 24px; }
.notice-error { padding: 14px 18px; background: #fff2f2; border-left: 5px solid #b42318; margin-bottom: 24px; }

/* Books and Apps page. */
.app-showcase-section { background: #fff; }
.app-featured { display: grid; grid-template-columns: minmax(240px, 390px) 1fr; gap: clamp(38px, 7vw, 90px); align-items: center; padding: clamp(28px, 5vw, 62px); background: linear-gradient(135deg, #f9fbff, #f4f8f6); border: 1px solid #dbe4e9; border-radius: 8px; box-shadow: 0 24px 65px rgba(3,39,79,.12); }
.app-icon-frame { margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 22%; box-shadow: 0 22px 50px rgba(3,39,79,.22); }
.app-icon-frame img { width: 100%; height: 100%; object-fit: cover; }
.app-copy h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin: .15em 0 .3em; }
.app-tagline { color: #06376f; font-size: 1.25rem; font-weight: 900; }
.app-description { color: #5b6877; max-width: 64ch; }
.app-store-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.app-store-links .button { border-radius: 6px; }
.app-store-status { display: inline-flex; flex-direction: column; padding: 10px 16px; color: #06376f; background: #fff; border: 1px solid #bdcad3; border-radius: 6px; font-weight: 900; line-height: 1.2; }
.app-store-status small { color: #5b6877; font-size: .72rem; font-weight: 700; margin-top: 4px; }

@media (max-width: 850px) {
  .app-featured { grid-template-columns: 1fr; }
  .app-icon-frame { width: min(78%, 340px); justify-self: center; }
}

/* Books page: one prominent popular title with a quieter supporting shelf. */
.books-showcase-section { background: linear-gradient(180deg, #fff 0%, #f4f8f6 100%); }
.books-showcase { display: grid; gap: 72px; }
.book-featured { display: grid; grid-template-columns: minmax(250px, 360px) 1fr; gap: clamp(42px, 7vw, 92px); align-items: center; padding: clamp(30px, 5vw, 64px); background: #fff; border: 1px solid #dbe4e9; border-radius: 7px; box-shadow: 0 26px 70px rgba(3,39,79,.12); position: relative; overflow: hidden; }
.book-featured::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: linear-gradient(#ffc400, #43a62f); }
.book-featured .book-cover { width: min(100%, 310px); min-height: 445px; padding: 32px 27px; justify-self: center; box-shadow: -15px 18px 0 rgba(3,39,79,.09), 0 26px 55px rgba(3,39,79,.22); }
.book-featured .book-cover strong { font-size: clamp(2rem, 3.5vw, 3rem); }
.book-featured .book-cover span, .book-featured .book-cover small { font-size: .74rem; }
.book-featured-meta { max-width: 610px; }
.book-featured-meta h2 { font-size: clamp(2.55rem, 5vw, 4.6rem); margin: .15em 0 .35em; }
.book-featured-description { font-size: 1.08rem; color: #5b6877; max-width: 58ch; }
.popular-title { display: inline-flex; background: #ffc400; color: #03274f; padding: 7px 13px; border-radius: 999px; font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 24px; }
.other-titles-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; border-bottom: 1px solid #dbe4e9; padding-bottom: 20px; }
.other-titles-heading h2 { font-size: clamp(2rem, 4vw, 3.15rem); margin: 0; }
.other-titles-heading p { max-width: 520px; color: #5b6877; margin: 0; }
.other-titles-heading .eyebrow { color: #43a62f; margin-bottom: 7px; }
.book-cover-art { margin: 0; background: #03274f; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 3px; box-shadow: -9px 11px 0 rgba(3,39,79,.09), 0 18px 38px rgba(3,39,79,.2); }
.book-cover-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-cover-art-featured { width: min(100%, 350px); justify-self: center; box-shadow: -15px 18px 0 rgba(3,39,79,.09), 0 28px 60px rgba(3,39,79,.25); }
.book-featured-meta > .book-status { margin-left: 9px; }
.book-status { display: inline-flex; align-items: center; width: max-content; border: 1px solid rgba(67,166,47,.32); background: #eff9eb; color: #267018; padding: 5px 10px; border-radius: 999px; font-size: .66rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.book-status-published { border-color: rgba(17,153,213,.35); background: #eaf7fd; color: #075b84; }
.book-category { color: #43a62f !important; font-size: .7rem !important; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; margin: .85rem 0 .4rem !important; }
.book-buy-link, .book-update-link { display: inline-flex; align-items: center; width: max-content; color: #06376f; font-weight: 900; text-decoration: none; margin-top: auto; padding-top: 8px; }
.book-buy-link:hover, .book-update-link:hover { color: #43a62f; }
.book-grid .book-card { display: flex; flex-direction: column; gap: 24px; padding: 25px; background: #fff; border: 1px solid #dbe4e9; border-radius: 5px; }
.book-grid .book-cover-art { width: min(100%, 210px); align-self: center; }
.book-grid .book-meta { display: flex; flex-direction: column; flex: 1; }
.book-secondary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.book-secondary-card { display: flex; flex-direction: column; gap: 24px; align-items: stretch; padding: 25px; background: rgba(255,255,255,.76); border: 1px solid #dbe4e9; border-radius: 5px; }
.book-secondary-card .book-cover-art { width: min(76%, 190px); align-self: center; }
.book-secondary-card .book-meta { display: flex; flex-direction: column; flex: 1; }
.book-secondary-card .book-meta > p:not(.book-category) { font-size: .88rem; line-height: 1.55; }
.book-secondary-card .book-cover { min-height: 190px; padding: 16px 13px; box-shadow: -7px 9px 0 rgba(3,39,79,.08), 0 13px 25px rgba(3,39,79,.14); }
.book-secondary-card .book-cover strong { font-size: 1.15rem; }
.book-secondary-card .book-meta h3 { font-size: 1.35rem; }
.woo-featured-title { padding: clamp(28px, 5vw, 58px); background: #fff; border: 1px solid #dbe4e9; box-shadow: 0 26px 70px rgba(3,39,79,.12); }
.woo-featured-title .products { margin-top: 0; }

@media (max-width: 1000px) {
  .book-featured { grid-template-columns: 1fr; }
  .book-featured-meta { max-width: none; }
  .book-secondary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .books-showcase { gap: 52px; }
  .book-featured { padding: 28px 20px; gap: 34px; }
  .book-cover-art-featured { width: min(88%, 320px); }
  .book-featured-meta > .book-status { margin: 8px 0 0; }
  .other-titles-heading { display: block; }
  .other-titles-heading > p { margin-top: 16px; }
  .book-secondary-grid { grid-template-columns: 1fr; }
  .book-secondary-card { display: grid; grid-template-columns: 105px 1fr; padding: 18px; gap: 20px; }
  .book-secondary-card .book-cover-art { width: 105px; align-self: start; }
}
