/*
 * KD Webdesign – 2026-os frissítés
 * A style.css (és a vele már nem szinkronban lévő style.scss) után töltődik be,
 * így az SCSS-watcher nem írja felül. Új stílusokat ide érdemes tenni.
 */

:root {
  --accent: #00dfa2;
  --accent-dark: #00b896;
  --accent-soft: rgba(0, 223, 162, 0.14);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.14);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- közös címsorok ---------- */
.heading_container {
  align-items: center;
  text-align: center;
}

.heading_container h2::before,
.heading_container h2::after {
  background-color: var(--accent);
}

.section-lead {
  max-width: 640px;
  margin: 6px auto 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ---------- hero ---------- */
/* a régi 80vh-s fix magasság miatt a nagy címsor belelógott a következő szekcióba */
.hero_area {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
}

.slider_section {
  flex: 1;
  height: auto;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0 110px;
}

.slider_section > .container-fluid,
.slider_section > .container {
  width: 100%;
}

.slider_section .detail-box {
  margin-bottom: 0;
}

.slider_section .header_text_mobile {
  font-weight: 900;
  line-height: 97%;
  letter-spacing: -0.1rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-cue:hover,
.scroll-cue:focus {
  color: var(--accent);
}

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 46px;
  overflow: hidden;
  background: var(--line);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -50%;
  width: 100%;
  height: 50%;
  background: var(--accent);
  animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* ---------- showcase: forgó laptop a referenciákkal ---------- */
.showcase {
  position: relative;
}

.js .showcase {
  /* a JS állítja be a referenciák száma alapján: (n + 1) * 100vh */
  height: calc((var(--refs, 4) + 1) * 100vh);
}

.showcase__sticky {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: 2vw;
  padding: 0 5vw;
}

.js .showcase__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.showcase__stage {
  position: relative;
  height: 100%;
  min-height: 420px;
}

.showcase__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 223, 162, 0.16) 0%, rgba(0, 223, 162, 0) 65%);
  pointer-events: none;
}

.showcase #scene {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 0;
  transform: none;
  perspective: 1600px;
}

.laptop-scaler {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 600px;
  height: 390px;
  transform: translate(-50%, -50%) translateY(calc(var(--s, 1) * -70px)) scale(calc(var(--s, 1) * var(--k, 1)));
  transform-style: preserve-3d;
}

.showcase .laptop {
  transform-origin: 50% 100% 195px;
  transform: rotateX(var(--rx, -14deg)) rotateY(var(--ry, -18deg));
  font-family: "Archivo Narrow", sans-serif;
}

.showcase .laptop .lid {
  transform: rotateX(var(--lid, 0deg)) !important;
}

.showcase .laptop .lid .inner .screen {
  position: relative;
  background: #0d0d0d;
}

.showcase .laptop .lid .inner .screen img.screen__shot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-width: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}

.showcase .laptop .lid .inner .screen img.screen__shot.is-active {
  opacity: 1;
}

.showcase .laptop .lid .text {
  letter-spacing: 0.08em;
  color: #9a9a9a;
}

.showcase .lid-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130px;
  height: 130px;
  /* hátulról nézve tükrözve látszana, ezért előre tükrözzük */
  transform: translate(-50%, -50%) scaleX(-1);
}

.showcase .lid-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.showcase .laptop .base .touchpad {
  border: none;
  padding: 0;
  font: inherit;
  appearance: none;
  transition: background-color 0.2s ease;
}

.showcase .laptop .base .touchpad:hover {
  background-color: #dcdcdc;
}

/* info panel */
.showcase__info {
  position: relative;
  max-width: 470px;
}

.showcase__eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.showcase__refs {
  display: grid;
}

.ref {
  margin-bottom: 40px;
}

.js .ref {
  grid-area: 1 / 1;
  margin-bottom: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
}

.js .ref.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.ref__meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ref__num {
  color: var(--accent);
  font-weight: 700;
}

