/* ============ SHARED FINAL CTA SYSTEM ============
   One visual and type scale across Home, Brand, Wholesale and Contact. */

:is(
  body.page-home .cta-band,
  body.page-brand .cta-section,
  body.page-wholesale .cta-band,
  body.page-contact .cta-section
) {
  position: relative;
  overflow: hidden;
  padding: 112px 0 104px;
  color: var(--white, var(--bd-white));
  text-align: center;
  background:
    linear-gradient(rgba(2, 8, 18, 0.72), rgba(2, 8, 18, 0.91)),
    radial-gradient(circle at 50% 12%, rgba(215, 155, 63, 0.25), transparent 36%),
    linear-gradient(135deg, #071421, #020812);
}

body.page-wholesale .cta-section {
  padding: 0;
  background: var(--navy-950, var(--bd-navy-950));
}

:is(
  body.page-home .cta-band,
  body.page-brand .cta-section,
  body.page-wholesale .cta-band,
  body.page-contact .cta-section
)::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 62%;
  opacity: 0.52;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.32)),
    repeating-linear-gradient(90deg, rgba(232, 180, 91, 0.10) 0 1px, transparent 1px 72px);
  -webkit-mask-image: none;
  mask-image: none;
}

:is(
  body.page-home .cta-content,
  body.page-brand .cta-inner,
  body.page-wholesale .cta-content,
  body.page-contact .cta-shell
) {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  gap: 0;
  text-align: center;
}

