/* Reset */
body, h1, p, a, ul, li, input, textarea, button {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #333;
}

/* Top Bar */
.top-bar {
  position: relative;
  background-color: #333;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  height: 70px;
}

.logo {
  position: absolute;
  left: 2rem;
}


.logo img {
  height: 60px;
}

/* --- Menu Toggle for Mobile --- */
.menu-toggle {
  display: none;
  position: absolute;
  right: 2rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-grow: 1;
}


.nav-links ul {
  display: flex;
  list-style: none;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a.highlighted {
  background-color: white;
  color: #333;
  font-weight: bold;
}

.nav-links a:hover {
  background-color: #fff;
  color: #333;
}

/* Section Layout */
.main-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0; /* Remove padding here */
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
  position: relative;
  z-index: 1; /* Ensure it appears above the background */
}

.divider {
  width: 60px;
  height: 4px;
  background-color: #ffffff;
  margin: 0 auto 2rem auto;
  position: relative;
  z-index: 1; /* Ensure it appears above the background */
}

.contact-section {
  background-image: url('contactstock.jpg'); /* Replace with your actual image path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 2rem;
  margin-bottom: 0;
  position: relative;
  z-index: 0;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); /* adjust transparency */
  z-index: 0;
}

/* Contact Box */
.contact-box {
  background-color: rgba(255, 255, 255, 0.85); /* white with 85% opacity */
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 1; /* sits above the overlay */
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
} 

.contact-info p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.email-form input,
.email-form textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.email-form button {
  background-color: #333;
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.email-form button:hover {
  background: #333;
  color: #fff;
  &:hover {
    background: #065e99;
  }
  transition: color 0.3s ease-in-out, background 0.3s ease-in-out;
}

a {
  color: black;
}

.kapcs {
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1rem;
  background-color: #333;
  color: #fff;
  margin-top: 0;
  border-top: none;
}


/* Responsive Nav */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 1rem;
  }

   .top-bar .logo {
  position: static; /* back to normal flow */
  margin-bottom: 1rem;
}
   
    .menu-toggle {
    display: block;
    position: static;
    margin-bottom: 1rem;
    background-color: #fff;
    color: #333;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
  }

.menu-toggle:hover {
    background-color: #333;
    color: #fff;
  }
 
  .nav-links {
  position: static;
  display: none;
  width: 100%;
  background-color: #333;
  justify-content: center; /* ✅ center content horizontally */
}

.nav-links.open {
  display: flex;
}

.nav-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center; /* ✅ center <li> items */
  width: 100%;
}

.nav-links ul li {
  width: 100%;
  text-align: center;
}

.nav-links ul li a {
  display: block;
  width: 100%;
  padding: 1rem;
  color: white;
  text-decoration: none;
  border-top: 1px solid #444;
}

  .nav-links ul li a:hover {
    background-color: white;
    color: #333;
  }

   .top-bar .logo img {
    height: 3.125rem; 
  }
}

