/*
 * KAPOCS Web page (page-honlapkeszites.php): what the front page's KAPOCS Web
 * part (web.css) needs to stand as a page, and the way of working. The copy
 * beside the layered references and the references themselves are in web.css.
 */

/* The dark hero runs up under the floating header. */
.ksf .ksf-web--hero {
  margin-top: -76px;
  padding-top: calc(76px + clamp(48px, 6vw, 96px));
  padding-bottom: clamp(56px, 7vw, 104px);
  border-top: 0;
}

.ksf-web__opener--hero .ksf-display {
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.02;
}

/* The hero fills the first screen beside the references (layout: web.css). */
.ksf-web--hero .kweb-hero {
  min-height: min(640px, calc(100svh - 200px));
}

/* Packages or the audit alone in a section: no rule or gap above them. */
.ksf .ksf-web--plain {
  border-top: 0;
}

.ksf .ksf-web__offer--solo {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.ksf-web__offer--solo .ksf-web__audit {
  margin-top: 0;
}

.ksf-web__offer--solo .ksf-web__pkgs + .ksf-web__audit {
  margin-top: 16px;
}

/* ------------------------------------------------------------------ */
/* The way of working                                                   */
/* ------------------------------------------------------------------ */

.kweb-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}

.kweb-head .ks-lead {
  margin-inline: auto;
}

.kweb-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The thread through the four nodes. */
.kweb-steps::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 12%;
  left: 12%;
  height: 1px;
  background: linear-gradient(90deg, rgba(23, 142, 139, .15), rgba(23, 142, 139, .45), rgba(23, 142, 139, .15));
}

.kweb-step {
  position: relative;
  margin: 0;
  text-align: center;
}

.kweb-step__node {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(23, 142, 139, .35);
  border-radius: 50%;
  color: var(--ks-teal-dark);
  background: #fff;
  box-shadow: 0 0 0 6px #fff, 0 10px 24px -12px rgba(23, 142, 139, .6);
  font: 800 13px/1 var(--ks-display);
  letter-spacing: .06em;
}

.kweb-step:last-child .kweb-step__node {
  border-color: var(--ks-teal);
  color: #fff;
  background: var(--ks-teal);
}

.ksf .kweb-step__title {
  margin: 20px 0 0;
  color: var(--ks-ink);
  font: 700 19px/1.3 var(--ks-display);
  letter-spacing: -.015em;
}

.kweb-step__text {
  max-width: 30ch;
  margin: 8px auto 0;
  color: var(--ks-copy);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .kweb-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .kweb-steps::before {
    display: none;
  }
}

@media (max-width: 520px) {
  .kweb-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The packages as a section of their own: the head centred, like the others. */
.ksf-web__offer--solo .ksf-web__offerhead {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

/* ------------------------------------------------------------------ */
/* The references: logos with their addresses, under the audit          */
/* ------------------------------------------------------------------ */

.ksf .kweb-refs {
  padding-top: clamp(16px, 2vw, 32px);
  padding-bottom: clamp(64px, 7vw, 112px);
  background: var(--t-bg);
  text-align: center;
}

.ksf .kweb-refs__title {
  margin: 0;
  color: var(--ks-ink);
  font: 700 clamp(28px, 2.8vw, 38px)/1.15 var(--ks-display);
  letter-spacing: -.025em;
}

.kweb-refs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px clamp(40px, 7vw, 112px);
  margin: clamp(28px, 3.2vw, 44px) 0 0;
  padding: 0;
  list-style: none;
}

.kweb-refs__list li {
  margin: 0;
}

.ksf .kweb-refs__list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--ks-teal-dark);
  font: 600 16px/1.3 var(--ksf-body);
  text-decoration: none;
}

.kweb-refs__list img {
  display: block;
  width: auto;
  height: clamp(76px, 7vw, 96px);
  transition: transform .3s ease;
}

.ksf .kweb-refs__list a:hover img {
  transform: translateY(-3px);
}

.ksf .kweb-refs__list a:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ksf .kweb-refs__list a:focus-visible {
  border-radius: 12px;
  outline: 3px solid rgba(23, 142, 139, .4);
  outline-offset: 8px;
}
