/* ----------------------------
   Color Variables
-----------------------------*/
:root {
  --primary-text: #2D2D2D;       /* Dark grey for text */
  --accent: #1A3C7A;             /* Light navy accent */
  --accent-hover: #162F63;       /* Slightly darker light navy for hover */
  --bg: #FFF8E5;                 /* Soft beige background */
  --bg-alt: #F5F0E1;             /* Slightly darker beige for header/footer */
  --border-color: #E5E5E5;       /* Subtle border */
}

/* ----------------------------
   General Body & Container
-----------------------------*/
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.4;
  color: var(--primary-text);
  background-color: var(--bg);
  margin: 0;
  padding: 0;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* ----------------------------
   Header
-----------------------------*/
header {
  background: var(--bg-alt);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  text-align: center;
}

header h1 a {
  text-decoration: none;
  color: var(--primary-text);
}

/* Navigation */
header nav.nav-center {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Navigation Links (exclude buttons like Resume) */
header nav.nav-center a:not(.button) {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 500; /* only applies to regular nav links */
  border-radius: 6px;
  transition: all 0.2s ease;
}

header nav.nav-center a:hover,
header nav.nav-center a:focus {
  background-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  outline: none;
}

header nav.nav-center a[aria-current="page"] {
  background-color: var(--accent);
  color: #fff;
}

/* Resume Button */
header nav.nav-center a.button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--accent);
  color: #fff;
  font-weight: normal;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

header nav.nav-center a.button:hover,
header nav.nav-center a.button:focus {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  margin-top: 0.5rem;
}

/* ----------------------------
   Main Content
-----------------------------*/
main h2, main h3 {
  color: var(--primary-text);
  margin: 1.5rem 0 1rem;  /* Reduced spacing for tighter layout */
  font-weight: 600;
  text-align: center;
}

main p {
  margin: 1.0rem 0;       /* Normal paragraph spacing */
  line-height: 1.4;       /* Slightly tighter line height for compact text */
  text-align: left;       /* Left-align for readability */
}

/* Images and iframes */
img, iframe, .tableauPlaceholder {
  display: block;
  margin: 1.5rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ----------------------------
   Footer
-----------------------------*/
footer {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  text-align: center;
}

footer p {
  margin: 0.5rem 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a svg {
  transition: color 0.2s;
}

.social-links a:hover svg {
  color: var(--accent);
}

/* ----------------------------
   Responsive Adjustments
-----------------------------*/
@media (max-width: 800px) {
  .mobile-menu-toggle {
    display: flex;
  }

  header nav.nav-center {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

  header nav.nav-center.is-open {
    display: flex;
  }
}

@media (max-width: 600px) {
  main h2, main h3 {
    font-size: 1.5rem;
  }

  header nav.nav-center a {
    padding: 0.75rem 1.25rem;
  }
}
