/*
Theme Name: Billion Dollar Face
Theme URI: https://billiondollarface.com/
Description: A lightweight Kadence child theme for the Billion Dollar Face homepage.
Author: Billion Dollar Face
Template: kadence
Version: 1.14
Text Domain: billion-dollar-face
*/

/*
 * Scope rule:
 * Everything below is limited to .bdf-home.
 * Header, footer, typography, article templates, plugin buttons, and Kadence
 * Customizer settings are deliberately left untouched.
 */

.bdf-home {
  --bdf-home-border: rgba(30, 24, 26, .14);
  --bdf-home-muted: rgba(30, 24, 26, .68);
  --bdf-home-soft: #f7f3f1;
  --bdf-home-accent: #803f50;
}

.bdf-home .bdf-shell {
  width: min(calc(100% - 40px), var(--global-content-width, 1200px));
  margin-inline: auto;
}

.bdf-home a {
  text-decoration: none;
}

.bdf-modern-hero {
  padding: clamp(48px, 7vw, 84px) 0;
}

.bdf-modern-hero__intro {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.bdf-modern-eyebrow,
.bdf-modern-card__meta {
  display: block;
  margin-bottom: .75rem;
  color: var(--bdf-home-accent);
  font-family: inherit;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.bdf-modern-hero__intro h1 {
  max-width: 760px;
  margin: 0 0 1rem;
  font-family: inherit;
  font-size: clamp(2.25rem, 4.2vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.bdf-modern-hero__intro p {
  max-width: 660px;
  margin: 0;
  color: var(--bdf-home-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
}

.bdf-modern-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, .78fr);
  border: 1px solid var(--bdf-home-border);
  background: var(--global-palette9, #fff);
}

.bdf-modern-lead__image {
  min-height: clamp(340px, 46vw, 560px);
  background-position: center;
  background-size: cover;
}

.bdf-modern-lead__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 64px);
}

.bdf-modern-lead__content h2 {
  margin: 0 0 1rem;
  font-family: inherit;
  font-size: clamp(1.75rem, 2.55vw, 2.65rem);
  line-height: 1.1;
  text-wrap: balance;
}

.bdf-modern-lead__content h2 a,
.bdf-modern-card h3 a,
.bdf-modern-latest__list h3 a {
  color: inherit;
}

.bdf-modern-lead__content p,
.bdf-modern-card p,
.bdf-modern-latest__intro p,
.bdf-modern-trust p {
  color: var(--bdf-home-muted);
  line-height: 1.7;
}

.bdf-modern-lead__content p {
  font-size: 1rem;
}

.bdf-modern-link {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  width: fit-content;
  margin-top: .75rem;
  color: var(--bdf-home-accent);
  font-weight: 700;
}

.bdf-modern-categories,
.bdf-modern-picks,
.bdf-modern-latest,
.bdf-modern-trust {
  padding: clamp(52px, 7vw, 88px) 0;
  border-top: 1px solid var(--bdf-home-border);
}

.bdf-modern-categories,
.bdf-modern-trust {
  background: var(--bdf-home-soft);
}

.bdf-modern-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.bdf-modern-section-head h2,
.bdf-modern-latest__intro h2,
.bdf-modern-trust h2 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.08;
}

.bdf-modern-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.bdf-modern-category {
  display: block;
  overflow: hidden;
  border: 1px solid var(--bdf-home-border);
  background: var(--global-palette9, #fff);
  color: inherit;
}

.bdf-modern-category__image {
  display: block;
  aspect-ratio: 16 / 10;
  background-position: center;
  background-size: cover;
  transition: transform .35s ease;
}

.bdf-modern-category__body {
  display: block;
  padding: 19px 20px 21px;
}

.bdf-modern-category__topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.bdf-modern-category__topline strong {
  font: inherit;
  font-weight: 700;
}

.bdf-modern-category__topline > span {
  color: var(--bdf-home-accent);
}

.bdf-modern-category__copy {
  display: block;
  margin-top: .55rem;
  color: var(--bdf-home-muted);
  font-size: .92rem;
  line-height: 1.55;
}

.bdf-modern-category:hover .bdf-modern-category__image {
  transform: scale(1.025);
}

.bdf-modern-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.bdf-modern-card {
  min-width: 0;
}

.bdf-modern-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  background-position: center;
  background-size: cover;
}

.bdf-modern-card h3 {
  margin: 0 0 .65rem;
  font-family: inherit;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.2;
}

.bdf-modern-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.bdf-modern-latest__grid,
.bdf-modern-trust__inner {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: start;
}

.bdf-modern-latest__list {
  border-top: 1px solid var(--bdf-home-border);
}

.bdf-modern-latest__list article {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--bdf-home-border);
}

