/* ==========================================================
   Full-Page Sticky Topbar + Navbar (Professional Enhanced)
   ========================================================== */

/* Smooth scroll + section offset for fixed header */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px; /* adjust to combined header height */
}

/* Safety for anchors and specific sections */
#strategic {
  scroll-margin-top: 110px;
}

/* --- Brand Colors (unchanged) --- */
:root {
  --brand: #384F9E;   /* parliamentary blue */
  --accent: #384F9E;
  --light-bg: #ffffff;
  --highlight: #384F9E;
}

/* --- Base Layout --- */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Segoe UI", Roboto, Ubuntu, sans-serif;
}

/* Reserve space so hero/sections don’t hide behind header */
body {
  padding-top: 110px; /* topbar + navbar combined height */
}

/* ==========================================================
   TOPBAR (fixed, always visible)
   ========================================================== */
.topbar {
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1200;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.topbar .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.topbar a:hover {
  opacity: 0.8;
}

/* ==========================================================
   NAVBAR (fixed, under topbar)
   ========================================================== */
.navbar {
  background: var(--light-bg);
  border-bottom: 1px solid #e5e5e5;
  position: fixed;
  top: 32px; /* height of topbar */
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1100;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.navbar .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .brand {
  font-weight: 700;
  color: var(--highlight);
  text-decoration: none;
  font-size: 1.4rem;
  transition: transform 0.25s ease;
}

.navbar .brand:hover {
  transform: scale(1.03);
}

/* --- Nav Links --- */
.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
  align-items: center;
}

.navbar ul a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.25s ease, font-weight 0.25s ease;
}

.navbar ul a:hover,
.navbar ul a.active {
  color: var(--highlight);
  font-weight: 600;
}

.navbar .btn {
  background: var(--highlight);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.2s ease;
}
.navbar .btn:hover {
  transform: translateY(-2px);
}

/* ==========================================================
   MOBILE MENU
   ========================================================== */
.burger {
  display: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--highlight);
}

#nav-toggle {
  display: none;
}

@media (max-width: 800px) {
  .navbar ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--light-bg);
    padding: 12px 0;
    border-top: 1px solid #e5e5e5;
  }
  #nav-toggle:checked + .burger + ul {
    display: flex;
  }
  .burger {
    display: block;
  }
}

/* ==========================================================
   SECTION LAYOUT
   ========================================================== */
.section {
  padding: 60px 16px;
}
.section h2 {
  color: var(--highlight);
  text-align: center;
  margin-bottom: 20px;
}
.section .container {
  max-width: 1100px;
  margin: auto;
}

/* ==========================================================
   EFFECTS & SMOOTH SCROLL SUPPORT
   ========================================================== */
.navbar.scrolled .brand {
  transform: scale(0.98);
}


.topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease, opacity 0.25s ease;
}
.topbar a:hover {
  color: #cce8df;
  opacity: 0.9;
}
.topbar .loc a::after {
  content: " ↗";
  font-size: 0.85em;
  opacity: 0.8;
}
