:root {
  --navy: #174A7E;
  --navy-deep: #0D355F;
  --navy-soft: #356A98;

  --red: #C82034;
  --red-dark: #A9182A;
  --red-soft: #F3D2D8;

  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --ink: #172033;
  --muted: #52677F;
  --line: #D8DEE7;

  --focus: #F0B323;

  --shadow: 0 20px 50px rgba(13, 53, 95, 0.10);
}


/* =========================
   GLOBAL
   ========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: var(--off-white);
  color: var(--ink);

  font-family: 'DM Sans', sans-serif;

  font-size: 18px;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a,
button,
input {
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

::selection {
  background: var(--red-soft);
  color: var(--navy-deep);
}

h1,
h2,
h3 {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
}

p {
  text-wrap: pretty;
}

.eyebrow {
  margin: 0 0 14px;

  color: var(--red);

  font-size: 14px;
  font-weight: 900;

  letter-spacing: 0.16em;

  text-transform: uppercase;
}


/* =========================
   HEADER
   ========================= */

.site-header {
  position: relative;
  z-index: 50;

  min-height: 94px;

  display: flex;
  align-items: stretch;
  justify-content: space-between;

  background: var(--white);

  border-bottom: 4px solid var(--red);

  box-shadow:
    0
    4px
    18px
    rgba(13, 53, 95, 0.06);
}


/* =========================
   BRAND
   ========================= */

.brand {
  display: flex;
  align-items: center;

  gap: 15px;

  padding:
    15px
    max(3vw, 28px);

  color: var(--navy-deep);

  text-decoration: none;
  text-transform: uppercase;
}


/* Candidate photo replacing AA logo */

.brand-photo {
  width: 58px;
  height: 58px;

  flex: 0 0 auto;

  object-fit: cover;
  object-position: center 18%;

  border-radius: 50%;

  border: 3px solid var(--red);

  background: var(--white);

  box-shadow:
    0
    3px
    10px
    rgba(13, 53, 95, 0.14);
}


.brand-copy {
  display: grid;

  gap: 4px;

  line-height: 1;
}

.brand-copy strong {
  color: var(--navy-deep);

  font-family: 'Barlow Condensed', sans-serif;

  font-size: 29px;
  font-weight: 900;

  letter-spacing: 0.025em;
}

.brand-copy small {
  color: var(--navy);

  font-size: 10.5px;
  font-weight: 900;

  line-height: 1.2;

  letter-spacing: 0.075em;
}


/* =========================
   NAVIGATION
   ========================= */

.site-header nav {
  display: flex;
  align-items: center;

  gap: 15px;

  padding:
    0
    max(3vw, 28px);
}

.site-header nav a {
  padding:
    13px
    16px
    10px;

  color: var(--navy-deep);

  border-bottom:
    3px
    solid
    transparent;

  font-size: 16px;
  font-weight: 800;

  line-height: 1.2;

  letter-spacing: 0.035em;

  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--navy);

  border-bottom-color: var(--red);
}

.site-header nav .nav-cta {
  margin-left: 6px;

  padding:
    14px
    23px;

  background: var(--red);
  color: var(--white);

  border:
    2px
    solid
    var(--red);
}

.site-header nav .nav-cta:hover,
.site-header nav .nav-cta[aria-current="page"] {
  background: var(--red-dark);
  color: var(--white);

  border-color: var(--red-dark);

  transform: translateY(-1px);
}


/* =========================
   MOBILE MENU
   ========================= */

.menu-toggle {
  display: none;

  align-self: center;

  margin-right: 22px;

  padding: 8px;

  background: transparent;

  border: 0;

  cursor: pointer;
}

.menu-toggle i {
  display: block;

  width: 30px;
  height: 3px;

  margin: 5px 0;

  background: var(--navy-deep);
}


/* =========================
   BUTTONS
   ========================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 13px;

  min-height: 52px;

  padding:
    14px
    22px;

  border:
    2px
    solid
    transparent;

  font-family: 'DM Sans', sans-serif;

  font-size: 14px;
  font-weight: 900;

  letter-spacing: 0.05em;

  text-decoration: none;
  text-transform: uppercase;

  cursor: pointer;
}

.button-primary {
  background: var(--red);
  color: var(--white);

  border-color: var(--red);
}

.button-primary:hover {
  background: var(--red-dark);

  border-color: var(--red-dark);

  transform: translateY(-2px);
}

.button-light {
  background: var(--white);
  color: var(--navy-deep);

  border-color: var(--white);
}

.button-light:hover {
  background: var(--red-soft);

  border-color: var(--red-soft);

  transform: translateY(-2px);
}


/* =========================
   FOOTER
   ========================= */

footer {
  display: grid;

  grid-template-columns:
    auto
    1fr
    auto;

  align-items: center;

  gap: 30px;

  padding:
    32px
    max(5vw, 30px);

  background: var(--navy-deep);
  color: #DFE8F1;

  border-top:
    6px
    solid
    var(--red);

  font-size: 13px;
}

footer .brand {
  padding: 0;
}


/* Smaller photo in footer */

footer .brand-photo {
  width: 48px;
  height: 48px;

  border-width: 2px;
}

footer .brand-copy strong {
  color: var(--white);

  font-size: 22px;
}

footer .brand-copy small {
  display: none;
}


/* Footer information */

.footer-meta {
  display: flex;
  align-items: center;

  gap: 28px;
}


.footer-office {
  display: grid;

  gap: 2px;
}


