/* ==========================================================================
   PANTEST, INC. — visual identity
   Graphite + high-visibility orange. Square edges, monospace metadata,
   left-aligned instrument-panel layout. Deliberately distinct from PANSCO.
   ========================================================================== */

:root {
  --ink: #15181b;
  --ink-2: #22272b;
  --ink-3: #33393e;
  --paper: #ffffff;
  --paper-2: #f1f2f3;
  --line: #d9dcde;
  --line-2: #e8eaeb;
  --accent: #ff5a1f;
  --accent-dark: #d8440e;
  --accent-soft: #fff1ea;
  --muted: #6c7378;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--ink-2);
  line-height: 1.65;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* --------------------------------------------------------- Header */
header.site-header {
  background: var(--ink);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 68px;
}

.logo { display: flex; align-items: center; gap: 13px; }

/* Optional logo image. Nothing is drawn when none is set — the wordmark alone
   carries the header until a real logo file is uploaded. */
.logo-img {
  height: 38px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text .name {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--paper);
  letter-spacing: 3px;
  line-height: 1.15;
}

.logo-text .tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: #8b9299;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

nav.main-nav ul { display: flex; gap: 4px; }

nav.main-nav a {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #b6bcc1;
  padding: 24px 16px;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color 0.15s, border-color 0.15s;
}

nav.main-nav a:hover { color: var(--paper); }

nav.main-nav a.active {
  color: var(--paper);
  border-bottom-color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--paper);
  cursor: pointer;
}

/* --------------------------------------------------------- Buttons */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 15px 30px;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-outline {
  background: transparent;
  border-color: #5c656c;
  color: #fff;
  margin-left: 10px;
}
.btn-outline:hover { background: transparent; border-color: #fff; color: #fff; }

.btn-solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

/* --------------------------------------------------------- Hero */
.hero {
  background:
    linear-gradient(90deg, rgba(21,24,27,0.97) 0%, rgba(21,24,27,0.86) 100%),
    repeating-linear-gradient(90deg, #2a3035 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, #2a3035 0 1px, transparent 1px 46px),
    var(--ink);
  color: #fff;
  padding: 92px 0 96px;
  text-align: left;
  border-bottom: 1px solid var(--ink);
}

.hero .container { max-width: 1200px; }

/* With a hero photo the band becomes two columns; without one the copy keeps
   the full width and nothing else changes. */
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-media img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.5px;
  max-width: 860px;
  margin-bottom: 22px;
}

.hero h1::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 26px;
}

.hero p {
  font-size: 1.05rem;
  color: #b9c0c5;
  max-width: 58ch;
  margin: 0 0 36px;
}

/* --------------------------------------------------------- Sections */
.section { padding: 78px 0; }
.section.alt { background: var(--paper-2); }

.section-head {
  text-align: left;
  max-width: 62ch;
  margin: 0 0 42px;
}

.section-head .eyebrow,
.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: 1.95rem;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin: 10px 0 12px;
}

.section-head p { color: var(--muted); }

/* --------------------------------------------------------- Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  text-align: left;
}

.stats > div {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}
.stats > div:last-child { border-right: none; }

.stats .num {
  font-family: var(--mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.stats .label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* --------------------------------------------------------- Generic cards */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 26px 22px;
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--ink); }

.card .icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--ink);
}
.card .icon svg { width: 22px; height: 22px; }

.card h3 { font-size: 1rem; color: var(--ink); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.9rem; }

.card .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }

.card .tags span {
  font-family: var(--mono);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border: 1px solid var(--line);
}

/* --------------------------------------------------------- Feature row */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature {
  text-align: left;
  padding: 32px 30px 8px 0;
  border-right: 1px solid var(--line);
  padding-right: 30px;
}
.feature:last-child { border-right: none; }
.feature:not(:first-child) { padding-left: 30px; }

.feature .icon {
  width: 42px;
  height: 42px;
  margin: 0 0 16px;
  background: var(--ink);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature h3 { color: var(--ink); margin-bottom: 8px; font-size: 1.02rem; }
.feature p { color: var(--muted); font-size: 0.9rem; }

/* --------------------------------------------------------- CTA band */
.cta-band {
  background: var(--accent);
  color: #fff;
  text-align: left;
  padding: 52px 0;
}

.cta-band .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 40px;
}

