/* AIS Figma header and hero overrides. Keep this file narrow so the production homepage layout stays intact. */
#masthead {
  box-shadow: rgba(32, 28, 27, 0.08) 0 1px 0;
}

#masthead + #content {
  margin-top: 161px;
}

#masthead .ais-figma-top-rule {
  background: #e92e26;
  height: 4px;
  width: 100%;
}

#masthead .site-topbar {
  background: #faf8f7;
  height: 37px;
  padding: 4px 0;
}

#masthead .site-topbar > div,
#masthead .header-middle > div,
.main-navigation > div {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: 1024px;
  width: 100%;
}

#masthead .site-topbar > div:after,
#masthead .header-middle > div:after,
.main-navigation > div:after {
  content: none;
  display: none;
}

#masthead .site-topbar > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 29px;
}

#masthead .site-topbar .site-socials,
#masthead .site-topbar .site-topbar-phone {
  float: none;
}

#masthead .site-topbar .site-socials {
  color: #5f5956;
  font-size: 12px;
  line-height: 1.2;
}

#masthead .site-topbar .site-socials .label-socials {
  color: #5f5956;
  font-weight: 500;
  text-transform: none;
}

#masthead .site-topbar .site-socials a.social-media-network {
  color: #e92e26;
  font-size: 12px;
  margin-left: 4px;
}

#masthead .site-topbar .site-topbar-phone a.phone {
  color: #201c1b;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

#masthead .site-topbar .site-topbar-phone a.phone:before {
  color: #e92e26;
  content: "\f098";
  margin-right: 6px;
}

#masthead .header-middle {
  background: #ffffff;
  overflow: visible;
}

#masthead .header-middle > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 86px;
}

#masthead .header-middle .site-branding,
#masthead .header-middle .site-contact {
  float: none;
  height: auto;
  width: auto;
}

#masthead .header-middle .site-branding {
  align-items: center;
  column-gap: 8px;
  display: grid;
  grid-template-columns: 46px auto;
  margin: 0;
}

#masthead .header-middle .site-branding .site-logo {
  grid-row: 1 / 3;
  height: 46px;
  width: 46px;
}

#masthead .header-middle .site-branding .site-logo img {
  height: 46px;
  max-height: 46px;
  max-width: 46px;
  object-fit: contain;
  position: static;
  transform: none !important;
  width: 46px;
}

#masthead .header-middle .site-branding .site-title,
#masthead .header-middle .site-branding .site-description {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static !important;
  width: auto;
}

#masthead .header-middle .site-branding .site-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

#masthead .header-middle .site-branding .site-title a {
  color: #201c1b;
  text-decoration: none;
}

#masthead .header-middle .site-branding .site-description {
  color: #6c6663;
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

#masthead .header-middle .site-contact {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  padding: 0;
}

#masthead .header-middle .header-advice-button {
  background: #e92e26;
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  padding: 12px 34px;
  text-decoration: none;
}

#masthead .header-middle .header-advice-button:hover,
#masthead .header-middle .header-advice-button:focus {
  background: #cf1e17;
  color: #ffffff;
}

#masthead .header-middle .mobile-header-phone {
  display: none;
}

.main-navigation {
  background-color: #e92e26;
  min-height: 34px;
  overflow: visible;
  padding: 8px 0;
  position: relative;
  z-index: 50;
}

.main-navigation > div {
  display: flex;
  justify-content: center;
}

.main-navigation #primary-menu > li > a {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.ais-video-hero {
  align-items: center;
  background: #0d1718;
  color: #ffffff;
  display: flex;
  min-height: calc(100vh - 161px);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.ais-video-hero__media {
  height: 100%;
  left: 0;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 100%;
}

.ais-video-hero__shade {
  background: rgba(0, 0, 0, 0.55);
  inset: 0;
  position: absolute;
}

.ais-video-hero__inner {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1024px;
  padding: 72px 0;
  position: relative;
  width: calc(100% - 48px);
  z-index: 1;
}

.ais-video-hero__eyebrow {
  color: #faf8f7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.ais-video-hero__title {
  color: #ffffff;
  font-size: 68px;
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 12px;
  max-width: 720px;
}

.ais-video-hero__copy {
  color: #f2f0ec;
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 24px;
  max-width: 540px;
}

.ais-video-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.ais-video-hero__button {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  justify-content: center;
  line-height: 1.2;
  min-height: 52px;
  padding: 0 24px;
  text-align: center;
  text-decoration: none;
}

.ais-video-hero__button--primary {
  background: #e92e26;
  color: #ffffff;
  min-width: 188px;
}