.bdf-modern-latest__list article > a {
  flex: 0 0 auto;
  color: var(--bdf-home-accent);
  font-size: 1.2rem;
}

.bdf-modern-latest__list span {
  color: var(--bdf-home-muted);
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bdf-modern-latest__list h3 {
  margin: .25rem 0 0;
  font-family: inherit;
  font-size: 1.15rem;
  line-height: 1.35;
}

.bdf-modern-trust__inner {
  grid-template-columns: minmax(260px, .8fr) minmax(260px, 1fr) auto;
  align-items: center;
}

.bdf-modern-trust__inner .bdf-modern-link {
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .bdf-modern-lead,
  .bdf-modern-latest__grid,
  .bdf-modern-trust__inner {
    grid-template-columns: 1fr;
  }

  .bdf-modern-lead__image {
    min-height: 360px;
  }

  .bdf-modern-category-grid,
  .bdf-modern-pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .bdf-home .bdf-shell {
    width: min(calc(100% - 28px), var(--global-content-width, 1200px));
  }

  .bdf-modern-hero {
    padding-top: 36px;
  }

  .bdf-modern-lead__image {
    min-height: 280px;
  }

  .bdf-modern-lead__content {
    padding: 24px;
  }

  .bdf-modern-category-grid,
  .bdf-modern-pick-grid {
    grid-template-columns: 1fr;
  }
}


/* v1.4 homepage refinements */
.bdf-modern-categories {
  padding-bottom: clamp(44px, 6vw, 72px);
}


.bdf-modern-card__image {
  background-position: center;
}

.bdf-modern-trust__inner {
  grid-template-columns: minmax(280px, 2fr) minmax(300px, 2fr) minmax(150px, 1fr);
}

.bdf-modern-trust__inner > * {
  align-self: center;
}

@media (max-width: 900px) {
  .bdf-modern-trust__inner {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Hub pages — scoped and typography-neutral
   ========================================================= */
.bdf-hub {
  --bdf-page-border: color-mix(in srgb, currentColor 14%, transparent);
  --bdf-page-muted: color-mix(in srgb, currentColor 66%, transparent);
  --bdf-page-soft: #faf7f5;
  --bdf-page-accent: #803f50;
}

.bdf-hub__shell {
  width: min(calc(100% - 40px), var(--global-content-width, 1200px));
  margin-inline: auto;
}

.bdf-hub__hero {
  padding: clamp(44px, 7vw, 82px) 0;
  border-bottom: 1px solid var(--bdf-page-border);
  background: var(--bdf-page-soft);
}

.bdf-hub__hero .bdf-hub__shell {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: end;
}

.bdf-hub__heading h1,
.bdf-hub__section-head h2,
.bdf-related-guides h2,
.bdf-hub-card h3,
.bdf-related-guide h3 {
  font-family: inherit;
}

.bdf-hub__heading h1 {
  margin: .35rem 0 0;
}

.bdf-hub__eyebrow,
.bdf-related-guides__eyebrow,
.bdf-hub-card__meta {
  display: block;
  color: var(--bdf-page-accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bdf-hub__dek {
  max-width: 680px;
  margin: 0;
  color: var(--bdf-page-muted);
  line-height: 1.7;
}

.bdf-hub__body {
  padding: clamp(42px, 6vw, 76px) 0 clamp(64px, 9vw, 110px);
}

.bdf-hub__intro {
  max-width: 820px;
  margin-bottom: clamp(46px, 7vw, 84px);
}

.bdf-hub__intro > :first-child { margin-top: 0; }
.bdf-hub__intro > :last-child { margin-bottom: 0; }

.bdf-hub__section-head {
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--bdf-page-border);
}

.bdf-hub__section-head h2 {
  margin: .35rem 0 0;
}

.bdf-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px) 26px;
}

.bdf-hub-card {
  min-width: 0;
}

.bdf-hub-card__image {
  display: block;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--bdf-page-soft);
}

.bdf-hub-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s ease;
}

.bdf-hub-card:hover .bdf-hub-card__image img {
  transform: scale(1.025);
}

.bdf-hub-card h3 {
  margin: .45rem 0 .65rem;
  line-height: 1.25;
}

