/* Alapértelmezett beállítások */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f3f4f6;
  color: #1e293b;
  line-height: 1.6;
}

/* Header */
.header {
  background: #1e293b;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  max-height: 120px;
  width: auto;
  object-fit: contain;
}

.site-title h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.site-title span {
  display: block;
  font-size: 0.95rem;
  color: #cbd5e1;
}

/* Navigation */
.mobile-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.mobile-nav.active {
  display: flex;
  z-index: 10000; /* Ez biztosítja, hogy minden fölé kerüljön */
  position: relative;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.mobile-nav a:hover {
  color: #60a5fa;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 99999 !important;
}

/* Hero */
.hero {
  background: linear-gradient(to right, #3b82f6, #06b6d4);
  text-align: center;
  color: white;
  padding: 2rem 1rem 2rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 0.25rem;
}

.hero-sub {
  margin-top: 1rem;
  font-size: 1.25rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  z-index: 2;
  position: relative;
}

/* Main container */
.container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Cards */
.card-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.card {
  width: 100%;
  max-width: 800px;
  margin: 0 auto; /* EZ a kulcs! */
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
  text-align: center;
  box-shadow: 10px 10px 15px 4px #7484aa;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card ul {
  text-align: left;
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.card ul li {
  margin-bottom: 0.75rem;
}

.card.delay {
  animation-delay: 0.3s;
}

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 1rem;
  background: #1e293b;
  color: white;
}

.footer .quote {
  font-style: italic;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #cbd5e1;
}

.footer strong {
  color: #facc15;
}

.footer .copyright {
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media queries */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: relative;
    z-index: 10001;
  }

  .mobile-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #1e293b;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem 2rem;
  }

  .mobile-nav.active {
    display: flex;
  }

  .hero {
    padding: 2rem 1rem 3rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-sub {
    font-size: 1.05rem;
    padding: 0 1rem;
  }

  .card {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .header-content {
    flex-direction: column;
    align-items: center;
  }

  .logo-group {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .menu-toggle {
    margin-top: 0.5rem;
    align-self: center;
  }

  .site-title h1, .site-title span {
    text-align: center;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.gallery-image:hover {
  transform: scale(1.03);
}

.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 10px;
}

.lightbox-nav {
  color: white;
  font-size: 3rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  padding: 0 1rem;
  user-select: none;
}

.lightbox-prev {
  left: 0;
}

.lightbox-next {
  right: 0;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

.dropdown {
  position: relative;
  display: flex;
  flex-direction: column;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: white;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
  font-weight: 500;
}

/* Asztali nézet - lebegő almenü */
@media (min-width: 769px) {
  .mobile-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }

  .dropdown {
    position: relative;
    display: inline-block;
  }

  .dropdown-toggle {
    white-space: nowrap;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    background: #1e293b;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: none;
    flex-direction: column;
    min-width: 300px; /* vagy akár 320px, amit igényel a szöveg */
    white-space: nowrap;
  }

  .dropdown.open .dropdown-menu {
    display: flex;
  }
}

/* Mobil nézet - statikus almenü */
@media (max-width: 768px) {
  .dropdown {
    position: static;
  }

  .dropdown-menu {
    position: static;
    margin-left: 1rem;
    background: none;
    padding-left: 1rem;
    border-radius: 0;
    box-shadow: none;
    display: none;
    flex-direction: column;
  }

  .dropdown.open .dropdown-menu {
    display: flex;
  }
}

.dropdown-menu a {
  color: white;
  text-decoration: none;
  margin: 0.25rem 0;
  font-weight: 400;
}

.dropdown-menu a:hover {
  color: #60a5fa;
}

/* Ha megnyitott az almenü */
.dropdown.open .dropdown-menu {
  display: flex;
}

@media (max-width: 1220px) {
  body:not(.home) .hero {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: none !important;
  }
}

.mobile-nav.active {
  position: absolute !important;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 9999 !important;
  background: #1e293b;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  margin-top: 1.5rem;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  resize: vertical;
}

.contact-form button {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #2563eb;
}

.visitor-counter {
  text-align: center;
  font-size: 1.1rem;
  margin-top: 2rem;
  color: #334155;
  font-weight: 500;
  background: #e0f2fe;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

.honlapter-footer {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
}

.honlapter-logo {
  max-width: 120px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
}

.honlapter-text,
.honlapter-copy {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  color: #333;
}

.honlapter-text strong {
  color: #1e3a8a; /* sötétkék kiemelés */
}

.card-image-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.card-header-img {
  display: block;
  width: 85%;
  max-width: 95%;
  height: auto;
  border-radius: 12px;
  /* árnyék, ha szeretnél */
  /* box-shadow: 0 2px 16px rgba(80,160,170,0.10); */
  transition: width 0.2s;
}

.card-sav-img {
  display: block;
  width: 95%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  /* árnyék, ha szeretnél */
  /* box-shadow: 0 2px 16px rgba(80,160,170,0.10); */
  transition: width 0.2s;
}

.form-download-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.form-download-item {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 16px rgba(56,68,98,.08);
  padding: 1.2rem 1.5rem;
  transition: box-shadow 0.2s;
}
.form-download-item:hover {
  box-shadow: 0 6px 28px rgba(36, 64, 128, 0.18);
}
.form-icon img {
  width: 48px;
  height: 48px;
  display: block;
}
.form-info {
  flex: 1;
  margin-left: 1.3rem;
}
.form-info h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1.17rem;
  font-weight: 600;
  color: #2b3146;
}
.form-info p {
  margin: 0;
  color: #586084;
  font-size: 0.97rem;
}
.form-download-btn {
  background: #3553ed;
  color: #fff;
  padding: 0.8em 1.3em;
  border-radius: 0.8em;
  font-weight: 600;
  font-size: 1rem;
  margin-left: 1.2rem;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(53, 83, 237, 0.10);
  text-decoration: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.form-download-btn:hover {
  background: #2032a2;
  box-shadow: 0 4px 18px rgba(53, 83, 237, 0.14);
}

#rolunk-irtak {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

#testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.testimonial-card {
  background: #f1f5f9;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(30,41,59,0.10);
  padding: 1.25rem 1.5rem;
  text-align: left;
  animation: fadeInUp 0.7s;
  transition: box-shadow 0.2s;
}

.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(30,41,59,0.13);
}

.testimonial-text {
  font-size: 1.15rem;
  color: #334155;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.testimonial-meta {
  font-size: 0.98rem;
  color: #64748b;
}

.testimonial-name {
  font-weight: 600;
  color: #1e293b;
}

@media (max-width: 768px) {
  .card {
    text-align: center !important;
  }
  .gallery-select {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    box-sizing: border-box;
  }
  .gallery-select label {
    display: block;
    margin-bottom: 0.5em;
    text-align: center; /* vagy left, ha azt akarod */
  }
  .gallery-select select {
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
  }
}
