/* P&T Product Solutions — site styles */
:root {
  --ink: #0e1a28;
  --ink-2: #16273b;
  --ink-3: #213650;
  --steel: #5b6b7d;
  --steel-2: #8796a7;
  --line: #dde3ea;
  --paper: #f5f7f9;
  --white: #ffffff;
  --text: #1b2733;
  --muted: #586777;
  --accent: #c8913a;      /* brass */
  --accent-2: #e0ab55;
  --accent-ink: #2a1c05;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(14, 26, 40, .06), 0 8px 24px rgba(14, 26, 40, .08);
  --max: 1160px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 26, 40, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: var(--white);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--mono); font-weight: 400; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-2); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: #c9d3de; font-size: .95rem;
  padding: 8px 14px; border-radius: 6px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav a[aria-current="page"] { color: var(--white); }
.nav a.btn { margin-left: 8px; color: var(--accent-ink); }
.nav a.btn:hover { background: var(--accent-2); color: var(--accent-ink); }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.18); color: var(--white);
  border-radius: 6px; width: 42px; height: 38px; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav a.btn { margin: 12px 0 0; text-align: center; border-radius: 6px; border: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: .95rem; text-decoration: none;
  padding: 12px 22px; border-radius: 6px; border: 1px solid transparent;
  transition: background .15s, transform .15s, border-color .15s, color .15s;
  cursor: pointer;
}
.btn:hover { background: var(--accent-2); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--paper); border-color: var(--steel-2); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% 0%, rgba(200,145,58,.14), transparent 60%),
    linear-gradient(var(--ink), var(--ink-2));
  color: #d5dde6;
}
.hero::before { /* blueprint grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero h1 { color: var(--white); }
.hero .lead { font-size: 1.15rem; color: #b5c2cf; max-width: 36em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-figure {
  position: relative; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08);
}
.hero-figure figcaption {
  position: absolute; left: 14px; bottom: 14px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(14,26,40,.82); color: #d5dde6; padding: 6px 10px; border-radius: 4px;
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 64px; }
}

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; margin-top: 40px; max-width: 560px; }
.stat { background: rgba(14,26,40,.7); padding: 16px 18px; }
.stat b { display: block; font-family: var(--mono); font-weight: 500; font-size: 1.3rem; color: var(--white); }
.stat span { font-size: .8rem; color: var(--steel-2); }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 600px) { .section { padding: 60px 0; } }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #c9d2dc; }
.card-media {
  aspect-ratio: 16 / 10; background: #fff; display: grid; place-items: center;
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.contain img { width: auto; height: auto; max-height: 85%; object-fit: contain; }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .97rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 20px; padding: 0; list-style: none; }
.tags li {
  font-family: var(--mono); font-size: .74rem; color: var(--ink-3);
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px;
}
.card-link { margin-top: auto; font-weight: 600; font-size: .95rem; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.card-link::after { content: "→"; transition: transform .15s; }
.card:hover .card-link::after { transform: translateX(4px); }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .icon {
  width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center;
  background: var(--ink); color: var(--accent-2); margin-bottom: 16px;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* CTA band */
.cta {
  background: linear-gradient(120deg, var(--ink), var(--ink-3));
  color: #c7d1db; border-radius: 14px; padding: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta h2 { color: var(--white); margin-bottom: .3em; }
.cta p { margin: 0; max-width: 40em; }
@media (max-width: 600px) { .cta { padding: 32px 22px; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--ink); color: #b5c2cf; position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.page-head .container { position: relative; padding-top: 56px; padding-bottom: 56px; }
.page-head h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-head .lead { font-size: 1.1rem; max-width: 46em; margin: 0; }

.crumbs { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; margin-bottom: 18px; color: var(--steel-2); }
.crumbs a { color: var(--steel-2); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs span { margin: 0 8px; opacity: .5; }

/* ---------- Product page ---------- */
.product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .product-top { grid-template-columns: 1fr; gap: 32px; } }

.photo-frame {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow);
}
.photo-frame img { width: 100%; }
.photo-frame.small { padding: 48px 24px; aspect-ratio: 4 / 3; }
.photo-frame.small img { width: auto; max-width: 100%; image-rendering: auto; }

.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 28px; }
.highlight { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: var(--paper); }
.highlight b { display: block; font-family: var(--mono); font-weight: 500; font-size: 1.15rem; color: var(--ink); line-height: 1.25; }
.highlight span { font-size: .8rem; color: var(--muted); }
@media (max-width: 520px) { .highlights { grid-template-columns: 1fr; } }

.product-intro p { font-size: 1.05rem; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .spec-grid { grid-template-columns: 1fr; } }
.spec-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-block h3 {
  margin: 0; padding: 16px 22px; font-size: .82rem; font-family: var(--mono); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--white); background: var(--ink-2);
}
.spec-block.optional h3 { background: var(--ink-3); }
.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 13px 22px; border-top: 1px solid var(--line); }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
.spec th { width: 38%; font-weight: 500; color: var(--muted); }
.spec td { color: var(--ink); }
.spec td .mono, .mono { font-family: var(--mono); font-size: .9em; }
.spec tr:nth-child(even) { background: #fafbfc; }
@media (max-width: 520px) {
  .spec th, .spec td { display: block; width: 100%; padding: 4px 18px; border: 0; }
  .spec th { padding-top: 14px; font-size: .82rem; }
  .spec td { padding-bottom: 14px; }
  .spec tr + tr th { border-top: 1px solid var(--line); }
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-family: var(--mono); font-size: .8rem; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px; }

.drawing {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px;
  display: grid; grid-template-columns: 1fr 280px; gap: 32px; align-items: center;
}
.drawing a.zoom { display: block; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.drawing img { margin: 0 auto; max-height: 560px; width: auto; }
.drawing aside p { color: var(--muted); font-size: .95rem; }
.drawing aside dl { margin: 0; font-size: .92rem; }
.drawing aside dt { color: var(--muted); font-size: .8rem; margin-top: 12px; }
.drawing aside dd { margin: 0; font-family: var(--mono); color: var(--ink); }
@media (max-width: 860px) { .drawing { grid-template-columns: 1fr; } }

/* Related */
.related { display: flex; gap: 20px; align-items: center; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: box-shadow .2s, border-color .2s; }
.related:hover { box-shadow: var(--shadow); border-color: #c9d2dc; }
.related img { width: 96px; height: 72px; object-fit: contain; background: #fff; border-radius: 6px; flex: none; }
.related p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1c05' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.contact-card { background: var(--ink); color: #c7d1db; border-radius: 14px; padding: 32px; }
.contact-card h3 { color: var(--white); }
.contact-card a:not(.btn) { color: var(--accent-2); }
.contact-card .btn { width: 100%; margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--steel-2); font-size: .9rem; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--white); font-size: .78rem; font-family: var(--mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c0cbd6; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .brand { margin-bottom: 14px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .82rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 16px; }
.notfound .code { font-family: var(--mono); font-size: 5rem; color: var(--accent); line-height: 1; margin-bottom: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