.bdf-hub-card h3 a,
.bdf-related-guide h3 a {
  color: inherit;
  text-decoration: none;
}

.bdf-hub-card p {
  margin: 0 0 1rem;
  color: var(--bdf-page-muted);
  line-height: 1.65;
}

.bdf-hub-card__link {
  color: var(--bdf-page-accent);
  font-weight: 700;
  text-decoration: none;
}

.bdf-hub-card--featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr);
  border: 1px solid var(--bdf-page-border);
  background: var(--bdf-page-soft);
}

.bdf-hub-card--featured .bdf-hub-card__image {
  height: 100%;
  margin: 0;
}

.bdf-hub-card--featured .bdf-hub-card__image img {
  height: 100%;
  aspect-ratio: auto;
}

.bdf-hub-card--featured .bdf-hub-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 44px);
}

/* =========================================================
   Money pages — gentle enhancement only
   ========================================================= */
.bdf-money-page {
  --bdf-review-border: color-mix(in srgb, currentColor 15%, transparent);
  --bdf-review-soft: #faf7f5;
  --bdf-review-accent: #803f50;
  --bdf-review-green: #f4f7f2;
}

/* Hide editorial separator rules while preserving their vertical rhythm. */
.bdf-money-page .entry-content hr,
.bdf-money-page .entry-content .wp-block-separator {
  display: block;
  width: 100%;
  height: 0;
  clear: both;
  margin: clamp(28px, 4vw, 48px) 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 0;
}

/* Product-title rhythm: no forced font, size, width, or color. */
.bdf-money-page .entry-content > h2 {
  position: relative;
  margin-top: clamp(42px, 6vw, 72px);
  padding-top: clamp(18px, 3vw, 30px);
  border-top: 0;
}

.bdf-money-page .entry-content > h2:first-of-type {
  margin-top: 2.5rem;
}

.bdf-money-page .entry-content > h2 + p,
.bdf-money-page .entry-content > h2 + figure,
.bdf-money-page .entry-content > h2 + .wp-block-image {
  margin-top: 1.25rem;
}

/* Do not enlarge or float images; only keep normal visual breathing room. */
.bdf-money-page .entry-content .wp-block-image,
.bdf-money-page .entry-content figure {
  margin-block: 1.5rem;
}

.bdf-money-page .entry-content .wp-block-image img,
.bdf-money-page .entry-content figure img {
  height: auto;
}

.bdf-money-page .entry-content .bdf-review-label {
  margin-top: 1.7rem;
  margin-bottom: .7rem;
  padding: .7rem .85rem;
  border-left: 3px solid var(--bdf-review-accent);
  background: var(--bdf-review-soft);
}

.bdf-money-page .entry-content .bdf-review-label--like {
  border-left-color: #56705a;
  background: var(--bdf-review-green);
}

.bdf-money-page .entry-content .bdf-review-label--consider {
  border-left-color: #9a7352;
}

.bdf-money-page .entry-content .bdf-review-label--verdict {
  margin-top: 2rem;
  border-left-color: var(--bdf-review-accent);
}

.bdf-money-page .entry-content .bdf-review-label + ul,
.bdf-money-page .entry-content .bdf-review-label + ol,
.bdf-money-page .entry-content .bdf-review-label + p {
  margin-top: .75rem;
}

/* Keep buttons entirely under plugin/Kadence control. */

.bdf-related-guides {
  margin-top: clamp(58px, 8vw, 96px);
  padding-top: clamp(34px, 5vw, 52px);
  border-top: 1px solid var(--bdf-review-border);
}

.bdf-related-guides__head {
  margin-bottom: 24px;
}

.bdf-related-guides h2 {
  margin: .35rem 0 0;
}

.bdf-related-guides__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.bdf-related-guide__image {
  display: block;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--bdf-review-soft);
}

.bdf-related-guide__image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.bdf-related-guide h3 {
  margin: 0;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .bdf-hub__hero .bdf-hub__shell,
  .bdf-hub-card--featured {
    grid-template-columns: 1fr;
  }

  .bdf-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bdf-hub-card--featured {
    grid-column: 1 / -1;
  }

  .bdf-hub-card--featured .bdf-hub-card__image img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 600px) {
  .bdf-hub__shell {
    width: min(calc(100% - 28px), var(--global-content-width, 1200px));
  }

  .bdf-hub__grid,
  .bdf-related-guides__grid {
    grid-template-columns: 1fr;
  }

  .bdf-hub-card--featured {
    display: block;
  }

  .bdf-money-page .entry-content > h2 {
    margin-top: 38px;
    padding-top: 28px;
  }
}


