:root {
  --black: #000;
  --white: #fff;
  --gray-1: #e6e6e6;
  --teal: #46cfea;
  --teal-light: #a2e7f4;
  --slate: #354463;
  --hairline: rgba(255, 255, 255, .16);
  --space-section: 96px;
  --font-family: Lato, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray-1);
  background-color: var(--black);
}

::selection { background: var(--teal); color: var(--black); }

.contain {
  width: 1140px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav is ~89px tall and the section tags straddle 23px above the section top */
#what-we-do, #why-us, #contact-us { scroll-margin-top: 120px; }

/* ---------- Navigation ---------- */

.navigation-bar {
  background-color: var(--black);
  font-family: var(--font-family);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-contain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand-link { display: inline-flex; align-items: center; padding: 16px 0; }
.brand-link img { display: block; max-width: 230px; height: auto; }

.hamburger-button {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  padding: 8px 12px;
}

.icon-close { display: none; }
.hamburger-button[aria-expanded="true"] .icon-open { display: none; }
.hamburger-button[aria-expanded="true"] .icon-close { display: inline; }

.navigation-items { display: flex; align-items: center; gap: 4px; }

.navigation-item {
  font-family: var(--font-family);
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 9px 20px;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
  transition: opacity .2s, background-color .4s, color .4s;
}

.navigation-item:hover { opacity: .9; }
.navigation-item:active { opacity: .8; }
.navigation-item.current { color: var(--teal); font-weight: 700; }

.navigation-item.button {
  background-color: var(--teal);
  color: var(--black);
  font-weight: 700;
}

.navigation-item.button:hover {
  background-color: var(--teal-light);
  color: var(--black);
  opacity: 1;
}

.navigation-item:focus-visible,
.hamburger-button:focus-visible,
.submit-button:focus-visible,
.cta-button:focus-visible,
.footer-email:focus-visible,
.brand-link:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.cta-button {
  display: inline-block;
  background-color: var(--teal);
  color: var(--black);
  font-family: var(--font-family);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 40px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s;
}

.cta-button:hover { background-color: var(--teal-light); }

/* ---------- Hero ---------- */

.home-hero-section {
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .2) 45%, rgba(0, 0, 0, 0) 70%),
    url("/assets/hero.webp");
  background-position: 50%;
  background-size: cover;
  display: flex;
  align-items: center;
  min-height: clamp(480px, 70vh, 760px);
  padding: 96px 0;
}

.hero-inner { max-width: 640px; }

.headline-hero {
  font-family: var(--font-family);
  color: var(--white);
  margin: 0;
  font-size: 60px;
  font-weight: 400;
  line-height: 1.05;
}

.hero-sub {
  color: var(--gray-1);
  font-size: 18px;
  line-height: 1.5;
  max-width: 480px;
  margin: 24px 0 32px;
}

/* ---------- Section tag ---------- */

.block-tag {
  display: inline-block;
  background-color: var(--teal);
  color: var(--black);
  font-family: var(--font-family);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 11px 40px;
  font-size: 14px;
  line-height: 24px;
  font-weight: 700;
}

.block-tag-wrap {
  display: flex;
  justify-content: center;
  transform: translateY(-23px);
  margin-bottom: -23px;
}

/* ---------- What we do ---------- */

.what-we-do-section { background-color: var(--black); }

.what-we-do-row {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  padding: 52px 0 var(--space-section);
  border-bottom: 1px solid var(--hairline);
}

.what-we-do-column { flex: 1 1 0; min-width: 0; }

.heading-sm {
  font-family: var(--font-family);
  color: var(--white);
  margin: 0;
  padding-top: 20px;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.3;
}

.heading-sm.black { color: var(--black); font-weight: 400; }

.underline {
  background-color: var(--teal);
  width: 48px;
  height: 2px;
  margin: 10px 0;
  transition: width .4s ease;
}

.what-we-do-column:hover .underline { width: 100%; }

.column-text { color: var(--gray-1); margin: 0; }

/* ---------- Why us ---------- */

.why-us-section { background-color: var(--black); padding: 0 0 var(--space-section); }

.why-us-header { text-align: left; }

.headline-lrg {
  font-family: var(--font-family);
  color: var(--gray-1);
  margin: 40px 0 60px;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.27;
  max-width: 100%;
}

.why-us-row {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: space-around;
  margin-bottom: 40px;
}

.why-us-card { flex: 1 1 280px; max-width: 360px; position: relative; }

.why-us-image {
  position: absolute;
  top: 0;
  left: 10%;
  width: 90%;
  height: 224px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .35);
  z-index: 10;
}

.why-us-card-body {
  background-color: var(--white);
  margin-top: 30px;
  width: 90%;
  padding: 220px 30px 30px;
  text-align: left;
}

.why-us-card-body p {
  font-family: var(--font-family);
  color: var(--slate);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  margin: 12px 0 0;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin: 0 0 8px;
}

/* ---------- Contact ---------- */

.contact-us-section {
  background-color: #0b0e11;
  border-top: 1px solid var(--hairline);
  padding: 0 0 var(--space-section);
}

.contact-us-row { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 40px; }

