:root {
  --orange: #e28150;
  --peach: #f7d9cb;
  --black: #000;
  --white: #fff;
  --gutter: 3vw;
  --header-h: 127px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14.4px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3, h4 { font-weight: 400; margin: 0 0 1em; }
h1 { font-size: 62px; line-height: 0.97; }
h2 { font-size: 39px; line-height: 1.03; margin-top: 1.6em; }
h2:first-child { margin-top: 0; }
h3 { font-size: 33px; line-height: 1.05; }
h4 { font-size: 22px; line-height: 1.08; margin-bottom: 1.4em; }
p  { margin: 0 0 1em; }
ul { margin: 0 0 2em; padding-left: 40px; }
li { margin-bottom: 0.5em; }
.orange { color: var(--orange); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--white); padding: 0.5rem 1rem; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: var(--white);
}
.logo img { width: 158px; }
.site-nav { display: flex; gap: 1.2em; }
.site-nav a { text-decoration: none; font-size: 14.4px; }
.site-nav a:hover { opacity: 0.6; }
.nav-toggle, .burger { display: none; }

/* Sections */
main { padding-top: var(--header-h); }
.sec { padding: 31px 0 60px; }
.sec--black { background: var(--black); color: var(--white); padding-top: 0; }
.wrap { padding: 0 var(--gutter); }

.hero-gif { width: 62%; margin-bottom: 16px; }
.full { width: 100%; }
.sec--black .full { margin-bottom: 30px; }
.col-wide { max-width: 62%; }
.col-xl { max-width: 78%; }
.col-half { max-width: 46%; }

.brain { display: flex; align-items: flex-start; gap: 35px; margin-top: 70px; }
.brain__text { flex: 0 0 29.5%; }
.brain__img { flex: 1; min-width: 0; margin-top: 5px; }

.banner {
  background: url(images/what-we-do-banner.webp) center / cover no-repeat;
  color: var(--white);
  min-height: 90px;
  display: flex; align-items: center;
}
.banner h1 { margin: 0; }

/* Orange-framed card sections */
.inset { background: var(--orange); padding: 38px var(--gutter); }
.inset__card { background: var(--white); padding: 119px var(--gutter) 90px; }
.inset .full { margin-bottom: 44px; }
.inset h2 { margin-top: 0; margin-bottom: 0.6em; }
.inset p { font-size: 17.5px; }

.btn {
  display: inline-block;
  margin-top: 1.5em;
  padding: 15.4px 25.6px;
  border: 0; border-radius: 0;
  background: var(--orange); color: var(--white);
  font: 500 12.8px/1 Roboto, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase; text-decoration: none;
  cursor: pointer;
}
.btn:hover { opacity: 0.85; }
.btn--lg { padding: 22px 40px; font-size: 14.4px; }

/* Contact */
.contact { display: flex; gap: 11px; align-items: flex-start; }
.contact__form { flex: 0 0 55%; }
.contact__ack { flex: 1; padding-top: 75px; }
.contact__ack p { font-size: 17.5px; }
.map { display: block; width: 289px; margin: 40px auto 0; }

form { font-size: 17.5px; margin-top: 75px; }
fieldset { border: 0; padding: 0; margin: 0 0 1em; }
legend { padding: 0; margin-bottom: 0.4em; }
.row { display: flex; gap: 20px; }
.row label { flex: 1; font-size: 12px; }
label { display: block; margin-bottom: 1.2em; }
.req { font-size: 12px; opacity: 0.7; }
input, textarea {
  display: block; width: 100%;
  margin-top: 6px; padding: 12px;
  border: 1px solid #a9a9a9; border-radius: 0;
  background: #fafafa;
  font: inherit; font-size: 16px; letter-spacing: normal;
}
textarea { resize: vertical; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1em; font-size: 16px; min-height: 1.3em; }
.form-status.is-ok { color: #2f7a3a; }
.form-status.is-error { color: #b3261e; }

.site-footer { background: var(--peach); padding: 23px var(--gutter) 48px; text-align: right; }
.site-footer p { margin: 0; }

/* Mobile */
@media (max-width: 767px) {
  :root { --gutter: 16px; --header-h: 84px; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  h3 { font-size: 28px; }
  h4 { font-size: 19px; }
  .logo img { width: 120px; }

  .burger { display: flex; flex-direction: column; gap: 7px; cursor: pointer; padding: 10px 0; z-index: 2; }
  .burger span { width: 28px; height: 2px; background: var(--black); transition: transform 0.2s; }
  .nav-toggle:checked + .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle:checked + .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: center; justify-content: center; gap: 0.6em;
    background: var(--white);
    visibility: hidden; opacity: 0; transition: opacity 0.2s;
  }
  .site-nav a { font-size: 44px; }
  .nav-toggle:checked ~ .site-nav { visibility: visible; opacity: 1; }

  .hero-gif, .col-wide, .col-xl, .col-half { width: 100%; max-width: none; }
  .brain, .contact, .row { flex-direction: column; gap: 0; }
  .row { gap: 0; }
  .brain__text, .contact__form { flex: none; width: 100%; }
  .brain__img { width: 100%; }
  .brain { margin-top: 30px; }
  .contact__ack { padding-top: 20px; }
  form { margin-top: 30px; }
  .inset { padding: 16px; }
  .inset__card { padding: 40px 16px; }
  .banner { min-height: 70px; }
  .site-footer { text-align: left; }
}
