/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #222;
  color: white;
  border-bottom: 3px solid #ffcc00;
  width: 100%;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* LOGO + TITLE */
.logo-section {
  display: flex;
  align-items: center;
  transform: scale(1.25);
  transform-origin: left center;
}

.logo-section img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-right: 15px;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.logo-section img:hover {
  transform: scale(1.15) rotate(3deg);
  filter: brightness(1.2);
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
}

/* NAVIGATION */
nav {
  margin-top: 10px;
}

/* Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #ffcc00;
}

/* DROPDOWN BASE */
.dropdown {
  position: relative;
}

.dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* Hide hamburger on desktop */
.menu-toggle {
  display: none; /* default hidden */
}

/* Show hamburger only on mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}

/* Desktop Dropdowns */
@media (min-width: 769px) {
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: #333;
    padding: 10px 0;
    border: 1px solid #444;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
    opacity: 1;
    visibility: visible;
  }

  .dropdown-menu li a {
    display: block;
    padding: 8px 15px;
    color: white;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
  }

  .dropdown-menu li a:hover {
    background-color: #ffcc00;
    color: #222;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* MOBILE NAV + DROPDOWN */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    background-color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }

  .menu-toggle img {
    width: 35px;
    height: 35px;
  }

  nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #333;
    overflow: hidden;
    height: 0;
    transition: height 0.35s ease;
    z-index: 1000;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .nav-links li {
    border-bottom: 1px solid #444;
  }

  .nav-links a {
    display: block;
    padding: 15px;
    color: white;
  }

  /* Mobile dropdown */
  .dropdown-menu {
    display: block;         /* must be block for height animation */
    position: static;
    max-height: 0;          /* start hidden */
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    border: none;
    box-shadow: none;
  }

  .dropdown.open .dropdown-menu {
    max-height: 500px;      /* dynamic height */
    opacity: 1;
    visibility: visible;
  }
}

/* MAIN CONTENT */
main {
  flex: 1;
  padding: 30px 20px;
  max-width: 900px;
  margin: 0 auto;
}

main section {
  margin-bottom: 50px;
}

main h2 {
  color: #222;
  margin-bottom: 10px;
}

/* FOOTER */
footer {
  background-color: #333;
  padding: 30px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 3px solid #ffcc00;
}

.footer-contact-box {
  background-color: #f2f2f2;
  border: 2px solid #ffcc00;
  border-radius: 8px;
  padding: 12px 16px;
  max-width: 800px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  justify-content: center;
  color: #222;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.footer-image img {
  width: 70px;
  border-radius: 5px;
}

.footer-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-text p {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.footer-text .contact-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-contact-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  background-color: #ffcc00;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.footer-contact-link:hover {
  background-color: #ffed99;
}

.footer-copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}
