/* ==========================================================================
   Reserves Materials Testing & Inspection
   reservesmti.com
   Tokens follow Document 1 — Brand Standards & Logo Brief
   ========================================================================== */

:root {
  /* Brand palette */
  --navy:        #143050;
  --navy-deep:   #0D2038;
  --steel:       #2D5F8B;
  --amber:       #E8850C;
  --amber-dark:  #C86F05;
  --concrete:    #6B7280;
  --fog:         #F4F5F7;
  --ink:         #1A1A1A;
  --white:       #FFFFFF;
  --rule:        #DDE2E8;
  --rule-dark:   #2A4A6B;

  /* Type */
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --heading: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --data:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --wrap: 1200px;
  --gutter: 24px;
  --sec: 88px;
  --sec-sm: 56px;
}

@media (max-width: 760px) {
  :root { --sec: 56px; --sec-sm: 40px; --gutter: 20px; }
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.14;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.15rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.06rem; }
p  { margin: 0 0 1.05em; max-width: 68ch; }
ul, ol { max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--amber); color: var(--navy-deep);
  padding: 12px 20px; font-weight: 600;
}
.skip:focus { left: 0; }

/* ------------------------------------------------- signature: spec line -- */
/* A monospace metadata line stating the governing standard for a section.
   This encodes real information — it is not decoration. */
.specline {
  font-family: var(--data);
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.specline::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--amber);
  flex: none;
}
.specline--dark { color: #8FB4D6; }

/* ---------------------------------------------------------------- header -- */
.utility {
  background: var(--navy-deep);
  color: #A9C2DA;
  font-size: .8rem;
  font-family: var(--data);
  letter-spacing: .02em;
}
.utility .wrap { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.utility a { color: #A9C2DA; text-decoration: none; }
.utility a:hover { color: var(--white); }

.masthead { background: var(--navy); position: sticky; top: 0; z-index: 60; }
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand__mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: .13em;
  color: var(--white);
  text-transform: uppercase;
}
.brand__sub {
  font-family: var(--heading);
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-family: var(--heading);
  font-size: 1.02rem;
  font-weight: 500;
  color: #D4E1EE;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--amber); }

.btn {
  display: inline-block;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .02em;
  padding: 13px 24px;
  border: 2px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.btn--primary { background: var(--amber); color: var(--navy-deep); }
.btn--primary:hover { background: var(--amber-dark); color: var(--navy-deep); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: var(--white); border-color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); color: var(--white); }
.btn--lg { font-size: 1.1rem; padding: 16px 32px; }

.navtoggle {
  display: none; background: none; border: 2px solid rgba(255,255,255,.4);
  color: var(--white); font-family: var(--heading); font-size: 1rem;
  padding: 9px 14px; border-radius: 2px; cursor: pointer;
}

@media (max-width: 1000px) {
  .navtoggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy-deep); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px var(--gutter) 20px;
    border-top: 1px solid var(--rule-dark);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--rule-dark); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--rule-dark); color: var(--amber); }
  .nav .btn { margin-top: 14px; text-align: center; }
}

