/* =====================
   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;
}

/* =====================
   ZÁROLT KÖRZETEK – SAJÁT OLDAL STÍLUS
===================== */

.zarolt-page {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.zarolt-page h1 {
  font-size: 2.2rem;
  color: #003060;
  margin-bottom: 10px;
}

.zarolt-page .intro {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 30px;
  max-width: 800px;
}

.zarolt-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.zarolt-form input,
.zarolt-form select {
  padding: 14px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
}

.zarolt-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 10px;
}

.zarolt-result {
  margin-top: 25px;
}

.zarolt-result .ok {
  background: #e6f4ea;
  border-left: 6px solid #2e7d32;
  color: #1b5e20;
  padding: 18px;
  border-radius: 8px;
  font-size: 1.05rem;
}

.zarolt-result .bad {
  background: #fdecea;
  border-left: 6px solid #c62828;
  color: #8e0000;
  padding: 18px;
  border-radius: 8px;
  font-size: 1.05rem;
}

.zarolt-help {
  margin-top: 40px;
  background: #f4f6f9;
  padding: 25px;
  border-radius: 12px;
}

.zarolt-help h3 {
  margin-bottom: 10px;
  color: #003060;
}

@media (max-width: 768px) {
  .zarolt-form {
    grid-template-columns: 1fr;
  }
}

/* =====================
   Hibaoldalak
===================== */

.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.error-page h1 {
  font-size: 4rem;
  color: #005bb5;
  margin-bottom: 10px;
}

.error-page p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 20px;
}

/* =========================================================
   LANDING KIEGÉSZÍTÉSEK – CSAK HOZZÁADOTT STÍLUSOK
   (Eredeti CSS érintetlen marad)
========================================================= */

/* ---------- HERO: CTA-k landinghez ---------- */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.hero .btn-primary {
  background: #f9b234;
  color: #002b5c;
}

.hero .btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.hero .btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

/* ---------- HERO mobil fókusz ---------- */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    font-size: 1rem;
    padding: 14px;
  }
}

/* ---------- LANDING SZÖVEG SZÉLESSÉG ---------- */
section > p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- ZÁROLT KÖRZET LANDING BLOKK ---------- */
.closed {
  background: linear-gradient(135deg, #fff7e6, #ffffff);
  border-top: 1px solid #f0e0c0;
  border-bottom: 1px solid #f0e0c0;
}

.closed h2 {
  color: #7a4b00;
}

.closed-lead {
  font-size: 1.05rem;
  color: #5c4a2d;
  margin-bottom: 20px;
}

.closed .card {
  max-width: 520px;
  margin: 0 auto;
  border-left: 6px solid #f9b234;
}

.closed .btn {
  display: block;
  width: 100%;
  margin-top: 15px;
  background: #002b5c;
  color: #fff;
  padding: 14px;
  border-radius: 6px;
  text-decoration: none;
}

.closed .btn:hover {
  background: #004080;
}

.closed-note {
  margin-top: 15px;
  font-size: 0.85rem;
  color: #666;
}

/* ---------- MOBILON HOVER FINOMÍTÁS ---------- */
@media (hover: none) {
  .card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
}

/* ---------- MOBIL OLVASHATÓSÁG ---------- */
@media (max-width: 480px) {
  p {
    font-size: 0.95rem;
  }
  h2 {
    line-height: 1.25;
  }
}

/* ---------- STICKY SCROLL MARGIN (landing anchor) ---------- */
section {
  scroll-margin-top: 90px;
}

/* =========================================================
   MENÜSÁV – MOBILBARÁT KIEGÉSZÍTÉS
========================================================= */

/* CTA és Zárolt jelölés – desktopon is */
nav a.menu-cta {
  background: #f9b234;
  color: #002b5c;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
}

nav a.menu-locked {
  position: relative;
  font-weight: 600;
}

nav a.menu-locked::after {
  content: "🔒";
  margin-left: 6px;
  font-size: 0.85em;
}

/* -------------------------
   MOBIL MENÜ
------------------------- */
@media (max-width: 768px) {

  header {
    position: sticky;
    top: 0;
    z-index: 2000;
  }

  #burger {
    display: flex;
  }

  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 10px 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  }

  #main-nav.open {
    display: flex;
  }

  #main-nav a {
    color: #002b5c;
    padding: 14px 10px;
    font-size: 1.05rem;
    border-bottom: 1px solid #eee;
  }

  #main-nav a:last-child {
    border-bottom: none;
  }

  /* Kapcsolat kiemelve mobilon */
  #main-nav a.menu-cta {
    margin-top: 10px;
    background: #005bb5;
    color: #fff;
    text-align: center;
    border-radius: 8px;
  }
}

/* =====================
   ZÁROLT KÖRZET – DESKTOP KORLÁTOZÁS
===================== */
@media (min-width: 769px) {
  #zarolt .card a.btn {
    max-width: 320px;   /* vizuálisan ideális */
    margin-left: auto;
    margin-right: auto;
  }
}

/* =====================
   ZÁROLT KÖRZET – CTA GOMB (FIX)
===================== */
#zarolt .card a.btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  box-sizing: border-box;

  padding: 14px;
  border-radius: 8px;

  background-color: #005bb5;
  color: #fff !important;

  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
}


#zarolt .card a.btn:hover {
  background-color: #f9b234;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Mobil finomhangolás */
@media (max-width: 480px) {
  #zarolt .card {
    padding: 20px 18px 22px;
  }

  #zarolt .card a.btn {
    max-width: 100%;
    padding: 12px;
    font-size: 0.92rem;
  }

  #zarolt .closed-note {
    margin-top: 16px;
    font-size: 0.82rem;
    line-height: 1.4;
  }
}
