/* Container Grid flex etc */

/* General Styles */
body {
  max-width: 1900px;
  margin: 0 auto;
}
/* Header Styles */
header {
  padding: 1rem 1rem 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.header-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.header-content img {
  width: clamp(150px, 40vw, 250px);
}
.header-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
header p {
  margin-bottom: 0;
}
nav {
  display: none;
}
nav.active {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 1rem 1.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.125rem;
  align-items: flex-end;
}
nav a {
  text-align: right;
}
.menu-toggle {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}
/* 404 page styles */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}
.error-page h1 {
  font-size: clamp(5rem, 12vw, 9rem);
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}
.error-page h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.error-page p {
  max-width: 45ch;
  margin-bottom: 2rem;
}
.error-page .btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  text-decoration: none;
  border-radius: 4px;
}
/* footer styles */
footer {
  padding: 20px;
  text-align: center;
}
/* Header Queries */
/* ===== MOBILE HEADER FIX ONLY ===== */
@media (max-width: 767px) {
  header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .header-content {
    flex-direction: column;
  }
  .menu-toggle {
    margin-left: auto;
  }
  .header-contact {
    width: 100%;
  }
  .header-contact h1 {
    max-width: 17ch;
    line-height: 1.2;
  }
  nav a {
    display: block;
    padding: 12px 18px;
  }
}
@media (max-width: 899px) {
  header h1 {
    max-width: 200px;
    line-height: 1.2;
  }
  .menu-toggle {
    margin-top: 10px;
  }
}

@media (min-width: 900px) {
  header {
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
  }
  .header-content {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .menu-toggle {
    display: none;
  }
  nav {
    display: block !important;
    position: static;
  }
  nav ul {
    flex-direction: row;
    gap: 25px;
  }
  nav a {
    white-space: nowrap;
  }
}
