@charset "utf-8";
/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
  height: 100%; /* needed for sticky footer */
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   HEADER & NAV
========================= */
header {
  background-color: #00599D;
  color: #fff;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
}

/* Main nav list */
.nav-links, .nav-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.nav-links a {
  color: #fff;
  font-weight: bold;
  display: inline-block;
  padding: 0.5rem 0;
}

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  background: transparent;
  border: 0;
  color: #fff;
}

/* Submenu */
.has-submenu {
  position: relative;
  display: flex;
  align-items: center;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #004980;
  box-shadow: 0 8px 16px rgba(0,0,0,.2);
  z-index: 1000;
}

.submenu a {
  display: block;
  padding: 0.75rem 1rem;
  color: #fff;
  white-space: nowrap;
}

.submenu a:hover { background: #0074cc; }

/* Submenu toggle (mobile only) */
.submenu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  margin-left: auto; /* push toggle to right */
  line-height: 1;
}

/* =========================
   HERO
========================= */
.hero { 
  width: 100vw;
  height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  position: relative;
  background-image: url('images/hero-background.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}
.hero h1 {
  font-size: 3rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem 2rem;
  border-radius: 8px;
}

/* =========================
   SECTIONS
========================= */
section {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: auto;
}
section h2 {
  margin-bottom: 1rem;
  color: #333;
}
section p {
  color: #555;
  line-height: 1.6;
}

/* =========================
   GRID LAYOUTS
========================= */
.services-grid, .about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.service, .about {
  background: #f5f5f5;
  padding: 2rem;
  border-radius: 8px;
  text-align: left;
}

/* =========================
   BUTTONS
========================= */
.download-button {
  background-color: #004980;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 6px;
}
.download-button:hover { background-color: #0074cc; }

button {
  padding: 1rem;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* =========================
   FORM
========================= */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
input, textarea {
  padding: 1rem;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* =========================
   FOOTER
========================= */
footer {
  background-color: #00599D;
  color: white;
  text-align: center;
  padding: 1rem 2rem;
}

/* =========================
   RESPONSIVE NAV
========================= */
@media (min-width: 769px) {
  /* Desktop: show submenu on hover */
  .has-submenu:hover > .submenu { display: block; }
}

@media (max-width: 768px) {
  .hamburger { display: inline-block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    width: 240px;
    flex-direction: column;
    background: #00599D;
    padding: 1rem;
    z-index: 1000;
  }
  .nav-links.active { display: flex; }

  .nav-links > li { width: 100%; }

  /* Make submenu stack instead of float */
  .submenu {
    position: static;
    box-shadow: none;
    background: #004980;
    margin-top: 0.25rem;
  }

  /* Show toggle button on mobile */
  .submenu-toggle { display: inline-block; }

  .has-submenu { width: 100%; }

  .has-submenu.open > .submenu { display: block; }
}

/* =========================
   STICKY FOOTER FIX
========================= */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1; /* Pushes footer down if not enough content */
}
