* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: Arial, Helvetica, sans-serif;
}

.site-wrapper {
	text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main {
  flex: 1;
}

.flashes {
  position: fixed;
  top: 6rem;
  left: 50%;
  font-size: 1.2rem;
  transform: translateX(-50%);
  z-index: 1100;
  background-color: #A3D0A1;
  padding: 5px;
  border-radius: 8px;
}

.flashes .danger { 
  background-color: #D0A1A3; 
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.header {
  background-color: white;
  position: fixed;
  width: 100%;
  height: 5rem;
  padding: 10px 10px 10px 10px;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  z-index: 1000;
}

@media screen and (min-width: 1024px) {
  .header {
    width: 100%;
    height: 5.5rem;
    padding: 10px 30px 10px 10px;
  }
}

.expanded-header {
  padding: 20px 15px;
  margin-left: 0;
  margin-top: 0;
  width: 100%;
  height: 6.5rem;
  border-radius: 0;
}

.highlight {
  color: #A3D0A1;
}

.header a {
  text-decoration: none;
  color: black;
}

.header h1 {
  font-family: "Oswald", Arial, sans-serif;
  color: black;
}

.header h2 {
  font-size: 1.55rem;
  transition: font-size 0.3s ease;
}

.nav-highlight:hover {
  color: #88D498;
}

.header-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.header-content h2:hover {
  font-size: 1.65rem;
}

.nav-menu-content {
  overflow: hidden;
  background-color: white;
  border-radius: 15px;
  min-width: 90%;
  transform: translateY(-10px);
  padding: 5% 0;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.expanded-menu {
  min-width: 100%;
}

.nav-menu-content h1 {
  font-size: 100%;
  margin-bottom: 1rem;
}

.header-content p {
  width: 135px;
  flex-shrink: 0;
  line-height: 1.2;
}

.header input {
  display: none;
}

.header input:checked ~ .nav-menu-content {
  transform: translateY(0px);
  opacity: 1;
  pointer-events: auto;
}

.header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 2rem);
  margin-left: auto;
  margin-right: auto;
  font-size: 0.5rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.header-nav h1 {
  font-size: clamp(0.7rem, 1.2vw, 1rem);
  white-space: nowrap;
}

.header-button {
  background-color: #A3D0A1;
  border: 3px solid #000;
  border-radius: 15px;
  color: white;
  text-align: center;
  margin-left: auto;
  margin-right: 5px;
  font-size: 1rem;
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0 clamp(0.8rem, 2vw, 1.5rem);
  height: 3rem;
  cursor: pointer;
}

.header-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 0 #000;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  margin-right: 10px;
}

.header-user span {
  font-size: clamp(1.7rem, 1.2vw, 2rem);
  color: black;
  white-space: nowrap;
}

.header-user span:hover {
  color: #88D498;
}

.header-user a {
  text-decoration: none;
  color: #6cb56d;
  font-weight: bold;
}

/* ── Join Overlay ───────────────────────────────────────────────────────────────── */
.overlayContainer {
  position: fixed;
  overflow-y: auto;
  display: none;
  justify-content: center;
  align-items: flex-start;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.4);
}

.joinContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-radius: 25px;
  width: 80%;
  height: auto;
  margin: auto;
  margin-top: 5vh;
  margin-bottom: 5vh;
  padding: 2rem;
  border: 4px solid #6cb56d;
  background-color: white;
}

.joinContainer input:focus {
  border: 2px solid #A3D0A1;
  outline: none;
  border-radius: 4px;
}

.visibleJoin {
  display: flex;
}

.closebtn {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 70px;
  font-weight: bold;
  color: black;
  cursor: pointer;
}

.closebtn:hover {
  color: #6cb56d;
}

.formContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 1rem;
  padding: 0 5%;
}

.joinFormContainer {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  height: 50%;
  padding: 2rem;
  background-color: #F7FFF6;
  border: 2px solid #000;
  box-shadow: 5px 5px #000;
  border-radius: 12px;
}

.joinFormContainer h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.joinForm {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
  gap: 1.5rem;
  margin-top: 2rem;
  width: 80%;
}

.joinForm input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #000;
  border-radius: 4px;
  font-size: 1rem;
}

.joinForm button {
  width: clamp(100%, 150px, 200px);
  background-color: #A3D0A1;
  border-radius: 8px;
  color: black;
  font-weight: bold;
}

.joinForm button:hover {
  background-color: #6cb56d;
  color: white;
}

.loginFormContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  height: 90%;
  padding: 2rem;
  background-color: #D3D3D3;
  border: 2px solid #000;
  box-shadow: 5px 5px #000;
  border-radius: 12px;
}

.loginFormContainer h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.loginForm {
  display: flex;
  flex-direction: column;
  width: 80%;
  gap: 1.5rem;
}

.loginForm input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #000;
  border-radius: 4px;
  font-size: 1rem;
}

.loginForm button {
  width: clamp(100%, 150px, 200px);
  background-color: #F7FFF6;
  border-radius: 8px;
  color: black;
  font-weight: bold;
}

.loginForm button:hover {
  background-color: #A3D0A1;
  color: white;
}

@media screen and (min-width: 768px) {
  .overlayContainer {
    align-items: center;
  }

  .joinContainer {
    width: 60%;
    min-width: 700px;
    height: 50vh;
    margin-top: 0;
    padding: 0;
  }

  .formContainer {
    flex-direction: row;
    justify-content: space-around;
    gap: clamp(2rem, 5vw, 6rem);
  }

  .joinFormContainer {
    width: 40%;
    min-width: 300px;
    height: 90%;
  }

  .loginFormContainer {
    width: 40%;
    min-width: 300px;
  }
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  background-image: linear-gradient(to bottom, #f5fff4, #A3D0A1, #A3D0A1);
  border: 0.5px solid #6cb56d;
  width: 100%;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 2.5rem;
  gap: 1rem;
  position: relative;
}

.footer-nav {
  display: flex;
  flex-direction: row;
  gap: clamp(0.5rem, 1.5vw, 2rem);
  flex: 1;
  overflow: hidden;
}

.footer-nav a {
  text-decoration: none;
  color: black;
}

/* Copyright */
.footer-copy {
  font-family: "Oswald", Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: black;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Business branding */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-direction: row-reverse;
  text-decoration: none;
}

.footer-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer-brand:hover .footer-logo {
  opacity: 1;
}

.footer-brand-name {
  font-family: "Oswald", Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: black;
  transition: color 0.2s ease;
  opacity: 0.5;
}

.footer-brand:hover .footer-brand-name {
  opacity: 1;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    gap: 1.2rem;
  }

  .footer-copy {
    position: static;
    transform: none;
  }

  .footer-social {
    align-items: center;
  }

  .footer-brand {
    flex-direction: column;
  }
}