/* ===========================================================
   Protective Apparel Consultants — Design System v3
   Palette matched to the client's actual logo: deep navy +
   safety/hi-vis yellow, echoing the shield-and-polo mark and
   the literal color language of protective workwear.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #0E2240;
  --navy-2: #1B3358;
  --navy-soft: #24466F;
  --steel: #57657C;
  --steel-light: #97A6BD;
  --paper: #F0F1EC;
  --paper-dark: #E2E4DD;
  --white: #FFFFFF;
  --yellow: #EDE500;
  --yellow-light: #F5F13D;
  --yellow-glow: rgba(237, 229, 0, 0.38);

  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--navy);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Archivo', sans-serif;
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
h1 { font-weight: 900; }
h2 { font-weight: 800; }
h3 { font-weight: 700; }

p { margin: 0 0 1em; max-width: 62ch; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--yellow); color: var(--navy);
  padding: 10px 16px; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* ---------- Woven texture (used sparingly, on dark sections) ---------- */
.weave-bg {
  background-color: var(--navy);
  background-image:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 14px);
}

/* ---------- Logo ---------- */
.logomark { display: block; flex-shrink: 0; }

.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: 1.02rem; color: var(--white);
}
.brand .brand-text small {
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--steel-light); display: block; margin-top: 3px;
}
.footer-logo-full { width: 108px; height: auto; margin-bottom: 18px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy); color: var(--paper);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 3px solid var(--yellow);
  transition: box-shadow 0.25s ease;
}
.topbar.scrolled { box-shadow: 0 8px 24px rgba(0,0,0,0.32); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }

nav.mainnav { display: flex; gap: 2px; }
nav.mainnav a {
  color: var(--paper); font-size: 0.92rem; font-weight: 500;
  padding: 8px 16px; border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
nav.mainnav a:hover { color: var(--yellow); }
nav.mainnav a[aria-current="page"] { color: var(--yellow); border-bottom-color: var(--yellow); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--steel);
  color: var(--paper); padding: 8px 10px; font-size: 0.85rem; cursor: pointer;
}

.topbar .call {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.92rem; color: var(--white);
  border: 1px solid var(--steel); padding: 9px 16px; white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.topbar .call:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-1px); }

@media (max-width: 860px) {
  nav.mainnav {
    position: absolute; top: 80px; left: 0; right: 0;
    background: var(--navy); flex-direction: column;
    border-bottom: 3px solid var(--yellow); display: none; padding: 8px 0;
  }
  nav.mainnav.open { display: flex; }
  nav.mainnav a { padding: 14px 32px; }
  .nav-toggle { display: block; }
  .topbar .call { display: none; }
}

/* ---------- Motion (single orchestrated hero entrance) ---------- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { opacity: 0; animation: riseIn 0.7s var(--ease) forwards; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.18s; }
.rise-3 { animation-delay: 0.31s; }
.rise-4 { animation-delay: 0.44s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .rise { opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */
.hero { color: var(--paper); position: relative; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px;
  align-items: center; padding-top: 84px; padding-bottom: 84px;
  position: relative; z-index: 1;
}
.eyebrow-tag {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--yellow-light); font-size: 0.82rem; font-weight: 600;
  margin-bottom: 20px;
}
.eyebrow-tag .line { width: 30px; height: 2px; background: var(--yellow); }

