*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #111827;
  background-color: #f3f4f6;
}

/* Layout helper */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top bar */
.top-bar {
  background: #111827;
  color: #e5e7eb;
  font-size: 0.875rem;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0;
  gap: 1rem;
}

.top-bar a {
  color: #f9fafb;
  text-decoration: none;
}

.top-bar a:hover {
  text-decoration: underline;
}

.top-bar-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-btn {
  background: #2563eb;
  color: #f9fafb;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.top-bar-btn:hover {
  background: #1d4ed8;
}

/* Navbar */
.navbar {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-sub {
  font-size: 0.75rem;
  color: #6b7280;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: #2563eb;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: #111827;
  height: 2px;
  width: 22px;
  border-radius: 999px;
  position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-label span::before {
  top: -6px;
}

.nav-toggle-label span::after {
  top: 6px;
}

/* Hero */

  background-position: center top;
  color: #f9fafb;
  display: flex;
  align-items: center;
  overflow: hidden;
  animation: heroBgMove 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  padding: 4rem 0 3rem;
  max-width: 650px;
  opacity: 0;
  transform: translateY(18px);
  animation: heroContentIn 0.9s ease-out 0.2s forwards;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #e5e7eb;
  opacity: 0;
  transform: translateY(12px);
  animation: heroTextIn 0.9s ease-out 0.35s forwards;
}

/* Hero háttér finom mozgása */
@keyframes heroBgMove {
  0% {
    background-position: center top;
    background-size: 110%;
  }
  50% {
    background-position: center center;
    background-size: 112%;
  }
  100% {
    background-position: center bottom;
    background-size: 110%;
  }
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5e7eb;
  text-decoration: none;
  opacity: 0.85;
  animation: heroScrollPulse 1.8s ease-in-out infinite;
}

.hero-scroll-text {
  font-weight: 500;
}

.hero-scroll-icon {
  font-size: 1.3rem;
  line-height: 1;
}

/* Hoverre picit erősebb legyen */
.hero-scroll:hover {
  opacity: 1;
}

/* Fel-le „lebegő” animáció */
@keyframes heroScrollPulse {
  0% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, 6px);
  }
  80% {
    transform: translate(-50%, 0);
  }
  100% {
    transform: translate(-50%, 0);
  }
}

/* Nagyon kicsi kijelzőn kicsit feljebb toljuk, hogy ne lógjon le */
@media (max-width: 480px) {
  .hero-scroll {
    bottom: 1rem;
    font-size: 0.7rem;
  }
}




/* Fő tartalom felcsúszása */
@keyframes heroContentIn {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Szöveg külön, kicsit késleltetve */
@keyframes heroTextIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


.section-alt {
  background: #ffffff;
}

.section h2 {
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: #2563eb;
  font-weight: 600;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: #fbbf24;
  color: #111827;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  transform: skewX(-25deg);
  opacity: 0.0;
  background: rgba(255, 255, 255, 0.6);
  animation: heroButtonShine 3.2s ease-in-out infinite;
}

.btn-primary:hover {
  background: #f59e0b;
}

/* Gomb fénycsík animációja */
@keyframes heroButtonShine {
  0% {
    left: -120%;
    opacity: 0;
  }
  40% {
    left: -120%;
    opacity: 0;
  }
  55% {
    left: 120%;
    opacity: 0.7;
  }
  70% {
    left: 140%;
    opacity: 0;
  }
  100% {
    left: 140%;
    opacity: 0;
  }
}

.why-us-list ul {
  list-style: none;
}

.why-us-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.3rem;
  position: relative;
  font-size: 0.95rem;
}

.why-us-list li::before {
  content: "•";
  color: #2563eb;
  position: absolute;
  left: 0;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service-card {
  display: block;
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.4rem 1.3rem;
  text-decoration: none;
  border: 2px solid #2563eb;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.10);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.service-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
  color: #0f172a;
}

.service-card p {
  font-size: 0.95rem;
  color: #4b5563;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.22);
  background: #eff6ff;
}


/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-form {
  margin-top: 1rem;
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.form-note {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.contact-info {
  background: #111827;
  color: #e5e7eb;
  border-radius: 0.9rem;
  padding: 1.5rem 1.4rem;
}

.contact-info a {
  color: #bfdbfe;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #020617;
  color: #6b7280;
  font-size: 0.8rem;
}

.footer-inner {
  padding: 0.9rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle-label {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 0.5rem 1.25rem 0.75rem;
    gap: 0.5rem;
    display: none;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.1);
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 70vh;
  }

  .hero-content {
    padding: 3rem 0 2.5rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
section {
  scroll-margin-top: 70px;
}

#hero {
  scroll-margin-top: 0; /* a hero NEM kap offsetet */
}
/* Referenciák oldal */
.references-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.references-container h1 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  color: #0f172a;
}

.references-container h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: #1e293b;
}

.references-container p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0.3rem 0 1rem 0;
}

.references-container strong {
  font-weight: 600;
  color: #0f172a;
}

.references-container .ref-block {
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}
/* Miért minket + képek elrendezése */
.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.why-text p {
  margin-bottom: 0.9rem;
}

.why-us-list {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0.8rem 0 1.2rem;
}

.why-us-list li {
  margin-bottom: 0.4rem;
}

.why-photos {
  display: grid;
  gap: 1rem;
}

.why-photos img {
  width: 100%;
  border-radius: 0.8rem;
  display: block;
  object-fit: cover;
  max-height: 210px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

/* Mobil nézet – egymás alá kerüljenek */
@media (max-width: 900px) {
  .why-layout {
    grid-template-columns: 1fr;
  }

  .why-photos {
    grid-template-columns: 1fr 1fr;
  }

  .why-photos img:last-child {
    grid-column: 1 / -1;
  }
}

/* HERO SLIDER – több háttérképpel */
.hero {
  height: 88vh;
  background-size: cover;
  background-position: center;
  position: relative;
  animation: heroSlider 20s infinite;
}

@keyframes heroSlider {
  0%   { background-image: url("img/hero1_optimized.jpeg"); }
  25%  { background-image: url("img/hero2_optimized.jpeg"); }
  50%  { background-image: url("img/hero3_optimized.jpeg"); }
  75%  { background-image: url("img/hero4_optimized.jpeg"); }
  100% { background-image: url("img/hero1_optimized.jpeg"); }
}

/* Sötét áttetsző réteg */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

/* HERO szöveg */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding-top: 200px;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  font-weight: 300;
}
