:root {
  --primary-dark: #001833; /* deeper dark blue */
  --accent-color: #4a90e2; /* calm blue accent */
  --text-light: #e0e6f0;  /* soft off-white */
  --text-muted: #a0abc8;  /* muted text for less strain */
}

* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  margin: 0;
  background-color: var(--primary-dark);
  color: var(--text-light);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
  outline: none;
}

.topnav {
  background-color: var(--primary-dark);
  padding: 14px 30px;
  display: flex;
  align-items: center;
  gap: 25px;
  font-weight: 600;
  user-select: none;
  border-bottom: 1px solid rgba(74, 144, 226, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topnav .logo {
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text-light);
  margin-right: auto;
  display: inline-block;
  vertical-align: middle;
  line-height: 50px;
}

/* Nav */
.topnav a {
  color: var(--text-light);
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background-color 0.25s ease;
}

.topnav a:hover,
.topnav a:focus {
  background-color: rgba(74, 144, 226, 0.3);
  outline: none;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--text-light);
  padding: 7px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.25s ease;
  user-select: none;
  box-shadow: 0 2px 6px rgba(74, 144, 226, 0.6);
}

.btn:hover,
.btn:focus {
  background-color: #357ABD;
  box-shadow: 0 4px 10px rgba(53, 122, 189, 0.8);
  outline: none;
}

.site-header {
  background-color: #0d1726;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  color: #ffffff;
  margin: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

.nav-links a {
  color: #f0f4fa;
  text-decoration: none;
  font-weight: 500;
}

.contact-widget {
  background-color: #162a40;
  padding: 2rem;
  color: #ccd8e5;
  margin-top: 3rem;
  text-align: center;
  border-radius: 8px;
}

.contact-widget h2 {
  margin-bottom: 1rem;
}

footer {
  background-color: #0f1c2e;
  padding: 2rem 1rem 1rem;
  color: var(--text-light);
  border-top: 1px solid rgba(74, 144, 226, 0.3);
  font-size: 0.95rem;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-content h2 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--text-light);
}

.footer-content p {
  margin: 0.3rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-content a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-content a:hover,
.footer-content a:focus {
  color: var(--accent-color);
  text-decoration: underline;
  outline: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-icon {
  width: clamp(20px, 2vw, 24px);
  height: clamp(20px, 2vw, 24px);
  object-fit: contain;
  filter: brightness(0.8);
  transition: filter 0.2s ease;
  vertical-align: middle;
  flex-shrink: 0;
}

.footer-icon:hover,
.footer-icon:focus {
  filter: brightness(1.2);
}

.footer-bottom {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* Hamburger menu icon */
.topnav .icon {
  display: none;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
  padding: 14px 16px;
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
  .topnav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 14px 16px;
    width: 100%;
    overflow-x: hidden;
  }

  .topnav a:not(.logo) {
    display: none;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    margin: 0;
    white-space: normal;
    word-break: break-word;
  }

  .topnav .icon {
    display: block;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 200; /* keep on top */
  }

  .topnav.responsive {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    overflow: hidden;
  }

  .topnav.responsive .logo {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .topnav.responsive a:not(.logo) {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border-top: 1px solid rgba(74, 144, 226, 0.2);
    box-sizing: border-box;
  }
}