.ais-video-hero__button--primary:visited {
  color: #ffffff;
}

.ais-video-hero__button--secondary {
  background: #ffffff;
  color: #211f1e;
  min-width: 172px;
}

.ais-video-hero__button--secondary:visited {
  color: #211f1e;
}

.ais-video-hero__button:hover,
.ais-video-hero__button:focus {
  text-decoration: none;
}

.ais-video-hero__button--primary:hover,
.ais-video-hero__button--primary:focus {
  background: #ffffff !important;
  color: #e92e26 !important;
}

.ais-video-hero__button--secondary:hover,
.ais-video-hero__button--secondary:focus {
  background: #e92e26 !important;
  color: #ffffff !important;
}

body.home #introduction {
  min-height: 58vh;
  position: relative;
  z-index: 1;
}

body.home #introduction > div {
  min-height: inherit;
}

body.home #introduction .section-content {
  align-items: center;
  display: flex;
}

body.home #service-featured-top {
  display: none;
}

body.home .featured-category#family-visas.section {
  align-items: center;
  display: flex;
  min-height: 620px;
  padding: 110px 0;
}

body.home .featured-category#family-visas.section > div {
  width: 100%;
}

body.home #services-featured-caption {
  background: #f7f4f1;
  padding: 86px 0 18px;
}

body.home #services-featured-caption > div,
body.home #services-featured > div {
  box-sizing: border-box;
  max-width: 1024px;
  width: 100%;
}

body.home #services-featured-caption .section-header .section-title {
  margin-top: 0;
}

body.home #services-featured-caption .section-content {
  max-width: 920px;
}

body.home #services-featured {
  background: #f7f4f1;
  padding: 18px 0 92px;
}

body.home #services-featured .section-content {
  display: grid !important;
  gap: 24px !important;
  grid-auto-flow: row !important;
  grid-auto-rows: auto !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
}

body.home #services-featured article {
  background: #ffffff;
  border-radius: 8px !important;
  box-shadow: 0 14px 38px rgba(32, 28, 27, 0.08);
  display: flex;
  flex-direction: column;
  float: none !important;
  grid-column: auto !important;
  grid-row: auto !important;
  height: auto !important;
  margin: 0 !important;
  min-height: 100%;
  overflow: hidden;
  width: auto !important;
}

body.home #services-featured article:nth-of-type(n) {
  grid-column-end: auto !important;
  grid-row-end: auto !important;
}

body.home #services-featured article .entry-image,
body.home #services-featured article:last-of-type .entry-image {
  background-position: center;
  background-size: cover;
  border-radius: 0 !important;
  display: block !important;
  flex: 0 0 220px;
  height: 220px !important;
  margin: 0;
}

body.home #services-featured article > div {
  display: flex;
  flex: 1;
  font-size: 1rem;
  line-height: 1.35;
}

body.home #services-featured article > div > div,
body.home #services-featured article:last-of-type > div > div {
  align-items: stretch;
  background: #ffffff !important;
  color: #201c1b !important;
  display: block !important;
  height: auto !important;
  padding: 24px !important;
  position: static !important;
  text-align: left !important;
  width: 100%;
}

body.home #services-featured article:last-of-type > div > div:before {
  content: none !important;
  display: none !important;
}

body.home #services-featured article:last-of-type > div > div > div {
  float: none;
  padding-left: 0;
  width: auto;
}

body.home #services-featured article .entry-header,
body.home #services-featured article:hover .entry-header,
body.home #services-featured article:last-of-type .entry-header {
  height: auto;
  padding: 0 !important;
}

body.home #services-featured article .entry-header .entry-title,
body.home #services-featured article:hover .entry-header .entry-title,
body.home #services-featured article:last-of-type .entry-header .entry-title {
  font-size: 23px !important;
  font-weight: 300;
  line-height: 1.12;
  margin: 0 0 14px;
  text-transform: none;
}

body.home #services-featured article .entry-header .entry-title a,
body.home #services-featured article:last-of-type .entry-header .entry-title a {
  color: #e92e26 !important;
}

body.home #services-featured article .entry-summary,
body.home #services-featured article:hover .entry-summary,
body.home #services-featured article:last-of-type .entry-summary {
  color: #201c1b;
  display: block !important;
  font-size: 15px !important;
  line-height: 1.45;
}

body.home #services-featured article a.button,
body.home #services-featured article:last-of-type a.button {
  background: #e92e26;
  border-color: #e92e26;
  color: #ffffff !important;
  font-size: 13px;
  margin-top: 12px;
}

