/* assets/css/components.css
   Components matching pages.pdf + components.pdf */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 20px;
  border: 0;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    opacity var(--transition);
  font-weight: 700;
  letter-spacing: 0.1px;
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  padding: 10px 14px;
  font-size: 14px;
}

.btn--wide {
  width: 100%;
}

.btn--primary {
  background: var(--color-primary);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.1);
  color: #fff;
  box-shadow: 0 12px 22px rgba(237, 120, 77, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 16px 30px rgba(237, 120, 77, 0.35);
}

.btn--secondary {
  background: #fff;
  color: var(--color-text);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn--secondary:hover {
  box-shadow: var(--shadow-card);
}

.btn--surface {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn--surface:hover {
  box-shadow: var(--shadow-card);
}

.card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-xl);
}

.card--soft {
  background: color-mix(in srgb, var(--color-surface) 80%, transparent);
}

.card--transparent {
  background: var(--color-surface);
  border-color: rgba(0, 0, 0, 0.22);
}

.card__pad {
  padding: 22px;
}

/* Top bar nav (pages.pdf) */
.nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  min-height: var(--nav-h);
  z-index: 100;
  background: var(--color-accent);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.1);
  color: #fff;
}

.nav__inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 800;
}

.nav__link {
  opacity: 0.96;
}

.nav__link:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 8px;
}
.nav__toggle {
  display: none;
}

.nav__logo {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}
.nav__brandText {
  line-height: 1;
}

.nav.is-scrolled {
  background: rgba(45, 74, 102, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 980px) {
  .nav__inner {
    height: 66px;
  }

  .nav__brand {
    font-size: 26px;
  }

  .nav__toggle {
    display: inline-flex;
    width: 44px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
  }
  .nav__toggle span {
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    display: block;
  }
  .nav__links {
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    background: var(--color-primary);
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.1);
    padding: 14px 16px 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }
  .nav__links.is-open {
    display: flex;
  }
}

@media (max-width: 640px) {
  .nav__brand {
    font-size: 18px;
  }
}

