:root {
  --esteem-cta-lime: #c8ff3d;
  --esteem-cta-ink: #111;
  --esteem-cta-radius: 16px;
  --esteem-cta-arrow-size: 38px;
  --esteem-cta-duration: 300ms;
  --esteem-cta-ease: cubic-bezier(.2, .8, .2, 1);
}

/* 1. Framer container overrides to prevent min-content wrapping */
.framer-WiXf4 .framer-1c985e4,
.framer-UEkM5 .framer-woxfuq {
  width: auto;
  height: auto;
}

.framer-WiXf4 .framer-pvrod3.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  width: auto;
  height: auto;
  flex-flow: row;
  align-items: center;
  justify-content: flex-start;
}

/* 2. Base shared styles for primary CTA variants */
:where(
  a.framer-WMYoJ.framer-v-j15i3q,
  a.framer-WMYoJ.framer-v-11jj171,
  .esteem-home-cta,
  .esteem-primary-cta,
  .esteem-secondary-cta,
  .solar-lead-submit,
  form[data-framer-name="Contact Form"] button[type="submit"]
) {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid var(--esteem-cta-ink);
  border-radius: var(--esteem-cta-radius);
  font-family: "Geist", "Geist Placeholder", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1;
  transition: color var(--esteem-cta-duration) ease,
    border-color var(--esteem-cta-duration) ease,
    background-color var(--esteem-cta-duration) ease;
}

/* Specific styling for homepage and Framer CTAs (without !important, using specificity) */
a.framer-WMYoJ.framer-v-j15i3q,
a.framer-WMYoJ.framer-v-11jj171,
.esteem-home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
  padding: 7px 7px 7px 20px;
  background: var(--esteem-cta-ink);
  color: #fff;
  gap: 16px;
  text-decoration: none;
  cursor: pointer;
}

/* Specific styling for lead form submit button */
:where(
  .solar-lead-submit,
  form[data-framer-name="Contact Form"] button[type="submit"]
) {
  padding: 7px 7px 7px 20px;
  background: var(--esteem-cta-ink);
  color: #fff;
}

/* First child label text color transition and layout */
a.framer-WMYoJ.framer-v-j15i3q > span:first-child,
a.framer-WMYoJ.framer-v-11jj171 > span:first-child,
.esteem-home-cta > span:first-child {
  position: relative;
  z-index: 1;
  color: #fff;
  transition: color var(--esteem-cta-duration) ease;
}

/* Prevent text wrapping on desktop/tablet */
a.framer-WMYoJ.framer-v-j15i3q > span:first-child,
a.framer-WMYoJ.framer-v-11jj171 > span:first-child,
.esteem-home-cta > span:first-child,
.esteem-primary-cta > span:first-child,
.esteem-secondary-cta > span:first-child {
  white-space: nowrap;
}

/* 3. Custom arrow box element (centered using display: grid) */
.esteem-cta-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 var(--esteem-cta-arrow-size);
  width: var(--esteem-cta-arrow-size);
  height: var(--esteem-cta-arrow-size);
  place-items: center;
  border-radius: 11px;
  background: var(--esteem-cta-lime);
  color: var(--esteem-cta-ink);
  font-size: 18px;
  line-height: 1;
  transition: transform var(--esteem-cta-duration) var(--esteem-cta-ease),
    background-color var(--esteem-cta-duration) ease;
}

.esteem-cta-arrow svg {
  display: block;
  width: 18px;
  height: 18px;
  color: var(--esteem-cta-ink);
  transition: transform var(--esteem-cta-duration) var(--esteem-cta-ease);
}

/* 4. Hover & focus background transition (sliding lime fill) */
:where(
  a.framer-WMYoJ.framer-v-j15i3q,
  a.framer-WMYoJ.framer-v-11jj171,
  .esteem-home-cta,
  .esteem-primary-cta,
  .esteem-secondary-cta,
  .solar-lead-submit,
  form[data-framer-name="Contact Form"] button[type="submit"]
)::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: var(--esteem-cta-lime);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--esteem-cta-duration) var(--esteem-cta-ease);
}

a.framer-WMYoJ.framer-v-11jj171::before {
  background: rgba(226, 250, 90, .62);
}

.esteem-secondary-cta::before {
  background: var(--esteem-cta-lime);
}