@media (min-width: 64em) {
  .main-navigation #primary-menu {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: center;
  }

  .main-navigation #primary-menu > li {
    margin-left: 0;
  }

  .main-navigation #primary-menu > .menu-item-has-children > a:after {
    font-size: 0.85em;
    margin-left: 5px;
  }
}

@media (max-width: 56.24em) {
  #masthead + #content {
    margin-top: 112px;
  }

  #masthead .site-topbar {
    display: none;
  }

  #masthead .header-middle > div,
  .main-navigation > div,
  .ais-video-hero__inner {
    width: calc(100% - 32px);
  }

  .main-navigation {
    left: 0 !important;
    margin-left: 0 !important;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    padding: 0;
    right: auto;
    transform: none !important;
    width: 100%;
  }

  .main-navigation > div {
    display: block;
    max-width: none;
  }

  .main-navigation .menu-toggle {
    float: none;
    margin: 0 auto 0 0;
    min-height: 50px;
  }

  .main-navigation.toggled ul.menu {
    box-sizing: border-box;
    padding: 24px 16px;
    text-align: left;
  }

  .main-navigation.toggled ul.menu li {
    display: block;
    margin-left: 0;
    padding: 0;
    position: relative;
  }

  .main-navigation.toggled ul.menu a {
    display: block;
    font-size: 16px;
    line-height: 1.25;
    padding: 7px 0;
    word-break: normal;
  }

  .main-navigation.toggled ul.menu ul {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    display: block;
    left: auto;
    margin: 4px 0 8px 18px;
    padding: 8px 12px;
    position: static;
    top: auto;
    width: auto;
  }

  .main-navigation.toggled ul.menu ul a {
    font-size: 14px;
    white-space: normal !important;
  }

  #masthead .header-middle > div {
    min-height: 58px;
  }

  #masthead .header-middle .site-branding {
    grid-template-columns: 42px minmax(0, auto);
  }

  #masthead .header-middle .site-branding .site-logo,
  #masthead .header-middle .site-branding .site-logo img {
    height: 42px;
    max-height: 42px;
    max-width: 42px;
    width: 42px;
  }

  #masthead .header-middle .site-branding .site-title {
    font-size: 15px;
  }

  #masthead .header-middle .site-branding .site-description {
    font-size: 10px;
  }

  #masthead .header-middle .header-advice-button {
    display: none;
  }

  .ais-video-hero {
    min-height: calc(100vh - 112px);
  }

  .ais-video-hero__inner {
    padding: 56px 0;
  }

  .ais-video-hero__title {
    font-size: 42px;
  }

  .ais-video-hero__copy {
    font-size: 16px;
  }

}

@media (max-width: 47.99em) {
  #masthead + #content {
    margin-top: 130px;
  }

  #masthead .header-middle > div {
    min-height: 76px;
  }

  #masthead .header-middle .site-branding {
    display: block;
    width: 54px;
  }

  #masthead .header-middle .site-branding .site-logo,
  #masthead .header-middle .site-branding .site-logo img {
    height: 54px;
    max-height: 54px;
    max-width: 54px;
    width: 54px;
  }

  #masthead .header-middle .site-branding .site-title,
  #masthead .header-middle .site-branding .site-description {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
  }

  #masthead .header-middle .site-contact {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 0;
    text-align: right;
    width: calc(100% - 70px) !important;
  }

  #masthead .header-middle .mobile-header-phone {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
    text-align: right;
    width: 100%;
  }

  #masthead .header-middle .mobile-header-phone a.phone {
    color: #201c1b;
    display: inline-flex;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
  }

  #masthead .header-middle .mobile-header-phone a.phone:before {
    color: #e92e26;
    content: "\f098";
    margin-right: 6px;
  }

  .main-navigation {
    max-height: calc(100vh - 130px);
  }

  .ais-video-hero {
    min-height: calc(100vh - 130px);
  }

  body.home #services-featured-caption {
    padding: 56px 0 14px;
  }

  body.home #services-featured-caption > div,
  body.home #services-featured > div {
    width: calc(100% - 32px);
  }

  body.home #services-featured-caption .section-content {
    max-width: none;
  }

  body.home #services-featured-caption .section-content p {
    font-size: 18px;
    line-height: 1.55;
  }

  body.home #services-featured {
    padding: 14px 0 64px;
  }

  body.home #services-featured .section-content {
    grid-template-columns: 1fr !important;
  }

  body.home #services-featured article .entry-image,
  body.home #services-featured article:last-of-type .entry-image {
    flex-basis: 230px;
    height: 230px !important;
  }
}
