:root {
  --blue: #014a90;
  --blue-dark: #003d77;
  --red: #db0f30;
  --text: #2f2f2f;
  --muted: #666;
  --line: #e7e7e7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1170px, calc(100% - 30px));
  margin: 0 auto;
}

.top-menu {
  height: 48px;
  line-height: 48px;
  font-size: 12px;
  color: #fff;
  background: var(--blue);
}

.top-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 7px;
}

.language-option {
  padding: 1px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
  opacity: .72;
}

.language-option:hover,
.language-option:focus,
.language-option.is-active {
  border-bottom-color: currentColor;
  opacity: 1;
}

.language-option.is-active {
  font-weight: 700;
}

.language-switch-mobile {
  display: none;
}

.navbar {
  position: fixed;
  z-index: 20;
  top: 48px;
  right: 0;
  left: 0;
  min-height: 80px;
  background: #fff;
  box-shadow: none;
}

.navbar.is-small {
  top: 0;
  min-height: 56px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 3px 4px rgba(0, 0, 0, .1);
}

.nav-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 80px;
  color: var(--blue);
}

.navbar.is-small .brand {
  min-height: 56px;
}

.brand-mark {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 3px solid var(--blue);
  color: var(--red);
  font-weight: 800;
  font-size: 20px;
}

.brand-text strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-text small {
  display: block;
  margin-top: 3px;
  color: #5c5c5c;
  font-size: 11px;
}

.nav-links {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  height: 80px;
  padding: 0 22px;
  color: #312b2b;
  font-size: 16px;
  transition: color .2s ease, background-color .2s ease;
}

.navbar.is-small .nav-links a {
  height: 56px;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #fff;
  background: var(--blue);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-self: center;
  border: 0;
  background: transparent;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #333;
}

.flash {
  position: relative;
  margin-top: 80px;
  overflow: hidden;
  background: #111;
}

.slides {
  position: relative;
  height: min(39.0625vw, 750px);
  min-height: 310px;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .45s ease;
}

.slide.is-active {
  opacity: 1;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: 42px;
  height: 70px;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  color: rgba(255, 255, 255, .82);
  background: rgba(0, 0, 0, .22);
  font-size: 50px;
  cursor: pointer;
}

.slide-prev {
  left: 22px;
}

.slide-next {
  right: 22px;
}

.slide-dots {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.slide-dots button {
  width: 12px;
  height: 12px;
  border: 1px solid #fff;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, .25);
}

.slide-dots .is-active {
  background: #fff;
}

.about-us {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  padding: 70px 0 54px;
}

.about-copy h1 {
  margin: 0;
  color: var(--red);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 42px;
  line-height: 1;
}

.section-kicker {
  margin: 13px 0 18px;
  color: #000;
  font-size: 16px;
}

.about-copy p {
  color: #555;
  font-size: 14px;
  line-height: 26px;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  height: 42px;
  margin-top: 16px;
  color: #fff;
  background: var(--red);
  transition: background .2s ease;
}

.about-btn:hover,
.about-btn:focus {
  background: var(--blue);
}

.about-media {
  align-self: center;
}

.about-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 10px 0 70px;
}

.process-card {
  display: grid;
  min-height: 170px;
  place-items: center;
  padding: 20px 10px 28px;
  background: #fff;
}

.process-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  transition: opacity .2s ease;
}

.process-card span {
  margin-top: 20px;
  color: #bebebe;
  font-size: 16px;
}

.process-card:hover img {
  opacity: .75;
}

.process-card:hover span {
  color: #0071bf;
}

.services-bg {
  padding: 58px 0 70px;
  background: linear-gradient(rgba(0, 0, 0, .56), rgba(0, 0, 0, .56)), url("assets/advance/pics/20190427/services-bg.jpg") center / cover fixed;
}

.section-title {
  margin: 0 0 42px;
  text-align: center;
}

.section-title h2 {
  margin: 0;
  color: #333;
  font-size: 38px;
  font-weight: 700;
}

.section-title span {
  display: block;
  width: 86px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--red);
}

.section-title p {
  margin: 18px 0 0;
  color: #555;
  font-size: 18px;
}

.section-title-light h2,
.section-title-light p {
  color: #fff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  overflow: hidden;
  background: #fff;
}

.service-card img {
  width: 100%;
  aspect-ratio: 330 / 206;
  object-fit: cover;
  transition: opacity .2s ease;
}

.service-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 14px;
  color: #333;
  text-align: center;
  font-size: 16px;
  line-height: 22px;
  background: #fff;
}

.service-card:hover img {
  opacity: .78;
}

.service-card:hover span {
  color: #0071bf;
}

.case-bg {
  padding: 60px 0 70px;
  background: #f7f7f7;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.case-card {
  overflow: hidden;
  background: #fff;
}

