/*
 * Subpage stylesheet, loaded after home.css.
 * home.css covers the shared header, footer, rows, columns and buttons; this
 * file adds the pieces only found on inner pages (page banners, blog posts,
 * archives, shop pages, forms) that the missing Salient/WooCommerce
 * stylesheets used to provide.
 */

/* ---------- Leftovers from theme plugins that no longer work ---------- */

.nectar-social.fixed,
.pswp,
.sby_footer,
.sby_loader,
.woocommerce-product-gallery,
.single-product-main-image,
.post-featured-img-wrap > a,
.post-featured-img,
.grav-wrap > a:first-child,
#author-bio,
.blog_next_prev_buttons .post-bg-img,
.woocommerce-ordering,
.rich-snippet-hidden,
.woocommerce-breadcrumb i,
#cancel-comment-reply-link {
  display: none !important;
}

/* The theme's inline column-gutter rules pull rows outside the page width */
html body .container-wrap .vc_row-fluid[data-column-margin] > .row_col_wrap_12 {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Missing grid widths not used on the homepage */
.vc_col-sm-3 { flex: 0 0 25%; max-width: 25%; }
.vc_col-sm-5 { flex: 0 0 41.667%; max-width: 41.667%; }
.vc_col-sm-7 { flex: 0 0 58.333%; max-width: 58.333%; }
.vc_col-sm-9 { flex: 0 0 75%; max-width: 75%; }

/* Columns that only held a now-missing image: hide them and let the
   remaining text column use the row */
body:not(.home) .row_col_wrap_12 > .wpb_column:not(.vc_col-sm-1, .vc_col-sm-2):not(:has(h1, h2, h3, h4, p, form, ul, blockquote, .nectar-button, .nectar-milestone)) {
  display: none;
}

body:not(.home) .row_col_wrap_12:has(> .wpb_column:not(.vc_col-sm-1, .vc_col-sm-2):not(:has(h1, h2, h3, h4, p, form, ul, blockquote, .nectar-button, .nectar-milestone))) > .wpb_column:not(.vc_col-sm-1, .vc_col-sm-2) {
  flex: 1 1 0;
  max-width: none;
}

body:not(.home) .row_col_wrap_12:has(> .wpb_column:not(.vc_col-sm-1, .vc_col-sm-2):not(:has(h1, h2, h3, h4, p, form, ul, blockquote, .nectar-button, .nectar-milestone))) > .wpb_column > .vc_column-inner {
  max-width: 820px;
}

.row_col_wrap_12.center > .wpb_column > .vc_column-inner {
  margin-left: auto;
  margin-right: auto;
}

.wpb_column > .vc_column-inner {
  position: relative;
}

.column-bg-overlay-wrap {
  display: none;
}

body:not(.home) .wpb_row:not(.top-level) .wpb_column[class*="padding-"] > .vc_column-inner {
  padding: 0 4% !important;
}

/* Inner page heroes are left-aligned, so the accent rule follows the text */
body:not(.home) .wpb_row.top-level h1::after {
  margin-left: 0;
}

body:not(.home) .wpb_row.top-level {
  min-height: 46vh;
  padding-top: 90px !important;
  padding-bottom: 70px !important;
}

body:not(.home) .wpb_row.top-level .divider-wrap {
  display: none;
}

body:not(.home) .wpb_row:not(.top-level) {
  padding-top: max(56px, 4vw) !important;
  padding-bottom: max(56px, 4vw) !important;
}

body:not(.home) .wpb_text_column ul,
.content-inner ul,
.content-inner ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

body:not(.home) .wpb_text_column ul {
  list-style: disc;
}

/* ---------- Stats counters (About Me) ---------- */

.row_col_wrap_12_inner:has(.nectar-milestone) {
  margin-top: 40px;
  row-gap: 24px;
}

.nectar-milestone {
  text-align: center;
  padding: 26px 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(48, 55, 84, 0.08);
}

.nectar-milestone .number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy);
}

