/* static/css/main.css: base of every page (header, menus, footer, buttons). */
:root {
  --gp-dark: #101725;          /* header */
  --gp-footer: #0B111C;        /* footer */
  --gp-band-dark: #1C2C40;     /* dark content bands (N2) */
  --gp-blue: #3f7593;          /* buttons, accents */
  --gp-blue-hover: #4a88aa;
  --gp-link: #2F6482;          /* links on light backgrounds */
  --gp-ink: #101725;           /* headings on light backgrounds */
  --gp-text: #475566;          /* body text on light backgrounds */
  --gp-grey: #F3F5F8;          /* card / form bands */
  --gp-border: #DCE2E9;
  --gp-radius: 8px;
}

/* form controls do not inherit the page font by default: make every button match */
button, input, select, textarea { font-family: inherit; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;      /* keeps the footer at the bottom of short pages */
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gp-text);
  background: #FFFFFF;
}

/* ---------- header: stays visible while scrolling ---------- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--gp-dark);
  padding: 0.5rem 1.5rem;
  color: white;
}
.logo-nav-wrapper { display: flex; align-items: center; justify-content: space-between; }
.logo-link { display: flex; }
.site-logo { height: 70px; width: auto; }

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-menu a {
  text-decoration: none;
  color: white;
  font-size: 1.05rem;
  font-weight: bold;
  display: inline-block;
}
.nav-menu a:hover,
.nav-menu a.active { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- footer: at the end of the page (no longer fixed) ---------- */
.main-footer {
  background: var(--gp-footer);
  color: #C9D3DE;
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
}
.main-footer p { margin: 0; }
.main-footer a, .main-footer a:visited { color: white; }
.main-footer a:hover, .main-footer a:focus { color: #C9D3DE; }

/* ---------- form submit button ---------- */
.btn-submit {
  display: inline-block;
  padding: .85rem 1.5rem;
  font-weight: bold;
  background-color: var(--gp-blue);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn-submit:hover { background-color: var(--gp-blue-hover); }

/* ---------- desktop / mobile menus ---------- */
@media (min-width: 901px) {
  .desktop-nav { display: block; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}
@media (min-width: 901px) and (max-width: 1150px) {
  .nav-menu { gap: 1.1rem; }
  .nav-menu a { font-size: .95rem; }
}
@media (max-width: 900px) {  /* hamburger menu below 900px (7 menu entries since step 10) */
  .logo-nav-wrapper { flex-wrap: wrap; }
  .site-logo { height: 54px; }
  .desktop-nav { display: none; }
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    margin-left: auto;
  }
  .mobile-nav {
    position: fixed;
    top: 70px;
    right: 0;
    width: 250px;
    background: var(--gp-dark);
    display: none;
    z-index: 9999;
    padding: 1rem;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.4);
    border-radius: 0 0 0 10px;
  }
  .mobile-nav.show { display: block; }
  .mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .mobile-nav a { color: white; font-size: 1.125rem; text-decoration: none; }
  .mobile-nav a.active { text-decoration: underline; }
}

.page-content { flex: 1 0 auto; }
.main-header, .main-footer { flex-shrink: 0; }