.case-card img {
  width: 100%;
  aspect-ratio: 270 / 180;
  object-fit: cover;
}

.case-card span {
  display: block;
  padding: 14px 10px 18px;
  color: #333;
  text-align: center;
}

.case-card:hover span {
  color: #0071bf;
}

.news-section {
  padding: 60px 0 66px;
}

.news-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 30px;
}

.news-image {
  min-height: 430px;
  background: url("assets/advance/pics/20190427/news-bg.jpg") center / cover no-repeat;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  min-height: 82px;
  padding: 0 0 20px;
}

.news-list time {
  float: left;
  display: block;
  width: 60px;
  height: 60px;
  margin-right: 15px;
  padding: 4px 2px 0;
  background: #f5f5f5;
  color: var(--red);
  text-align: center;
}

.news-list time strong,
.news-list time em {
  display: block;
}

.news-list time strong {
  padding-top: 3px;
  font-size: 23px;
}

.news-list time em {
  font-size: 12px;
  font-style: normal;
}

.news-list a {
  color: #333;
  line-height: 22px;
}

.news-list a:hover {
  color: #f00;
}

.news-list p {
  margin: 8px 0 0;
  color: #999;
  font-size: 12px;
  line-height: 18px;
}

.mobile-foot {
  display: none;
}

footer {
  padding: 34px 0 30px;
  color: #fff;
  background: #014a90;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.4fr .7fr;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand .brand-mark {
  border-color: #fff;
  color: #fff;
}

.footer-grid p {
  margin: 0 0 10px;
  color: #fff;
  font-size: 13px;
  line-height: 24px;
}

.footer-menu-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.footer-menu strong,
.footer-menu a {
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 28px;
}

.footer-menu strong {
  margin-bottom: 8px;
  font-weight: 700;
}

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

.qr-box {
  text-align: center;
}

.qr-code {
  width: 96px;
  height: 96px;
  margin: 0 auto 9px;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px 16px, #111 16px 24px, transparent 24px),
    linear-gradient(#111 10px, transparent 10px 16px, #111 16px 24px, transparent 24px),
    #fff;
  background-size: 24px 24px;
  border: 8px solid #fff;
}

@media (max-width: 900px) {
  .brand-text strong {
    font-size: 14px;
    white-space: normal;
  }

  .nav-links a {
    padding: 0 12px;
    font-size: 14px;
  }

  .about-us,
  .news-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 62px;
  }

  .top-menu {
    display: none;
  }

  .navbar,
  .navbar.is-small {
    top: 0;
    min-height: 50px;
  }

  .brand,
  .navbar.is-small .brand {
    min-height: 50px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .brand-text strong {
    max-width: 220px;
    font-size: 12px;
  }

  .brand-text small {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-row {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    border-top: 1px solid var(--line);
    background: #fff;
  }

  .nav-links.is-open {
    display: block;
  }

  .nav-links a,
  .navbar.is-small .nav-links a {
    height: 42px;
    padding: 0 14px;
  }

  .flash {
    margin-top: 50px;
  }

  .slides {
    height: 230px;
    min-height: 230px;
  }

  .slide-arrow {
    display: none;
  }

  .about-us {
    padding: 45px 0 35px;
  }

  .about-copy h1,
  .section-title h2 {
    font-size: 26px;
  }

  .section-title p {
    font-size: 14px;
    line-height: 22px;
  }

  .quick-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-bottom: 45px;
  }

  .process-card {
    min-height: 120px;
  }

  .process-card img {
    width: 52px;
    height: 52px;
  }

  .process-card span {
    margin-top: 12px;
    font-size: 13px;
    line-height: 18px;
  }

  .services-bg {
    background-attachment: scroll;
  }

  .news-image {
    min-height: 240px;
  }

  .footer-menu-wrap {
    grid-template-columns: repeat(3, 1fr);
  }

  .mobile-foot {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 58px;
    background: #fff;
    border-top: 1px solid #ddd;
  }

  .mobile-foot a,
  .mobile-foot button {
    display: grid;
    place-items: center;
    border: 0;
    color: #555;
    background: transparent;
    font: inherit;
    font-size: 12px;
  }

  .mobile-foot span {
    display: block;
    font-size: 20px;
    line-height: 20px;
  }

  .mobile-foot b {
    font-weight: 400;
  }

  .language-switch-mobile {
    display: flex;
    align-self: center;
    margin-right: 8px;
    margin-left: auto;
    color: #555;
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 20px, 1170px);
  }

  .slides {
    height: 190px;
    min-height: 190px;
  }

  .quick-links,
  .service-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .case-grid {
    gap: 18px;
  }

  .footer-menu-wrap {
    grid-template-columns: 1fr;
  }
}