:where(
  a.framer-WMYoJ.framer-v-j15i3q,
  a.framer-WMYoJ.framer-v-11jj171,
  .esteem-home-cta,
  .esteem-primary-cta,
  .esteem-secondary-cta,
  .solar-lead-submit,
  form[data-framer-name="Contact Form"] button[type="submit"]
) > * {
  position: relative;
  z-index: 1;
}

/* Hover behaviors */
@media (hover: hover) and (pointer: fine) {
  :where(
    a.framer-WMYoJ.framer-v-j15i3q,
    a.framer-WMYoJ.framer-v-11jj171,
    .esteem-home-cta,
    .esteem-primary-cta,
    .esteem-secondary-cta,
    .solar-lead-submit,
    form[data-framer-name="Contact Form"] button[type="submit"]
  ):hover::before {
    transform: scaleX(1);
  }

  a.framer-WMYoJ.framer-v-j15i3q:hover,
  a.framer-WMYoJ.framer-v-11jj171:hover,
  .esteem-home-cta:hover,
  .esteem-primary-cta:hover,
  .esteem-secondary-cta:hover,
  .solar-lead-submit:hover,
  form[data-framer-name="Contact Form"] button[type="submit"]:hover {
    color: var(--esteem-cta-ink);
  }

  a.framer-WMYoJ.framer-v-j15i3q:hover > span:first-child,
  a.framer-WMYoJ.framer-v-11jj171:hover > span:first-child,
  .esteem-home-cta:hover > span:first-child {
    color: var(--esteem-cta-ink);
  }

  a.framer-WMYoJ.framer-v-j15i3q:hover .esteem-cta-arrow,
  a.framer-WMYoJ.framer-v-11jj171:hover .esteem-cta-arrow,
  .esteem-home-cta:hover .esteem-cta-arrow,
  .esteem-primary-cta:hover .esteem-cta-arrow,
  .esteem-secondary-cta:hover .esteem-cta-arrow {
    transform: translateX(2px);
  }
}

/* Focus states */
:where(
  a.framer-WMYoJ.framer-v-j15i3q,
  a.framer-WMYoJ.framer-v-11jj171,
  .esteem-home-cta,
  .esteem-primary-cta,
  .esteem-secondary-cta,
  .solar-lead-submit,
  form[data-framer-name="Contact Form"] button[type="submit"]
):focus-visible::before {
  transform: scaleX(1);
}

a.framer-WMYoJ.framer-v-j15i3q:focus-visible,
a.framer-WMYoJ.framer-v-11jj171:focus-visible,
.esteem-home-cta:focus-visible,
.esteem-primary-cta:focus-visible,
.esteem-secondary-cta:focus-visible,
.solar-lead-submit:focus-visible,
form[data-framer-name="Contact Form"] button[type="submit"]:focus-visible {
  color: var(--esteem-cta-ink);
  outline: 3px solid var(--esteem-cta-lime);
  outline-offset: 3px;
}

a.framer-WMYoJ.framer-v-j15i3q:focus-visible > span:first-child,
a.framer-WMYoJ.framer-v-11jj171:focus-visible > span:first-child,
.esteem-home-cta:focus-visible > span:first-child {
  color: var(--esteem-cta-ink);
}

a.framer-WMYoJ.framer-v-j15i3q:focus-visible .esteem-cta-arrow,
a.framer-WMYoJ.framer-v-11jj171:focus-visible .esteem-cta-arrow,
.esteem-home-cta:focus-visible .esteem-cta-arrow,
.esteem-primary-cta:focus-visible .esteem-cta-arrow,
.esteem-secondary-cta:focus-visible .esteem-cta-arrow {
  transform: translateX(2px);
}

/* 5. Clean footer quote block styling overrides */
footer .esteem-footer-quote-wrap {
  width: min(240px, 100%);
  max-width: 100%;
}

footer .esteem-footer-quote-cta {
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 6px 6px 6px 18px;
  gap: 12px;
}