.cta-band .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.cta-band h2 { font-size: 1.6rem; line-height: 1.25; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.88); margin-bottom: 0; font-size: 0.95rem; }

.cta-band .btn {
  background: var(--ink);
  border-color: var(--ink);
  flex-shrink: 0;
}
.cta-band .btn:hover { background: #000; border-color: #000; }

/* --------------------------------------------------------- Page header */
.page-header {
  background: var(--ink);
  color: #fff;
  padding: 30px 0 32px;
  text-align: left;
  border-bottom: 3px solid var(--accent);
}

.page-header h1 {
  font-size: 1.85rem;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.page-header p { color: #adb4b9; font-size: 0.95rem; }

/* --------------------------------------------------------- Breadcrumb */
.breadcrumb {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 20px 0 0;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; color: #b9bec2; }

/* --------------------------------------------------------- Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  display: block;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 0.15s, transform 0.15s;
}
.product-card:hover { border-color: var(--ink); transform: translateY(-3px); }

.product-media {
  height: 150px;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.product-media svg { width: 52px; height: 52px; }

.product-media.photo { height: 220px; padding: 20px; }
.product-media.photo img { max-height: 100%; width: auto; object-fit: contain; }

.product-body { padding: 22px; }

.product-body .cat {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
}

.product-body h3 {
  color: var(--ink);
  margin: 8px 0 10px;
  font-size: 1.08rem;
}

.product-body p { color: var(--muted); font-size: 0.88rem; }

.product-body .specs {
  font-family: var(--mono);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
  font-size: 0.72rem;
  letter-spacing: 0.4px;
  color: var(--ink);
}

/* --------------------------------------------------------- Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 52px;
  align-items: start;
}

.gallery .main {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.gallery .main img { max-height: 400px; width: auto; }

.gallery .thumbs { display: flex; gap: 10px; margin-top: 10px; }

.gallery .thumbs button {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 7px;
  width: 88px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.gallery .thumbs button:hover { border-color: var(--ink); }
.gallery .thumbs button.active { border-color: var(--accent); border-width: 2px; padding: 6px; }

.detail-meta .model {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
}

.detail-meta h1 {
  font-size: 2.1rem;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 8px 0 8px;
}

.detail-meta h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin-top: 18px;
}

.detail-meta .lede { color: #474d52; font-size: 0.98rem; margin-top: 18px; }

.variants {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0 6px;
  font-size: 0.88rem;
}
.variants th, .variants td {
  text-align: left;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}
.variants th {
  width: 36%;
  font-family: var(--mono);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
  padding-right: 18px;
}
.variants td { color: var(--muted); }
.variants tr:first-child th, .variants tr:first-child td { border-top: 1px solid var(--line); }

.detail-actions { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }

.note {
  font-family: var(--mono);
  margin-top: 18px;
  font-size: 0.74rem;
  letter-spacing: 0.4px;
  color: var(--muted);
}

.lead-h2 {
  font-size: 1.95rem;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin: 10px 0 18px;
}

.note-link { color: var(--accent); font-weight: 700; }
.note-link:hover { color: var(--accent-dark); }

.prose { max-width: 900px; }
.prose h3 {
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  margin: 34px 0 20px;
}
.prose h3:first-child { margin-top: 0; }
.prose p { color: #474d52; margin-bottom: 14px; }

.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 36px; }

.spec-list li {
  position: relative;
  padding-left: 24px;
  color: #474d52;
  font-size: 0.9rem;
}

.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

/* Test-mode blocks */
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }

.mode {
  background: var(--paper);
  padding: 26px 24px;
}
.mode h4 {
  color: var(--ink);
  font-size: 0.98rem;
  margin-bottom: 8px;
}
.mode h4::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  margin-right: 9px;
  vertical-align: middle;
}
.mode p { color: var(--muted); font-size: 0.89rem; }

.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* --------------------------------------------------------- About */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.about-visual {
  width: 100%;
  height: 340px;
  background:
    repeating-linear-gradient(0deg, rgba(255,90,31,0.9) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(90deg, #2a3035 0 1px, transparent 1px 30px),
    var(--ink);
}

/* A real photo is contained, never cropped or stretched — the product montage
   loses units at the edges under object-fit: cover. */
.about-grid img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 14px;
}

.timeline { margin-top: 20px; }
.timeline li {
  padding-left: 22px;
  border-left: 2px solid var(--line);
  position: relative;
  padding-bottom: 22px;
}
.timeline li:last-child { border-color: transparent; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}
.timeline .year { font-family: var(--mono); font-weight: 700; color: var(--ink); }
.timeline p { color: var(--muted); font-size: 0.9rem; }

/* --------------------------------------------------------- Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}

.contact-info .item {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-2);
}
.contact-info .item:last-child { border-bottom: none; }

.contact-info .item .ic {
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info .item h4 {
  font-family: var(--mono);
  color: var(--ink);
  font-size: 0.76rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.contact-info .item p { color: var(--muted); font-size: 0.9rem; }
.contact-info .item a:hover { color: var(--accent); }

form.contact-form {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 34px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.contact-form label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 7px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.92rem;
  margin-bottom: 18px;
  font-family: inherit;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-form button {
  font-family: var(--mono);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 15px 34px;
  border: none;
  cursor: pointer;
}
.contact-form button:hover { background: var(--accent-dark); }

.form-msg {
  font-family: var(--mono);
  font-size: 0.78rem;
  margin-top: 14px;
  color: var(--ink);
  display: none;
}

.form-alert {
  font-size: 0.88rem;
  padding: 14px 16px;
  margin-bottom: 24px;
  border-left: 4px solid;
  background: var(--paper);
}
.form-alert.ok  { border-color: #1f9d55; color: #14602f; }
.form-alert.bad { border-color: var(--accent); color: var(--accent-dark); }

/* Honeypot — off-screen rather than display:none so bots still fill it in. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------- Footer */
footer.site-footer {
  background: var(--ink);
  color: #9aa1a7;
  padding: 56px 0 24px;
  border-top: 3px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.6fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid #2c3237;
}

.footer-grid h4 {
  font-family: var(--mono);
  color: #fff;
  font-size: 0.74rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-grid li { margin-bottom: 10px; font-size: 0.86rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { font-size: 0.86rem; color: #868d93; margin-top: 12px; }

.footer-bottom {
  font-family: var(--mono);
  text-align: left;
  padding-top: 22px;
  font-size: 0.72rem;
  letter-spacing: 0.6px;
  color: #6d747a;
}

/* --------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  .hero h1 { font-size: 2.3rem; max-width: 100%; }
  .hero-split { grid-template-columns: 1fr; gap: 34px; }
  .hero-media img { max-height: 280px; margin: 0 auto; }
  .product-detail { grid-template-columns: 1fr; gap: 34px; }
  .spec-list { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2) { border-right: none; }
  .stats > div:nth-child(1), .stats > div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .feature { border-right: none; border-bottom: 1px solid var(--line); padding: 26px 0; }
  .feature:not(:first-child) { padding-left: 0; }
  .feature:last-child { border-bottom: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .cta-band .container { grid-template-columns: 1fr; row-gap: 22px; }
  .cta-band .btn { grid-column: 1; grid-row: auto; justify-self: start; }
}

@media (max-width: 660px) {
  .container, .nav-wrap { padding-left: 20px; padding-right: 20px; }
  nav.main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--ink-2);
    flex-direction: column;
    padding: 8px 20px 16px;
    border-bottom: 3px solid var(--accent);
    display: none;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 0; }
  nav.main-nav a { padding: 13px 0; border-bottom: 1px solid #2c3237; margin-bottom: 0; }
  nav.main-nav a.active { border-bottom-color: var(--accent); }
  .menu-toggle { display: block; }
  .hero { padding: 62px 0 66px; }
  .hero h1 { font-size: 1.85rem; }
  .page-header { padding: 24px 0 26px; }
  .page-header h1 { font-size: 1.5rem; }
  .btn { display: block; text-align: center; }
  .btn-outline { margin-left: 0; margin-top: 10px; }
  .grid, .product-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-right: none; border-bottom: 1px solid var(--line); }
  .stats > div:last-child { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .detail-actions .btn { width: 100%; }
}
