:root {
  --brand: #194f6e;
  --accent: #00bfff;
  --orange: #f99a00;
  --ink: #252525;
  --heading: #353535;
  --muted: #777;
  --footer: #f5f5f5;
  --line: #dfdfdf;
  --content: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--heading); line-height: 1.25; }
h2, h3 { font-weight: 400; }

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-right: auto;
  margin-left: auto;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: #fff;
  padding: 8px 12px;
  color: var(--brand);
  font-weight: 700;
}
.skip-link:focus { transform: none; }

.site-header { min-height: 220px; background: #fff; }
.header-inner {
  position: relative;
  min-height: 220px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.site-branding {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
}
.site-logo { width: auto; height: 62px; margin-bottom: 12px; }
.site-title {
  color: var(--brand);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
}
.site-description {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.25;
  text-transform: uppercase;
}
.site-nav {
  position: absolute;
  top: 68px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 39px;
}
.site-nav a {
  color: var(--brand);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
}
.hero::before {
  position: absolute;
  inset: 0;
  background: rgba(37, 37, 37, 0.5);
  content: "";
}
.hero-home {
  min-height: 485px;
  background-image: url("/assets/img/hero-home.jpg");
}
.hero-page {
  min-height: 250px;
  background-image: url("/assets/img/hero-page.jpg");
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  align-items: center;
  justify-content: flex-end;
  padding: 55px 50px;
}
.hero-copy { width: 60%; margin-left: auto; text-align: right; }
.hero-home .hero-copy { width: 58%; }
.hero h1 {
  margin-bottom: 20px;
  color: #fff;
  font-size: 56px;
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 1.14;
}
.hero-page h1 { margin: 0; font-size: 52px; }
.hero-copy p { margin: 0 0 25px; font-size: 16px; line-height: 1.65; }
.hero-button {
  display: inline-block;
  background: var(--orange);
  padding: 12px 55px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.hero-button:hover, .hero-button:focus { background: #e58d00; }

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-top: 20px;
  padding-bottom: 60px;
}
.service img {
  width: 250px;
  height: 250px;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  background: #f7f7f7;
  object-fit: contain;
  object-position: center;
}
.service h2 { margin: 19px 0 14px; color: var(--accent); font-size: 21px; }
.service p { min-height: 128px; margin-bottom: 10px; }
.service > a { font-size: 15px; text-decoration: none; }

.mission {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
  padding-top: 20px;
  padding-bottom: 50px;
}
.mission h2, .approach h2, .contact-content h2 { margin-bottom: 18px; font-size: 26px; }
.mission p, .approach p { margin-bottom: 22px; }
.mission > img {
  width: 100%;
  max-height: 505px;
  object-fit: cover;
  object-position: center 22%;
}

.call-to-action {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(220px, 3fr);
  gap: 40px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 38px;
  padding-bottom: 55px;
}
.call-to-action h2 { margin-bottom: 8px; font-size: 26px; }
.call-to-action p { margin-bottom: 0; }
.cta-button {
  display: block;
  background: var(--accent);
  padding: 14px 30px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.cta-button:hover, .cta-button:focus { background: #00a8df; }

.approach {
  display: grid;
  grid-template-columns: minmax(0, 1.63fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-top: 20px;
  padding-bottom: 60px;
}
.approach > img { width: 100%; }
.team-section { padding-top: 10px; padding-bottom: 60px; }
.team-section > h2 { margin-bottom: 38px; font-size: 26px; text-align: center; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.team-member { text-align: center; }
.team-member img {
  width: 235px;
  height: 300px;
  margin: 0 auto 17px;
  object-fit: cover;
}
.team-member h3 { margin-bottom: 6px; color: var(--accent); font-size: 21px; }
.team-member p { margin-bottom: 0; }

.contact-content { min-height: 410px; padding-top: 20px; padding-bottom: 70px; }
.contact-intro { margin-bottom: 42px; }
.contact-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
}
.contact-columns > div { min-height: 170px; }
.contact-details { padding-left: 30px; }
.contact-details a { text-decoration: none; }
.email-button { display: inline-block; margin-top: 8px; }
.error-page { min-height: 420px; padding-top: 70px; padding-bottom: 70px; text-align: center; }
.error-page h1 { margin-bottom: 15px; color: var(--brand); font-size: 42px; font-weight: 300; }

.site-footer { background: var(--footer); }
.footer-content { min-height: 190px; padding-top: 42px; padding-bottom: 35px; }
.footer-content h2 { margin-bottom: 18px; font-size: 19px; }
.footer-content p { margin-bottom: 0; font-size: 14px; }
.footer-content a { text-decoration: none; }
.copyright { background: #fff; padding: 26px 0; color: #777; font-size: 13px; }

@media (max-width: 800px) {
  .site-header, .header-inner { min-height: 116px; }
  .header-inner { padding-top: 17px; padding-bottom: 17px; }
  .site-logo { height: 32px; margin-bottom: 7px; }
  .site-title { font-size: 25px; letter-spacing: -1.5px; }
  .nav-toggle {
    position: absolute;
    top: 21px;
    right: 0;
    display: block;
    width: 38px;
    height: 38px;
    border: 0;
    background: #fff;
    padding: 0;
    color: var(--brand);
    font-size: 0;
    cursor: pointer;
  }
  .nav-toggle::before {
    position: absolute;
    top: 16px;
    left: 2px;
    width: 34px;
    height: 5px;
    background: var(--brand);
    box-shadow: 0 -10px 0 var(--brand), 0 10px 0 var(--brand);
    content: "";
  }
  .site-nav {
    top: 96px;
    right: 0;
    left: 0;
    z-index: 3;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid #e3e3e3;
    background: #fff;
  }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { border-bottom: 1px solid #e9e9e9; padding: 10px 14px; }
  .hero-home { min-height: 377px; }
  .hero-page { min-height: 210px; }
  .hero-inner { padding: 35px 35px; }
  .hero-copy, .hero-home .hero-copy { width: 80%; }
  .hero h1 { font-size: 32px; }
  .hero-button { width: 173px; padding-right: 12px; padding-left: 12px; text-align: center; }
  .services, .mission, .approach, .team-grid, .contact-columns { grid-template-columns: 1fr; }
  .services, .mission, .approach, .team-grid { gap: 40px; }
  .service p { min-height: 0; }
  .mission > img { max-height: 540px; }
  .call-to-action { grid-template-columns: 1fr; gap: 24px; }
  .contact-details { padding-left: 0; }
}

@media (max-width: 480px) {
  .site-description { font-size: 9px; }
  .hero-inner { padding-right: 50px; padding-left: 50px; }
  .hero-copy, .hero-home .hero-copy { width: 100%; text-align: right; }
  .hero h1 { letter-spacing: -1px; }
  .services { width: calc(100% - 80px); }
  .team-member img { width: min(235px, 100%); height: auto; }
}
