/* Finish layer for the Elementor sections.
   Driven by the classes the build attaches: kbx-eyebrow, kbx-card, kbx-iconbox,
   kbx-list, kbx-visual, kbx-step, kbx-narrow, kbx-panel-soft, kbx-panel-dark,
   kbx-hero-actions, kbx-form. Structure and copy live in the JSON; this file is
   finish only. */

/* ---------------------------------------------------------------- type --- */

.kbx-eyebrow .elementor-heading-title {
  font-size: clamp(0.75rem, 0.62vw, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 4px;
}

/* Fluid type. Sizes scale with the viewport between a phone floor and a large
   display ceiling, which is what stops a 1440 layout from looking small on an
   ultrawide and cramped on a laptop. Tracking tightens as the size grows, the
   way Apple sets display type. */

.elementor-widget-heading h1.elementor-heading-title {
  font-size: clamp(2.5rem, 4.4vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.elementor-widget-heading h2.elementor-heading-title {
  font-size: clamp(1.875rem, 2.9vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.elementor-widget-heading h3.elementor-heading-title {
  font-size: clamp(1.1875rem, 1.35vw, 1.625rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.elementor-widget-text-editor {
  font-size: clamp(1rem, 1.02vw, 1.1875rem);
  line-height: 1.6;
}

/* The hero paragraph carries more weight than body copy elsewhere. */
.elementor-element:has(> .elementor-widget-container h1) + .elementor-widget-text-editor,
.kbx-hero-lead .elementor-widget-container {
  font-size: clamp(1.0625rem, 1.2vw, 1.375rem);
  line-height: 1.5;
}

/* Copy measure. Long lines are the fastest way to look amateur. */
.elementor-widget-text-editor {
  max-width: 62ch;
}

.kbx-narrow .elementor-widget-text-editor,
.kbx-narrow .elementor-widget-heading {
  margin-left: auto;
  margin-right: auto;
}

.kbx-narrow > .e-con-inner {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Grids. CSS Grid rather than flex percentages: equal columns, equal heights,
   and no sub-pixel rounding to wrap a card early. */
.kbx-grid > .e-con-inner {
  display: grid !important;
  gap: 24px;
  align-items: stretch;
}

.kbx-grid-4 > .e-con-inner {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kbx-grid-3 > .e-con-inner {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kbx-grid > .e-con-inner > .e-con {
  width: auto !important;
  max-width: none;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1024px) {
  .kbx-grid-4 > .e-con-inner,
  .kbx-grid-3 > .e-con-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .kbx-grid-4 > .e-con-inner,
  .kbx-grid-3 > .e-con-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------- cards --- */

.kbx-card {
  height: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .kbx-card {
    transition: transform 220ms cubic-bezier(0.2, 0.7, 0.3, 1),
      box-shadow 220ms ease-out, border-color 220ms ease-out;
  }
}

.kbx-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(10, 10, 10, 0.09);
  border-color: transparent;
}

/* ---------------------------------------------------------------- icon --- */
/* The icon sits in a tinted rounded square rather than floating on the page.
   One shape, one size, everywhere. */

.kbx-iconbox .elementor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(48px, 3.6vw, 60px);
  height: clamp(48px, 3.6vw, 60px);
  border-radius: 16px;
  background: var(--kbx-blue-tint);
  color: var(--kbx-blue);
  font-size: clamp(18px, 1.5vw, 23px);
}

.kbx-iconbox .elementor-icon-box-wrapper {
  text-align: left;
}

.kbx-iconbox .elementor-icon-box-title {
  margin-top: 20px;
  margin-bottom: 8px;
}

.kbx-iconbox .elementor-icon-box-description {
  line-height: 1.6;
}

.kbx-panel-dark .kbx-iconbox .elementor-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--kbx-white);
}

/* Lists: small icon, generous leading, never a bullet. */
.kbx-list .elementor-icon-list-item {
  align-items: flex-start;
  margin-bottom: 14px;
  line-height: 1.6;
}

.kbx-list .elementor-icon-list-icon {
  margin-top: 3px;
}

.kbx-list .elementor-icon-list-icon svg,
.kbx-list .elementor-icon-list-icon i {
  font-size: 14px;
  width: 14px;
}

/* -------------------------------------------------------------- visual --- */
/* Pictures are container backgrounds, never image widgets. */

.kbx-visual {
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(10, 10, 10, 0.10);
  background-color: var(--kbx-surface);
}

/* --------------------------------------------------------------- steps --- */

.kbx-step .elementor-counter-number-wrapper {
  font-size: clamp(2.5rem, 3.4vw, 4rem);
  line-height: 1;
  font-family: var(--kbx-font-headline);
  font-weight: 800;
}

.kbx-step .elementor-counter-title {
  display: none;
}

.kbx-step .elementor-widget-heading {
  margin-top: 12px;
}

/* -------------------------------------------------------------- panels --- */

.kbx-panel-soft {
  background: var(--kbx-white);
}

/* --------------------------------------------------------- hero actions --- */

/* The hero actions container is full width, so it has no inner wrapper and the
   row is declared here. !important overrides Elementor's own .e-con rule, which
   loads after the theme stylesheet. */
.kbx-hero-actions,
.kbx-hero-actions > .e-con-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
}

.kbx-hero-actions .elementor-widget-button {
  width: auto;
  flex: 0 0 auto;
}

.kbx-hero-actions .elementor-button {
  height: auto;
  min-height: 52px;
  line-height: 1.3;
  text-align: center;
}

/* ------------------------------------------------------------ accordion --- */

.elementor-accordion .elementor-accordion-item {
  border: 1px solid var(--kbx-line);
  border-radius: var(--kbx-radius-card);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--kbx-white);
}

.elementor-accordion .elementor-tab-title {
  padding: 20px 24px;
  font-family: var(--kbx-font-headline);
  font-weight: 700;
  font-size: 1.0625rem;
}

.elementor-accordion .elementor-tab-content {
  padding: 0 24px 20px;
  border-top: 0;
  line-height: 1.65;
}

/* ----------------------------------------------------------------- form --- */

.kbx-form .fluentform .ff-el-input--label label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--kbx-black);
  margin-bottom: 6px;
}

.kbx-form .fluentform input[type="text"],
.kbx-form .fluentform input[type="email"],
.kbx-form .fluentform input[type="url"],
.kbx-form .fluentform input[type="tel"],
.kbx-form .fluentform textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--kbx-line);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--kbx-font-body);
  font-size: 0.9375rem;
  background: var(--kbx-white);
  box-shadow: none;
}

