*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 100%;
  font-family: var(--font-base);
  background-color: var(--color-sand);
  color: var(--color-black);
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  background-color: var(--color-sand);
  font-size: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  width: 100%;
  max-width: 100%;
}

.logo-row {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  width: 100%;
  padding: 0 1rem;
}

.logo-row img {
  max-height: 120px;
  width: auto;
  height: auto;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 1rem;
  margin: 0 auto;
  max-width: 100%;
}

.nav-row > * {
  flex-shrink: 1;
  min-width: 0;
}

.nav-row,
.nav-left {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-left {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex: 1;
}

.nav-left > * {
  flex-shrink: 1;
  min-width: 0;
}

.nav-left a {
  text-decoration: none;
  color: var(--color-black);
  font-weight: 700;
  transition: color 0.3s ease;
  font-size: inherit;
  line-height: 2.5rem;
  text-shadow: 0.5px 0 0 var(--color-black), -0.5px 0 0 var(--color-black);
}

.nav-left a:hover {
  color: var(--color-primary-hover);
  text-shadow: 0.5px 0 0 var(--color-primary-hover), -0.5px 0 0 var(--color-primary-hover);
}

.nav-left a:focus-visible,
.nav-right button:focus-visible,
.menu-toggle:focus-visible {
  outline: 0.5px solid var(--color-primary-hover);
  outline-offset: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

button.login-btn,
button.register-btn {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.login-btn {
  background-color: var(--color-white);
  border: 1px solid var(--color-primary);
  color: var(--color-black);
}

.login-btn:hover {
  background-color: var(--color-primary-ghost);
  border-color: var(--color-primary);
}

.register-btn {
  background-color: var(--color-primary-accent);
  color: var(--color-white);
  border: none;
}

.register-btn:hover {
  background-color: var(--color-primary-hover);
}

.nav-icon {
  position: relative;
  display: none;
  margin-left: auto;
  flex-direction: column;
  align-items: flex-end;
}

.menu-toggle {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle:hover {
  color: var(--color-primary-hover);
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--color-white);
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  z-index: 10;
  display: none !important;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 180px;
  align-items: stretch;
}

.mobile-menu.show {
  display: flex !important;
}

@media (min-width: 1024px) {
  .nav-left {
    margin: 0 auto;
    justify-content: center;
  }
}

@media (max-width: 800px) {
  .nav-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }

  .nav-left {
    flex: 1;
    justify-content: flex-start;
  }

  .nav-right {
    display: none;
  }

  .nav-icon {
    display: flex;
  }
}

@media (max-width: 520px) {
  .nav-row {
    font-size: 20px;
  }
}

@media (max-width: 450px) {
  .nav-row {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .nav-row {
    font-size: 12px;
  }
}

.footer {
  background: var(--color-primary);
  background: linear-gradient(0deg, rgba(74, 111, 165, 1) 0%, rgba(74, 111, 165, 1) 39%, rgba(99, 149, 224, 1) 100%);
  color: var(--color-gray-400);
  font-family: var(--font-accent);
  padding: 2rem 1rem;
}

.footer h6 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--color-white);
}

.footer-link {
  color: var(--color-gray-400);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.text-label {
  color: var(--color-gray-400);
  font-weight: 500;
  margin-right: 0.25rem;
}

.footer p {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

@media (max-width: 576px) {
  .footer p,
  .footer-link,
  .text-label {
    font-size: 0.9rem;
  }
}

.footer-logo {
  margin-top: 1vh;
  max-height: 100px;
  width: auto;
  height: auto;
}
