/* SAAIC Common Theme - Shared header, footer, nav */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --primary: #0d47a1;
  --primary-dark: #0a3a7a;
  --accent: #1565c0;
  --text: #222;
  --text-muted: #555;
  --bg-light: #f5f7fa;
  --border: #e3e6f0;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text);
  line-height: 1.6;
}

/* Site Header - identical on all pages */
#site-header {
  background: var(--primary);
  color: white;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#site-header .container,
#site-footer .container,
.common-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

#site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

#site-header .logo {
  color: white;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

#site-header .logo:hover {
  color: rgba(255,255,255,0.95);
}

#main-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

#main-nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

#main-nav a:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

#main-nav a.active {
  background: rgba(255,255,255,0.2);
  color: white;
}

/* Site Footer */
#site-footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.85);
  padding: 1.5rem 1rem;
  margin-top: 3rem;
  text-align: center;
}

#site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

#site-footer .copyright {
  font-size: 0.9rem;
}

/* Common layout */
main .container,
.hero .container,
.section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  min-height: 50vh;
  padding: 2rem 0;
}

/* Buttons */
.btn-primary, .button {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover, .button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Section headings */
.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary);
}

/* Responsive nav - hamburger on small screens */
@media (max-width: 768px) {
  #main-nav {
    width: 100%;
    justify-content: flex-end;
  }
  
  #main-nav a {
    padding: 0.35rem 0.5rem;
    font-size: 0.88rem;
  }
}
