/* =====================
   Alap stílusok
===================== */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fafafa;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 15px;
}

p { margin-bottom: 15px; }

/* =====================
   Header
===================== */
header {
  background: #002b5c;
  color: #fff;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
header .logo img { max-height: 36px; }

header nav { display: flex; gap: 20px; }
header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
header nav a:hover { color: #f9b234; }

/* Hamburger */
#burger { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
#burger span {
  width: 26px;
  height: 4px;
  background: #fff;
  border-radius: 4px;
  transition: transform 0.3s, opacity 0.3s;
}

/* =====================
   Hero
===================== */
.hero {
  position: relative;
  height: 65vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #003366, #004c99, #005bb5);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
  padding: 40px 20px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4); /* sötét overlay */
}
.hero-text {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero h1, .hero p {
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 15px; }
.hero p { font-size: clamp(1rem, 2vw, 1.3rem); margin-bottom: 20px; }
.hero .btn {
  background: #f9b234;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}
.hero .btn:hover { background: #003060; }

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =====================
   Szekciók
===================== */
section { padding: 70px 20px; text-align: center; }
section:nth-child(even) { background: #fff; }
section:nth-child(odd) { background: #f4f6f9; }

h2 { font-size: 2rem; color: #003f7f; margin-bottom: 25px; }

.accordion {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.accordion-item {
  border-bottom: 1px solid #ddd;
}

.accordion-header {
  width: 100%;
  background: #f9b234;
  color: #fff;
  text-align: left;
  padding: 15px;
  font-size: 1.1rem;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 6px 6px 0 0;
}

.accordion-header:hover {
  background: #005bb5;
}

.accordion-content {
  display: none;
  padding: 15px;
  background: #fff;
  border-radius: 0 0 6px 6px;
}

.accordion-content p {
  margin: 0 0 10px;
}

/* =====================
   Rólunk (képváltó)
===================== */
.about-container { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; }
.about-text { flex: 1; min-width: 280px; text-align: left; }
.about-text p { color: #444; }
.about-points { display: flex; flex-direction: column; gap: 10px; }
.about-points div { font-weight: 500; display: flex; align-items: center; }
.about-points span { background: #f9b234; color: #fff; border-radius: 50%; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; }

.about-image {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.about-image img.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

/* Pöttyök a képváltóhoz */
.dots {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  gap: 8px;
}
.dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s;
}
.dots span.active { background: #f9b234; }

/* =====================
   Grid szekciók (szolgáltatás, miért, referenciák)
===================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.card h3 { color: #005bb5; margin-bottom: 10px; }
.card p { color: #555; font-size: 0.95rem; }

/* Ikonok (Miért minket) */
.why .card span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #005bb5;
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

/* =====================
   Referenciák
===================== */
#referenciak .card {
  font-style: italic;
  text-align: left;
}
#referenciak strong {
  display: block;
  margin-top: 10px;
  font-style: normal;
  color: #003060;
}

/* =====================
   Kapcsolat
===================== */
form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
form input, form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
form button.btn {
  background: #005bb5;
  border: none;
  cursor: pointer;
  padding: 14px;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  transition: background 0.3s;
}
form button.btn:hover { background: #f9b234; }

/* =====================
   Footer
===================== */
footer {
  background: #001830;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}

/* =====================
   Mobil optimalizálás
===================== */
@media (max-width: 768px) {
  header nav {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  header nav a { color: #003060; padding: 10px 0; border-bottom: 1px solid #eee; }
  header nav a:last-child { border-bottom: none; }
  header nav.open { display: flex; }
  #burger { display: flex; }

  .hero { height: auto; padding: 60px 20px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }

  section { padding: 50px 15px; }
  h2 { font-size: 1.6rem; }
  .grid { grid-template-columns: 1fr; }
  .about-container { flex-direction: column; text-align: center; }
  .about-text { text-align: center; }
}

@media (max-width: 480px) {
  header { padding: 8px 12px; }
  header .logo img { max-height: 28px; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.9rem; }
  .hero .btn { font-size: 0.85rem; padding: 8px 16px; }
  form input, form textarea { font-size: 0.9rem; padding: 10px; }
  form button.btn { font-size: 0.9rem; padding: 12px; }
}

/* FAQ (GYIK) */
.faq {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.faq h2 {
  margin-bottom: 30px;
  font-size: 2rem;
  color: #003060;
}

.faq .accordion {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.faq .accordion-item {
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.faq .accordion-header {
  width: 100%;
  background: #fff;
  color: #003060;
  text-align: left;
  padding: 15px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.faq .accordion-header:hover {
  background: #f4f6f9;
  color: #005bb5;
}

.faq .accordion-content {
  display: none;
  padding: 15px 20px;
  background: #f9f9f9;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* FAQ accordion animáció */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-item.active .accordion-content {
  display: block;
}
