:root {
  --navy: #253850;
  --cyan: #63CFE3;
  --cyan-deep: #45B8D4;
  --body: #4A5868;
  --muted: #767676;
  --border: #DDD;
  --white: #FFF;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--white);
  color: var(--body);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  background: var(--navy);
  position: relative;
  z-index: 20;
}

.header-inner {
  align-items: center;
  display: flex;
  height: 115px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1280px;
  padding: 0 40px;
}

.logo-link,
.logo-link img {
  display: block;
}

.primary-nav {
  align-items: center;
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.primary-nav a,
.nav-menu-trigger {
  color: var(--white);
  text-decoration: none;
  transition: color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.nav-menu-trigger:hover,
.nav-menu-trigger:focus-visible,
.primary-nav .is-active {
  color: var(--cyan);
}

.phone-nav {
  align-items: center;
  display: flex;
  gap: 8px;
  letter-spacing: 0;
  text-transform: none;
}

.nav-divider {
  background: hsla(0, 0%, 100%, .25);
  display: block;
  height: 22px;
  width: 1px;
}

.nav-group {
  display: inline-flex;
  padding: 20px 0;
  position: relative;
}

.nav-menu-trigger {
  background: none;
  border: 0;
  cursor: default;
  font: inherit;
  letter-spacing: inherit;
  padding: 0;
  text-transform: inherit;
}

.dropdown-panel {
  background: var(--navy);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  display: grid;
  left: -22px;
  min-width: 220px;
  opacity: 0;
  padding: 8px 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.dropdown-panel a {
  display: block;
  padding: 11px 22px;
  white-space: nowrap;
}

.nav-group:hover .dropdown-panel,
.nav-group:focus-within .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.home-hero {
  background: #22A6BE;
  height: min(42vw, 600px);
  min-height: 360px;
  overflow: hidden;
  position: relative;
}

.hero-slide {
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 700ms ease;
}

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

.hero-slide img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-arrow {
  background: rgba(0, 0, 0, .15);
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-size: 20px;
  height: 46px;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  z-index: 2;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: rgba(0, 0, 0, .35);
}

.hero-arrow--prev {
  left: 24px;
}

.hero-arrow--next {
  right: 24px;
}

.home-intro,
.page-section {
  margin: 0 auto;
  max-width: 1280px;
  padding: 64px 40px 90px;
}

.page-section {
  padding-top: 72px;
}

h1 {
  color: var(--navy);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 auto;
  max-width: 1060px;
  text-align: center;
}

.lead {
  color: var(--body);
  font-size: 17px;
  line-height: 1.65;
  margin: 26px auto 0;
  max-width: 800px;
  text-align: center;
}

.home-cards {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
}

.home-copy {
  font-size: 16px;
  line-height: 1.7;
  margin: 64px auto 0;
  max-width: 820px;
  padding-bottom: 10px;
}

.content-grid {
  align-items: start;
  display: grid;
  gap: 64px;
  grid-template-columns: 1fr 384px;
  margin-top: 64px;
}

.content-single {
  margin: 64px auto 0;
  max-width: 800px;
}

.content-body {
  font-size: 16px;
  line-height: 1.7;
}

.content-body p {
  margin: 0 0 22px;
}

.content-body p:last-child {
  margin-bottom: 0;
}

.content-body h2 {
  color: var(--navy);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.25;
  margin: 36px 0 14px;
}

.content-body h2:first-child {
  margin-top: 0;
}

.content-body strong {
  color: var(--navy);
}

.content-body ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 22px;
  padding-left: 22px;
}

.main-image {
  display: block;
  margin: 0 0 40px;
  width: 100%;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.link-card {
  display: block;
  text-decoration: none;
}

.card-image {
  display: block;
  height: 210px;
  overflow: hidden;
}

.card-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
  width: 100%;
}

.card-image--duotone {
  background: #3fb6d2;
}

.card-image--duotone img {
  filter: grayscale(1);
  mix-blend-mode: multiply;
}

.link-card:hover img,
.link-card:focus-visible img {
  transform: scale(1.025);
}

.card-label {
  align-items: center;
  background: var(--cyan);
  display: flex;
  justify-content: space-between;
  min-height: 56px;
  padding: 17px 22px;
}

.card-label span:first-child {
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
}

.triangle {
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--navy);
  border-top: 6px solid transparent;
  height: 0;
  width: 0;
}

.enquiry-band {
  background: linear-gradient(115deg, var(--cyan-deep), var(--cyan));
}

.enquiry-inner {
  margin: 0 auto;
  max-width: 1280px;
  padding: 52px 40px 56px;
}

.enquiry-inner h2 {
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 34px;
  text-align: center;
}

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.enquiry-form--band {
  align-items: start;
  display: grid;
  gap: 16px 30px;
  grid-template-columns: 1fr 1fr;
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.field {
  background: var(--white);
  display: block;
  padding: 9px 14px 10px;
}

.contact-form-panel .field {
  border: 1px solid var(--border);
}

.field span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.field input,
.field textarea {
  background: transparent;
  border: 0;
  color: var(--navy);
  display: block;
  font: inherit;
  font-size: 15px;
  outline: 0;
  padding: 4px 0 0;
  resize: vertical;
  width: 100%;
}

.button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.button--send {
  background: var(--navy);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  padding: 17px;
  width: 100%;
}

.button--send:hover,
.button--send:focus-visible {
  background: #1c2c40;
}

.button--send:disabled {
  cursor: default;
  opacity: .72;
}

.honeypot {
  height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 0;
}

.form-note {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.contact-form-panel h2 {
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
}

.office-details {
  display: grid;
  gap: 24px 40px;
  grid-template-columns: 1fr 1fr;
}

.office-details span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}

.office-details p,
.office-details a {
  align-items: center;
  color: var(--body);
  display: flex;
  gap: 10px;
  margin: 0;
  text-decoration: none;
}

.news-section {
  min-height: 360px;
}

.news-empty {
  font-size: 16px;
  margin: 56px 0 0;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
}

.footer-inner {
  margin: 0 auto;
  max-width: 1280px;
  padding: 34px 40px 30px;
}

.footer-contact {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 15px;
  gap: 18px 56px;
}

.footer-contact span,
.footer-contact a {
  align-items: center;
  color: var(--white);
  display: flex;
  gap: 12px;
  text-decoration: none;
}

.footer-bottom {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 18px;
  justify-content: space-between;
  margin-top: 30px;
}

.footer-links {
  display: flex;
  gap: 34px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--cyan);
}

.copyright {
  align-items: center;
  color: hsla(0, 0%, 100%, .8);
  display: flex;
  gap: 10px;
}

.atlas-logo {
  height: 20px;
  object-fit: contain;
  width: 20px;
}

@media (max-width: 980px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 24px 22px;
    row-gap: 22px;
  }

  .primary-nav {
    flex-wrap: wrap;
    gap: 16px 22px;
    justify-content: center;
  }

  .nav-divider {
    display: none;
  }

  .dropdown-panel {
    left: 50%;
    transform: translate(-50%, 4px);
  }

  .nav-group:hover .dropdown-panel,
  .nav-group:focus-within .dropdown-panel {
    transform: translate(-50%, 0);
  }

  .content-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-hero {
    height: 52vw;
    min-height: 280px;
  }

  .home-intro,
  .page-section,
  .enquiry-inner,
  .footer-inner {
    padding-left: 22px;
    padding-right: 22px;
  }

  h1 {
    font-size: 34px;
  }

  .home-cards,
  .sidebar,
  .enquiry-form--band,
  .office-details {
    grid-template-columns: 1fr;
  }

  .content-grid {
    gap: 42px;
  }

  .footer-bottom,
  .copyright {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
}

@media (max-width: 480px) {
  .primary-nav {
    align-items: center;
    flex-direction: row;
    gap: 14px 20px;
    justify-content: center;
  }

  .nav-group {
    align-items: center;
    flex-direction: column;
    padding: 0;
  }

  .dropdown-panel {
    background: #1f3148;
    box-shadow: none;
    display: none;
    margin-top: 8px;
    min-width: min(220px, calc(100vw - 44px));
    opacity: 1;
    pointer-events: auto;
    position: static;
    transform: none;
  }

  .nav-group:hover .dropdown-panel,
  .nav-group:focus-within .dropdown-panel {
    display: grid;
    transform: none;
  }

  .dropdown-panel a {
    text-align: center;
  }

  .phone-nav {
    font-size: 14px;
    justify-content: center;
    width: 100%;
  }

  .hero-arrow {
    height: 40px;
    width: 40px;
  }
}
