/* Chris | Connectors & Electronic Components — B2B trade showcase */
:root {
  --ink: #0f2744;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --surface: #ffffff;
  --accent: #1d6fb8;
  --accent-hover: #155a96;
  --accent-soft: #e8f3fb;
  --ok: #0f766e;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 39, 68, 0.06), 0 8px 24px rgba(15, 39, 68, 0.06);
  --max: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-text {
  font-size: 0.95rem;
  line-height: 1.25;
}

.brand-text span {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  color: var(--ink-soft);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

.site-nav .nav-cta {
  background: var(--accent);
  color: #fff !important;
  margin-left: 0.35rem;
}

.site-nav .nav-cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

/* Hero */
.hero {
  background:
    linear-gradient(135deg, #0f2744 0%, #1a3a5c 55%, #1d6fb8 100%);
  color: #e8eef5;
  padding: 3.25rem 0 3.5rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 18ch;
}

.hero .lede {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  max-width: 42rem;
  color: #c5d4e6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: #fff;
  color: var(--ink);
}

.btn-primary:hover {
  background: #e8f3fb;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

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

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 40rem;
}

/* Cards / grids */
.grid-2 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.section-alt .card {
  box-shadow: none;
}

.card h3 {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.card ul {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.card li + li {
  margin-top: 0.25rem;
}

.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.55rem;
}

/* Process steps */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step h3 {
  margin: 0 0 0.25rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  font-size: 0.95rem;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #f1f5f9;
  color: var(--ink);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

/* Form */
.form-card {
  max-width: 640px;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row.two {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

label .optional {
  font-weight: 500;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--muted);
  background: #f1f5f9;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.disclaimer strong {
  color: var(--ink-soft);
}

/* About / content */
.prose {
  max-width: 42rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.callout {
  background: var(--accent-soft);
  border: 1px solid #c5dff0;
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin: 1.5rem 0;
}

.callout p {
  margin: 0;
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #94a3b8;
  padding: 2.25rem 0 1.75rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: 1.75rem;
}

.site-footer h3 {
  margin: 0 0 0.65rem;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.site-footer a {
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
}

.page-title {
  padding: 2.25rem 0 0;
}

.page-title h1 {
  margin: 0 0 0.4rem;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.page-title p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

/* Responsive */
@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 0.85rem;
    gap: 0.15rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    position: relative;
  }

  .form-row.two {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.5rem 0;
  }
}


/* Temporary product / hero images (replace files in images/) */
.hero-media {
  margin: 1.75rem 0 0;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow);
  background: #0b1c33;
}
.hero-media img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}
.hero-media figcaption,
.gallery-item figcaption {
  margin: 0;
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
}
.hero .hero-media figcaption {
  background: rgba(15, 39, 68, 0.85);
  color: #cbd5e1;
}
.card-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.85rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 800px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
}
.gallery-item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
