/* ============================================================
   American Epoxy Scientific — site stylesheet
   Clean industrial: navy + green, technical, photo-driven
   ============================================================ */

:root {
  /* Brand palette — Stitchco cool-blue family */
  --navy: #223c60;          /* primary navy (Pantone 534 C) */
  --navy-700: #2d4d78;
  --navy-300: #5289b6;
  --green: #3f6f99;         /* accent blue — buttons, eyebrows, borders */
  --green-600: #2f567a;     /* accent hover / links */
  --green-100: #e3eef8;     /* accent tint */
  --sky: #b0d8f3;           /* light accent (Pantone 290 C) */
  --blue-mid: #5289b6;      /* mid brand blue (Pantone 646 C) */
  --ink: #3a3734;           /* warm near-black (Black 7C) */
  --muted: #66707b;
  --line: #d3dde4;
  --bg: #ffffff;
  --bg-alt: #edf2f3;        /* pale blue-grey */
  --bg-navy: #223c60;
  --max: 1160px;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(11, 44, 77, 0.08);
  --shadow-lg: 0 18px 50px rgba(11, 44, 77, 0.16);
  --font: "Helvetica Neue", Arial, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

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

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--bg-navy); color: #cdd9e5; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.08rem; }
.section--navy .section__head p { color: #aebfd1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .2px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-600); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--green); color: var(--green-600); }

/* ---------- Header ---------- */
/* ---------- Top utility bar ---------- */
.topbar { background: var(--navy); color: #cdddec; font-size: .82rem; }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 38px; padding-top: 6px; padding-bottom: 6px;
}
.topbar__msg { color: #cdddec; }
.topbar__actions { display: flex; align-items: center; gap: 22px; }
.topbar a { color: #e7eef6; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar__login { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; }
.topbar__login svg { width: 15px; height: 15px; flex: 0 0 auto; }
@media (max-width: 720px) {
  .topbar__inner { gap: 12px; }
  .topbar__msg { font-size: .74rem; line-height: 1.25; }
  .topbar__actions { gap: 16px; }
  .topbar a[href^="tel"] { display: none; }
}
@media (max-width: 480px) {
  .topbar__msg { display: none; }
  .topbar__inner { justify-content: flex-end; }
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand:hover { text-decoration: none; }
.brand__icon {
  width: 42px; height: 42px; border-radius: 7px; flex: 0 0 auto;
  box-shadow: 0 2px 6px rgba(11,44,77,.25);
}
.brand__mark {
  border-left: 3px solid var(--green);
  padding-left: 12px;
  line-height: 1.02;
}
.footer-brand .brand__lockup { display: flex; align-items: center; gap: 13px; }
.footer-brand .brand__icon { width: 46px; height: 46px; }
.brand__name {
  font-weight: 800; color: var(--navy);
  font-size: 1.02rem; letter-spacing: .5px;
}
.brand__tag {
  display: block; font-size: .58rem; font-weight: 700;
  color: var(--green); letter-spacing: 1.6px; text-transform: uppercase;
  margin-top: 3px;
}
.nav__links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--navy); font-weight: 600; font-size: .96rem; letter-spacing: .2px;
  padding: 6px 0; position: relative;
}
.nav__links a:hover { text-decoration: none; color: var(--green-600); }
.nav__links a.active::after,
.nav__links a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--green);
}
.nav__cta { margin-left: 6px; }
/* keep header CTA text white (nav link color rule would otherwise override it) */
.nav__cta a.btn--primary,
.nav__cta a.btn--primary:hover { color: #fff; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(11,44,77,.95) 0%, rgba(11,44,77,.84) 50%, rgba(11,44,77,.6) 100%),
    url("../assets/photos/hero-lab.jpg") center 35% / cover no-repeat,
    var(--navy);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; padding: 104px 0 96px; max-width: 760px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.22rem; color: #d6e1ee; margin: 18px 0 32px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__strip {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 36px;
  padding: 22px 0; font-size: .9rem; color: #b9c8d8;
}
.hero__strip strong { color: #fff; display: block; font-size: 1.5rem; font-weight: 800; }

/* ---------- Grid / cards ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c4d7e6; }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--green-100); color: var(--green-600);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }

/* Product cards with header band */
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product__band {
  height: 96px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
}
.product__band svg { width: 40px; height: 40px; opacity: .92; }
.product__body { padding: 24px 26px 28px; }
.product__body h3 { margin-bottom: 8px; }
.product__body p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }
.product__body ul { color: var(--muted); font-size: .92rem; margin: 12px 0 0; padding-left: 18px; }
.product__body li { margin-bottom: 4px; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__visual {
  background: linear-gradient(135deg, var(--navy) 0%, #16406d 100%);
  border-radius: var(--radius); min-height: 340px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__visual .label {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 1;
  padding: 22px 26px; background: linear-gradient(transparent, rgba(0,0,0,.55));
  color: #fff; font-weight: 700; letter-spacing: .3px;
}

/* Edge-profile renders */
.edge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.edge { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; }
.edge img { width: 100%; height: 160px; object-fit: cover; display: block; background: #edf2f3; }
.edge span { display: block; padding: 12px; font-weight: 700; color: var(--navy); font-size: .92rem; }
.edge span small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; margin-top: 2px; }
@media (max-width: 720px){ .edge-grid { grid-template-columns: 1fr 1fr; } }

/* swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.swatch { text-align: center; font-size: .8rem; color: var(--muted); }
.swatch span {
  display: block; width: 86px; height: 64px; border-radius: 8px;
  border: 1px solid rgba(0,0,0,.12); margin-bottom: 8px; box-shadow: var(--shadow);
}

/* ---------- Spec list ---------- */
.specs { list-style: none; margin: 0; padding: 0; }
.specs li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.specs li span:first-child { font-weight: 700; color: var(--navy); }
.specs li span:last-child { color: var(--muted); text-align: right; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step__num {
  flex: 0 0 auto; counter-increment: step;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center; }
.badges img { max-height: 64px; max-width: 150px; width: auto; height: auto; filter: saturate(1); opacity: .92; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--green) 0%, var(--green-600) 100%);
  color: #fff; border-radius: var(--radius); padding: 54px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #e3f3ea; margin: 0; }
.cta-band .btn--outline { background: #fff; color: var(--green-600); border-color: #fff; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 1rem; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-100);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .85rem; color: var(--muted); }

.contact-card {
  background: var(--navy); color: #cdd9e5; border-radius: var(--radius);
  padding: 36px 34px; height: 100%;
}
.contact-card h3 { color: #fff; }
.contact-card a { color: var(--sky); }
.contact-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-row svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--green); margin-top: 3px; }
.contact-row .l { font-weight: 700; color: #fff; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #08233e; color: #9fb3c6; padding: 56px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #9fb3c6; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-brand .brand__name { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem;
}
.footer-family {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 16px 26px; padding: 24px 0 30px; margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-family .ff-label { font-size: .82rem; color: #9fb3c6; letter-spacing: .3px; }
.footer-family .ff-logos {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; padding: 12px 20px; border-radius: 10px;
}
.footer-family .ff-logos a {
  display: inline-flex; align-items: center; justify-content: center;
  opacity: .92; transition: opacity .15s ease;
}
.footer-family .ff-logos a:first-child { width: 195px; height: 46px; }  /* American Stitchco — larger */
.footer-family .ff-logos a:last-child  { width: 104px; height: 30px; }  /* Stitchco — shorter */
.footer-family .ff-logos a:hover { opacity: 1; }
.footer-family .ff-logos img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.footer-family .ff-divider { width: 1px; height: 34px; background: var(--line); }
@media (max-width: 560px){ .footer-family .ff-logos { flex-direction: column; gap: 14px; } .footer-family .ff-divider { display:none; } }

/* ---------- Page header (interior pages) ---------- */
.page-head {
  background: linear-gradient(115deg, var(--navy) 0%, #133c63 100%);
  color: #fff; padding: 70px 0;
}
.page-head h1 { color: #fff; margin-bottom: 10px; }
.page-head p { color: #b9c8d8; font-size: 1.1rem; max-width: 640px; margin: 0; }
.breadcrumb { font-size: .82rem; color: #8aa0b6; margin-bottom: 18px; letter-spacing: .4px; }
.breadcrumb a { color: #8aa0b6; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.lead { font-size: 1.12rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ADDED COMPONENTS — color sheet, gallery, documents
   ============================================================ */

/* ---------- Color sheet ---------- */
.color-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.color {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; transition: transform .15s ease, box-shadow .15s ease;
}
.color:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.color__chip { height: 150px; width: 100%; display: block; }
.color__meta { padding: 14px 16px; display: flex; flex-direction: column; align-items: flex-start; }
.color__name { display: block; font-weight: 700; color: var(--navy); font-size: 1rem; }
.color__code { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.color__note {
  margin-top: 8px; display: inline-block; font-size: .68rem; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase; color: var(--green-600);
  background: var(--green-100); padding: 3px 8px; border-radius: 20px;
}
.custom-note {
  margin-top: 40px; border-left: 4px solid var(--blue-mid);
  background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
}
.custom-note h3 { margin-bottom: 6px; }
.custom-note p { margin: 0; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--navy) 0%, #2d557f 100%);
  box-shadow: var(--shadow); display: flex; align-items: flex-end;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__cap {
  position: relative; z-index: 1; width: 100%;
  padding: 16px 18px; color: #fff; font-weight: 700; font-size: .98rem;
  background: linear-gradient(transparent, rgba(11,30,55,.72));
}
.tile__cap span { display: block; font-size: .76rem; font-weight: 600; color: var(--sky); margin-top: 2px; }
.tile--ph { align-items: center; justify-content: center; }
.tile--ph .ph {
  color: rgba(255,255,255,.5); font-size: .8rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; text-align: center; padding: 0 14px;
}

/* ---------- Documents ---------- */
.doc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.doc {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.doc:hover { border-color: var(--blue-mid); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.doc__icon {
  flex: 0 0 auto; width: 44px; height: 52px; border-radius: 6px;
  background: var(--green-100); color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
}
.doc__icon svg { width: 22px; height: 22px; }
.doc__txt .t { font-weight: 700; color: var(--navy); display: block; line-height: 1.25; }
.doc__txt .s { font-size: .82rem; color: var(--muted); }

@media (max-width: 960px) {
  .color-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .color-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .doc-list { grid-template-columns: 1fr; }
}

/* ---------- Pre-launch additions: social, nav fit ---------- */
.footer-social{display:flex;gap:12px;margin-top:16px}
.footer-social a{width:34px;height:34px;border-radius:7px;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;color:#cbd8e6;transition:background .15s,color .15s}
.footer-social a:hover{background:var(--bluem);color:#fff}
.footer-social svg{width:18px;height:18px}
.nav__links{gap:14px}
.nav__links a{font-size:.92rem}
.brand__name{font-size:.98rem}
@media(max-width:1140px){ .brand__tag{display:none} }

/* Header: collapse to hamburger before the nav items crowd/overflow */
@media (max-width: 1220px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 20px; box-shadow: var(--shadow); display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links li { padding: 10px 0; }
  .nav__links a { fo