/* Pathogenuity LLC — self-hosted static site
   Type scale and geometry reproduce the published site's computed values exactly.
   Fractional px sizes are the original site's rem scaling; kept verbatim so text metrics match. */

:root {
  --font: "Helvetica Neue", Arial, sans-serif;

  --body-size: 19.728px;
  --body-lh: 35.5104px;
  --h2-size: 45.648px;
  --h2-lh: 59.8171px;
  --h4-size: 21.456px;
  --h4-lh: 29.7981px;

  --ink: #000;
  --paper: #fff;
  --footer-ink: #fafafa;
  --field-bg: #fafafa;

  --content: 1210px;
  --col: 605px;
  --header-h: 186px;
  --gutter: 58px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

p { margin: 0 0 var(--body-lh); }
p:last-child { margin-bottom: 0; }

h2 {
  margin: 0;
  font-size: var(--h2-size);
  line-height: var(--h2-lh);
  font-weight: 500;
  text-align: center;
}

h4 {
  margin: 0 0 6px;
  font-size: var(--h4-size);
  line-height: var(--h4-lh);
  font-weight: 500;
}

a { color: inherit; }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  height: var(--header-h);
}

.site-nav {
  position: absolute;
  left: var(--gutter);
  top: 73px;
  display: flex;
  gap: 31px;
}

.site-nav a {
  font-size: var(--body-size);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

/* Only the current page's nav link is underlined */
.site-nav a[aria-current="page"] { text-decoration: underline; }

.site-logo {
  position: absolute;
  left: 50%;
  top: 43px;
  transform: translateX(-50%);
  display: block;
  width: 93px;
  height: 100px;
}

.site-logo img { display: block; width: 100%; height: 100%; }

.nav-toggle { display: none; }

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

.site-footer {
  height: 88px;
  background: #000;
  color: var(--footer-ink);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
}

.site-footer > * {
  flex: 1 1 0;
  text-align: center;
  font-size: var(--h4-size);
  line-height: var(--h4-lh);
  font-weight: 500;
  margin: 0;
}

.site-footer a { color: #fff; }

/* ---------- Home ---------- */

.home {
  max-width: var(--content);
  margin: 0 auto;
  padding: 2px 0 50px;
}

.home-row {
  display: grid;
  grid-template-columns: var(--col) var(--col);
}

.home-cell { text-align: center; }
.home-cell h2 { margin-bottom: var(--body-lh); }

/* Paragraph blocks are narrower than their column and centered within it,
   matching the live site's 403px text blocks (this drives the line wrapping). */
.home-cell p {
  max-width: 403px;
  margin-left: auto;
  margin-right: auto;
}

/* "Data management" is centered under the pair above it */
.home-cell--wide {
  width: var(--col);
  margin: 43px auto 0;
}

/* ---------- Team ---------- */

.team {
  max-width: 1102px;
  margin: 0 auto;
  padding: 15px 0 67px;
  display: grid;
  grid-template-columns: 490px 490px;
  gap: 0 122px;
  justify-content: center;
}

.team-photo {
  aspect-ratio: 490 / 621;
  margin-bottom: 50px;
}

/* Landscape 4608x2592 originals rendered as portrait, centered focal point —
   matches the live site's object-fit crop rather than pre-cropping the files. */
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

/* ---------- Support ---------- */

.support {
  max-width: 1006px;
  margin: 0 auto;
  padding: 89px 0 72px;
}

.support h2 { margin-bottom: 89px; }

.support-grid {
  display: grid;
  grid-template-columns: 396px 498px;
  gap: 112px;
  align-items: start;
}

.support-intro a { color: inherit; }

.contact-card {
  background: var(--field-bg);
  border-radius: 10px;
  padding: 29.8516px;
}

.field { margin-bottom: 27px; }
.field:last-of-type { margin-bottom: 0; }

.field-group-title {
  font-size: var(--body-size);
  line-height: 1.5;
  margin-bottom: 10px;
}

.field-label {
  display: block;
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.field-label .req {
  color: #6b6b6b;
  font-size: 14px;
}

.field-help {
  font-size: 16px;
  line-height: 1.5;
  color: #4a4a4a;
  margin: 0 0 10px;
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field-pair--phone { grid-template-columns: 172px 1fr; }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font-family: var(--font);
  font-size: var(--body-size);
  color: var(--ink);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 33.4369px;
  padding: 0 20px;
  height: 58px;
  appearance: none;
  -webkit-appearance: none;
}

textarea {
  height: 106px;
  border-radius: 20px;
  padding: 16px 20px;
  line-height: 1.5;
  resize: vertical;
}

select {
  padding-right: 44px;
  cursor: pointer;
  /* chevron drawn inline so the page has no external asset dependencies */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
}

select:invalid, select.placeholder { color: #8c8c8c; }

input::placeholder, textarea::placeholder { color: #8c8c8c; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.45);
}

.form-actions {
  margin-top: 28px;
  text-align: center;
}

.btn-submit {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fff;
  background: #000;
  border: 0;
  border-radius: 36px;
  height: 72px;
  padding: 0 42px;
  cursor: pointer;
}

.btn-submit:hover { opacity: 0.85; }

/* ---------- Responsive ---------- */

@media (max-width: 1330px) {
  .home, .team { max-width: calc(100% - var(--gutter) * 2); }
  .home-row { grid-template-columns: 1fr 1fr; }
  .home-cell--wide { width: 50%; }
  .team { grid-template-columns: 1fr 1fr; gap: 0 60px; }
  .support { max-width: calc(100% - var(--gutter) * 2); }
  .support-grid { grid-template-columns: 1fr 1.2fr; gap: 60px; }
}

@media (max-width: 900px) {
  :root {
    --body-size: 17px;
    --body-lh: 30px;
    --h2-size: 34px;
    --h2-lh: 44px;
    --gutter: 24px;
  }

  /* Mobile header mirrors the live layout: small logo top-left, burger top-right. */
  .site-header { height: 82px; }
  .site-logo {
    left: 24px;
    top: 26px;
    transform: none;
    width: 28px;
    height: 30px;
  }

  /* Live mobile reflows the home sections: Data management leads. */
  .home {
    display: flex;
    flex-direction: column;
  }
  .home-cell--wide { order: -1; }

  /* Nav collapses to a hamburger that reveals a full-screen overlay,
     mirroring the live site's mobile menu. */
  .site-nav {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: #fff;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .site-nav a { font-size: 40px; }

  .nav-toggle {
    display: block;
    position: absolute;
    right: 24px;
    top: 42px;
    transform: translateY(-50%);
    z-index: 30;
    width: 34px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    background: #000;
    margin: 6px 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  body.nav-open { overflow: hidden; }
  body.nav-open .site-nav { transform: translateX(0); }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .home {
    gap: 56px;
    padding-top: 24px;
    padding-bottom: 70px;
  }
  .home-row { grid-template-columns: 1fr; gap: 56px; }
  .home-cell--wide { width: 100%; margin-top: 0; }

  .team { grid-template-columns: 1fr; gap: 56px; }
  .team-photo { margin-bottom: 24px; }

  .support { padding-top: 40px; }
  .support h2 { margin-bottom: 44px; }
  .support-grid { grid-template-columns: 1fr; gap: 40px; }

  .site-footer {
    height: auto;
    flex-direction: column;
    gap: 6px;
    padding: 24px var(--gutter);
  }
}

@media (max-width: 520px) {
  .field-pair, .field-pair--phone { grid-template-columns: 1fr; }
}
