/* Centerline Equipment Corporation — site styles
   Brand: navy wordmark + thin red rule (from the original logo). */

:root {
  --navy: #2f2a74;
  --navy-deep: #1c1950;
  --navy-ink: #13112f;
  --red: #e0322a;
  --ink: #16172b;
  --body: #3f4354;
  --muted: #6b7083;
  --line: #e2e4ec;
  --bg: #ffffff;
  --bg-soft: #f5f6fa;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(19, 17, 47, .06), 0 8px 24px rgba(19, 17, 47, .08);
  --max: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 720; }
h3 { font-size: 1.25rem; font-weight: 680; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* Eyebrow — echoes the spaced "E Q U I P M E N T" + red rule of the logo */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 650; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--red); }
.on-dark .eyebrow { color: #ff8a83; }
.on-dark .eyebrow::before { background: #ff6b63; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 650; font-size: .98rem;
  text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #c52720; color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; }
.brand img { height: 46px; width: auto; }
@media (max-width: 900px) { .brand img { height: 36px; } }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-weight: 560; font-size: .96rem;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--navy); }
.nav-links a[aria-current="page"] { color: var(--navy); background: #ecebf7; }
.nav-cta { margin-left: 8px; }
.nav-cta.btn { padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; inset: 88px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 22px; display: none; box-shadow: var(--shadow);
  }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .nav-cta { margin: 12px 0 0; justify-content: center; width: 100%; }
}
@media (min-width: 901px) { .nav-menu { display: flex; align-items: center; } }

/* Hero */
.hero {
  position: relative; color: #dcdcf0; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% 20%, #3a34a0 0%, transparent 60%), var(--navy-ink);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 96px 0 104px; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: #ff6b63; }
.hero .lead { font-size: 1.18rem; color: #c9c9e4; max-width: 40ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.45); aspect-ratio: 4 / 3.4; object-fit: cover; }
.hero-media figcaption {
  position: absolute; left: 18px; bottom: 18px; background: rgba(19,17,47,.82); color: #fff;
  font-size: .82rem; padding: 8px 12px; border-radius: 8px; backdrop-filter: blur(6px);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding: 64px 0 72px; gap: 40px; }
}

/* Page hero (inner pages) */
.page-hero { background: var(--navy-ink); color: #c9c9e4; padding: 72px 0 64px;
  background-image: radial-gradient(900px 400px at 90% 0%, #3a34a0 0%, transparent 65%); }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero p { font-size: 1.15rem; max-width: 62ch; margin: 0; }

/* Stats strip */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-size: 2rem; font-weight: 760; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 16px; border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { padding-left: 16px; }
  .stat:nth-child(-n+2) { border-top: 0; }
}

/* Sections */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
@media (max-width: 700px) { .section { padding: 68px 0; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body p { font-size: .97rem; margin-bottom: 16px; }
.card-body .more { margin-top: auto; font-weight: 650; text-decoration: none; font-size: .95rem; }
.card-body .more::after { content: " →"; }
@media (max-width: 1050px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split-media.tall img { aspect-ratio: 4 / 5; }
.split-media.wide img { aspect-ratio: 4 / 3; }
.split-media figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
}

.checks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%;
  background: #ecebf7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232f2a74' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Industries */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.industry {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 22px;
  border-top: 3px solid var(--navy);
}
.industry h3 { font-size: 1.08rem; margin-bottom: 6px; }
.industry p { font-size: .95rem; margin: 0; color: var(--muted); }
@media (max-width: 900px) { .industries { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .industries { grid-template-columns: 1fr; } }

/* Customers */
.customers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; max-width: 980px; margin: 0 auto; }
.customers li {
  list-style: none; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-weight: 620; color: var(--ink); font-size: .96rem;
}
.customers-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 22px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 18px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: .85rem; font-weight: 700; letter-spacing: .12em; color: var(--red); margin-bottom: 8px;
}
.step h3 { font-size: 1.08rem; }
.step p { font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--navy); color: #d8d7f0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 64px 0; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Materials */
.materials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.material { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.material h3 { font-size: 1.05rem; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.material ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.material li { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.material li:last-child { border-bottom: 0; padding-bottom: 0; }
.material li span { color: var(--ink); font-weight: 560; }
.tag {
  font-size: .72rem; font-weight: 700; font-style: normal; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  padding: 3px 8px; border-radius: 999px; background: #ecebf7; color: var(--navy); align-self: center;
}
.tag.epoxy { background: #fde9e7; color: #a5211b; }
.tag.silicone { background: #e6f4ee; color: #17694a; }
.tag.coating { background: #e8f1fb; color: #1d5b99; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter button {
  font: inherit; font-size: .92rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.filter button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.material li.hidden, .material.hidden { display: none; }
@media (max-width: 1000px) { .materials { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .materials { grid-template-columns: 1fr; } }

/* Project list */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; list-style: none; padding: 0; margin: 0; }
.projects li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; font-size: .97rem; }
.projects li strong { display: block; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 700px) { .projects { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius-sm); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 800px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 650; margin-bottom: 10px; }
.contact-card .big { font-size: 1.5rem; font-weight: 700; color: var(--ink); text-decoration: none; display: inline-block; margin-bottom: 4px; }
.contact-card .big:hover { color: var(--red); }
.contact-card address { font-style: normal; font-size: 1.15rem; color: var(--ink); line-height: 1.5; margin-bottom: 14px; }
.brief { background: var(--bg-soft); border-radius: var(--radius); padding: 30px; }
.brief ol { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-ink); color: #a9a8c8; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 64px 0 40px; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #d8d7f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 16px; }
.footer-brand p { max-width: 36ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0 28px; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Reveal on scroll (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover, .card:hover { transform: none; } }