.nectar-milestone .number span::after {
  content: "+";
  color: var(--accent);
}

.nectar-milestone .subject {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- YouTube feed (Leadership and Cycling) ---------- */

.sby_items_wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 !important;
  margin-top: 30px;
}

.sby_item {
  width: auto !important;
  padding: 0 !important;
}

.sby_video_thumbnail {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy) center / cover no-repeat;
  box-shadow: 0 8px 24px rgba(48, 55, 84, 0.12);
}

.sby_thumbnail_hover {
  position: absolute;
  inset: auto 0 0;
  padding: 30px 14px 12px;
  background: linear-gradient(transparent, rgba(35, 40, 66, 0.9));
  text-align: left;
}

.sby_video_title {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

.sby_play_btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62px;
  transform: translate(-50%, -60%);
  color: #ff0000;
  transition: transform 0.2s ease;
}

.sby_play_btn svg {
  display: block;
  width: 100%;
  height: auto;
}

.sby_play_btn_bg {
  position: absolute;
  inset: 30% 30%;
  background: #fff;
}

.sby_play_btn svg {
  position: relative;
}

.sby_video_thumbnail:hover .sby_play_btn {
  transform: translate(-50%, -60%) scale(1.1);
}

/* ---------- Page banners (posts, shop, archives) ---------- */

#page-header-wrap,
#page-header-bg {
  height: auto !important;
}

#page-header-bg,
.page-header-no-bg {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(217, 164, 65, 0.22), transparent 45%),
    linear-gradient(160deg, var(--navy), var(--navy-deep)) !important;
  color: #fff;
}

.page-header-bg-image-wrap {
  display: none;
}

#page-header-bg .container,
.page-header-no-bg .container {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 9vw, 120px) var(--gutter);
}

#page-header-bg .col,
.page-header-no-bg .col {
  max-width: 860px;
}

#page-header-bg[data-alignment="center"] .container {
  text-align: center;
}

#page-header-bg[data-alignment="left"] .inner-wrap {
  text-align: left;
}

#page-header-bg[data-alignment="center"] .col {
  margin: 0 auto;
}

#page-header-bg h1,
.page-header-no-bg h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
}

#page-header-bg h1::after,
.page-header-no-bg h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin-top: 24px;
  background: var(--accent);
  border-radius: 2px;
}

#page-header-bg[data-alignment="center"] h1::after {
  margin-left: auto;
  margin-right: auto;
}

#page-header-bg .subheader:empty {
  display: none;
}

.page-header-no-bg .subheader,
#page-header-bg .inner-wrap > a {
  display: inline-block;
  padding: 0 !important;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

#single-below-header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 22px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

#single-below-header a {
  color: #fff;
}

#single-below-header a:hover {
  color: var(--accent);
}

.author-leading {
  margin-right: 4px;
}

/* ---------- Contained content area (non page-builder pages) ---------- */

.container.main-content > .row:not(:has(> .wpb_row)) {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px var(--gutter) 80px;
}

.container.main-content > .row:not(:has(> .wpb_row)) + .row {
  padding-top: 0;
}

/* ---------- Single blog post ---------- */

.single-post .post-area {
  max-width: 760px;
  margin: 0 auto;
}

.single-post .content-inner {
  font-size: 1.08rem;
  line-height: 1.85;
}

.single-post .content-inner li {
  margin-bottom: 0.7em;
}

.single-post .content-inner p:last-child:has(> br:only-child),
.single-post .content-inner p:empty {
  display: none;
}

.blog_next_prev_buttons,
.comments-section {
  max-width: 760px;
  margin: 0 auto;
}

.blog_next_prev_buttons .controls li {
  position: relative;
  padding: 26px 28px;
  border-radius: 8px;
  background: var(--cream);
  transition: background-color 0.2s ease;
}

.blog_next_prev_buttons .controls li.hidden {
  display: none;
}

.blog_next_prev_buttons .controls li:hover {
  background: #fdf0d2;
}