.ref__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.ref__desc {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.ref__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.ref__tags li {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.ref__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ref__link:hover,
.ref__link:focus {
  color: var(--accent);
}

.showcase__nav {
  display: none;
  gap: 10px;
  margin-top: 34px;
}

.js .showcase__nav {
  display: flex;
}

.showcase__nav button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.showcase__nav button.is-active {
  width: 36px;
  border-color: var(--accent);
  background: var(--accent);
}

@media (max-width: 900px) {
  .showcase__sticky {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0;
    padding: 0 16px;
  }

  .js .showcase__sticky {
    padding-top: 70px;
    padding-bottom: 28px;
  }

  .showcase__stage {
    min-height: 0;
  }

  .showcase__info {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .showcase__eyebrow {
    margin-bottom: 10px;
  }

  .ref__title {
    margin-bottom: 10px;
  }

  .ref__desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .ref__tags {
    margin-bottom: 16px;
  }

  .showcase__nav {
    margin-top: 20px;
  }
}

@media (max-width: 900px) and (max-height: 700px) {
  .ref__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ---------- szolgáltatások ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 45px;
}

.services-grid .glass-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: 32px 28px;
}

.services-grid .glass-card .btn {
  margin-top: auto;
}

.services-grid .glass-card h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.process {
  margin-top: 90px;
}

.do_section ol.do_container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.do_section .do_container .box {
  margin: 0;
}

.do_section .do_container .box:hover {
  transform: translateY(-6px);
}

.step-num {
  color: #03140d;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.process .detail-box h3 {
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 10px;
  text-transform: none;
}

.process .detail-box p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  .do_section ol.do_container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .do_section ol.do_container {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- rólunk ---------- */
.who_section .img-box img {
  height: auto;
  border-radius: 20px;
}

.who_section .detail-box .heading_container {
  align-items: flex-start;
  text-align: left;
}

.who_section .detail-box .heading_container h2::before {
  display: none;
}

.who_section .detail-box p {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.who_section .detail-box a {
  padding: 12px 30px;
  border: 1px solid var(--accent);
  border-radius: 25px;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.who_section .detail-box a:hover,
.who_section .detail-box a:focus {
  background: var(--accent);
  color: #000;
}

/* ---------- értékek sáv ---------- */
.target_section .detail-box .h2 {
  margin-bottom: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}

.target_section .detail-box .h5 {
  margin: 0;
  color: var(--text);
  font-weight: 400;
}

@media (max-width: 576px) {
  .target_section .detail-box .h2 {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .target_section .detail-box .h5 {
    font-size: 0.95rem;
  }
}

/* ---------- kapcsolat ---------- */
.contact_section .contact-form label {
  display: block;
  margin: 0;
}

.contact_section .form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}

.contact_section .contact-form input,
.contact_section .contact-form textarea {
  display: block;
  width: 100%;
  margin: 12px 0;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  outline: none;
  background-color: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font: inherit;
  transition: border-color 0.3s ease;
}

.contact_section .contact-form textarea {
  resize: vertical;
  min-height: 170px;
}

.contact_section .contact-form input:focus,
.contact_section .contact-form textarea:focus {
  border-color: var(--accent);
}

.contact_section .contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.contact_section .contact-form .is-invalid {
  border-color: #ff6b6b;
}

.contact_section .contact-form button {
  margin-top: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #000;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(0, 223, 162, 0.3);
}

.contact_section .contact-form button:hover {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
}

.contact_section .contact-form button[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.contact_section .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.5em;
  margin: 6px 0 0;
  text-align: center;
  color: var(--text-muted);
}

.form-status.is-success {
  color: var(--accent);
}

.form-status.is-error {
  color: #ff8a8a;
}

@media (max-width: 576px) {
  .contact_section .form-row-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact_section .contact-form {
    padding: 10px 0;
  }
}

/* ---------- lábléc ---------- */
.info_section {
  padding: 70px 0 30px;
  border-top: 1px solid var(--line);
  background-color: #0b0b0b;
}

.info_section h5 {
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.info_section .info_info p {
  max-width: 360px;
  color: var(--text-muted);
  line-height: 1.6;
}

.info_links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info_links li {
  margin-bottom: 8px;
}

.info_links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.info_links a:hover,
.info_links a:focus {
  color: var(--accent);
}

.footer_section {
  background-color: #0b0b0b;
}

.footer_section p {
  border-top-color: var(--line);
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .info_section .col-md-5,
  .info_section .col-md-4,
  .info_section .col-md-3 {
    margin-bottom: 30px;
    text-align: center;
  }

  .info_section .info_info p {
    margin: 0 auto;
  }
}

/* ---------- csökkentett mozgás ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-cue i::after {
    animation: none;
  }
}
