/* Global */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #222222;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: #004785;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-main {
  min-height: 60vh;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  max-height: 90px; /* was 70px */
  height: auto;
  width: auto;
}

.site-branding {
  flex: 0 0 auto;
}

/* Primary navigation */
.primary-navigation {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.menu--primary {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.menu--primary > li {
  position: relative;
}

.menu--primary > li > a {
  display: block;
  padding: 8px 0;
  font-weight: 600;
  color: #222222;
}

.menu--primary > li > a:hover {
  color: #004785;
}

/* Submenus (desktop hover) */
.menu--primary li ul {
  list-style: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 180px;
  margin: 0;
  padding: 8px 0;
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.15s ease-out;
  z-index: 999;
}

.menu--primary li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu--primary li ul li a {
  display: block;
  padding: 8px 16px;
  color: #222222;
  white-space: nowrap;
}

.menu--primary li ul li a:hover {
  background-color: #f5f7fb;
  color: #004785;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  margin-left: 16px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background-color: #222222;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero section (homepage only) */
.hero {
  position: relative;
  min-height: 70vh;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.75)
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  padding: 80px 16px;
}

.hero-content {
  max-width: 760px;
}

.hero-text {
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: #004785;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 71, 133, 0.3);
}

.btn-primary:hover {
  background-color: #003366;
  color: #ffffff;
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-secondary:hover {
  background-color: rgba(255,255,255,0.08);
  color: #ffffff;
  text-decoration: none;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Content sections */
.front-page-content,
.page-content,
.single-content,
.content-area {
  max-width: 840px;
  margin: 40px auto;
  padding: 0 16px 40px;
}

.page-title,
.single-title {
  margin-top: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e5e5e5;
  padding: 20px 16px;
  background-color: #fafafa;
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.menu--footer {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.menu--footer a {
  color: #555555;
  font-size: 0.9rem;
}

.menu--footer a:hover {
  color: #004785;
}

/* 404 */
.page-404 {
  max-width: 640px;
  margin: 80px auto;
  padding: 0 16px 80px;
  text-align: center;
}

/* Responsive */
@media (max-width: 960px) {
  .primary-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    display: none;
  }

  .primary-navigation.is-open {
    display: block;
  }

  .menu--primary {
    flex-direction: column;
    gap: 0;
  }

  .menu--primary > li > a {
    padding: 12px 16px;
  }

  .menu--primary li ul {
    position: static;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
  }

  .menu--primary li ul li a {
    padding-left: 32px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-header-inner {
    padding: 10px 16px;
  }

  .hero-inner {
    padding: 60px 16px;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}