.header-col { flex: 1 1 300px; }
.contact-form-col { flex: 1 1 380px; }

.contact-note { color: var(--gray-1); margin: 20px 0 0; }
.contact-note a { color: var(--teal); }

.field-label {
  display: block;
  color: var(--gray-1);
  font-weight: 400;
  margin: 14px 0 6px;
}

.field-input {
  width: 100%;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: #333;
  background-color: var(--white);
  border: 1px solid #ccc;
}

.field-input:user-invalid { border-color: #d33; }

.field-input:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 1px;
}

.textarea { min-height: 120px; resize: vertical; }

.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-button {
  float: right;
  background-color: var(--teal);
  border: 0;
  cursor: pointer;
  font-family: var(--font-family);
  color: var(--black);
  letter-spacing: 2px;
  text-transform: uppercase;
  width: 50%;
  margin-top: 20px;
  padding: 10px 40px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color .2s;
}

.submit-button:hover { background-color: var(--teal-light); }
.submit-button:disabled { opacity: .7; cursor: default; }

.form-note {
  clear: both;
  padding-top: 16px;
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

.form-done, .form-fail {
  clear: both;
  margin-top: 40px;
  padding: 16px;
  text-align: center;
}

.form-done { background-color: #ddd; color: #333; }
.form-fail { background-color: #ffdede; color: #a00; }
.form-fail a { color: inherit; font-weight: 700; }

.send-another {
  display: inline-block;
  background: none;
  border: 0;
  padding: 0;
  margin-top: 8px;
  color: #333;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

/* ---------- Footer ---------- */

.footer-section {
  border-top: 1px solid var(--hairline);
  background-color: var(--black);
  padding: 60px 0 24px;
}

.footer-contain {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-brand img { max-width: 160px; }

.footer-col { width: 250px; max-width: 33%; }

.footer-heading {
  font-family: var(--font-family);
  color: var(--teal);
  letter-spacing: .4px;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 18px;
}

.footer-divider { background-color: var(--hairline); height: 1px; margin-bottom: 12px; }

.footer-links { display: flex; flex-direction: column; gap: 8px; }

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

.footer-links a:hover { color: var(--teal); }

.footer-address {
  font-family: var(--font-family);
  color: var(--white);
  margin-bottom: 12px;
}

.footer-email {
  font-family: var(--font-family);
  color: var(--gray-1);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--hairline);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

/* ---------- Reveal animations ---------- */

/* Hidden state is gated on the .js class (added by site.js itself), so content
   stays visible when JS is disabled or the script fails to load. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
  }

  .js [data-reveal].revealed {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Tablet (<=991px) ---------- */

@media (max-width: 991px) {
  :root { --space-section: 64px; }

  .contain { width: 660px; }

  .hamburger-button { display: block; }

  .navigation-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--black);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .4s ease, visibility 0s .4s;
  }

  .navigation-items.open {
    max-height: 320px;
    visibility: visible;
    transition: max-height .4s ease, visibility 0s 0s;
  }

  .navigation-item {
    color: var(--teal);
    text-align: center;
    padding: 15px 30px;
  }

  .navigation-item:hover {
    background-color: var(--white);
    color: var(--black);
    opacity: 1;
  }

  .home-hero-section { padding: 80px 0; background-position: 0 0; }
  .headline-hero { font-size: 48px; }

  .what-we-do-row { gap: 0 24px; padding-top: 37px; }
  .what-we-do-column { flex: 0 0 auto; width: calc(50% - 12px); margin-bottom: 40px; }

  .headline-lrg { font-size: 28px; }

  .why-us-row { gap: 0; flex-direction: column; }
  .why-us-card { flex-basis: auto; max-width: 100%; margin: 0 0 64px; }
  .why-us-card:last-child { margin-bottom: 0; }
  .why-us-image { height: 200px; }
  .why-us-card-body { padding-top: 200px; }

  .header-col { flex-basis: 100%; margin-bottom: 0; }
  .contact-form-col { flex-basis: 100%; }
  .submit-button { width: 100%; float: none; }

  .footer-contain { flex-direction: column; align-items: center; }
  .footer-col { width: 50%; max-width: 50%; text-align: center; }
  .footer-links { align-items: center; }
}

/* ---------- Small tablet (<=767px) ---------- */

@media (max-width: 767px) {
  .footer-col { text-align: left; }
  .footer-links { align-items: flex-start; }
}

/* ---------- Mobile (<=479px) ---------- */

@media (max-width: 479px) {
  .contain { padding: 0 20px; }

  .navigation-item { color: var(--gray-1); }
  .navigation-item:hover { color: var(--black); }

  .hero-inner { text-align: center; margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .headline-hero { font-size: 38px; }

  .what-we-do-row { gap: 0 24px; }
  .what-we-do-column { margin-bottom: 24px; }

  .heading-sm { font-size: 20px; }
  .headline-lrg { font-size: 22px; }

  .column-text { font-size: 14px; line-height: 20px; }

  .why-us-image { width: 80%; }
  .why-us-card-body { width: 100%; text-align: center; }

  .footer-col { width: 100%; max-width: 100%; }
}
