/*
Theme Name: Leadership Actionbook
Theme URI: https://leadershipactionbook.com/
Author: Leadership Actionbook by Impacto LLC
Description: Lightweight custom block theme for the Leadership Actionbook publishing store.
Version: 0.6.3
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: leadership-actionbook
*/

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  text-wrap: pretty;
}

/* Keep operational product metadata in WooCommerce, not in the storefront UI. */
.single-product .wp-block-woocommerce-product-meta,
.single-product .product_meta {
  display: none !important;
}

/* Preserve layout while Stripe securely evaluates and renders wallet buttons. */
.single-product #wc-stripe-express-checkout-element:empty {
  min-height: 52px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f3f1ed 25%, #faf9f6 50%, #f3f1ed 75%);
  background-size: 200% 100%;
  animation: lab-payment-loading 1.2s ease-in-out infinite;
}

.single-product #wc-stripe-express-checkout-element:empty::after {
  content: "Loading secure payment options…";
  display: grid;
  min-height: 52px;
  place-items: center;
  color: var(--wp--preset--color--ink-muted);
  font-size: .86rem;
}

@keyframes lab-payment-loading {
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .single-product #wc-stripe-express-checkout-element:empty {
    animation: none;
  }
}

.lab-brand-logo {
  display: block;
  width: min(290px, 64vw);
  height: auto;
}

.lab-site-header {
  border-bottom: 1px solid var(--wp--preset--color--rule);
}

.lab-hero-kicker,
.lab-book-number {
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lab-book-card {
  height: 100%;
  border: 1px solid var(--wp--preset--color--rule);
  border-radius: 14px;
}

.lab-book-cover {
  margin-block: 0 var(--wp--preset--spacing--30);
}

.lab-book-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0;
}

.lab-site-footer .lab-footer-logo {
  display: block;
  width: min(260px, 70vw);
  height: auto;
}