.blog_next_prev_buttons .controls li > a {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.blog_next_prev_buttons.wpb_row {
  padding: 48px 0 0 !important;
  overflow: visible;
}

.blog_next_prev_buttons h3,
.blog_next_prev_buttons h3 span {
  position: static !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  opacity: 1 !important;
}

.blog_next_prev_buttons h3 .line,
.blog_next_prev_buttons svg {
  display: none;
}

.blog_next_prev_buttons h3 > span:first-child {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.comments-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid #e6e3da;
}

/* ---------- Forms (comments, reviews, contact) ---------- */

.comment-form .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.comment-form .row:first-child {
  grid-template-columns: 1fr;
}

.comment-form label,
.comment-form-rating label,
.wpforms-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea,
.comment-form select,
.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form textarea,
.wp-block-search__input,
.quantity .qty {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid #d8d5cc;
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form textarea,
.wpforms-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus,
.comment-form select:focus,
.wpforms-form input:focus,
.wpforms-form textarea:focus,
.wp-block-search__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.25);
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
}

.comment-form-cookies-consent input {
  margin-top: 6px;
  accent-color: var(--accent);
}

.comment-form-cookies-consent label {
  margin: 0;
  font-weight: 400;
  color: var(--text);
}

.comment-form-author,
.comment-form-email {
  margin-bottom: 16px;
}

.comment-form .required,
.wpforms-required-label {
  color: #b3412e;
}

.comment-form input[type="submit"],
.wpforms-submit,
.wp-block-search__button,
.woocommerce .button,
.single_add_to_cart_button {
  display: inline-block;
  padding: 13px 30px;
  font: inherit;
  font-weight: 700;
  color: var(--navy-deep);
  background: var(--accent);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.comment-form input[type="submit"]:hover,
.wpforms-submit:hover,
.wp-block-search__button:hover,
.woocommerce .button:hover,
.single_add_to_cart_button:hover,
.comment-form input[type="submit"]:focus-visible,
.wpforms-submit:focus-visible,
.wp-block-search__button:focus-visible,
.woocommerce .button:focus-visible,
.single_add_to_cart_button:focus-visible {
  color: #fff;
  background: var(--navy);
}

/* Contact form */
.wpforms-container {
  margin-bottom: 56px;
  padding: clamp(24px, 4vw, 44px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(48, 55, 84, 0.1);
}

.wpforms-field-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4%;
}

.wpforms-field {
  flex: 0 0 100%;
  margin-bottom: 20px;
}

.wpforms-field.wpforms-one-half {
  flex-basis: 48%;
}

.wpforms-field-radio ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.wpforms-field-radio li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wpforms-field-radio input {
  accent-color: var(--accent);
}

.wpforms-field-label-inline {
  font-weight: 400;
}

.wpforms-error-noscript {
  display: none;
}

/* ---------- Blog listing, archives and sidebar ---------- */

body:not(.home) .wpb_wrapper > .row:has(> .post-area),
.container.main-content > .row:has(> .post-area.span_9) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}

.posts-container {
  display: grid;
  gap: 24px;
}

.posts-container article .inner-wrap {
  position: relative;
  padding: 30px 32px;
  background: #fff;
  border: 1px solid #ece8de;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.posts-container article .inner-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(48, 55, 84, 0.1);
}

.posts-container .entire-meta-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.posts-container .meta-category a {
  position: relative;
  z-index: 2;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.posts-container .title {
  margin: 8px 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.posts-container .excerpt {
  margin-bottom: 14px;
  color: var(--muted);
}

.posts-container .grav-wrap .text {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.posts-container .grav-wrap .text a {
  position: relative;
  z-index: 2;
  font-weight: 600;
}

#sidebar .widget {
  margin-bottom: 36px;
}

#sidebar h2,
.wp-block-search__label {
  display: block;
  margin-bottom: 14px;
  padding-bottom: 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--accent);
}

.wp-block-search__inside-wrapper {
  display: flex;
  gap: 8px;
}

.wp-block-search__button {
  padding: 12px 18px;
}

#sidebar li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

#sidebar .no-comments,
#sidebar p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Shop (Resources, product pages, cart) ---------- */

.nectar-shop-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  margin-bottom: 30px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nectar-shop-header .woocommerce-result-count {
  margin: 0;
  order: 2;
}

.woocommerce-breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
}

