/* Font declarations */
@font-face {
  font-family: 'Gisha';
  src: local('Gisha'), local('Gisha Regular');
}

@font-face {
  font-family: 'Calibri';
  src: local('Calibri'), local('Calibri Body');
}

@font-face {
  font-family: 'Segoe UI Light';
  src: local('Segoe UI Light'), local('Segoe UI');
}

/* Apply fonts to specific sections */
h1 {
  font-family: 'Gisha', sans-serif;
}

header p {
  font-family: 'Calibri', sans-serif;
}

body,
section#mission,
section#contact,
form,
form input,
form label,
form button {
  font-family: 'Segoe UI Light', sans-serif;
}

/* Form and button appearance */
input,
button {
  border-radius: 4px;
  background-color: white;
  color: #001a33; /* Custom Navy */
  border: 1px solid #001a33;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

button:hover,
button:focus {
  background-color: #001a33; /* Custom Navy */
  color: white;
  border-color: #001a33;
}

/* Responsive layout tweaks */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid {
    grid-template-columns: 1fr !important;
  }
}

/* Language dropdown container */
#languageMenu {
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-family: 'Segoe UI Light', sans-serif;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Dropdown buttons */
#languageMenu button {
  padding: 10px 16px;
  width: 100%;
  text-align: left;
  background-color: white;
  color: #001a33; /* Custom Navy */
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover and active state: inverted colors */
#languageMenu button:hover,
#languageMenu button:focus {
  background-color: #001a33; /* Custom Navy */
  color: white;
}

/* Dark mode styling */
body.dark #languageMenu {
  background-color: #1f2937; /* gray-800 */
}

body.dark #languageMenu button {
  color: #93c5fd; /* light blue for contrast */
  background-color: transparent;
}

body.dark #languageMenu button:hover,
body.dark #languageMenu button:focus {
  background-color: #001a33; /* Custom Navy */
  color: white;
}