/* Credenda Capital only. Loaded when the client slug is credenda.
   Uses the Collision Core scale. Does not invent section padding.

   Spacing: 20 0.5rem, 30 1rem, 40 clamp(1.25rem, 2.5vw, 2rem),
            50 clamp(2rem, 5vw, 4rem), 60 clamp(3rem, 8vw, 6.5rem)
   Containers: content 760px, wide 1200px
   Root padding: clamp(16px, 4vw, 32px)
   Type: small 0.9rem, medium 1.125rem, large 1.35rem, x-large 2.2rem,
         xx-large 3.4rem, display 5.2rem
   Buttons: radius 4px (--cc-radius), padding 14px 22px, min-height 52px
   Cards: .cc-twopath__card padding 24px, gap 8px, radius 4px
   Columns stack at 781px, the theme breakpoint. */

.cc-client-credenda .cc-info,
.cc-client-credenda .entry-content a,
.cc-client-credenda .cc-footer a {
  overflow-wrap: anywhere;
}

/* Interior pages use the same wide column as home sections, the header,
   and the footer (theme wide size, 1200px) and the same section padding
   (spacing 50). The page template sets this too. These rules cover a
   theme that still has the old 760px content size. */
body.cc-client-credenda main.wp-block-group:not(.alignfull) {
  box-sizing: border-box;
  max-width: var(--wp--style--global--wide-size, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-top: var(--wp--preset--spacing--50) !important;
  padding-bottom: var(--wp--preset--spacing--50) !important;
}

body.cc-client-credenda main.wp-block-group:not(.alignfull).is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.cc-answer):not(.cc-proof)),
body.cc-client-credenda .entry-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.cc-answer):not(.cc-proof)) {
  max-width: 100%;
}

body.cc-client-credenda .cc-answer,
body.cc-client-credenda .cc-proof {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Dark bands carry their own background. Text stays white on steel.
   The footer uses this class with an ink background, so leave that one alone. */
.cc-client-credenda .cc-section--dark:not(.has-ink-background-color) {
  background-color: var(--wp--preset--color--steel, #262420);
}

.cc-client-credenda .cc-section--dark {
  color: #fff;
}

.cc-client-credenda .cc-section--dark :where(h2, h3, p, li) {
  color: #fff;
}

/* The credential card sits on the folder color. Keep its type ink. */
.cc-client-credenda .cc-section--dark .cc-proof,
.cc-client-credenda .cc-section--dark .cc-proof :where(p, li, em) {
  color: var(--cc-ink, #141414);
}

.cc-client-credenda .cc-section--dark .wp-block-button.is-style-outline .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: var(--cc-radius, 4px);
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}

.cc-client-credenda .cc-section--dark .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: #fff;
  color: #141414;
}

/* Flex columns default to min-width:auto, so a portrait with a width
   attribute can force the page wider than the container. */
.cc-client-credenda .wp-block-columns,
.cc-client-credenda .wp-block-column {
  min-width: 0;
}

.cc-client-credenda .wp-block-image img,
.cc-client-credenda .cc-founder-photo img {
  max-width: 100%;
  height: auto;
}

/* Three package cards stay in one row inside the parent container
   (760px on interior pages, 1200px on the home section). The card
   padding, radius, and gap stay on .cc-twopath__card. */
.cc-client-credenda .cc-packages {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  /* Same rhythm as other sections: layout gap is blockGap 1.25rem.
     .cc-twopath's 8px top margin would override that. */
  margin-top: var(--wp--style--block-gap, 1.25rem);
  margin-block-start: var(--wp--style--block-gap, 1.25rem);
}

.cc-client-credenda .cc-packages > .cc-twopath__card {
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  padding: 24px;
}

.cc-client-credenda .cc-packages .cc-twopath__kicker {
  line-height: 1.2;
  white-space: nowrap;
}

.cc-client-credenda .cc-price {
  font-weight: 800;
  font-size: var(--wp--preset--font-size--large);
  letter-spacing: -0.01em;
}

/* Interior pages use the template link color and the 1.25rem block gap. */
.cc-client-credenda .entry-content > * + * {
  margin-block-start: var(--wp--style--block-gap, 1.25rem);
}

.cc-client-credenda .entry-content a:not(.cc-button):not(.wp-block-button__link) {
  color: var(--wp--preset--color--steel);
  text-underline-offset: 3px;
}

.cc-client-credenda .entry-content a:not(.cc-button):not(.wp-block-button__link):hover {
  color: var(--wp--preset--color--accent);
}

/* Four capital kinds, same card chrome as the package ladder. */
.cc-client-credenda .cc-stakes {
  list-style: none;
  margin: var(--wp--style--block-gap, 1.25rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  border: 0;
}

.cc-client-credenda .cc-stakes li {
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding: 24px;
  border: 1.5px solid var(--wp--preset--color--line);
  border-radius: var(--cc-radius);
  background: var(--wp--preset--color--base);
}

.cc-client-credenda .cc-stakes strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.35rem;
  font-stretch: 80%;
}

/* Template details accordion, with room for the disclosure marker. */
.cc-client-credenda .wp-block-details.cc-faq {
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
  padding: 14px 4px 14px 8px;
  border-bottom: 1px solid var(--wp--preset--color--line);
  overflow: visible;
}

.cc-client-credenda .wp-block-details.cc-faq summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 1.1rem;
  list-style-position: inside;
}