/* Quiet affiliate note: intentionally low emphasis. */
.bdf-money-page .bdf-affiliate-note {
  margin: 0 0 1rem;
  padding: .55rem .7rem;
  border: 0;
  border-left: 2px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, currentColor 67%, transparent);
}

.bdf-money-page .bdf-affiliate-note__label {
  display: inline;
  margin-right: .35rem;
  font-size: .76em;
  font-weight: 650;
  letter-spacing: 0;
  line-height: inherit;
  text-transform: none;
  color: inherit;
}

.bdf-money-page .bdf-affiliate-note p {
  display: inline;
  margin: 0;
  font-size: .82em;
  line-height: 1.5;
}

.bdf-money-page .bdf-affiliate-note a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Hide third-party TOCs to avoid duplicates; the theme supplies one compact control. */
.bdf-money-page .entry-content .lwptoc,
.bdf-money-page .entry-content .ez-toc-container,
.bdf-money-page .entry-content #toc_container,
.bdf-money-page .entry-content .rank-math-toc-block,
.bdf-money-page .entry-content .wp-block-yoast-seo-table-of-contents,
.bdf-money-page .entry-content .kb-table-of-content-wrap,
.bdf-money-page .entry-content .kadence-table-of-contents,
.bdf-money-page .entry-content .wp-block-kadence-tableofcontents,
.bdf-money-page .entry-content nav[aria-label="Table of contents"],
.bdf-money-page .entry-content nav[aria-label="Table of Contents"] {
  display: none !important;
}

.bdf-money-page .bdf-compact-toc {
  margin: 0 0 2rem;
  border: 1px solid var(--bdf-review-border);
  border-radius: 4px;
  background: transparent;
}

.bdf-money-page .bdf-compact-toc summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .8rem .9rem;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.bdf-money-page .bdf-compact-toc summary::-webkit-details-marker { display: none; }
.bdf-money-page .bdf-compact-toc summary::after {
  content: '+';
  flex: 0 0 auto;
  font-size: 1.05em;
  font-weight: 400;
}
.bdf-money-page .bdf-compact-toc[open] summary::after { content: '−'; }

.bdf-money-page .bdf-compact-toc__hint {
  margin-left: auto;
  color: color-mix(in srgb, currentColor 56%, transparent);
  font-size: .78em;
  font-weight: 400;
}

.bdf-money-page .bdf-compact-toc ol {
  margin: 0;
  padding: 0 1rem .9rem 2.25rem;
  columns: 2;
  column-gap: 2rem;
}

.bdf-money-page .bdf-compact-toc li {
  break-inside: avoid;
  margin: .38rem 0;
  padding-right: .75rem;
}

.bdf-money-page .bdf-compact-toc a {
  color: inherit;
  text-decoration: none;
}
.bdf-money-page .bdf-compact-toc a:hover { text-decoration: underline; }

/* Reliable back-to-top control; kept separate from every commerce button. */
.bdf-back-to-top {
  position: fixed !important;
  right: max(18px, env(safe-area-inset-right)) !important;
  bottom: max(18px, env(safe-area-inset-bottom)) !important;
  z-index: 2147483000 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .32rem;
  min-width: 44px;
  min-height: 44px;
  padding: .6rem .75rem;
  border: 1px solid rgba(30, 24, 26, .20) !important;
  border-radius: 999px;
  background: #fff !important;
  color: #241f20 !important;
  box-shadow: 0 6px 18px rgba(30, 24, 26, .14);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.bdf-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.bdf-back-to-top:hover,
.bdf-back-to-top:focus-visible {
  border-color: var(--bdf-review-accent, #803f50) !important;
  color: var(--bdf-review-accent, #803f50) !important;
}

@media (max-width: 600px) {
  .bdf-money-page .bdf-compact-toc ol { columns: 1; }
  .bdf-money-page .bdf-compact-toc__hint { display: none; }
  .bdf-back-to-top {
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
  }
  .bdf-back-to-top__text { display: none; }
}

/* Hub guide cards: dates intentionally hidden. */
.bdf-hub .bdf-hub-card__meta { display: none !important; }

/* v1.14: back-to-top script fallback and stronger visibility. */
.no-js .bdf-back-to-top {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.bdf-back-to-top {
  width: auto;
  isolation: isolate;
}
