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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  font-size: 16.5px;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .container {
    min-width: 1080px;
    width: clamp(1080px, 90vw, 1200px);
  }
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/* ===== Topbar ===== */
.topbar {
  background: #2d2f33;
  color: #e8e8e8;
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.topbar-left {
  opacity: 0.95;
  font-style: italic;
}

.topbar-right {
  display: flex;
  gap: 10px;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #d61f26;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  border: 0;
  outline: 0;
}

.pill:hover {
  filter: brightness(0.95);
}

/* ===== Header ===== */
.site-header {
  position: relative;
  width: 100%;
  padding: 2px 0 0 0;
  background: linear-gradient(to right, #0b3b8c 5%, #0052aa 20%, #0052aa 80%, #0b3b8c 95%);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 16px;
  background: linear-gradient(to right, #c9cdd3 0%, #e9edf3 20%, #e9edf3 80%, #c9cdd3 100%);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.logo-link {
  display: inline-flex;
  line-height: 0;
}

.site-logo {
  display: block;
  height: 64px;
  width: auto;
  max-width: 100%;
  max-height: 100%;
}

/* ===== Primary nav ===== */
.primary-nav {
  padding: 0;
  background: linear-gradient(to right, #0b3b8c 5%, #0052aa 20%, #0052aa 80%, #0b3b8c 95%);
}

.nav-inner {
  display: flex;
  gap: 40px;
  padding: 12px 0;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.primary-nav a {
  padding: 11px 16px;
  line-height: 1.1;
}

.navlink {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.navlink:hover,
.navlink.is-active {
  text-decoration: underline;
}

/* ===== Page ===== */
body.sg {
  background: linear-gradient(to right, #beccde 0%, #eef2f8 20%, #eef2f8 80%, #beccde 100%);
}

.page {
  padding: 26px 0 40px;
}

.content-shell {
  background: #fff;
  border: 1px solid #e1e4ea;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 22px;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.page-title {
  margin: 0 0 18px;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.page p {
  line-height: 1.6;
  margin-bottom: 16px;
}

.page h1 {
  margin: 0 0 14px;
}

/* ===== Footer ===== */
footer.footer {
  color: #e8e8e8;
  flex-shrink: 0;
  border-top: 4px solid #0b3b8c;
  background: linear-gradient(to right, #0d0f13 0%, #2d2f33 20%, #2d2f33 80%, #0d0f13 100%);
}

footer.footer .footer-inner {
  padding: 26px 0 30px;
}

footer.footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 22px;
}

footer.footer .footer-left {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

footer.footer .footer-left a {
  color: #e8e8e8;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  opacity: 0.9;
}

footer.footer .footer-left a:hover {
  text-decoration: underline;
  opacity: 1;
}

footer.footer .footer-right {
  text-align: right;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.95;
  white-space: nowrap;
}

footer.footer .footer-phone {
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 22px 8px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.footer-bottom-left {
  font-size: 12px;
  opacity: 0.85;
}

.footer-sites {
  display: flex;
  align-items: center;
  gap: 46px;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 18px;
}

.footer-sites img {
  height: 38px;
  width: auto;
  max-width: 170px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.footer-bottom-right {
  display: flex;
  justify-content: flex-end;
}

/* ===== Social icon ===== */
.social-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.25);
}

.social-icon.facebook {
  background: #1877f2;
}

.social-icon.facebook:hover {
  background: #0f5dc4;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
}

.lightbox-content {
  position: absolute;
  max-width: 90%;
  max-height: 90%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 48px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100000;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-img {
  cursor: pointer;
}

/* ===== Mobile nav toggle ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger {
  width: 24px;
  height: 2px;
  background: #000;
  display: block;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: #000;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .page {
    padding: 0;
  }

  .page-title {
    font-size: 32px;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
  }

  .topbar-left {
    font-size: 12px;
    line-height: 1.25;
  }

  .topbar-right {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
  }

  .topbar-right .pill {
    padding: 6px 10px;
    font-size: 12px;
  }

  .nav-inner {
    gap: 18px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
    padding: 12px;
    cursor: pointer;
    position: relative;
    z-index: 2000;
  }

  .nav-toggle .hamburger,
  .nav-toggle .hamburger::before,
  .nav-toggle .hamburger::after {
    background: #fff !important;
    display: block !important;
  }

  .primary-nav .nav-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: min(320px, 90vw);
    z-index: 1500;
    background: #0b3b8c;
    display: block !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 220ms ease, opacity 180ms ease, transform 220ms ease;
  }

  .nav-links a:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .nav-links.open {
    max-height: 70vh;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.4px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff !important;
  }

  .nav-links a:first-child {
    border-top: 0;
  }

  footer.footer .footer-top {
    flex-direction: column;
  }

  footer.footer .footer-right {
    text-align: left;
    white-space: normal;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom-right {
    justify-content: center;
  }

  .site-header {
    position: relative;
  }

  .site-header .nav-toggle {
    position: absolute;
    top: 0;
    right: 16px;
    transform: translateY(-75px);
    z-index: 999;
    border: 0;
    padding: 10px 12px;
    background: transparent;
  }

  .site-header .primary-nav {
    background: transparent;
    padding: 0;
    height: 0;
    overflow: visible;
  }

  .site-header .nav-toggle .hamburger,
  .site-header .nav-toggle .hamburger::before,
  .site-header .nav-toggle .hamburger::after {
    background-color: #0b3b8c !important;
    height: 4px;
    width: 32px;
  }
}
