/*--------------------------------------------------------------
# Shared layout: header, navigation, footer (v2)
--------------------------------------------------------------*/
:root {
  --aa-navy: #002143;
  --aa-teal: #014965;
  --aa-green: #94c045;
  --aa-green-dark: #5f8a1c;
  --aa-gold: #f5c84c;
  --aa-ink: #1d2b36;
  --aa-muted: #5a6772;
  --aa-line: #e6ebe0;
  --aa-soft: #f5f8f0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--aa-navy);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ---- Header ---- */
#header.site-header {
  height: 70px;
  display: flex;
  align-items: center;
  /* no backdrop-filter here: it would trap the fixed mobile menu inside the header */
  background: #fff;
  box-shadow: none;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  z-index: 997;
}

#header.site-header.header-scrolled,
#header.site-header.is-open {
  border-bottom-color: var(--aa-line);
  box-shadow: 0 8px 30px -18px rgba(0, 33, 67, 0.45);
}

.sh-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  min-width: 0;
}

.sh-logo {
  width: 40px;
  height: 40px;
}

.sh-wordmark {
  width: auto;
  height: 24px;
}

.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 3px solid var(--aa-gold);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Desktop nav */
.sh-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sh-nav ul a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--aa-ink);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.sh-nav ul a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--aa-green);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.sh-nav ul a:hover {
  color: var(--aa-navy);
}

.sh-nav ul a:hover::after,
.sh-nav ul a.is-active::after {
  transform: scaleX(1);
}

.sh-nav ul a.is-active {
  color: var(--aa-navy);
  font-weight: 700;
}

.sh-nav-extra {
  display: none;
}

.sh-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.sh-call {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--aa-navy);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.sh-call i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--aa-soft);
  color: var(--aa-green-dark);
  font-size: 15px;
}

.sh-call small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--aa-muted);
}

.sh-call:hover {
  color: var(--aa-green-dark);
}

.sh-cta {
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--aa-green);
  color: var(--aa-navy);
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.sh-cta:hover {
  background: #a6ca63;
  color: var(--aa-navy);
  transform: translateY(-1px);
}

.sh-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--aa-soft);
  cursor: pointer;
  position: relative;
}

.sh-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--aa-navy);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.sh-toggle span:nth-child(1) { top: 15px; }
.sh-toggle span:nth-child(2) { top: 21px; }
.sh-toggle span:nth-child(3) { top: 27px; }

.is-open .sh-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.is-open .sh-toggle span:nth-child(2) { opacity: 0; }
.is-open .sh-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1299px) {
  .sh-call span {
    display: none;
  }
}

/* Mobile / tablet nav */
@media (max-width: 1099px) {
  .sh-toggle {
    display: block;
  }

  .sh-call {
    display: none;
  }

  .sh-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 16px 32px;
    background: #fff;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  .is-open .sh-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .sh-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-width: 560px;
    margin: 0 auto;
  }

  .sh-nav ul a {
    padding: 16px 12px;
    font-size: 19px;
    border-bottom: 1px solid var(--aa-line);
  }

  .sh-nav ul a::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 4px;
    height: 22px;
    margin-top: -11px;
    transform: scaleY(0);
  }

  .sh-nav ul a.is-active::after,
  .sh-nav ul a:hover::after {
    transform: scaleY(1);
  }

  .sh-nav-extra {
    display: grid;
    gap: 10px;
    max-width: 560px;
    margin: 24px auto 0;
  }

  .sh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 999px;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 16px;
  }

  .sh-btn-primary {
    background: var(--aa-green);
    color: var(--aa-navy);
  }

  .sh-btn-ghost {
    border: 2px solid #d4dbe1;
    color: var(--aa-navy);
  }

  .sh-btn:hover {
    color: var(--aa-navy);
  }

  body.sh-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 575px) {
  .sh-cta {
    display: none;
  }

  .sh-inner {
    gap: 12px;
  }

  .sh-brand {
    gap: 10px;
  }

  .sh-logo {
    width: 36px;
    height: 36px;
  }

  .sh-wordmark {
    height: 20px;
  }
}

@media (max-width: 359px) {
  .sh-wordmark {
    height: 16px;
  }
}

/* ---- Footer ---- */
#footer.site-footer {
  position: relative;
  padding: 0 0 28px;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(148, 192, 69, 0.12), transparent 60%),
    linear-gradient(160deg, var(--aa-navy) 0%, #01304f 55%, #00172f 100%);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: var(--aa-green);
}

.site-footer a:focus-visible {
  outline: 3px solid var(--aa-gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.sf-help {
  position: relative;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sf-help h2 {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  color: #fff;
  margin: 0 0 8px;
}

.sf-help p {
  margin: 0;
  max-width: 620px;
  line-height: 1.7;
}

.sf-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: none;
}

.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
}

.site-footer .sf-btn-primary {
  background: var(--aa-green);
  color: var(--aa-navy);
}

.site-footer .sf-btn-primary:hover {
  background: #a6ca63;
  color: var(--aa-navy);
}

.site-footer .sf-btn-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.site-footer .sf-btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

.sf-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.2fr;
  gap: 40px;
  padding: 48px 0 40px;
}

.sf-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  line-height: 1.25;
  color: #fff;
}

.site-footer .sf-logo:hover {
  color: #fff;
}

.sf-logo b {
  font-size: 20px;
  letter-spacing: 0.5px;
}

.sf-brand p {
  line-height: 1.7;
  margin: 0 0 14px;
  max-width: 320px;
}

.sf-ext {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.sf-col h3 {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--aa-green);
  margin: 6px 0 18px;
}

.sf-links,
.sf-people,
.sf-mail {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sf-links li + li {
  margin-top: 10px;
}

.sf-zoom p {
  margin: 0 0 10px;
}

.sf-zoom .sf-zoom-id {
  display: inline-flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 14px;
}

.sf-zoom-id span {
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.sf-zoom a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.sf-zoom a + a {
  margin-top: 8px;
}

.sf-people li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sf-people li:first-child {
  padding-top: 0;
}

.sf-people span {
  color: #fff;
  font-weight: 600;
}

.sf-people a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--aa-green);
}

.sf-people a:hover {
  color: #fff;
}

.sf-mail {
  margin-top: 16px;
}

.sf-mail li + li {
  margin-top: 6px;
}

.sf-mail a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  word-break: break-all;
}

.sf-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.sf-bottom p {
  margin: 0;
}

.sf-bottom a {
  color: rgba(255, 255, 255, 0.75);
}

/* Back to top button sits above the footer colours */
.back-to-top {
  border-radius: 50% !important;
  background: var(--aa-green) !important;
}

.back-to-top i {
  color: var(--aa-navy) !important;
}

@media (max-width: 1099px) {
  .sf-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .sf-help {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 0 32px;
  }

  .sf-help-actions,
  .sf-help-actions .sf-btn {
    width: 100%;
  }

  .sf-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 0 32px;
  }

  .sf-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *,
  .site-footer * {
    transition: none !important;
  }
}