.kbx-form .fluentform input:focus,
.kbx-form .fluentform textarea:focus {
  border-color: var(--kbx-blue);
  outline: 2px solid rgba(82, 113, 255, 0.25);
  outline-offset: 0;
}

.kbx-form .fluentform .ff-el-group {
  margin-bottom: 18px;
}

.kbx-form .fluentform .ff-el-form-check-label {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--kbx-ink-2);
  font-weight: 400;
}

.kbx-form .fluentform .ff-btn-submit {
  width: 100%;
  min-height: 52px;
  border-radius: var(--kbx-radius-pill);
  background: var(--kbx-blue);
  color: var(--kbx-white);
  font-family: var(--kbx-font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 0;
}

.kbx-form .fluentform .ff-btn-submit:hover {
  background: var(--kbx-blue-dark);
}

/* ---------------------------------------------------------- responsive --- */
/* Ultrawide: the content stays 1200 and the canvas breathes around it, which
   is what stops a wide monitor from stretching the measure. */

@media (min-width: 1600px) {
  .kbx-visual {
    box-shadow: 0 28px 80px rgba(10, 10, 10, 0.12);
  }
}

/* Cards get more room to breathe once there is width to spend. */
@media (min-width: 1400px) {
  .kbx-card {
    padding: 40px;
  }
}

@media (max-width: 1024px) {
  .elementor-widget-text-editor {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .kbx-hero-actions .elementor-widget-button,
  .kbx-hero-actions .elementor-button {
    width: 100%;
  }
  .kbx-iconbox .elementor-icon {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
  .kbx-step .elementor-counter-number-wrapper {
    font-size: 2.5rem;
  }
  .elementor-accordion .elementor-tab-title {
    padding: 16px 18px;
    font-size: 1rem;
  }
  .elementor-accordion .elementor-tab-content {
    padding: 0 18px 16px;
  }
}