.woocommerce-breadcrumb > span + span::before {
  content: "/";
  margin: 0 8px;
  color: #c2bfb5;
}

.single-product .woocommerce-breadcrumb {
  margin-bottom: 28px;
}

ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

ul.products li.product {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  background: #fff;
  border: 1px solid #ece8de;
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(48, 55, 84, 0.12);
}

ul.products li.product::before {
  content: "Leadership Guide";
  margin-bottom: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

ul.products .product-wrap {
  order: 3;
  margin-top: auto;
}

ul.products .product-wrap > a {
  position: absolute;
  inset: 0;
  z-index: 1;
}

ul.products .product-add-to-cart {
  position: relative;
  z-index: 2;
}

ul.products .woocommerce-loop-product__title {
  order: 1;
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.35;
}

ul.products .price {
  order: 2;
  margin-bottom: 22px;
  font-weight: 700;
  color: var(--navy);
}

.related.products > h2 {
  margin: 0 0 24px;
  font-size: 1.6rem;
}

/* Single product */
.single-product div.product .nectar-prod-wrap {
  max-width: 760px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--cream);
  border-radius: 10px;
}

.single-product .product_title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.single-product .summary .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-dark);
}

form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin: 24px 0;
}

.quantity {
  display: flex;
  border: 1px solid #d8d5cc;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.quantity .qty {
  width: 60px;
  border: 0;
  border-radius: 0;
  text-align: center;
  -moz-appearance: textfield;
}

.quantity .qty::-webkit-inner-spin-button,
.quantity .qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.quantity .minus,
.quantity .plus {
  width: 42px;
  font: inherit;
  font-size: 1.1rem;
  color: var(--navy);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.quantity .minus:hover,
.quantity .plus:hover {
  background: #f3efe4;
}

.product_meta {
  font-size: 0.92rem;
  color: var(--muted);
}

.woocommerce-tabs {
  max-width: 760px;
  margin: 50px 0 60px;
}

.woocommerce-tabs .tab-container {
  max-width: none;
  padding: 0;
}

.wc-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e6e3da;
}

.wc-tabs li a {
  display: inline-block;
  padding: 0 0 12px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 3px solid var(--accent);
  margin-bottom: -1px;
}

.woocommerce-Reviews .comment-reply-title {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
}

.woocommerce-Reviews .comment-notes {
  font-size: 0.92rem;
  color: var(--muted);
}

.comment-form-rating select {
  max-width: 220px;
}

.comment-form-rating,
.comment-form-comment {
  margin-bottom: 16px;
}

/* Cart */
.woocommerce-cart .woocommerce {
  max-width: 640px;
  margin: 20px auto;
  padding: clamp(36px, 6vw, 64px) 32px;
  text-align: center;
  background: var(--cream);
  border-radius: 10px;
}

.cart-empty {
  margin-bottom: 24px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--navy);
}

.return-to-shop {
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 999px) {
  .vc_col-sm-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .vc_col-sm-5,
  .vc_col-sm-7,
  .vc_col-sm-9 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  body:not(.home) .wpb_wrapper > .row:has(> .post-area),
  .container.main-content > .row:has(> .post-area.span_9) {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sby_items_wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 690px) {
  .row_col_wrap_12 > .wpb_column {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .row_col_wrap_12 > .wpb_column + .wpb_column {
    margin-top: 28px;
  }

  .comment-form .row,
  .sby_items_wrap {
    grid-template-columns: 1fr;
  }

  .wpforms-field.wpforms-one-half {
    flex-basis: 100%;
  }

  .posts-container article .inner-wrap {
    padding: 24px 22px;
  }
}