@media (max-width: 781px) {
  .lab-site-header {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .lab-site-header > .wp-block-group {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .lab-brand-logo {
    width: min(215px, 62vw);
  }

  .lab-site-header .wp-block-woocommerce-customer-account,
  .lab-site-header .wp-block-woocommerce-mini-cart,
  .lab-site-header .wc-block-mini-cart {
    display: none;
  }
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--wp--preset--color--signal);
  outline-offset: 3px;
}

:where(button, .wp-element-button, .wp-block-button__link) {
  min-block-size: 44px;
}

.wp-site-blocks {
  min-block-size: 100vh;
}

.lab-skip-link {
  position: fixed;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 100000;
  transform: translateY(-160%);
  padding: 12px 16px;
  border-radius: 4px;
  background: var(--wp--preset--color--night);
  color: var(--wp--preset--color--on-night);
}

.lab-skip-link:focus {
  transform: translateY(0);
}

.lab-eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-card {
  border: 1px solid var(--wp--preset--color--rule);
  border-radius: var(--wp--custom--radius--medium);
}

.lab-site-header {
  border-block-end: 1px solid var(--wp--preset--color--rule);
}

.lab-site-footer a {
  color: inherit;
}

.lab-product-shell,
.woocommerce div.product,
.woocommerce-page div.product {
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
}

.woocommerce div.product .product_title,
.woocommerce-products-header__title,
.woocommerce-loop-product__title {
  font-family: var(--wp--preset--font-family--display);
  color: var(--wp--preset--color--ink);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
  color: var(--wp--preset--color--ember);
  font-weight: 700;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button {
  min-block-size: 44px;
  border-radius: var(--wp--custom--radius--medium);
  background: var(--wp--preset--color--night);
  color: var(--wp--preset--color--on-night);
  font-weight: 600;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.wc-block-components-button:hover {
  background: var(--wp--preset--color--signal);
  color: var(--wp--preset--color--ink);
}

.woocommerce ul.products li.product {
  border: 1px solid var(--wp--preset--color--rule);
  border-radius: var(--wp--custom--radius--large);
  padding: var(--wp--preset--spacing--30);
}

/* Product listings are for discovery; purchasing happens on product pages. */
.woocommerce-shop ul.products li.product .button,
.tax-product_cat ul.products li.product .button,
.tax-product_tag ul.products li.product .button,
.related.products ul.products li.product .button,
.upsells.products ul.products li.product .button,
.cross-sells ul.products li.product .button {
  display: none;
}

.lab-listing-price {
  margin-block: 10px 0;
  color: var(--wp--preset--color--ember);
  font-size: 1.15rem;
  font-weight: 750;
}

.lab-listing-offer {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--wp--preset--color--signal);
  color: var(--wp--preset--color--ink);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Bundle product landing page */
.postid-22 div.product > .woocommerce-product-gallery,
.postid-22 div.product > .summary {
  display: none;
}

.postid-22 div.product > .woocommerce-tabs {
  width: 100%;
  float: none;
  clear: both;
}

.postid-22 .woocommerce-tabs {
  border: 0;
}

.postid-22 .woocommerce-tabs ul.tabs {
  display: none;
}

.postid-22 .woocommerce-Tabs-panel--description > h2:first-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lab-bundle-page {
  --lab-night: #15181d;
  --lab-signal: #ff5b24;
  --lab-cream: #f6f2ea;
  --lab-rule: #d9d6cf;
  color: var(--lab-night);
}

.lab-bundle-page section {
  margin-block: clamp(54px, 8vw, 104px);
}

.lab-bundle-hero,
.lab-bundle-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.lab-bundle-hero {
  padding: clamp(28px, 5vw, 68px);
  border-radius: 28px;
  background: var(--lab-night);
  color: #fff;
}

.lab-bundle-hero h2,
.lab-bundle-dark h2 {
  color: #fff;
}

.lab-bundle-hero img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

.lab-bundle-kicker {
  margin: 0 0 12px;
  color: var(--lab-signal);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lab-bundle-price {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  margin-block: 22px;
}

.lab-bundle-price strong {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.lab-bundle-price del {
  color: #b6b8bb;
  font-size: 1.15rem;
}

.lab-bundle-cta {
  display: inline-flex;
  justify-content: center;
  min-width: min(100%, 290px);
  padding: 16px 24px;
  border-radius: 10px;
  background: var(--lab-signal);
  color: var(--lab-night) !important;
  font-weight: 800;
  text-decoration: none;
}

.lab-bundle-cta:hover {
  filter: brightness(1.08);
}

.lab-bundle-includes {
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--lab-rule);
  border-radius: 28px;
  background: #efeeec;
}

.lab-bundle-includes-header {
  text-align: center;
}

.lab-bundle-book-list {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 8px 28px;
  border-radius: 18px;
  background: #fff;
}

.lab-bundle-book {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 18px;
  align-items: center;
  padding-block: 18px;
  border-bottom: 1px solid var(--lab-rule);
}

.lab-bundle-book:last-child {
  border-bottom: 0;
}

.lab-bundle-book img {
  width: 72px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.lab-bundle-book h3,
.lab-bundle-book p {
  margin: 0;
}

.lab-bundle-book-price {
  color: #777;
  font-weight: 700;
}

.lab-bundle-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lab-bundle-benefit {
  padding: 28px;
  border: 1px solid var(--lab-rule);
  border-radius: 18px;
  background: #fff;
}

.lab-bundle-benefit strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.lab-bundle-dark {
  padding: clamp(34px, 6vw, 72px);
  border-radius: 28px;
  background: var(--lab-night);
  color: #fff;
  text-align: center;
}

.lab-bundle-mobile-cta {
  display: none;
}

.lab-bundle-faq details {
  padding: 20px 0;
  border-bottom: 1px solid var(--lab-rule);
}

.lab-bundle-faq summary {
  cursor: pointer;
  font-weight: 750;
}

@media (max-width: 780px) {
  .lab-bundle-hero,
  .lab-bundle-split,
  .lab-bundle-benefits {
    grid-template-columns: 1fr;
  }

  .lab-bundle-book {
    grid-template-columns: 58px 1fr;
  }

  .lab-bundle-book-price {
    grid-column: 2;
  }

  .lab-bundle-page {
    padding-bottom: 84px;
  }

  .lab-bundle-mobile-cta {
    position: fixed;
    z-index: 9990;
    inset: auto 0 0;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid #33373d;
    background: rgba(21, 24, 29, .97);
    color: #fff;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .18);
  }

  .lab-bundle-mobile-cta strong {
    display: block;
  }

  .lab-bundle-mobile-cta small {
    color: #c9cbd0;
  }

  .lab-bundle-mobile-cta .lab-bundle-cta {
    min-width: auto;
    padding: 12px 18px;
  }
}
