/* Katalia redesign 2026 — Home.
   Most blocks are Katalia widgets that draw their own layout (widgets.css); this file only
   neutralises Elementor's section chrome around them and styles the native "three paths"
   section (#home-paths heading + .katalia-paths cards), whose parts are plain Elementor widgets.
   Elementor on this server uses "Improve DOM Output": no .elementor-row, the column grid parent
   is .elementor-container. */

/* ── Widget sections: no gaps, no widths, the widget is the section ─────── */
.k-home-block > .elementor-container {
  max-width: none !important;
  width: 100% !important;
}
.k-home-block .elementor-column,
.k-home-block .elementor-widget-wrap {
  padding: 0 !important;
}

/* ── Three paths: heading ─────────────────────────────────────────────── */
.k-paths-head,
.katalia-paths {
  background: var(--k-black);
  color: var(--k-cream);
}
.k-paths-head {
  padding: var(--k-space-8) 0 56px;
}
.k-paths-head > .elementor-container,
.katalia-paths > .elementor-container {
  width: var(--k-container) !important;
  max-width: var(--k-container) !important;
  margin: 0 auto !important;
}
.k-paths-head .elementor-column {
  width: 100% !important;
}
.k-paths-head .elementor-widget-wrap {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding: 0 !important;
}
.k-paths-head .elementor-widget {
  width: auto;
  margin: 0 !important;
}
.k-paths__title {
  max-width: 760px;
}
.k-paths__title .elementor-heading-title {
  margin: 0;
  font-family: var(--k-font-display);
  font-size: var(--k-fs-h2);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--k-cream) !important;
}
.k-paths__intro {
  max-width: 420px;
  color: var(--k-grey-light);
  font: 400 17px / 1.55 var(--k-font-text);
}
.k-paths__intro p {
  margin: 0;
}

/* ── Three paths: cards ───────────────────────────────────────────────── */
.katalia-paths {
  padding: 0 0 var(--k-space-8);
}
.katalia-paths > .elementor-container {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.katalia-paths .elementor-column {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
}
.k-path-card > .elementor-widget-wrap {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-content: stretch;
  height: 100%;
  padding: 0 0 28px !important;
  background: var(--k-surface);
  border: 1px solid var(--k-line);
  transition: border-color var(--k-transition);
}
.k-path-card > .elementor-widget-wrap:hover,
.k-path-card > .elementor-widget-wrap:focus-within {
  border-color: var(--k-line-strong);
}
.k-path-card .elementor-widget {
  width: 100%;
  margin: 0 0 14px !important;
  padding: 0 28px;
}
.k-path-card .elementor-widget:last-child {
  margin-bottom: 0 !important;
}
.k-path-card .k-path-card__image {
  margin-bottom: 28px !important;
  padding: 0;
}
.k-path-card__image .elementor-widget-container,
.k-path-card__image img {
  display: block;
  width: 100%;
}
.k-path-card__image img {
  aspect-ratio: 4 / 3;
  height: auto;
  max-width: none;
  object-fit: cover;
  border-radius: 0;
}
.k-path-card__index .elementor-heading-title {
  margin: 0;
  font: 500 13px / 1 var(--k-font-text);
  color: var(--k-green) !important;
}
.k-path-card__title .elementor-heading-title {
  margin: 0;
  font-family: var(--k-font-display);
  font-size: var(--k-fs-h3);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--k-cream) !important;
}
.k-path-card__text {
  flex: 1;
  color: var(--k-grey-light);
  font: 400 16px / 1.5 var(--k-font-text);
}
.k-path-card__text p {
  margin: 0;
}
.k-path-card .k-path-card__button {
  margin-top: 8px !important;
}
.k-path-card__button .elementor-button {
  display: inline-flex;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none !important;
  box-shadow: none;
  color: var(--k-cream) !important;
  font: 500 15px / 1 var(--k-font-text);
  letter-spacing: 0;
  text-transform: none;
}
.k-path-card__button .elementor-button-text::after {
  content: "\2192";
  display: inline-block;
  margin-left: 10px;
  transition: transform var(--k-transition);
}
.k-path-card > .elementor-widget-wrap:hover .elementor-button-text::after {
  transform: translateX(4px);
}
.k-path-card__button .elementor-button:focus-visible {
  outline: 2px solid var(--k-green);
  outline-offset: 4px;
}
/* The whole card follows its button: the overlay must be positioned against the card
   (widget-wrap), so the widgets between them (Elementor makes them relative) are static. */
.k-path-card .elementor-widget,
.k-path-card .elementor-widget-container,
.k-path-card__button .elementor-button-wrapper,
.k-path-card__button .elementor-button {
  position: static;
}
.k-path-card__button .elementor-button::after {
  content: "";
  position: absolute;
  inset: 0;
}

@media (max-width: 760px) {
  .k-paths-head {
    padding: 80px 0 40px;
  }
  .katalia-paths {
    padding-bottom: 80px;
  }
  .katalia-paths > .elementor-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .k-path-card > .elementor-widget-wrap {
    padding-bottom: 24px !important;
  }
  .k-path-card .elementor-widget {
    padding: 0 20px;
  }
  .k-path-card .k-path-card__image {
    margin-bottom: 20px !important;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .k-path-card__button .elementor-button-text::after,
  .k-path-card > .elementor-widget-wrap {
    transition: none;
  }
}
