/* ============================================================
   Shared layout styles — header, nav, footer, mobile menu
   Used by all pages
   ============================================================ */

/* Header */
.site-header {
  width: 100%;
  background-color: rgb(var(--color_42));
  padding: 15px 20px;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  flex: 1;
}

.header-logo p {
  margin: 0;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Navigation */
.main-nav {
  display: flex;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  padding: 5px 10px;
}

.nav-link.active {
  font-weight: bold;
}

/* Footer */
.site-footer {
  width: 100%;
  background-color: rgb(var(--color_42));
  padding: 30px 20px;
  box-sizing: border-box;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-text {
  margin: 0;
  font-family: 'open sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgb(var(--color_43));
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  /* Override Wix min-width: 1265px so mobile viewports don't overflow */
  #site-root {
    min-width: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    overflow-x: hidden !important;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .main-nav.active {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    padding: 20px;
    gap: 10px;
  }

  .site-footer {
    padding: 20px 15px;
  }

  .footer-text {
    font-size: 14px;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 15px 10px;
  }

  .footer-text {
    font-size: 12px;
    line-height: 1.4;
  }
}