.cc-client-credenda .wp-block-details.cc-faq summary:focus-visible {
  outline: 3px solid var(--wp--preset--color--accent);
  outline-offset: 3px;
}

.cc-client-credenda .cc-portfilter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 var(--wp--style--block-gap, 1.25rem);
}

.cc-client-credenda .cc-portfilter a {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--cc-radius, 4px);
  border: 1.5px solid var(--wp--preset--color--line, #dad6cf);
  background: var(--wp--preset--color--base, #fff);
  color: var(--cc-ink, #141414);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}

.cc-client-credenda .cc-portfilter a.is-active {
  border-color: var(--wp--preset--color--accent, #b8904a);
  box-shadow: inset 0 4px 0 var(--wp--preset--color--accent, #b8904a);
}

/* Resume prices use the package card. Two columns keep four offers
   even, instead of a single card left under a three-column ladder. */
.cc-client-credenda .cc-packages.cc-resume {
  grid-template-columns: 1fr;
}

@media (min-width: 782px) {
  .cc-client-credenda .cc-packages.cc-resume {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cc-client-credenda .cc-portfolio {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wp--preset--spacing--40);
  align-items: stretch;
  margin-top: var(--wp--style--block-gap, 1.25rem);
}

.cc-client-credenda .cc-portcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  margin: 0;
  border: 1.5px solid var(--wp--preset--color--line);
  border-radius: var(--cc-radius);
  background: var(--wp--preset--color--base);
  overflow: hidden;
}

.cc-client-credenda .cc-portcard__media {
  aspect-ratio: 16 / 10;
  background: #141414;
  overflow: hidden;
}

.cc-client-credenda .cc-portcard__media picture,
.cc-client-credenda .cc-portcard__placeholder {
  display: block;
  height: 100%;
}

.cc-client-credenda .cc-portcard img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.cc-client-credenda .cc-portcard__placeholder {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
  padding: 24px;
  background: #141414;
  box-shadow: inset 0 4px 0 var(--wp--preset--color--accent);
  color: #fff;
}

.cc-client-credenda .cc-portcard__badge {
  margin: 0;
  padding: 4px 10px;
  border-radius: var(--cc-radius);
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent-contrast);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cc-client-credenda .cc-portcard__mark {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  font-stretch: 80%;
  line-height: 1.15;
}

.cc-client-credenda .cc-portcard__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  align-content: start;
}

.cc-client-credenda .cc-portcard__body :where(h2, p) {
  margin: 0;
}

.cc-client-credenda .cc-portcard h2 {
  font-size: 1.35rem;
  font-stretch: 80%;
  line-height: 1.15;
}

.cc-client-credenda .cc-portcard__status {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
}

.cc-client-credenda .cc-portcard .cc-button {
  align-self: flex-start;
  margin-top: auto;
}

/* Optional saguaro hero. Off unless brand.heroPhoto is true or ?hero=photo.
   PHP overrides these variables with plugins_url() so the files follow the plugin folder. */
.cc-client-credenda {
  --cc-credenda-hero: url("hero-saguaro.webp");
  --cc-credenda-hero-jpg: url("hero-saguaro.jpg");
  --cc-credenda-hero-mobile: url("hero-saguaro-mobile.webp");
  --cc-credenda-hero-mobile-jpg: url("hero-saguaro-mobile.jpg");
}

.cc-client-credenda.cc-hero-photo .cc-hero {
  color: #fff;
  background-color: #141414;
  background-image:
    linear-gradient(90deg, rgba(20, 20, 20, .92) 0%, rgba(20, 20, 20, .82) 36%, rgba(20, 20, 20, .42) 62%, rgba(20, 20, 20, .28) 100%),
    var(--cc-credenda-hero-jpg);
  background-image:
    linear-gradient(90deg, rgba(20, 20, 20, .92) 0%, rgba(20, 20, 20, .82) 36%, rgba(20, 20, 20, .42) 62%, rgba(20, 20, 20, .28) 100%),
    var(--cc-credenda-hero);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 36% 68%;
}

.cc-client-credenda.cc-hero-photo .cc-hero .cc-hero__kicker,
.cc-client-credenda.cc-hero-photo .cc-hero .cc-hero__headline,
.cc-client-credenda.cc-hero-photo .cc-hero .cc-hero__sub,
.cc-client-credenda.cc-hero-photo .cc-hero .cc-paths__label {
  color: #fff;
}

.cc-client-credenda.cc-hero-photo .cc-hero .wp-block-column:first-child {
  position: relative;
  z-index: 2;
  padding-bottom: var(--wp--preset--spacing--60);
}

.cc-client-credenda.cc-hero-photo .cc-hero__media {
  min-height: 100%;
  align-self: stretch;
}

.cc-client-credenda.cc-hero-photo .cc-hero__cutout-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin: 0;
  pointer-events: none;
}

.cc-client-credenda.cc-hero-photo .cc-hero__cutout {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: right bottom;
}

/* About founder: cutout over the same darkened saguaro as the home hero. */
.cc-client-credenda .cc-founder-band {
  color: #fff;
  background-color: #141414;
  background-image:
    linear-gradient(90deg, rgba(20, 20, 20, .94) 0%, rgba(20, 20, 20, .82) 46%, rgba(20, 20, 20, .4) 100%),
    var(--cc-credenda-hero-jpg);
  background-image:
    linear-gradient(90deg, rgba(20, 20, 20, .94) 0%, rgba(20, 20, 20, .82) 46%, rgba(20, 20, 20, .4) 100%),
    var(--cc-credenda-hero);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 62%;
  box-sizing: border-box;
  padding: var(--wp--preset--spacing--50) clamp(16px, 4vw, 32px) 0;
}

.cc-client-credenda .cc-founder-band > .wp-block-columns {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--wp--preset--spacing--50);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  align-items: start;
}

.cc-client-credenda .cc-founder-band h2,
.cc-client-credenda .cc-founder-band h3,
.cc-client-credenda .cc-founder-band p {
  color: #fff;
}

.cc-client-credenda .cc-founder-band .cc-founder__role {
  color: #eadfc6;
  font-weight: 700;
}

.cc-client-credenda .cc-founder-band .wp-block-column:first-child {
  display: flex;
  flex-direction: column;
  gap: var(--wp--style--block-gap, 1.25rem);
  padding-bottom: var(--wp--preset--spacing--50);
}

.cc-client-credenda .cc-founder-band .wp-block-column:first-child > * {
  margin: 0;
}

.cc-client-credenda .cc-founder-band .cc-hero__cutout-wrap {
  position: relative;
  inset: auto;
  height: auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin: 0;
}

.cc-client-credenda .cc-founder-band .cc-hero__cutout {
  width: min(380px, 100%);
  height: auto;
  object-fit: contain;
  object-position: right bottom;
}

@media (min-width: 782px) {
  .cc-client-credenda .cc-stakes,
  .cc-client-credenda .cc-portfolio {
    grid-template-columns: 1fr 1fr;
  }

  /* Five audience or included cards, the same width as a package card.
     340px stops a fourth column, which would shrink them and strand the last card. */
  .cc-client-credenda .cc-stakes.cc-fit {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  }
}

@media (min-width: 1100px) {
  .cc-client-credenda .cc-stakes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cc-client-credenda .cc-portfolio--teaser {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Three included points, one row, same card as the capital list. */
.cc-client-credenda .cc-include {
  margin: 0;
}

.cc-client-credenda .cc-stakes.cc-include {
  margin-top: var(--wp--style--block-gap, 1.25rem);
}

.cc-client-credenda .cc-stakes.cc-include li {
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.4;
}

@media (min-width: 782px) {
  .cc-client-credenda .cc-stakes.cc-include {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Collision credentials: image on the right, facts in a full-width row. */
.cc-client-credenda .cc-collision .wp-block-column:first-child p {
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 42rem;
}

.cc-client-credenda .cc-collision h2 {
  font-size: var(--wp--preset--font-size--x-large, 2.2rem);
  line-height: 1.05;
}

.cc-client-credenda .cc-collision .cc-slot,
.cc-client-credenda .cc-collision figure {
  margin: 0;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
}

.cc-client-credenda .cc-collision .cc-slot img,
.cc-client-credenda .cc-collision figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.cc-client-credenda .cc-creds {
  list-style: none;
  margin: var(--wp--preset--spacing--40) 0 0;
  padding: 8px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 28px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.cc-client-credenda .cc-creds li,
.cc-client-credenda .cc-section--dark .cc-creds li {
  max-width: none;
  margin: 0;
  padding: 16px 8px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  border-left: 3px solid var(--wp--preset--color--accent, #b8904a);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.35;
}

.cc-client-credenda .cc-header-phone {
  align-self: center;
  color: var(--wp--preset--color--muted, #5f5b55);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.cc-client-credenda .cc-header-phone:hover {
  color: var(--wp--preset--color--ink, #141414);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cc-client-credenda .cc-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.cc-client-credenda .cc-steps li {
  margin: 0;
  max-width: none;
  padding-bottom: 6px;
  color: var(--wp--preset--color--muted, #5f5b55);
  font-weight: 700;
}

.cc-client-credenda .cc-steps li.is-current {
  color: var(--wp--preset--color--ink, #141414);
  border-bottom: 2px solid var(--wp--preset--color--accent, #b8904a);
}

.cc-client-credenda .cc-flow .cc-twopath__card .cc-button {
  margin-top: 12px;
  align-self: start;
}

.cc-client-credenda .cc-agree {
  max-height: 320px;
  overflow: auto;
  box-sizing: border-box;
  padding: 24px;
  border: 1.5px solid var(--wp--preset--color--line, #dad6cf);
  border-radius: 4px;
  background: var(--wp--preset--color--base, #fff);
}

.cc-client-credenda .cc-flow-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  max-width: 36rem;
}

.cc-client-credenda .cc-flow-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.cc-client-credenda .cc-flow-form input[type="text"],
.cc-client-credenda .cc-flow-form input[type="email"],
.cc-client-credenda .cc-flow-form input[type="tel"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--wp--preset--color--line, #dad6cf);
  border-radius: 4px;
  background: #fff;
  color: #141414;
  font: inherit;
  font-weight: 450;
}

.cc-client-credenda .cc-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 650;
}

.cc-client-credenda .cc-check input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  flex: 0 0 auto;
}

.cc-client-credenda .cc-flow__error,
.cc-client-credenda .cc-pay-wait {
  font-weight: 700;
}

.cc-client-credenda .cc-lead[hidden] {
  display: none;
}

.cc-client-credenda .cc-lead {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(20, 20, 20, .62);
}

.cc-client-credenda .cc-lead__panel {
  position: relative;
  box-sizing: border-box;
  width: min(520px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: 28px 24px 24px;
  border-radius: 4px;
  border-top: 4px solid var(--wp--preset--color--accent, #b8904a);
  background: #fff;
  color: #141414;
}

.cc-client-credenda .cc-lead__panel h2 {
  margin: 4px 60px 8px 0;
  font-size: 1.75rem;
  line-height: 1.1;
}

.cc-client-credenda .cc-lead__panel p {
  max-width: none;
}

.cc-client-credenda .cc-lead__close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid var(--wp--preset--color--line, #dad6cf);
  border-radius: 4px;
  background: #fff;
  color: #141414;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cc-client-credenda .cc-lead__close:focus-visible,
.cc-client-credenda .cc-flow-form input:focus-visible,
.cc-client-credenda .cc-check input:focus-visible {
  outline: 3px solid var(--wp--preset--color--accent, #b8904a);
  outline-offset: 2px;
}

@media (min-width: 782px) {
  .cc-client-credenda .cc-creds {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 781px) {
  .cc-client-credenda .cc-packages {
    grid-template-columns: 1fr;
  }

  .cc-client-credenda .cc-founder-band {
    background-image:
      linear-gradient(180deg, rgba(20, 20, 20, .92) 0%, rgba(20, 20, 20, .78) 58%, rgba(20, 20, 20, .45) 100%),
      var(--cc-credenda-hero-mobile-jpg);
    background-image:
      linear-gradient(180deg, rgba(20, 20, 20, .92) 0%, rgba(20, 20, 20, .78) 58%, rgba(20, 20, 20, .45) 100%),
      var(--cc-credenda-hero-mobile);
    background-position: center center;
  }

  .cc-client-credenda .cc-founder-band > .wp-block-columns {
    flex-direction: column;
  }

  .cc-client-credenda .cc-founder-band .cc-hero__cutout {
    width: min(260px, 70%);
  }

  .cc-client-credenda.cc-hero-photo .cc-hero {
    background-image:
      linear-gradient(180deg, rgba(20, 20, 20, .9) 0%, rgba(20, 20, 20, .74) 48%, rgba(20, 20, 20, .4) 100%),
      var(--cc-credenda-hero-mobile-jpg);
    background-image:
      linear-gradient(180deg, rgba(20, 20, 20, .9) 0%, rgba(20, 20, 20, .74) 48%, rgba(20, 20, 20, .4) 100%),
      var(--cc-credenda-hero-mobile);
    background-position: center center;
  }

  .cc-client-credenda.cc-hero-photo .cc-hero .wp-block-column:first-child {
    padding-bottom: var(--wp--preset--spacing--30);
  }

  .cc-client-credenda.cc-hero-photo .cc-hero__cutout-wrap {
    position: relative;
    inset: auto;
    height: auto;
    margin-top: var(--wp--preset--spacing--40);
    justify-content: flex-end;
  }

  .cc-client-credenda.cc-hero-photo .cc-hero__cutout {
    height: auto;
    width: min(280px, 72%);
  }
}
