/* ===================================================
   Global Styles
=================================================== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Roboto", sans-serif;
}

body {
  margin: 0;
  padding: 0;
}

a {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===================================================
   Layout Containers
=================================================== */
.wrapper-main {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

/* ===================================================
   Header Section
=================================================== */
.header-main {
  width: 100%;
  height: 49px;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: space-between;
  position: relative;
  top: 0;
  left: 0;
  z-index: 1100;
  transition: top 0.3s ease;
}

/* ===================================================
   Contact Info Section
=================================================== */
.contact-info {
  display: flex;
  gap: 20px;
  margin-left: 105px;
}

.contact-info .tel,
.contact-info .email {
  display: flex;
  align-items: center;
  font-size: 1em;
  color: white;
}

.contact-info i {
  margin-right: 8px;
}

/* ===================================================
   Social Icons
=================================================== */
.social-icons {
  display: flex;
  gap: 15px;
  margin-left: 40px;
  margin-right: 110px;
  align-items: center;
}

.social-icons a {
  color: white;
  text-decoration: none;
  font-size: 1.5em;
}

.social-icons a:hover {
  color: #0073e6;
}

/* ===================================================
   Navigation
=================================================== */
nav {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  position: sticky;
  top: 50px;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  height: 50px;
}

.nav-links ul {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navigation-bar nav ul li {
  margin: 0 15px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-size: 1em;
  font-weight: 600;
  padding: 10px;
}

.nav-links a:hover {
  color: red;
}

.search-icon {
  font-size: 1.2em;
}

.search-icon:hover {
  color: #ddd;
}

/* ===================================================
   Dropdown Menu
=================================================== */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.7);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 2000;
  top: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.dropdown-content a {
  color: white;
  font-weight: 400;
  font-size: 14px;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid white;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #575757;
  color: #fff;
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Invisible hover bridge */
.dropdown-wrapper::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 30px; /* same as the top gap */
    background: transparent;
    z-index: 1000;
}

/* ===================================================
   Footer Section
=================================================== */
footer {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/chess.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #fff;
  padding: 40px 20px;
  height: 500px;
}

.footer-container {
  display: grid;
  grid-template-columns: 340px 260px 260px 260px;
  gap: 5px;
  width: 80%;
  height: 300px;
  margin: 0 20px;
  padding-right: 60px;
}

.footer-column-bottom,
.footer-column-bottom-1 {
  flex: 1;
  width: 90%;
  margin: 10px 30px;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

.logo-footer-bottom {
  display: block;
  width: 200px;
  height: auto;
  padding-bottom: 40px;
}

.footer-address,
.footer-tel,
.footer-email {
  font-size: 18px;
  line-height: 1.5;
  color: #fff;
  text-align: left;
  padding: 5px 0 20px;
}

.footer-column-bottom h3 {
  border-bottom: 2px solid #555;
  padding-bottom: 20px;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 400;
}

.footer-column-bottom ul {
  list-style: none;
  padding: 5px;
  font-size: 16px;
  line-height: 1.6;
}

.footer-column-bottom ul li {
  margin-bottom: 5px;
}

.footer-column-bottom ul li a,
.footer-column-bottom p,
.footer-column-bottom a {
  color: #ccc;
  text-decoration: none;
}

.footer-column-bottom .social-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 40px;
  padding-left: 35px;
}

.footer-column-bottom .social-icons a i {
  font-size: 24px;
  color: #ccc;
  transition: transform 0.3s;
}

.footer-column-bottom .social-icons a i:hover {
  transform: scale(1.2);
  color: #fff;
}

.footer-column-bottom form {
  display: flex;
  flex-direction: column;
}

.footer-column-bottom form input,
.footer-column-bottom form button {
  padding: 10px;
  border: none;
  border-radius: 5px;
}

.footer-column-bottom form button {
  background-color: #d02b2f;
  color: #fff;
  cursor: pointer;
}

.footer-column-bottom form button:hover {
  background-color: #b22429;
}

.footer-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
  padding: 25px 20px;
  box-sizing: border-box;
  height: 70px;
}

.footer-bottom a {
  color: #ccc;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-column a img {
  width: 24px;
  height: 24px;
  margin: 0 10px;
  transition: transform 0.3s;
}

.footer-column a img:hover {
  transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 20px;
    background-color: #c40000;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    display: none;
    z-index: 1000;
}

/* ===================================================
   Hamburger Menu
=================================================== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

/* ===================================================
   Media Queries - Grouped Below
=================================================== */
@media (max-width: 600px) {
  .wrapper-main {
    padding: 0 15px;
  }

  .logo img {
    height: 35px;
  }

  .footer-column-bottom,
  .footer-column-bottom-1 {
    padding: 20px;
    margin: 0 auto;
  }

  .footer-column-bottom form input,
  .footer-column-bottom form button {
    width: 100%;
  }

  .footer-address,
  .footer-tel,
  .footer-email,
  .footer-column-bottom ul li,
  .nav-links a {
    font-size: 14px;
  }
}

@media (max-width: 1024px) and (min-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}
