:root {
  --ink: #14212b;
  --muted: #64707a;
  --line: #d9e2ea;
  --blue: #006cab;
  --teal: #00a7bd;
  --green: #4f8a52;
  --amber: #d78a2d;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --deep: #102531;
  --shadow: 0 18px 48px rgba(16, 37, 49, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(460px, 620px) 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.brand-logo-main {
  width: 225px;
}

.brand-logo-cabling {
  width: 225px;
  height: 82px;
  object-fit: contain;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: #334653;
  font-size: 0.94rem;
  font-weight: 650;
}

.nav a,
.social-link,
.cart-button,
.filter,
.primary-action,
.secondary-action,
.icon-button {
  min-height: 42px;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 42px;
  color: white;
  background: #1877f2;
  border-radius: 8px;
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.cart-button,
.filter,
.icon-button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 8px;
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  color: white;
  background: var(--blue);
  border-radius: 50%;
  font-size: 0.82rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(290px, 0.75fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 72px) clamp(30px, 5vw, 60px);
  background:
    linear-gradient(125deg, rgba(0, 108, 171, 0.1), transparent 42%),
    linear-gradient(0deg, #f7fbfd, #ffffff 68%);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-name {
  display: block;
  color: var(--blue);
  font-weight: 900;
}

.hero-line {
  display: block;
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.hero-copy > p:not(.eyebrow),
.section-heading > p:not(.eyebrow),
.contact-copy p {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-details {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-details div {
  display: grid;
  gap: 4px;
}

.contact-details span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-details a {
  color: var(--ink);
  font-weight: 750;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  color: white;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.secondary-action {
  color: var(--deep);
  background: white;
  border: 1px solid var(--line);
}

.signal-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: var(--deep);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signal-panel div {
  display: grid;
  gap: 5px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.signal-panel strong {
  color: white;
  font-size: 1.2rem;
}

.signal-panel span {
  color: #bbd6e1;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.intro-band div {
  padding: 24px clamp(18px, 4vw, 46px);
  border-right: 1px solid var(--line);
}

.intro-band div:last-child {
  border-right: 0;
}

.intro-band span {
  display: block;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.intro-band strong {
  display: block;
  margin-top: 4px;
  font-size: 1.02rem;
}

.section,
.process,
.shop,
.contact-section {
  padding: clamp(58px, 8vw, 98px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.service-card {
  min-height: 250px;
  padding: 24px;
}

.service-card p,
.product-card p,
.steps span {
  color: var(--muted);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: white;
  background: var(--teal);
  border-radius: 50%;
  font-weight: 800;
}

.process {
  color: white;
  background: var(--deep);
}

.process .eyebrow {
  color: #74d6e3;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.steps span {
  color: #c7d7df;
}

.shop {
  background: #fbfcfd;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter {
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 750;
}

.filter.is-active {
  color: white;
  background: var(--deep);
  border-color: var(--deep);
}

.product-card {
  display: grid;
  overflow: hidden;
}

.product-media {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 86%, rgba(0, 108, 171, 0.26), transparent 34%),
    linear-gradient(145deg, #eef5f8, #ffffff);
}

.product-media img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(16, 37, 49, 0.18));
}

.product-media.image-missing::before {
  content: attr(data-fallback);
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  color: white;
  background: var(--deep);
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 850;
}

.product-media.unifi.image-missing::before {
  background: var(--green);
}

.shop-unifi {
  background: white;
}

.product-media.unifi {
  background:
    radial-gradient(circle at 50% 86%, rgba(79, 138, 82, 0.22), transparent 34%),
    linear-gradient(145deg, #f0f7f3, #ffffff);
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.product-meta {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.quote-price {
  font-weight: 850;
}

.add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  color: white;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  background: white;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: #334653;
  font-weight: 760;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  border: 1px solid #cbd7df;
  border-radius: 8px;
}

.contact-form textarea {
  resize: vertical;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(420px, 100vw);
  height: 100vh;
  background: white;
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 50px rgba(16, 37, 49, 0.18);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-header,
.cart-footer {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.cart-footer {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.cart-header h2 {
  font-size: 1.5rem;
}

.icon-button {
  width: 42px;
  border-radius: 8px;
  font-size: 1.6rem;
}

.cart-items {
  overflow: auto;
  padding: 10px 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}


.scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  background: rgba(16, 37, 49, 0.35);
}

.scrim.is-open {
  display: block;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .intro-band,
  .steps {
    grid-template-columns: 1fr;
  }

  .intro-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 68px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo-main {
    width: 134px;
  }

  .brand-logo-cabling {
    width: 124px;
    height: 58px;
  }

  .cart-button span {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .service-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .add-button {
    width: 100%;
  }
}
