/* ══════════════════════════════════════════════
   Qualiconnex – Főstílus
   A kritikus (above-the-fold) CSS az index.html
   <style> blokkjában van inline.
══════════════════════════════════════════════ */

/* ── Alap ──────────────────────────────────── */
:root {
  --primary:      #0f2644;
  --accent:       #f59e0b;
  --accent-dark:  #d97706;
  --text:         #1e293b;
  --text-light:   #64748b;
  --bg:           #f8fafc;
  --white:        #ffffff;
  --border:       #e2e8f0;
  --max-w:        1200px;
  --radius:       12px;
  --radius-sm:    8px;
  --nav-h:        68px;
  --shadow:       0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.14);
}

/* ── Szekció közös stílusok ─────────────────── */
.section {
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
}
.section--light { background: var(--bg); }
.section--dark  { background: var(--primary); }
.section--accent {
  background: linear-gradient(135deg, #0f2644 0%, #1a3a5c 100%);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.section__title {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: .75rem;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.section__title--light { color: var(--white); }

.section__subtitle {
  font-size: clamp(.9375rem, 2vw, 1.0625rem);
  color: var(--text-light);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
  line-height: 1.7;
}
.section__subtitle--light { color: rgba(255,255,255,.75); }

/* ── Navigáció (kiegészítés) ────────────────── */
.nav__links.open .nav__link {
  font-size: 1.25rem;
}

/* Burger animáció aktív állapotban */
.nav__burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Folyamat szekció ───────────────────────── */
.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  list-style: none;
  counter-reset: none;
}

.process__step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.process__step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.process__number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  font-weight: 700;
  font-size: .9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.process__icon {
  color: var(--primary);
  margin: 1rem auto 1.25rem;
  width: 56px;
  height: 56px;
  background: rgba(15,38,68,.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process__step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .625rem;
}

.process__step p {
  font-size: .9375rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── Szolgáltatások ─────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  list-style: none;
}

.service__card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.service__card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(245,158,11,.4);
  transform: translateY(-3px);
}

.service__icon {
  color: var(--accent);
  margin-bottom: 1.25rem;
  width: 52px;
  height: 52px;
  background: rgba(245,158,11,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service__card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .5rem;
}

.service__card p {
  font-size: .9375rem;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
}

/* ── Miért mi? ──────────────────────────────── */
.about__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  list-style: none;
  margin-bottom: 3rem;
}

.feature__card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.feature__card:hover { transform: translateY(-4px); }

.feature__icon {
  color: var(--accent);
  width: 70px;
  height: 70px;
  background: rgba(245,158,11,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature__card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .625rem;
}

.feature__card p {
  font-size: .9375rem;
  color: var(--text-light);
  line-height: 1.65;
}

.about__extra {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.about__extra p {
  color: rgba(255,255,255,.85);
  line-height: 1.75;
  flex: 1;
  min-width: 240px;
  font-size: 1rem;
}

.about__extra strong { color: var(--accent); }

/* ── Területünk ─────────────────────────────── */
.area__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  list-style: none;
}

.area__badge {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  padding: .5rem 1.25rem;
  border-radius: 100px;
  font-size: .9375rem;
  font-weight: 500;
  transition: background .2s, border-color .2s;
}
.area__badge:hover {
  background: rgba(245,158,11,.15);
  border-color: rgba(245,158,11,.4);
}

.area__badge--wide {
  background: rgba(245,158,11,.15);
  border-color: rgba(245,158,11,.35);
  color: var(--accent);
  font-weight: 600;
}

/* ── Galéria ────────────────────────────────── */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  list-style: none;
}

.gallery__item {
  all: unset;
  cursor: pointer;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery__item:hover,
.gallery__item:focus-visible {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.gallery__item:hover img { transform: scale(1.05); }

/* ── Kapcsolat ──────────────────────────────── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact__info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact__link {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 1rem;
  transition: color .2s;
}
.contact__link:hover { color: var(--accent); }
.contact__link--static { cursor: default; }
.contact__link--static:hover { color: rgba(255,255,255,.85); }

.contact__icon {
  width: 40px;
  height: 40px;
  background: rgba(245,158,11,.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact__company {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55);
  font-size: .9375rem;
  line-height: 1.75;
}

/* ── Form ───────────────────────────────────── */
.contact__form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.contact__form { display: flex; flex-direction: column; gap: 1.25rem; }

.form__group { display: flex; flex-direction: column; gap: .375rem; }

.form__group label {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
}

.form__group label abbr {
  text-decoration: none;
  color: #dc2626;
  margin-left: .125rem;
}

.form__optional {
  font-weight: 400;
  color: var(--text-light);
  font-size: .875rem;
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
  line-height: 1.5;
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,38,68,.12);
}

.form__group input.invalid,
.form__group textarea.invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}

.form__group textarea { resize: vertical; min-height: 120px; }

.form__error {
  font-size: .875rem;
  color: #dc2626;
  min-height: 1.25em;
}

.form__privacy {
  font-size: .8125rem;
  color: var(--text-light);
  line-height: 1.6;
}

.form__privacy a {
  color: var(--primary);
  text-decoration: underline;
}

/* Form visszajelzések */
.form__feedback {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 500;
}
.form__feedback[hidden] { display: none; }

.form__feedback--success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.form__feedback--error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Küldés közbeni állapot */
#submit-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
}

