/* AMI Environmental Testing — hand-built static site
   Brand navy #001A66 (logo & shirts), action amber #F5B700 for call buttons.
   Headings: Manrope. Body: Source Sans 3. Sections kept tight on purpose. */

:root {
  --navy: #001A66;
  --navy-2: #0A2A85;
  --navy-deep: #00114A;
  --blue: #1F5FD1;
  --sky: #EAF1FC;
  --gray: #F3F5F9;
  --amber: #F5B700;
  --amber-deep: #E0A400;
  --ink: #18202F;
  --muted: #4A5468;
  --line: rgba(0, 26, 102, 0.12);
  --radius: 12px;
  --shadow: 0 14px 34px -18px rgba(0, 26, 102, 0.35);
  --header-h: 76px;
  --head: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.125rem; line-height: 1.6; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, .h3 { font-family: var(--head); color: var(--navy); line-height: 1.18; margin: 0 0 0.6rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.05rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 800; }
h3, .h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 0.9rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 900px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--head); font-weight: 700; font-size: 1rem; padding: 0.8rem 1.35rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s; cursor: pointer; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-call { background: var(--amber); color: var(--navy-deep); }
.btn-call:hover { background: var(--amber-deep); color: var(--navy-deep); }
.btn-lg { font-size: 1.12rem; padding: 0.95rem 1.6rem; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.btn-row, .hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand img { height: 58px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.15rem; }
.site-nav li { margin: 0; }
.site-nav a:not(.btn) { white-space: nowrap; color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 0.97rem; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--amber); }
.nav-call { padding: 0.6rem 1.05rem; font-size: 0.97rem; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: 0.6rem; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 2px; position: relative; content: ""; transition: transform .2s; }
.bars::before { position: absolute; top: -8px; }
.bars::after { position: absolute; top: 8px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { background: linear-gradient(180deg, #fff 0%, var(--sky) 100%); padding: 2.75rem 0 3rem; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.eyebrow { font-family: var(--head); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.7rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.trust { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-weight: 600; color: var(--navy); font-size: 1rem; }
.trust li { margin: 0; display: flex; align-items: center; gap: 0.4rem; }
.trust li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23F5B700' stroke-width='3.2' d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center/12px no-repeat; flex: none; }
.hero-img img { border-radius: 18px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center 30%; }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(180deg, #fff 0%, var(--sky) 100%); padding: 2.4rem 0 2.6rem; border-bottom: 1px solid var(--line); }
.ph-inner { display: block; }
.page-hero.has-img .ph-inner { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2.5rem; align-items: center; }
.ph-img img { border-radius: 16px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; object-position: center 25%; }
.page-hero .lead { max-width: 60ch; }

/* Sections */
.section { padding: 3.25rem 0; }
.section.alt { background: var(--gray); }
.section.tight-top { padding-top: 2.25rem; }
.section.blue { background: var(--navy); color: #E9EEFA; }
.section.blue h2 { color: #fff; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 1.8rem; }
.sec-head p { color: var(--muted); margin: 0; }
.sec-head.left { text-align: left; margin-left: 0; }
.sub-h { margin: 2rem 0 1rem; font-size: 1.35rem; }

/* Cards */
.cards { display: grid; gap: 1.25rem; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.35rem; box-shadow: 0 1px 2px rgba(0,26,102,.05); display: flex; flex-direction: column; }
.card p:last-child { margin-bottom: 0; }
.card.wide { grid-column: 1 / -1; }
.card h3 { padding-bottom: 0.55rem; border-bottom: 3px solid var(--amber); display: inline-block; align-self: flex-start; }
.card .tagline { font-family: var(--head); font-weight: 700; color: var(--navy-2); }
.card .more { margin-top: auto; padding-top: 0.6rem; }
.cards.three:not(.photo-cards) { align-items: start; }
.cards.three:not(.photo-cards) .more { margin-top: 0.2rem; }
.photo-cards .card { padding: 0; overflow: hidden; }
.card-img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: center 25%; }
.card-body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-body h2 { padding-bottom: 0.5rem; border-bottom: 3px solid var(--amber); align-self: flex-start; }
.contaminant-cards .card h3 { font-size: 1.12rem; }
.contaminant-cards .card p { font-size: 1.04rem; }
.more { font-family: var(--head); font-weight: 700; font-size: 0.98rem; text-decoration: none; display: inline-block; }
.more::after { content: " →"; }
.ticks { list-style: none; padding: 0; font-size: 1.02rem; }
.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.62rem; height: 0.62rem; border-radius: 2px; background: var(--amber); }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split.reverse .split-img { order: 2; }
.split-img img { border-radius: 16px; width: 100%; box-shadow: var(--shadow); }
.split-img.tall { max-width: 360px; justify-self: center; }
.split-img.tall img { aspect-ratio: 4 / 4.8; object-fit: cover; object-position: center 30%; }
.blue .split-img img { box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
.form-split { align-items: start; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.prose h2 + p, .prose h2 + ul { margin-top: 0.2rem; }
.prose h2:not(:first-child) { margin-top: 1.6rem; }
.prose ul li::marker { color: var(--navy-2); }
.note-box { background: #fff; border-left: 5px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.2rem 1.4rem; margin: 0 0 2rem; box-shadow: 0 1px 2px rgba(0,26,102,.06); }
.note-box p:last-child { margin: 0; }
.section.alt .note-box { margin: 2rem 0 0; }
.section.alt .narrow .note-box:first-child { margin: 0 0 2rem; }
.article-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2.75rem; align-items: start; }
.aside-img img { border-radius: 14px; box-shadow: var(--shadow); }
.caption { font-size: 0.95rem; color: var(--muted); margin-top: 0.55rem; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.1rem 1rem; font-size: 1.02rem; margin: 0; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--head); font-weight: 800; margin-bottom: 0.55rem; }
.steps strong { display: block; color: var(--navy); font-family: var(--head); }
.areas { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0 1.1rem; }
.areas li { margin: 0; background: var(--sky); color: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.85rem; font-weight: 600; font-size: 0.98rem; }
.callout { font-family: var(--head); font-weight: 700; color: var(--navy); font-size: 1.15rem; }

/* Bio */
.bio { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: start; max-width: 1000px; }
.headshot { margin: 0; }
.headshot img { border-radius: 14px; box-shadow: var(--shadow); }
.headshot figcaption { font-size: 0.95rem; color: var(--muted); margin-top: 0.5rem; text-align: center; }

/* Clients */
.client-list { list-style: none; padding: 0; margin: 0; columns: 4 220px; column-gap: 2rem; }
.client-list li { break-inside: avoid; padding: 0.38rem 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 1.02rem; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-bottom: 1.4rem; }
.contact-card { display: flex; flex-direction: column; background: var(--gray); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.95rem 1.1rem; text-decoration: none; color: var(--ink); }
a.contact-card:hover { border-color: var(--navy); }
.cc-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--blue); font-family: var(--head); }
.cc-value { font-family: var(--head); font-weight: 700; color: var(--navy); font-size: 1.08rem; overflow-wrap: anywhere; }
.contact-photo img { border-radius: 16px; box-shadow: var(--shadow); aspect-ratio: 4 / 3.2; object-fit: cover; object-position: center 30%; width: 100%; }

/* Form */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem 1.6rem 1.4rem; box-shadow: var(--shadow); }
.form-card h2 { margin-bottom: 0.35rem; }
.form-card > p { color: var(--muted); }
.contact-form label { display: block; font-weight: 600; color: var(--navy); font-size: 0.98rem; margin-bottom: 0.85rem; }
.contact-form .opt { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 0.3rem; font: inherit; font-size: 1.05rem; padding: 0.7rem 0.85rem; border: 1.5px solid #C5CEDF; border-radius: 10px; background: #fff; color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(31,95,209,.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.85rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9rem; color: var(--muted); margin: 0.7rem 0 0; }
.form-status { border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 1rem; font-weight: 600; }
.form-ok { background: #E7F6EC; color: #11592A; border: 1px solid #A9DDB9; }
.form-err { background: #FDECEC; color: #8A1C1C; border: 1px solid #F1B5B5; }

/* CTA band */
.cta-band { background: var(--navy); color: #DDE5F7; padding: 2.4rem 0; }
.cta-band h2 { color: #fff; margin-bottom: 0.35rem; }
.cta-band p { margin: 0; max-width: 60ch; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap; }
.cta-actions { margin-top: 0; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #C9D3EC; padding: 2.75rem 0 1.25rem; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--amber); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 0.7fr; gap: 1.75rem; }
.f-brand img { width: 190px; margin-bottom: 0.9rem; }
.f-h { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.7rem; }
.f-links { list-style: none; padding: 0; margin: 0; }
.f-links li { margin-bottom: 0.4rem; }
.f-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 1.8rem; padding-top: 1rem; font-size: 0.9rem; color: #9FAED3; }
.f-bottom p { margin: 0; }

/* Service areas */
.also { margin-top: 1.4rem; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0; padding: 0.95rem 1.25rem; }
.also p { margin: 0; }
.center { text-align: center; margin-top: 1.6rem; }
.home-areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem 2rem; }
.home-area h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.home-area h3 a { color: var(--navy); text-decoration: none; }
.home-area h3 a:hover { color: var(--blue); }
.home-area .areas { margin: 0; }
.text-links { list-style: none; margin: 0; padding: 0; line-height: 1.7; font-size: 1rem; }
.text-links li { display: inline; padding: 0; }
.text-links li:not(:last-child)::after { content: "\00a0·"; color: var(--muted); }
.text-links li::before { content: none; }
.area-links li { padding: 0; }
.area-links a { display: block; padding: 0.3rem 0.85rem; text-decoration: none; color: var(--navy); }
.area-links li:hover { background: var(--navy); }
.area-links li:hover a { color: #fff; }
.regions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 2.5rem; }
.region h2 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.region p { color: var(--muted); font-size: 1.02rem; margin-bottom: 0.6rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.faq { border-bottom: 1px solid var(--line); padding: 0.7rem 0; }
.faq summary { cursor: pointer; font-family: var(--head); font-weight: 700; color: var(--navy); font-size: 1.05rem; list-style: none; position: relative; padding-right: 1.6rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -0.1rem; font-size: 1.35rem; color: var(--blue); }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0.5rem 0 0.2rem; font-size: 1.03rem; }
.two-col > .card { height: 100%; }

/* Mobile call bar */
.call-bar { display: none; }

@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .three-col { grid-template-columns: 1fr; gap: 0.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .home-areas { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
  .site-nav { gap: 1rem; }
  .site-nav ul { gap: 0.85rem; }
  .site-nav a:not(.btn) { font-size: 0.94rem; }
  .brand img { height: 52px; }
}

/* phone-style menu below 1000px so the 7-item nav never wraps */
@media (max-width: 1000px) {
  :root { --header-h: 66px; }
  .brand img { height: 44px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 0.5rem 1.25rem 1.1rem; gap: 0.6rem; display: none; box-shadow: 0 16px 24px -16px rgba(0,26,102,.3); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a:not(.btn) { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--blue); }
  .nav-call { width: 100%; padding: 0.85rem; }
}

@media (max-width: 900px) {
  .hero-inner, .page-hero.has-img .ph-inner, .split, .two-col, .article-grid, .bio { grid-template-columns: 1fr; gap: 1.75rem; }
  .split.reverse .split-img { order: 0; }
  .cards.three, .cards.two, .regions { grid-template-columns: 1fr; }
  .hero-img img { aspect-ratio: 4 / 3.4; }
  .ph-img img { aspect-ratio: 16 / 10; }
  .bio { max-width: 640px; }
  .headshot { max-width: 220px; }
  .aside-img { max-width: 420px; }
}

@media (max-width: 640px) {
  body { font-size: 1.08rem; padding-bottom: 64px; }
  .wrap { width: min(1160px, 100% - 2rem); }
  .hero { padding: 1.75rem 0 2.25rem; }
  .page-hero { padding: 1.75rem 0 2rem; }
  .section { padding: 2.4rem 0; }
  .lead { font-size: 1.12rem; }
  .steps { grid-template-columns: 1fr; }
  .field-row, .contact-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .home-areas { grid-template-columns: 1fr; }
  .f-brand, .footer-grid > div:nth-child(2) { grid-column: 1 / -1; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .cta-band { padding: 2rem 0; }
  .form-card { padding: 1.3rem 1.1rem 1.1rem; }
  .client-list { columns: 2 140px; column-gap: 1.1rem; }
  .client-list li { font-size: 0.97rem; }
  .call-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom)); background: var(--navy-deep); box-shadow: 0 -6px 18px rgba(0,0,0,.2); }
  .call-bar-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; background: var(--amber); color: var(--navy-deep); font-family: var(--head); font-weight: 800; font-size: 1.1rem; text-decoration: none; border-radius: 999px; padding: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .btn:hover { transform: none; } }

/* Reviews, related links, articles (round 5) */
.reviews { columns: 2 340px; column-gap: 1.5rem; }
.reviews.three { columns: 3 280px; }
.review { break-inside: avoid; margin: 0 0 1.5rem; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.15rem 1.35rem; }
.review p { margin: 0 0 0.7rem; font-size: 1.03rem; }
.review footer { font-family: var(--head); font-weight: 700; color: var(--navy); font-size: 0.98rem; }
.review footer span { font-weight: 600; color: var(--muted); }
.review.short p { font-size: 1rem; }
.section.alt .review { background: #fff; }
.related { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); }
.center-text { text-align: center; }
.faq-page h2 { margin-top: 1.8rem; font-size: 1.35rem; }
.faq-page h2:first-child { margin-top: 0; }
.article p { font-size: 1.1rem; }
.cards .card h2.h3 a { color: var(--navy); text-decoration: none; }
.cards .card h2.h3 a:hover { color: var(--blue); }
@media (max-width: 640px) { .reviews, .reviews.three { columns: 1; } }