/* Home hero (2-col) */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 50px 0;
}
.hero__kicker {
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.hero__sub {
  max-width: 520px;
  margin-top: 10px;
  font-size: 16px;
}

.hero h1 {
  margin-left: 0;
  padding-left: 0;
}
.hero__kicker,
.hero__sub {
  margin-left: 0;
  padding-left: 0;
}
.hero__media {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(
    135deg,
    rgba(47, 77, 110, 0.18),
    rgba(237, 120, 77, 0.18)
  );
  min-height: 330px;
  max-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Search card */
.searchCard {
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-xl);
  padding: 18px;
  max-width: 520px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}
.searchCard__label {
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 10px;
}

/* Unified inputs */
.input {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  padding: 11px 12px;
  outline: none;
}
.input:focus {
  border-color: rgba(237, 120, 77, 0.55);
  box-shadow: 0 0 0 6px rgba(237, 120, 77, 0.12);
}

/* Pill variant (used in search bars) */
.input--pill {
  border-radius: 999px;
  padding: 12px 14px;
  z-index: 50;
}

/* Back-compat alias (older markup) */
.inputPill {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  padding: 12px 14px;
  outline: none;
  background: #fff;
}
.inputPill:focus {
  border-color: rgba(237, 120, 77, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(237, 120, 77, 0.35),
    0 0 0 6px rgba(237, 120, 77, 0.12);
}
.suggest {
  position: relative;
}
.suggest__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 120;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: none;
}
.suggest__list.is-open {
  display: block;
}
.suggest__item {
  padding: 12px 14px;
  cursor: pointer;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.suggest__item:first-child {
  border-top: 0;
  min-height: var(--nav-h);
}
.suggest__item:hover {
  background: rgba(47, 77, 110, 0.06);
}
.suggest__top {
  font-weight: 800;
  color: var(--color-text);
  font-size: 14px;
}
.suggest__sub {
  font-size: 13px;
  color: var(--color-subtext);
}

/* Testimonials */
.sectionTitle {
  text-align: center;
  margin-bottom: 26px;
}
.sectionTitle p {
  margin: 8px auto 0;
  max-width: 720px;
}

.tcard {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  min-height: 510px;
  padding: 28px 26px 24px;
  border: 1px solid rgba(16, 24, 40, 0.06);
  border-radius: 28px;
  background: #f7f7f8;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
}

.tcard__stars {
  color: #f4b000;
  letter-spacing: 2px;
  font-size: 16px;
}

.tcard__title {
  margin-top: 14px;
  font-weight: 800;
  font-size: clamp(24px, 2vw, 28px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.tcard__quote {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(16, 24, 40, 0.84);
}

.tcard__who {
  margin-top: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 14px;
}

.tcard__avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 999px;
  background-color: #efefef;
  background-image: url("/assets/images/avatar-generic.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.tcard__meta {
  font-size: 13px;
  color: var(--color-subtext);
}

.tcard__meta strong {
  color: var(--color-text);
}

.tcarousel {
  position: relative;
  margin-top: 32px;
  padding-bottom: 58px;
}

.tcarousel__viewport {
  overflow: hidden;
  border-radius: 0;
}

.tcarousel__track {
  display: flex;
  align-items: stretch;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 0 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tcarousel__track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.tcarousel__slide {
  display: flex;
  scroll-snap-align: start;
  flex: 0 0 min(31.5%, 390px);
  opacity: 0;
  transform: translateX(42px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.tcarousel__slide.is-in {
  opacity: 1;
  transform: translateX(0);
}

.tcarousel__btn {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #ececef;
  color: rgba(16, 24, 40, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.tcarousel__btn:hover {
  background: #e1e1e5;
}

.tcarousel__btn:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.tcarousel__btn--prev {
  right: 58px;
}

.tcarousel__btnIcon {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}

.tcarousel__dots {
  display: none;
}

.tcarousel--edgeRight {
  width: calc(100vw - ((100vw - 100%) / 2));
  max-width: none;
}

.tcarousel--edgeRight .tcarousel__viewport {
  margin-right: calc(50% - 50vw);
}

@media (max-width: 1100px) {
  .tcarousel__slide {
    flex-basis: calc(50% - 11px);
  }
}

@media (max-width: 780px) {
  .tcard {
    min-height: 460px;
    padding: 24px 20px 22px;
  }

  .tcard__title {
    font-size: 24px;
  }

  .tcard__quote {
    font-size: 16px;
  }

  .tcarousel {
    padding-bottom: 54px;
  }

  .tcarousel__slide {
    flex-basis: min(86vw, 350px);
  }

  .tcarousel__btn--prev {
    right: 54px;
  }
}

@media (max-width: 640px) {
  .tcarousel--edgeRight {
    width: 100%;
  }

  .tcarousel--edgeRight .tcarousel__viewport {
    margin-right: 0;
  }

  .tcarousel__track {
    gap: 16px;
  }

  .tcarousel__slide {
    flex-basis: 86vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tcarousel__track {
    scroll-behavior: auto;
  }
  .tcarousel__slide {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* Full-bleed testimonials shared on homepage + testimonials page */
.section--testimonialsBleed {
  overflow: hidden;
}

.tcarousel--bleed {
  --carousel-site-offset: max(
    var(--gutter),
    calc((100vw - var(--container)) / 2 + var(--gutter))
  );
  --carousel-arrow-gap: 58px;
  --carousel-card-width: clamp(420px, 33.5vw, 468px);
  --carousel-right-peek: clamp(84px, 8vw, 150px);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
  padding-bottom: 72px;
}

.tcarousel--bleed .tcarousel__viewport {
  overflow: hidden;
}

.tcarousel--bleed .tcarousel__track {
  gap: 22px;
  padding-top: 6px;
  padding-bottom: 8px;
  padding-left: var(--carousel-site-offset);
  padding-right: var(--carousel-right-peek);
  scroll-padding-left: var(--carousel-site-offset);
  scroll-padding-right: var(--carousel-right-peek);
}

.tcarousel--bleed .tcarousel__slide {
  flex: 0 0 var(--carousel-card-width);
}

.tcarousel--bleed .tcarousel__btn {
  right: var(--carousel-site-offset);
  bottom: 0;
}

.tcarousel--bleed .tcarousel__btn--prev {
  right: calc(var(--carousel-site-offset) + var(--carousel-arrow-gap));
}

@media (max-width: 1200px) {
  .tcarousel--bleed {
    --carousel-card-width: clamp(392px, 42vw, 440px);
    --carousel-right-peek: clamp(60px, 8vw, 112px);
  }

  .tcarousel--bleed .tcarousel__slide {
    flex-basis: var(--carousel-card-width);
  }
}

@media (max-width: 780px) {
  .tcarousel--bleed {
    --carousel-arrow-gap: 54px;
    --carousel-card-width: min(89vw, 392px);
    --carousel-right-peek: max(14px, calc(var(--gutter) * 0.4));
    padding-bottom: 60px;
  }

  .tcarousel--bleed .tcarousel__track {
    padding-left: var(--gutter);
    padding-right: var(--carousel-right-peek);
    scroll-padding-left: var(--gutter);
    scroll-padding-right: var(--carousel-right-peek);
  }

  .tcarousel--bleed .tcarousel__slide {
    flex-basis: var(--carousel-card-width);
  }
}

@media (max-width: 640px) {
  .tcarousel--bleed {
    --carousel-card-width: 90vw;
    --carousel-right-peek: 10px;
  }

  .tcarousel--bleed .tcarousel__track {
    gap: 16px;
    padding-left: var(--gutter);
    padding-right: var(--carousel-right-peek);
    scroll-padding-left: var(--gutter);
    scroll-padding-right: var(--carousel-right-peek);
  }

  .tcarousel--bleed .tcarousel__slide {
    flex-basis: var(--carousel-card-width);
  }

  .tcarousel__btn {
    width: 44px;
    height: 44px;
  }

  .tcarousel__btnIcon {
    width: 16px;
    height: 16px;
  }
}

/* Universal modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
}

.modal[aria-hidden="false"],
.modal.is-open {
  display: block;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.48);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: min(560px, calc(100vw - (var(--gutter) * 2)));
  margin: min(12vh, 96px) auto 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(16, 24, 40, 0.24);
  overflow: hidden;
}

.modal__head,
.modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}

.modal__head {
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

.modal__title {
  font-weight: 800;
  color: var(--color-text);
}

.modal__x {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: rgba(16, 24, 40, 0.68);
  cursor: pointer;
}

.modal__body {
  padding: 22px;
  color: var(--color-text);
}

.modal__body > :last-child {
  margin-bottom: 0;
}

.modal__actions {
  justify-content: flex-end;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
}

/* Section headings */
.sectionHead {
  margin-bottom: 22px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(60, 83, 109, 0.78);
}

.section-title {
  margin: 0;
}

.section-subtitle {
  max-width: 760px;
  margin: 12px auto 0;
  font-size: 18px;
}

/* Accordions */
.accordion {
  display: grid;
  gap: 14px;
  max-width: 100%;
  margin: 0 auto;
}

.acc {
  background: var(--color-surface);
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 18px;
  overflow: hidden;
}

.acc__btn {
  width: 100%;
  background: var(--color-surface);
  border: 0;
  color: #3c536d;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.acc__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.acc__panel {
  display: none;
  background: #fff;
  padding: 0 18px 18px;
  color: var(--color-text);
}

.acc__panel p:last-child,
.acc__panel :last-child {
  margin-bottom: 0;
}

.acc.is-open .acc__panel {
  display: block;
}

/* Footer */
.footer {
  margin-top: 80px;
}

.footer__top {
  background: var(--color-accent);
  padding: 42px 0 36px;
}

.footer__bottom {
  background: var(--color-dark);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.1);
  padding: 16px 0;
  color: #ffffff;
  font-size: 12px;
}

.footer__bottomInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .footer__bottomInner {
    justify-content: center;
    text-align: center;
  }
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 26px;
}

@media (max-width: 980px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.footer__logoText {
  display: inline-block;
}

.footer__desc {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 42ch;
}

.footer__title {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  margin-bottom: 10px;
}

.footer__link {
  display: block;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.footer__link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__meta {
  color: rgba(255, 255, 255, 0.88);
  margin: 6px 0;
}

.footer__muted {
  color: rgba(255, 255, 255, 0.78);
}

.footer__cta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer .btn--secondary {
  background: rgba(255, 255, 255, 0.95);
}

.footer .btn--secondary:hover {
  background: #fff;
}

/* Shared form system */
.formGrid {
  display: grid;
  gap: 18px;
}
.formGrid--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.formField,
.form-field {
  display: grid;
  gap: 8px;
}
.formField label,
.form-field label {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}
textarea.input {
  min-height: 140px;
  resize: vertical;
  border-radius: 16px;
  padding-top: 14px;
}
.formField.error .input,
.form-field.error .input,
.formField.error textarea,
.form-field.error textarea {
  border-color: rgba(239, 68, 68, 0.8);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}
.error-msg {
  min-height: 18px;
  font-size: 13px;
  color: var(--color-danger);
}
.formNotice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.08);
  color: #b42318;
  font-weight: 700;
}

main ul:not(.heroPdf__checks):not(.processWizard__steps) {
  list-style: none;
  padding-left: 0;
}
main ul:not(.heroPdf__checks):not(.processWizard__steps) li {
  position: relative;
  padding-left: 24px;
}
main ul:not(.heroPdf__checks):not(.processWizard__steps) li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
}

.consentCheck {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.consentCheck__control {
  position: relative;
  flex: 0 0 auto;
}
.consentCheck__control input {
  position: absolute;
  opacity: 0;
  inset: 0;
}
.consentCheck__control i {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(47, 77, 110, 0.3);
  background: #fff;
  position: relative;
}
.consentCheck__control input:checked + i::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(40deg);
}
.consentCheck__text {
  color: var(--color-subtext);
  font-size: 14px;
}

@media (max-width: 720px) {
  .formGrid--split {
    grid-template-columns: 1fr;
  }
}


.suggest__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--color-subtext);
}
.suggest__flag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(237, 120, 77, 0.12);
  color: var(--color-primary);
  font-weight: 800;
  white-space: nowrap;
}