.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); color: var(--white); max-width: 15ch; }
.hero .lede { color: var(--steel-light); font-size: 1.1rem; max-width: 46ch; margin-bottom: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 0.95rem;
  padding: 15px 28px; border: 2px solid var(--yellow);
  background: var(--yellow); color: var(--navy);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { background: var(--yellow-light); border-color: var(--yellow-light); transform: translateY(-2px); box-shadow: 0 10px 24px var(--yellow-glow); }
.btn.ghost { background: transparent; color: var(--paper); border-color: var(--steel); }
.btn.ghost:hover { border-color: var(--yellow); color: var(--yellow); background: transparent; box-shadow: none; }

/* ghost variant for use on light backgrounds */
.btn.ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.ghost-dark:hover { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14,34,64,0.22); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hangtag graphic — signature device */
.hangtag {
  background: var(--paper); color: var(--navy); padding: 32px 28px;
  position: relative; transform: rotate(2deg);
  box-shadow: 12px 16px 0 rgba(0,0,0,0.32);
  border: 1px solid rgba(0,0,0,0.08);
}
.hangtag::before {
  content: ""; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 20px; background: var(--steel);
}
.hangtag::after {
  content: ""; position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; border: 2px solid var(--steel); border-radius: 50%; background: var(--paper);
}
.hangtag .stitch { border: 1px dashed #C7CBC2; padding: 20px; }
.hangtag h3 { font-size: 0.78rem; letter-spacing: 0.07em; color: var(--navy); margin-bottom: 16px; }
.spec-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--paper-dark); font-size: 0.88rem; }
.spec-row:last-child { border-bottom: none; }
.spec-row .k { color: var(--steel); }
.spec-row .v { font-weight: 700; text-align: right; }

@media (max-width: 700px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 52px; }
  .hangtag { transform: none; max-width: 380px; }
}
@media (min-width: 701px) and (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr 1fr; gap: 36px; padding-top: 60px; padding-bottom: 60px; }
  .hero h1 { font-size: clamp(2rem, 4.6vw, 2.6rem); max-width: 13ch; }
  .hangtag { transform: none; }
}

/* ---------- Stripe divider (hazard-stripe motif) ---------- */
.stripe-divider {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--navy) 18px 36px);
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-tight { padding: 60px 0; }
.on-charcoal { color: var(--paper); }
.on-white { background: var(--white); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow-tag { color: var(--navy); }
.section-head .eyebrow-tag .line { background: var(--navy); }
.on-charcoal .section-head .eyebrow-tag,
.weave-bg .section-head .eyebrow-tag { color: var(--yellow-light); }
.on-charcoal .section-head .eyebrow-tag .line,
.weave-bg .section-head .eyebrow-tag .line { background: var(--yellow); }
.section-head p { color: var(--steel); }
.on-charcoal .section-head p,
.weave-bg .section-head p { color: var(--steel-light); }

/* ---------- Icon badge ---------- */
.icon-badge {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--navy); color: var(--navy); margin-bottom: 18px;
  transform: rotate(45deg);
}
.icon-badge svg { transform: rotate(-45deg); width: 22px; height: 22px; }
.on-charcoal .icon-badge, .weave-bg .icon-badge { border-color: var(--yellow); color: var(--yellow); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--paper-dark); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--paper-dark); }

.card {
  background: var(--white); padding: 38px 32px; position: relative;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(14,34,64,0.14); z-index: 2; }
.card:hover::before { transform: scaleX(1); }
.card .num { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 0.85rem; color: var(--navy); margin-bottom: 8px; display: block; opacity: 0.55; }
.card h3 { font-size: 1.14rem; margin-bottom: 10px; }
.card p { color: var(--steel); font-size: 0.95rem; margin-bottom: 0; }

@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (min-width: 641px) and (max-width: 1024px) {
  .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 .card:nth-child(3) { grid-column: span 2; }
}

/* ---------- Credentials strip ---------- */
.credentials { background: var(--paper-dark); border-top: 1px solid rgba(0,0,0,0.06); border-bottom: 1px solid rgba(0,0,0,0.06); }
.credentials .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; padding: 52px 32px; }
.cred-item { flex: 1; min-width: 190px; }
.cred-item .big { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 2.7rem; color: var(--navy); display: block; margin-bottom: 4px; }
.cred-item .label { font-size: 0.98rem; color: var(--steel); font-weight: 600; }