:is(
  body.page-home .cta-title,
  body.page-brand .cta-title,
  body.page-wholesale .cta-title,
  body.page-contact .cta-title
) {
  width: min(100%, 920px);
  max-width: 920px;
  margin: 0 auto;
  color: var(--white, var(--bd-white));
  font-family: var(--font-display, var(--bd-font-display));
  font-size: clamp(2.65rem, 4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

:is(
  body.page-home .cta-title .accent,
  body.page-brand .cta-title .accent,
  body.page-wholesale .cta-title .accent,
  body.page-contact .cta-title span
) {
  display: inline;
  color: var(--gold-400, var(--bd-gold-400));
  background: linear-gradient(
    135deg,
    var(--gold-300, #f0c66b),
    var(--gold-500, var(--bd-gold-500))
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

:is(
  body.page-home .cta-content > p,
  body.page-brand .cta-copy,
  body.page-wholesale .cta-content > div:first-child > p,
  body.page-contact .cta-copy > p
) {
  width: min(100%, 690px);
  max-width: 690px;
  margin: 20px auto 0;
  color: var(--text-light, var(--bd-text-light));
  font-size: clamp(0.98rem, 1vw, 1.06rem);
  line-height: 1.7;
  text-align: center;
}

:is(
  body.page-brand .cta-actions,
  body.page-wholesale .cta-actions,
  body.page-contact .cta-actions
) {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin-top: 32px;
}

body.page-home .cta-content > .btn {
  margin-top: 32px;
}

:is(
  body.page-home .cta-band,
  body.page-brand .cta-section,
  body.page-wholesale .cta-section,
  body.page-contact .cta-section
) .btn {
  min-width: 210px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 10px;
  justify-content: center;
}

:is(
  body.page-home .cta-band,
  body.page-brand .cta-section,
  body.page-wholesale .cta-section,
  body.page-contact .cta-section
) :is(.btn-secondary, .btn-secondary-dark) {
  border-color: rgba(232, 180, 91, 0.72);
  background: rgba(255, 255, 255, 0.025);
  color: var(--white, var(--bd-white));
}

@media (hover: hover) and (pointer: fine) {
  :is(
    body.page-home .cta-band,
    body.page-brand .cta-section,
    body.page-wholesale .cta-section,
    body.page-contact .cta-section
  ) :is(.btn-secondary, .btn-secondary-dark):hover {
    border-color: var(--gold-400, var(--bd-gold-400));
    background: rgba(232, 180, 91, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(232, 180, 91, 0.14);
  }
}

@media (max-width: 640px) {
  :is(
    body.page-home .cta-band,
    body.page-brand .cta-section,
    body.page-wholesale .cta-band,
    body.page-contact .cta-section
  ) {
    padding: 84px 0 78px;
  }

  :is(
    body.page-home .cta-title,
    body.page-brand .cta-title,
    body.page-wholesale .cta-title,
    body.page-contact .cta-title
  ) {
    font-size: clamp(2.55rem, 12vw, 3.65rem);
  }

  :is(
    body.page-brand .cta-actions,
    body.page-wholesale .cta-actions,
    body.page-contact .cta-actions
  ) {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  :is(
    body.page-home .cta-band,
    body.page-brand .cta-section,
    body.page-wholesale .cta-section,
    body.page-contact .cta-section
  ) .btn {
    width: 100%;
  }
}

/* Final Brand CTA copy alignment: keep the paragraph flush with its title. */
body.page-brand .cta-section .cta-inner .cta-copy-block {
  width: 100%;
  text-align: left !important;
}

body.page-brand .cta-section .cta-inner .cta-copy-block > p.cta-copy {
  width: min(100%, 680px) !important;
  max-width: 680px !important;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: left !important;
}

/* ============ SITE-WIDE BUTTON ARROW STANDARD ============ */
body .btn > svg,
body .btn > .bd-header-cta-arrow,
body .text-link > span[aria-hidden="true"] {
  display: none !important;
}

body .btn::after,
body .text-link::after {
  content: "\2192" !important;
  position: relative !important;
  inset: auto !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  flex: 0 0 auto;
  color: currentColor !important;
  background: none !important;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  opacity: 1 !important;
  transform: translateX(0);
  transition: transform 0.3s var(--ease-out, var(--bd-ease-out));
  pointer-events: none;
  z-index: 1;
}

body .btn:hover::after,
body .text-link:hover::after {
  width: auto !important;
  transform: translateX(4px);
}

/* ============ COMPACT HOME CTA BAND ============ */
body.page-home .cta-band {
  padding: clamp(64px, 7vw, 84px) 0;
  border-top: 1px solid rgba(232, 180, 91, 0.22);
  border-bottom: 1px solid rgba(232, 180, 91, 0.18);
  background:
    radial-gradient(circle at 76% 30%, rgba(215, 155, 63, 0.12), transparent 28%),
    linear-gradient(120deg, #050d18, #020812 72%);
}

body.page-home .cta-band::before {
  opacity: 0.28;
}

body.page-home .cta-content {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(260px, 0.58fr) auto;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  text-align: left;
}

body.page-home .cta-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.1rem, 3.6vw, 3.35rem);
  line-height: 1.04;
}

body.page-home .cta-content > p {
  max-width: 360px;
  margin: 0;
  padding-left: 24px;
  border-left: 1px solid rgba(232, 180, 91, 0.34);
  font-size: 0.98rem;
  line-height: 1.65;
  text-align: left;
}

body.page-home .cta-content > .btn {
  min-width: 208px;
  margin-top: 0;
  white-space: nowrap;
}

@media (max-width: 980px) {
  body.page-home .cta-content {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.page-home .cta-content > p {
    grid-column: 1;
    padding-left: 0;
    border-left: 0;
  }

  body.page-home .cta-content > .btn {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 680px) {
  body.page-home .cta-band {
    padding: 62px 0;
  }

  body.page-home .cta-content {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }

  body.page-home .cta-title,
  body.page-home .cta-content > p {
    max-width: 620px;
    margin-inline: auto;
    text-align: center;
  }

  body.page-home .cta-title {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  body.page-home .cta-content > .btn {
    grid-column: 1;
    grid-row: auto;
    width: min(100%, 320px);
    margin-inline: auto;
  }
}

/* ============ COMPACT BRAND + WHOLESALE CTA BANDS ============ */
body.page-brand .cta-section,
body.page-wholesale .cta-section .cta-band {
  padding: clamp(64px, 7vw, 84px) 0;
  border-top: 1px solid rgba(232, 180, 91, 0.22);
  border-bottom: 1px solid rgba(232, 180, 91, 0.18);
  background:
    radial-gradient(circle at 76% 30%, rgba(215, 155, 63, 0.12), transparent 28%),
    linear-gradient(120deg, #050d18, #020812 72%);
}

body.page-brand .cta-inner {
  width: min(1240px, calc(100% - 48px));
  max-width: none;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  justify-items: stretch;
  text-align: left;
}

body.page-wholesale .cta-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
  text-align: left;
}

body.page-brand .cta-title,
body.page-wholesale .cta-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.1rem, 3.6vw, 3.35rem);
  line-height: 1.04;
  text-align: left;
}

body.page-brand .cta-copy {
  max-width: 680px;
  margin: 16px 0 0;
  padding-left: 0;
  border-left: 0;
  font-size: 0.96rem;
  line-height: 1.65;
  text-align: left;
}

body.page-wholesale .cta-content > div:first-child > p {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: 0.96rem;
  line-height: 1.65;
  text-align: left;
}

body.page-brand .cta-actions,
body.page-wholesale .cta-actions {
  display: grid;
  gap: 10px;
  min-width: 220px;
  margin: 0;
}

body.page-brand .cta-actions {
  min-width: 208px;
}

body.page-brand .cta-actions .btn,
body.page-wholesale .cta-actions .btn {
  width: 100%;
  min-width: 220px;
}

/* Match the Home hero's golden-button energy across every CTA. */
@keyframes bd-cta-gold-pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(215, 155, 63, 0.22); }
  50% { box-shadow: 0 18px 44px rgba(215, 155, 63, 0.38), 0 0 0 5px rgba(232, 180, 91, 0.07); }
}

:is(
  body.page-home .cta-band,
  body.page-brand .cta-section,
  body.page-wholesale .cta-section
) .btn-primary {
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring, var(--bd-ease-spring)), box-shadow 0.35s ease, filter 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  :is(
    body.page-home .cta-band,
    body.page-brand .cta-section,
    body.page-wholesale .cta-section
  ) .btn-primary:hover {
    transform: translateY(-3px);
    filter: saturate(1.05) brightness(1.03);
    animation: bd-cta-gold-pulse 1.8s ease-in-out infinite;
  }
}

@media (max-width: 980px) {
  body.page-brand .cta-inner,
  body.page-wholesale .cta-content {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  body.page-brand .cta-copy {
    max-width: 680px;
    padding-left: 0;
    border-left: 0;
  }

  body.page-brand .cta-actions,
  body.page-wholesale .cta-actions {
    width: min(100%, 520px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-brand .cta-actions {
    width: min(100%, 310px);
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.page-brand .cta-section,
  body.page-wholesale .cta-section .cta-band {
    padding: 62px 0;
  }

  body.page-brand .cta-inner,
  body.page-wholesale .cta-content {
    text-align: center;
  }

  body.page-brand .cta-title,
  body.page-wholesale .cta-title,
  body.page-wholesale .cta-content > div:first-child > p {
    margin-inline: auto;
    text-align: center;
  }

  body.page-brand .cta-copy {
    margin: 16px 0 0;
    text-align: left;
  }

  body.page-brand .cta-title,
  body.page-wholesale .cta-title {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  body.page-brand .cta-actions,
  body.page-wholesale .cta-actions {
    width: min(100%, 340px);
    grid-template-columns: 1fr;
    margin-inline: auto;
  }
}