/* ------------------------------------------------------------------ hero -- */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.hero::after {
  /* measured-grid motif — references a field measurement grid, not decoration for its own sake */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero .wrap { position: relative; z-index: 1; padding-top: var(--sec); padding-bottom: var(--sec); }
.hero h1 { color: var(--white); max-width: 17ch; margin-bottom: .38em; }
.hero__lede { font-size: 1.16rem; color: #C9D9E8; max-width: 60ch; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__phone {
  font-family: var(--data); color: var(--white); text-decoration: none;
  font-size: 1.02rem; padding-left: 6px;
}
.hero__phone:hover { color: var(--amber); }

/* field-record strip — the signature element */
.record {
  border-top: 1px solid var(--rule-dark);
  margin-top: 44px; padding-top: 22px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.record__k {
  font-family: var(--data); font-size: .68rem; letter-spacing: .09em;
  text-transform: uppercase; color: #7E9DBC; margin: 0 0 5px;
}
.record__v {
  font-family: var(--heading); font-size: 1.02rem; font-weight: 600;
  color: var(--white); margin: 0; line-height: 1.3;
}
@media (max-width: 760px) { .record { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

/* --------------------------------------------------------------- sections -- */
.sec { padding: var(--sec) 0; }
.sec--sm { padding: var(--sec-sm) 0; }
.sec--fog { background: var(--fog); }
.sec--navy { background: var(--navy); color: var(--white); }
.sec--navy h2, .sec--navy h3 { color: var(--white); }
.sec--navy p { color: #C9D9E8; }
.sechead { margin-bottom: 40px; }
.sechead p { color: var(--concrete); font-size: 1.06rem; }
.sec--navy .sechead p { color: #C9D9E8; }

/* --------------------------------------------------------------- cards --- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .cards, .cards--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  padding: 28px 26px 26px;
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .42em; }
.card p { font-size: .97rem; color: #4A5560; margin-bottom: 1.1em; }
.card__link {
  margin-top: auto; font-family: var(--heading); font-weight: 600;
  text-decoration: none; color: var(--steel); font-size: 1rem;
}
.card__link::after { content: " \2192"; }
.card__link:hover { color: var(--navy); }
.card--accent { border-top-color: var(--amber); }

/* --------------------------------------------------------- diff blocks --- */
.diffs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 52px; }
@media (max-width: 860px) { .diffs { grid-template-columns: 1fr; gap: 32px; } }
.diff__n {
  font-family: var(--data); font-size: .72rem; letter-spacing: .1em;
  color: var(--amber); margin: 0 0 8px;
}
.diff h3 { font-size: 1.16rem; margin-bottom: .38em; }
.diff p { font-size: .97rem; color: #4A5560; margin: 0; }

/* ----------------------------------------------------------- service list -- */
.svc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } }
.svc__item { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.svc__item h3 { font-size: 1.1rem; margin-bottom: .3em; }
.svc__item p { font-size: .95rem; color: #4A5560; margin: 0; }
.svc__item a { text-decoration: none; }
.svc__item a:hover h3 { color: var(--steel); }

/* ---------------------------------------------------------------- lists --- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li {
  position: relative; padding-left: 26px; margin-bottom: 11px;
  font-size: 1rem; max-width: 68ch;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 10px; height: 2px; background: var(--amber);
}
.sec--navy .checklist li::before { background: var(--amber); }

/* ---------------------------------------------------------------- table --- */
.dt { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: .96rem; }
.dt th, .dt td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.dt th { font-family: var(--heading); font-weight: 600; color: var(--navy); width: 34%; }
.dt td { color: #4A5560; }
.dt--mono td:first-child { font-family: var(--data); font-size: .9rem; color: var(--navy); }

/* ------------------------------------------------------------------ cta --- */
.cta { background: var(--navy-deep); color: var(--white); text-align: left; }
.cta .wrap { padding-top: var(--sec-sm); padding-bottom: var(--sec-sm); }
.cta h2 { color: var(--white); margin-bottom: .35em; }
.cta p { color: #C9D9E8; margin-bottom: 1.6em; }
.cta__row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cta__phone { font-family: var(--data); color: var(--white); text-decoration: none; font-size: 1.05rem; }
.cta__phone:hover { color: var(--amber); }

/* ----------------------------------------------------------------- form --- */
.form { max-width: 660px; }
.field { margin-bottom: 20px; }
.field label {
  display: block; font-family: var(--heading); font-weight: 600;
  font-size: 1rem; color: var(--navy); margin-bottom: 6px;
}
.field .hint { font-weight: 400; color: var(--concrete); font-size: .88rem; font-family: var(--body); }
.field input[type=text], .field input[type=email], .field input[type=tel],
.field input[type=date], .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: 12px 13px; border: 1px solid #B9C2CC; border-radius: 2px;
  background: var(--white);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--steel); outline: 3px solid rgba(45,95,139,.22); outline-offset: 0;
}
.req { color: var(--amber-dark); }
.checkgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; }
@media (max-width: 640px) { .checkgrid { grid-template-columns: 1fr; } }
.checkgrid label {
  font-family: var(--body); font-weight: 400; font-size: .97rem;
  color: var(--ink); display: flex; gap: 9px; align-items: flex-start; margin: 0;
}
.checkgrid input { margin-top: 4px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formnote { font-size: .9rem; color: var(--concrete); }

/* ---------------------------------------------------------------- footer -- */
.foot { background: var(--navy-deep); color: #A9C2DA; font-size: .94rem; }
.foot .wrap { padding-top: 52px; padding-bottom: 30px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr; gap: 30px; } }
.foot h4 {
  color: var(--white); font-size: .82rem; letter-spacing: .09em;
  text-transform: uppercase; font-family: var(--data); font-weight: 500; margin-bottom: 14px;
}
.foot a { color: #A9C2DA; text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 8px; }
.foot__mark {
  font-family: var(--display); font-weight: 800; font-size: 1.6rem;
  letter-spacing: .13em; color: var(--white); text-transform: uppercase; margin-bottom: 4px;
}
.foot__sub { font-family: var(--heading); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; }
.foot__legal {
  border-top: 1px solid var(--rule-dark); margin-top: 34px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-family: var(--data); font-size: .76rem; letter-spacing: .02em; color: #7E9DBC;
}

/* ------------------------------------------------------------- utilities -- */
.lede { font-size: 1.13rem; color: #3E4A55; max-width: 64ch; }
.mono { font-family: var(--data); }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1.05em; }
.pagehead { background: var(--fog); border-bottom: 1px solid var(--rule); }
.pagehead .wrap { padding-top: 52px; padding-bottom: 44px; }
.pagehead h1 { max-width: 22ch; }
.crumb { font-family: var(--data); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--concrete); margin-bottom: 14px; }
.crumb a { color: var(--steel); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* image placeholder — remove once real field photography is available */
.imgslot {
  background: var(--fog); border: 1px dashed #B9C2CC;
  display: flex; align-items: center; justify-content: center;
  min-height: 260px; font-family: var(--data); font-size: .8rem;
  color: var(--concrete); text-align: center; padding: 20px;
}