footer .esteem-footer-quote-cta .framer-13xk4pa,
footer .esteem-footer-quote-cta .framer-13xk4pa p {
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

footer .esteem-footer-quote-cta .framer-11rp8ru {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  aspect-ratio: 1;
}

footer .esteem-footer-quote-cta .framer-j6tph6 {
  right: 8px;
  bottom: 8px;
  transform: translateX(0);
  transition: transform var(--esteem-cta-duration) var(--esteem-cta-ease);
}

footer .esteem-footer-quote-cta .framer-vlv1kw {
  display: none;
}

@media (max-width: 360px) {
  footer .esteem-footer-quote-wrap {
    width: 100%;
  }
  footer .esteem-footer-quote-cta {
    padding-left: 15px;
  }
  footer .esteem-footer-quote-cta .framer-13xk4pa,
  footer .esteem-footer-quote-cta .framer-13xk4pa p {
    font-size: 13px;
  }
}

/* 6. Lead Form Submit overrides */
.solar-lead-submit::after,
form[data-framer-name="Contact Form"] button[type="submit"]::after {
  content: "→";
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 7px;
  display: grid;
  width: var(--esteem-cta-arrow-size);
  height: var(--esteem-cta-arrow-size);
  place-items: center;
  border-radius: 11px;
  background: var(--esteem-cta-lime);
  color: var(--esteem-cta-ink);
  font: 500 17px/1 "Geist", "Geist Placeholder", sans-serif;
  pointer-events: none;
  transform: translateY(-50%);
  transition: transform var(--esteem-cta-duration) var(--esteem-cta-ease),
    background-color var(--esteem-cta-duration) ease,
    opacity 180ms ease;
}

.solar-lead-submit,
form[data-framer-name="Contact Form"] button[type="submit"] {
  padding-right: 54px;
  text-align: left;
  transform: none;
}

.solar-lead-submit-label,
form[data-framer-name="Contact Form"] button[type="submit"] p {
  margin-right: auto;
}

.solar-lead-submit:hover,
.solar-lead-submit:focus-visible,
form[data-framer-name="Contact Form"] button[type="submit"]:hover,
form[data-framer-name="Contact Form"] button[type="submit"]:focus-visible {
  background: var(--esteem-cta-ink);
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .solar-lead-submit:hover::after,
  form[data-framer-name="Contact Form"] button[type="submit"]:hover::after {
    transform: translateX(3px) translateY(-50%);
  }
}

.solar-lead-submit:focus-visible::after,
form[data-framer-name="Contact Form"] button[type="submit"]:focus-visible::after {
  transform: translateX(3px) translateY(-50%);
}

.solar-lead-submit.is-loading::after,
.solar-lead-submit:disabled::after,
form[data-framer-name="Contact Form"] button[type="submit"]:disabled::after {
  opacity: 0;
}

/* 7. About page & Hero action layout styles (specifically designed to not conflict with original page designs) */
.esteem-primary-cta,
.esteem-secondary-cta {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 52px;
  width: auto;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 7px 7px 7px 20px;
  overflow: hidden;
  border: 1px solid var(--esteem-cta-ink);
  border-radius: 16px;
  color: #fff;
  font-family: "Geist", "Geist Placeholder", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--esteem-cta-duration) ease,
    background-color var(--esteem-cta-duration) ease,
    border-color var(--esteem-cta-duration) ease;
}

.esteem-primary-cta {
  background: var(--esteem-cta-ink);
}

.esteem-secondary-cta {
  background: rgba(255, 255, 255, 0.62);
  color: var(--esteem-cta-ink);
}

.esteem-secondary-cta .esteem-cta-arrow {
  background: var(--esteem-cta-ink);
  color: #fff;
}

@media (max-width: 767px) {
  .framer-WiXf4 .framer-pvrod3.about-actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
  .esteem-primary-cta,
  .esteem-secondary-cta {
    width: 100%;
    justify-content: space-between;
  }
}

/* Extremely narrow viewport font wrapping fallback */
@media (max-width: 350px) {
  a.framer-WMYoJ.framer-v-j15i3q > span:first-child,
  a.framer-WMYoJ.framer-v-11jj171 > span:first-child,
  .esteem-home-cta > span:first-child {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(
    a.framer-WMYoJ.framer-v-j15i3q,
    a.framer-WMYoJ.framer-v-11jj171,
    .esteem-home-cta,
    .esteem-primary-cta,
    .esteem-secondary-cta,
    .solar-lead-submit,
    form[data-framer-name="Contact Form"] button[type="submit"]
  ),
  :where(
    a.framer-WMYoJ.framer-v-j15i3q,
    a.framer-WMYoJ.framer-v-11jj171,
    .esteem-home-cta,
    .esteem-primary-cta,
    .esteem-secondary-cta,
    .solar-lead-submit,
    form[data-framer-name="Contact Form"] button[type="submit"]
  )::before,
  .esteem-cta-arrow {
    transition: none !important;
  }
}
