/**
 * additions.css — Kiegészítő stílusok
 * (Az main.css-hez adódik hozzá)
 */

/* ── FORM FEEDBACK ──────────────────────────────────────────── */
#formFeedback {
  padding: 0;
  margin-bottom: 0;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
}

#formFeedback.success {
  background: rgba(59,157,216,0.1);
  border: 1px solid rgba(59,157,216,0.3);
  color: #2a7db0;
  padding: 12px 16px;
  margin-bottom: 16px;
}

#formFeedback.error {
  background: rgba(220,50,50,0.08);
  border: 1px solid rgba(220,50,50,0.25);
  color: #c0392b;
  padding: 12px 16px;
  margin-bottom: 16px;
}

/* ── MOBIL NAV (nyitott állapot) ──────────────────────────── */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(244,249,253,0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  nav.open {
    transform: translateX(0);
  }

  nav ul {
    display: flex !important;
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  nav ul li a {
    font-size: 1.2rem;
    font-weight: 600;
  }

  .header-cta {
    display: inline-block !important;
  }
}

/* ── FADE-IN ANIMÁCIÓ (JS vezérelt) ──────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Késleltetett megjelenés szomszédos elemekhez */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in:nth-child(6) { transition-delay: 0.5s; }

/* ── CAPTCHA ──────────────────────────────────────────────── */
.captcha-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f4f9fd;
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid rgba(59,157,216,0.2);
}

.captcha-num {
  background: var(--green, #3B9DD8);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
}

.captcha-op {
  font-size: 1.6rem;
  font-weight: 700;
  color: #333;
}

/* ── SZOLGÁLTATÁS KÁRTYÁK (TIV stílus) ───────────────────── */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
}

.service-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(59,157,216,0.1);
}

.service-card:hover {
  box-shadow: 0 8px 40px rgba(59,157,216,0.15);
  transform: translateY(-3px);
}

/* Páros kártyáknál kép jobbra kerül */
.service-card:nth-child(even) {
  grid-template-columns: 1fr 380px;
}
.service-card:nth-child(even) .service-card-image {
  order: 2;
}
.service-card:nth-child(even) .service-card-body {
  order: 1;
}

/* Kép oldal */
.service-card-image {
  position: relative;
  min-height: 280px;
  background: linear-gradient(135deg, #e8f4fd 0%, #d0eaf8 100%);
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.service-card-placeholder i {
  font-size: 5rem;
  color: var(--blue, #3B9DD8);
  opacity: 0.35;
}

/* Sorszám badge a képen */
.service-card-num {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--blue, #3B9DD8);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* Tartalom oldal */
.service-card-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.service-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
  line-height: 1.3;
}

.service-card-desc {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.service-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--blue, #3B9DD8);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
  width: fit-content;
}

.service-card-btn:hover {
  gap: 14px;
  color: #1a7ab5;
}

/* Reszponzív */
@media (max-width: 900px) {
  .service-card,
  .service-card:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .service-card-image {
    min-height: 220px;
  }
  .service-card:nth-child(even) .service-card-image {
    order: 0;
  }
  .service-card:nth-child(even) .service-card-body {
    order: 0;
  }
  .service-card-body {
    padding: 28px 24px;
  }
}


/* ── RÓLUNK — kép elem ───────────────────────────────────── */
.about-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e8f4fd 0%, #d0eaf8 100%);
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img-placeholder i {
  font-size: 6rem;
  color: #3B9DD8;
  opacity: 0.3;
}

/* ── REFERENCIA SLIDER ───────────────────────────────────── */
.ref-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.ref-slider-viewport {
  overflow: hidden;
  width: 100%;
}

.ref-slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.ref-slide {
  flex: 0 0 calc(33.333% - 16px);
  margin-right: 24px;
  box-sizing: border-box;
}

.ref-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  z-index: 2;
}

.ref-arrow:hover {
  background: #3B9DD8;
  border-color: #3B9DD8;
  color: #fff;
  transform: scale(1.08);
}

.ref-arrow:disabled {
  opacity: 0.2;
  cursor: default;
  transform: none;
}

.ref-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.ref-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}

.ref-dot.active {
  background: #3B9DD8;
  transform: scale(1.3);
}

#referenciak .section-label         { color: rgba(255,255,255,0.55); }
#referenciak .section-label::before { background: rgba(255,255,255,0.4); }
#referenciak .section-title         { color: #ffffff; }
#referenciak .section-desc          { color: rgba(255,255,255,0.65); }

@media (max-width: 1024px) {
  .ref-slide { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 640px) {
  .ref-slide { flex: 0 0 100%; margin-right: 16px; }
  .ref-arrow { width: 36px; height: 36px; font-size: 0.85rem; }
}

/* ── SCROLL GOMBOK ───────────────────────────────────────── */
.scroll-nav {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

.scroll-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #3B9DD8;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
}

.scroll-btn.visible,
.scroll-btn.at-bottom {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#scrollToBottom {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-btn:hover {
  background: #1a7ab5;
}

/* ── KÖTELEZŐ MEZŐ CSILLAG ───────────────────────────────── */
.req {
  color: #e53e3e;
  font-weight: 700;
  margin-left: 2px;
}
