/* ============================================================
   JNB Tek — classic homepage, faithful to the original:
   steel-blue bands, light gray body, orange CTA, product photos.
   Modernized: responsive, consistent spacing, clean type.
   ============================================================ */

:root {
  --band: #2b5f80;
  --band-deep: #234e69;
  --orange: #f7a01d;
  --orange-deep: #e08c0d;
  --page: #e9edf0;
  --card: #ffffff;
  --ink: #2f3a44;
  --muted: #5c6b78;
  --divider: #c9d2d9;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
  --gutter: clamp(18px, 4vw, 36px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { display: block; max-width: 100%; height: auto; }
a { color: var(--band); }
a:hover { color: var(--band-deep); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; background: var(--orange); color: #fff; padding: 8px 14px; z-index: 99; }

/* ---------- Nav ---------- */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { font-size: 22px; font-weight: 800; color: var(--band); text-decoration: none; letter-spacing: 0.01em; white-space: nowrap; }
.brand span { color: var(--orange); }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: 14.5px; font-weight: 600; }
.nav-links a:hover { color: var(--band); }
.nav-phone { font-weight: 700; color: var(--band); text-decoration: none; white-space: nowrap; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--divider); border-radius: 5px; width: 40px; height: 40px; font-size: 18px; cursor: pointer; color: var(--ink); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-phone { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 62px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--divider);
    padding: 6px 0 10px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px var(--gutter); }
}

/* ---------- Hero ---------- */

.hero { background: var(--band); color: #fff; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) 6fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding-top: clamp(36px, 6vw, 64px);
  padding-bottom: clamp(36px, 6vw, 64px);
}
.hero h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; }
.hero .hero-copy p { color: #dbe7f0; max-width: 44ch; }
.hero .one-call { font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; color: #fff; margin: 18px 0 22px; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: 4px;
}
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-deep); color: #fff; }
.btn-gray { background: #8fa3b0; color: #fff; }
.btn-gray:hover { background: #7c93a2; color: #fff; }

/* Product collage */
.collage { position: relative; min-height: 360px; }
.collage img { position: absolute; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28)); }
.collage .c-appliance { top: 0; right: 4%; width: 52%; }
.collage .c-monitor   { top: 24%; left: 8%; width: 26%; }
.collage .c-phone     { top: 30%; left: 38%; width: 24%; }
.collage .c-camera    { top: 22%; right: 4%; width: 20%; }
.collage .c-copiers   { bottom: 0; left: 30%; width: 42%; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .collage { min-height: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
  .collage img { position: static; width: auto; max-height: 110px; }
  .collage .c-appliance { max-height: 70px; }
}

/* ---------- Services ---------- */

.services { padding: clamp(40px, 6vw, 72px) 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 6px;
  overflow: hidden;
}
.svc {
  padding: 30px 26px 28px;
  text-align: center;
  border-right: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease;
}
.svc:hover { background: #f4f8fb; color: var(--ink); }
.svc:nth-child(3n) { border-right: none; }
.svc:nth-child(n+4) { border-bottom: none; }
.svc img { height: 110px; width: auto; margin: 0 auto 18px; object-fit: contain; }
.svc h3 { font-size: 17px; font-weight: 700; color: var(--band-deep); }
.svc p { font-size: 14px; color: var(--muted); margin: 0; }

@media (max-width: 820px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .svc:nth-child(3n) { border-right: 1px solid var(--divider); }
  .svc:nth-child(2n) { border-right: none; }
  .svc:nth-child(n+4) { border-bottom: 1px solid var(--divider); }
  .svc:nth-child(n+5) { border-bottom: none; }
}
@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr; }
  .svc { border-right: none !important; border-bottom: 1px solid var(--divider) !important; }
  .svc:last-child { border-bottom: none !important; }
}

/* ---------- About panel ---------- */

.about { padding-bottom: clamp(40px, 6vw, 72px); }
.about-panel {
  background: var(--band);
  color: #fff;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(22px, 4vw, 44px);
  padding: clamp(26px, 4vw, 44px);
  align-items: center;
}
.about-visual { position: relative; }
.about-visual img { margin: 0 auto; max-height: 240px; width: auto; }

.ribbons { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ribbons li {
  position: relative;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 16px 7px 14px;
  width: fit-content;
  margin-left: calc(-1 * clamp(26px, 4vw, 44px));
  border-radius: 0 4px 4px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}
.ribbons .r-orange { background: #f0891f; }
.ribbons .r-red    { background: #d43f56; }
.ribbons .r-green  { background: #6ab04c; }
.ribbons .r-pink   { background: #d8397e; }

.about-copy h2 { font-size: clamp(20px, 2.6vw, 26px); }
.about-copy p { color: #dbe7f0; font-size: 15px; }
.about-copy a { color: #ffd9a1; }
.about-copy .btn { margin-top: 8px; }

@media (max-width: 820px) {
  .about-panel { grid-template-columns: 1fr; }
}

/* ---------- Support section ---------- */

.support { background: #f4f6f8; border-top: 1px solid var(--divider); padding: clamp(40px, 6vw, 72px) 0; }
.support h2 { font-size: clamp(20px, 2.6vw, 26px); color: var(--band-deep); margin-bottom: 28px; }
.support-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(18px, 3vw, 40px);
  padding: 22px 0;
  border-top: 1px solid var(--divider);
}
.support-row:last-child { border-bottom: 1px solid var(--divider); }
.support-label { font-weight: 700; color: var(--band); font-size: 15.5px; text-align: right; padding-top: 2px; }
.support-body p { margin: 0; color: var(--muted); font-size: 15px; max-width: 68ch; }

@media (max-width: 640px) {
  .support-row { grid-template-columns: 1fr; gap: 6px; }
  .support-label { text-align: left; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--band-deep); color: #cfdde8; padding: 30px 0; font-size: 14px; }
.footer-line { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; text-align: center; }
.footer-line a { color: #fff; text-decoration: none; }
.footer-line a:hover { text-decoration: underline; }
.footer-legal { margin-top: 14px; text-align: center; color: #9db4c4; font-size: 13px; }

/* Nav contact button */
.nav-links .nav-contact {
  background: var(--orange);
  color: #fff;
  padding: 9px 16px;
  border-radius: 4px;
}
.nav-links .nav-contact:hover { background: var(--orange-deep); color: #fff; }
@media (max-width: 820px) {
  .nav-links .nav-contact {
    background: none;
    color: var(--orange-deep);
    padding: 12px var(--gutter);
    border-radius: 0;
    font-weight: 700;
  }
}