/* ---------- Process (numbered — genuine sequence) ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process::before {
  content: ""; position: absolute; top: 23px; left: 6%; right: 6%; height: 1px;
  background: var(--paper-dark);
}
.on-charcoal .process::before, .weave-bg .process::before { background: var(--navy-soft); }
.proc-step { position: relative; padding-right: 24px; }
.proc-step .dot {
  width: 46px; height: 46px; border-radius: 50%; background: var(--yellow);
  color: var(--navy); display: flex; align-items: center; justify-content: center;
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.05rem;
  margin-bottom: 20px; position: relative; z-index: 1; border: 3px solid var(--paper);
}
.on-charcoal .proc-step .dot, .weave-bg .proc-step .dot { border-color: var(--navy); }
.proc-step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.proc-step p { font-size: 0.92rem; color: var(--steel); }
.on-charcoal .proc-step p, .weave-bg .proc-step p { color: var(--steel-light); }
@media (max-width: 640px) {
  .process { grid-template-columns: 1fr; gap: 32px; }
  .process::before { display: none; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .process { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
  .process::before { display: none; }
}

/* ---------- Instrument seal (ASTM credential) ---------- */
.seal-wrap { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.seal { flex-shrink: 0; }
.seal-copy { flex: 1; min-width: 240px; }

/* ---------- Timeline (About page) ---------- */
.timeline { position: relative; padding-left: 34px; border-left: 2px solid var(--paper-dark); }
.tl-item { position: relative; padding-bottom: 42px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -40px; top: 4px; width: 13px; height: 13px;
  background: var(--yellow); border: 2px solid var(--navy); transform: rotate(45deg);
}
.tl-item .yr { font-family: 'Archivo', sans-serif; font-weight: 800; color: var(--navy); font-size: 0.85rem; margin-bottom: 4px; display: block; }
.tl-item h3 { font-size: 1.08rem; margin-bottom: 6px; }
.tl-item p { color: var(--steel); font-size: 0.95rem; }

/* ---------- Services list ---------- */
.service-row { display: grid; grid-template-columns: 74px 1fr; gap: 26px; padding: 40px 0; border-bottom: 1px solid var(--paper-dark); }
.service-row:first-of-type { border-top: 1px solid var(--paper-dark); }
.service-row .icon-badge { margin-bottom: 0; }
.service-row h3 { margin-bottom: 8px; }
.service-row p { color: var(--steel); margin-bottom: 14px; }
.service-row ul { margin: 0; padding-left: 18px; color: var(--steel); font-size: 0.93rem; }
.service-row li { margin-bottom: 5px; }
@media (max-width: 640px) { .service-row { grid-template-columns: 1fr; } }

/* ---------- Quote block ---------- */
.quote-block { border-left: 3px solid var(--yellow); padding: 4px 0 4px 28px; margin: 0; position: relative; }
.quote-block p { font-family: 'Archivo', sans-serif; font-weight: 500; font-size: 1.3rem; color: var(--navy); max-width: 52ch; }
.on-charcoal .quote-block p, .weave-bg .quote-block p { color: var(--white); }
.quote-block cite { font-style: normal; font-size: 0.88rem; color: var(--steel); font-weight: 500; }
.on-charcoal .quote-block cite, .weave-bg .quote-block cite { color: var(--steel-light); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--yellow); color: var(--navy); position: relative; overflow: hidden; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 56px 32px; position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 6px; color: var(--navy); }
.cta-band p { color: rgba(14,34,64,0.72); margin-bottom: 0; }
.cta-band .btn { background: var(--navy); border-color: var(--navy); color: var(--white); }
.cta-band .btn:hover { background: transparent; color: var(--navy); box-shadow: none; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--steel-light);
  background: var(--white); font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--navy);
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--navy); }
.field textarea { min-height: 130px; resize: vertical; }

.info-list { list-style: none; padding: 0; margin: 0 0 28px; }
.info-list li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--paper-dark); }
.info-list .lbl { font-size: 0.78rem; font-weight: 700; color: var(--navy); width: 90px; flex-shrink: 0; padding-top: 2px; }
.info-list .val { color: var(--navy); }
.info-list .val a:hover { color: var(--steel); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy); color: var(--steel-light); padding: 52px 0 26px; }
footer.site-footer .foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; padding-bottom: 34px; border-bottom: 1px solid var(--navy-soft); margin-bottom: 24px; }
footer.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site-footer nav a { font-size: 0.9rem; transition: color 0.15s ease; }
footer.site-footer nav a:hover { color: var(--yellow); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: var(--steel-light); }
.foot-bottom a:hover { color: var(--yellow); }