.footer-office p {
  margin: 0;
}


.footer-office p:first-child {
  color: #DFE8F1;

  font-size: 14px;
}


.footer-office p:last-child {
  color: var(--white);

  font-size: 13px;
  font-weight: 800;

  letter-spacing: 0.035em;

  text-transform: uppercase;
}


footer p {
  margin: 0;
}

footer a:not(.brand) {
  color: var(--white);

  font-weight: 800;

  text-decoration-color: var(--red-soft);

  text-underline-offset: 4px;
}

footer a:not(.brand):hover {
  color: var(--red-soft);
}

.footer-copy {
  text-align: right;
}


/* =========================
   ACCESSIBILITY
   ========================= */

.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;
}


/* =========================
   TABLET / MOBILE
   ========================= */

@media (max-width: 900px) {

  .site-header {
    min-height: 80px;
  }

  .brand {
    padding:
      12px
      20px;
  }

  .brand-photo {
    width: 49px;
    height: 49px;
  }

  .brand-copy strong {
    font-size: 24px;
  }

  .brand-copy small {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-header nav {
    display: none;

    position: absolute;

    top: 80px;

    left: 0;
    right: 0;

    flex-direction: column;
    align-items: stretch;

    gap: 3px;

    padding: 22px;

    background: var(--white);

    border-bottom:
      5px
      solid
      var(--red);

    box-shadow: var(--shadow);
  }

  .site-header nav.open {
    display: flex;
  }

  .site-header nav a {
    padding:
      14px
      11px;

    font-size: 17px;

    border-bottom:
      1px
      solid
      var(--line);
  }

  .site-header nav .nav-cta {
    margin:
      8px
      0
      0;

    text-align: center;
  }

  footer {
    grid-template-columns: 1fr;

    gap: 18px;
  }

  .footer-meta {
    flex-wrap: wrap;

    gap: 18px;
  }

  .footer-copy {
    text-align: left;
  }
}


@media (max-width: 520px) {

  body {
    font-size: 17px;
  }

  .brand-copy strong {
    font-size: 21px;
  }

  footer {
    padding:
      27px
      22px;
  }
}


/* =========================
   SOCIAL MEDIA
   ========================= */

.social-icon,
.contact-social-icon {
  display: grid;
  place-items: center;

  flex: 0 0 auto;
}


.social-icon svg,
.contact-social-icon svg {
  width: 100%;
  height: 100%;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* Footer social links */

.footer-socials {
  display: flex;
  align-items: center;

  gap: 10px;
}


.footer-social-link {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  padding:
    8px
    11px;

  color: var(--white);

  border:
    1px
    solid
    rgba(255, 255, 255, 0.22);

  border-radius: 4px;

  font-size: 12px;
  font-weight: 800;

  line-height: 1;

  letter-spacing: 0.035em;

  text-decoration: none !important;

  text-transform: uppercase;
}


.footer-social-link .social-icon {
  width: 20px;
  height: 20px;

  color: var(--red-soft);
}


.footer-social-link:hover {
  background:
    rgba(255, 255, 255, 0.08);

  color: var(--white) !important;

  border-color: var(--red-soft);

  transform: translateY(-1px);
}


/* =========================
   CONTACT SOCIAL SECTION
   ========================= */

.contact-social {
  max-width: 600px;

  margin-top: 32px;

  padding-top: 22px;

  border-top:
    1px
    solid
    var(--line);
}


.contact-social-label {
  margin:
    0
    0
    13px;

  color: var(--navy-deep);

  font-family:
    'Barlow Condensed',
    sans-serif;

  font-size: 17px;
  font-weight: 900;

  letter-spacing: 0.09em;

  text-transform: uppercase;
}


.contact-social-links {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 12px;
}


.contact-social-link {
  display: flex;
  align-items: center;

  gap: 13px;

  min-width: 0;

  padding:
    13px
    15px;

  background: var(--white);

  color: var(--navy-deep);

  border:
    1px
    solid
    var(--line);

  border-left:
    4px
    solid
    var(--red);

  border-radius: 4px;

  box-shadow:
    0
    5px
    16px
    rgba(13, 53, 95, 0.05);

  text-decoration: none;
}


.contact-social-link:hover {
  border-color: var(--red);

  transform: translateY(-2px);

  box-shadow:
    0
    9px
    22px
    rgba(13, 53, 95, 0.09);
}


.contact-social-icon {
  width: 38px;
  height: 38px;

  padding: 8px;

  color: var(--white);

  background: var(--navy-deep);

  border-radius: 50%;
}


.contact-social-link:last-child
.contact-social-icon {
  background: var(--red);
}


.contact-social-copy {
  display: grid;

  min-width: 0;

  gap: 1px;
}


.contact-social-copy small {
  color: var(--red);

  font-size: 10px;
  font-weight: 900;

  letter-spacing: 0.08em;
}


.contact-social-copy strong {
  overflow-wrap: anywhere;

  color: var(--navy-deep);

  font-size: 14px;
}


/* =========================
   SOCIAL RESPONSIVE
   ========================= */

@media (max-width: 900px) {

  .footer-socials {
    flex-wrap: wrap;
  }

}


@media (max-width: 520px) {

  .contact-social-links {
    grid-template-columns: 1fr;
  }

  .footer-socials {
    width: 100%;
  }

  .footer-social-link {
    flex:
      1
      1
      auto;

    justify-content: center;
  }

}