/* ── Lábléc ─────────────────────────────────── */
.footer {
  background: #080f1c;
  color: #c8ccd4;
  padding: 4rem 1.5rem 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand img {
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: .85;
}
.footer__brand p {
  font-size: .9375rem;
  line-height: 1.7;
  max-width: 260px;
}

.footer__col h4 {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8125rem;
}

.footer__col p {
  font-size: .9375rem;
  line-height: 1.8;
}

.footer__col a {
  color: #c8ccd4;
  text-decoration: none;
  transition: color .2s;
}
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 2rem;
  text-align: center;
  font-size: .875rem;
  color: #e2e5ea;
}

/* ── Lightbox ───────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox[hidden] { display: none; }

#lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 199;
  cursor: pointer;
}
#lightbox-backdrop[hidden] { display: none; }

.lightbox__content {
  position: relative;
  z-index: 201;
  max-width: min(600px, 90vw);
  max-height: 90vh;
  display: flex;
  align-items: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  display: block;
}

.lightbox__close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 202;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,.2); }

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 202;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox__nav:hover { background: rgba(255,255,255,.2); }
.lightbox__prev { left: 1.25rem; }
.lightbox__next { right: 1.25rem; }

/* ── Cookie banner ──────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  width: min(640px, calc(100vw - 2rem));
  background: var(--primary);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
  animation: slide-up .3s ease;
}
.cookie-banner[hidden] { display: none; }

@keyframes slide-up {
  from { opacity: 0; transform: translateX(-50%) translateY(1rem); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-banner__inner {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner__inner p {
  font-size: .9rem;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
  flex: 1;
  min-width: 200px;
}

.cookie-banner__inner a {
  color: var(--accent);
  text-decoration: underline;
}

/* ── Reszponzív ─────────────────────────────── */
@media (max-width: 1023px) {
  .contact__grid  { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__grid   { grid-template-columns: 1fr 1fr; }
  .footer__brand  { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .process__grid  { grid-template-columns: 1fr 1fr; }
  .about__extra   { flex-direction: column; padding: 2rem; text-align: center; }
  .footer__grid   { grid-template-columns: 1fr; gap: 2rem; }
  .contact__form-wrap { padding: 1.75rem; }
  .gallery__grid  { grid-template-columns: repeat(2, 1fr); }
  .lightbox__nav  { width: 40px; height: 40px; }
  .lightbox__prev { left: .5rem; }
  .lightbox__next { right: .5rem; }
}

@media (max-width: 479px) {
  .process__grid  { grid-template-columns: 1fr; }
  .gallery__grid  { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
}
