@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Oswald:wght@300;400;600;700&display=swap");

body {
  border-top: 2mm solid #61A60E;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

/* ── Logo ── */
.logo { position: absolute; top: calc(2mm + 0.3rem); left: 1rem; z-index: 200; }
.logo img { height: calc(3cm - 0.6rem); width: auto; display: block; max-height: 100px; }

/* ── Nav bar — fixed, 3 cm tall ── */
.main-nav {
  position: fixed;
  top: 2mm;
  left: 0; right: 0;
  height: 3cm;
  background: #fff;
  border-bottom: 1px solid #ddd;
  z-index: 100;
  overflow: visible;
}

/* ── Menu container — sits to the right of the logo ── */
.container_menu {
  position: absolute;
  left: 200px;
  top: 0;
  z-index: 1000;
}

/* ── Toggle button (hamburger) — hidden on desktop ── */
.toggleMenu {
  display: none;
  background: #61A60E
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath fill='white' d='M0 0h11v1.5H0zm0 2.75h11v1.5H0zm0 5.5h11V7H0z'/%3E%3C/svg%3E")
    no-repeat 11px 15px;
  color: #fff;
  border-radius: 15px 0;
  padding: 10px 18px 10px 33px;
  text-decoration: none;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

/* ── Top-level menu ── */
.menu {
  list-style: none;
  padding-top: 20px;
}
.menu::before, .menu::after { content: ""; display: table; }
.menu::after { clear: both; }

.menu > li {
  float: left;
  position: relative;
  padding-right: 5px;
}

.menu > li > a {
  display: block;
  padding: .65rem 1rem;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  background: #749E0A;
  border-radius: 10px 0 10px 0;
  transition: background .2s;
}

/* Down-arrow indicator on parent items */
.menu > li > a.parent {
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='white' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 8px) center;
}

.menu > li > a:hover,
.menu > li.hover > a {
  background: #9CC72F;
}

/* ── Submenus — hidden off-screen by default ── */
.menu li ul {
  list-style: none;
  position: absolute;
  left: -9999px;
  top: 100%;
  min-width: 220px;
  padding: 4px 0;
}

/* Show submenu when parent li gets .hover class (added by JS) */
.menu > li.hover > ul {
  left: 0;
}

.menu li li {
  margin-bottom: 3px;
}

.menu li li a {
  display: block;
  background: #61A60E;
  color: #fff;
  padding: .55rem 1.1rem;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 13px;
  border-radius: 10px 0 10px 0;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}

.menu li li a:hover {
  background: #9CC72F;
}

/* ── Page body offset ── */
.page-body {
  margin-top: calc(2mm + 3cm + 1rem);
  padding: 1rem 2rem;
}

/* ── Footer ── */
.container_footer,
footer.container_footer {
  background: #EDEAE5;
  padding: 1.25rem 0 1.4rem;
}

.footer {
  max-width: 1000px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; gap: 2.5rem; align-items: flex-start; flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 180px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}

.footer-col strong {
  display: block;
  font-family: "Oswald", Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #61A60E;
  margin-bottom: 0.35rem;
}

.footer-col address {
  font-style: normal;
  margin: 0 0 0.6rem;
  color: #555;
}

.footer-col p {
  margin: 0 0 0.45rem;
}

.footer-col p:last-child {
  margin-bottom: 0;
}

.footer-col a {
  color: #61A60E;
  font-family: "Oswald", Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-size: 19px;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.7rem;
}

.footer-col ul li {
  border-right: 1px solid #888;
  padding-right: 0.7rem;
  line-height: 1;
}

.footer-col ul li:last-child {
  border-right: 0;
  padding-right: 0;
}

.footer-col ul li a {
  color: #3b3939;
  font-size: 17px;
}

.footer-col ul li a:hover {
  color: #000;
}

/* Legacy footer classes (older partial markup) */
.footer .copyright {
  color: #888;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.footer .copyright span,
.footer .copyright strong {
  display: inline-block;
  font-family: "Oswald", Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.1;
}

.footer .copyright span { color: #4c4f55; }
.footer .copyright strong { color: #61A60E; }

.footer .contact_number {
  color: #7c7c7c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.15;
  flex: 1;
  text-align: center;
}

.footer .contact_number span a {
  color: #61A60E;
  font-family: "Oswald", Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-size: 19px;
  text-decoration: none;
}
.footer .contact_number span a:hover { text-decoration: underline; }
.footer > ul { list-style: none; padding: 0; display: flex; gap: 0.7rem; }
.footer > ul li {
  border-right: 1px solid #888;
  padding-right: 0.7rem;
  line-height: 1;
}
.footer > ul li:last-child { border-right: 0; padding-right: 0; }
.footer > ul li a {
  color: #3b3939;
  font-family: "Oswald", Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 300;
  text-decoration: none;
}
.footer > ul li a:hover { color: #000; }

/* ── Mobile (< 768px): hamburger toggle ── */
@media (max-width: 767px) {

  .main-nav {
    position: relative;
    top: auto; left: auto; right: auto;
    width: 100%;
    height: auto;
    border-bottom: 2px solid #ddd;
  }

  .logo { position: relative; top: auto; display: block; padding: 6px 1rem; }
  .logo img { height: 38px; max-height: 38px; }

  .container_menu {
    position: relative;
    left: auto;
    top: auto;
    width: 94%;
    margin: 0 auto;
    display: block;
  }

  .toggleMenu {
    display: inline-block;
    width: 100%;
  }

  .menu {
    padding-top: 0;
  }

  .menu > li {
    float: none;
    width: 100%;
    padding-right: 0;
    margin-bottom: 3px;
  }

  .menu > li > a {
    display: block;
    width: 100%;
    white-space: normal;
  }

  .menu > li > a.parent {
    margin-top: 5px;
    background-color: #9CC72F;
    background-position: 95% 50%;
    border-radius: 15px 0 15px 0;
  }

  .menu li ul {
    position: static;
    left: auto;
    min-width: 0;
    width: 100%;
    padding-left: 0.5rem;
  }

  .menu > li.hover > ul {
    left: auto;
  }

  .menu li li a {
    background: #4d8806;
    width: 96%;
    white-space: normal;
  }

  .page-body {
    margin-top: 0.5rem;
  }

  .footer { flex-direction: column; gap: 1rem; }

  .footer-col {
    width: 100%;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.8rem;
  }

  .footer-col:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .footer-col ul {
    display: block;
    text-align: center;
  }

  .footer-col ul li {
    border-right: 0;
    padding-right: 0;
    margin-top: 0.6rem;
  }

  .footer .copyright,
  .footer .contact_number {
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.8rem;
    width: 100%;
  }

  .footer > ul {
    display: block;
    text-align: center;
  }

  .footer > ul li {
    border-right: 0;
    padding-right: 0;
    margin-top: 0.6rem;
  }
}
