/* Skrine Shipping CA — main stylesheet */

:root {
  --ink: #1E2242;
  --ink-2: #4a5070;
  --muted: #6b7190;
  --purple: #5A2A82;
  --indigo: #47478F;
  --blue: #3A6FAE;
  --cyan: #33C3D8;
  --grad: linear-gradient(135deg, #5A2A82 0%, #47478F 38%, #3A6FAE 68%, #33C3D8 100%);
  --bg-alt: #f4f6fa;
  --line: #e3e6ef;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(30, 34, 66, .06), 0 6px 18px rgba(30, 34, 66, .06);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .8em 1.5em;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, opacity .15s;
}
.btn:hover { text-decoration: none; }
.btn-sm { padding: .5em 1em; font-size: .875rem; }
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { opacity: .92; box-shadow: 0 4px 14px rgba(58, 111, 174, .35); }
.btn-outline-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--indigo); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* Top bar */
.topbar { background: var(--ink); color: #c9cde0; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topbar-contact { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar a { color: #c9cde0; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar-note { color: var(--cyan); font-weight: 600; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink); font-weight: 500; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--blue); text-decoration: none; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(51, 195, 216, .22), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(90, 42, 130, .45), transparent 50%),
    var(--ink);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 80px 0; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.01em; }
.hero .lead { font-size: 1.1rem; color: #c9cde0; max-width: 540px; }
.hero .eyebrow { color: var(--cyan); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 24px; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; font-size: .92rem; color: #c9cde0; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--cyan); }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }

/* Brands */
.brands { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0; }
.brands-title { text-align: center; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.brand-list { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.brand-list button {
  width: 100%;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #8a8fa8;
  font: 700 1.15rem/1 "Segoe UI", Arial, sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .15s, border-color .15s, box-shadow .15s;
}
.brand-list button:hover { color: var(--ink); border-color: var(--blue); box-shadow: var(--shadow); }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p:last-child { color: var(--ink-2); margin: 0; }
.eyebrow {
  margin: 0 0 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
}
.group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 1.15rem;
}
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.grid + .group-title { margin-top: 44px; }

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

.card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { transform: translateY(-2px); border-color: #cdd3e6; box-shadow: 0 10px 28px rgba(30, 34, 66, .1); }
.card h3 { font-size: 1.1rem; }
.card h4 { font-size: 1rem; margin-bottom: .3em; }
.card p { color: var(--ink-2); font-size: .93rem; }

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  flex: none;
}
.card-icon .icon { width: 26px; height: 26px; }

.card-row { flex-direction: row; gap: 16px; padding: 20px; }
.card-row .card-icon { margin: 0; width: 44px; height: 44px; }
.card-row .card-icon .icon { width: 24px; height: 24px; }
.card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.card-body p { margin-bottom: 14px; }

.card-photo { padding: 0; overflow: hidden; }
.card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card-photo:hover .card-media img { transform: scale(1.04); }
.card-content { display: flex; flex-direction: column; flex: 1; padding: 20px 18px 20px; }
.card-photo .card-foot { flex-wrap: nowrap; gap: 8px; }
.card-photo .card-foot .btn { padding-inline: .85em; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--blue); text-decoration: none; }
.link-more { font-size: .88rem; font-weight: 600; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.chips li { padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); font-size: .78rem; font-weight: 600; }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

/* Cable guide */
.guide { max-width: 920px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
.spec-table th, .spec-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.spec-table thead th { background: var(--ink); color: #fff; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.spec-table tbody th { font-weight: 600; }
.spec-table tbody tr:nth-child(even) { background: #fafbfd; }
.spec-table tbody tr:last-child > * { border-bottom: 0; }
.spec-table .yes { color: #1f8a5b; font-weight: 600; }
.spec-table .no { color: var(--muted); }

.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.tips li {
  padding: 18px;
  background: var(--bg-alt);
  border-left: 3px solid var(--cyan);
  border-radius: 6px;
  font-size: .92rem;
  color: var(--ink-2);
}
.tips strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.about-text p:not(.eyebrow) { color: var(--ink-2); }
.about-points { display: grid; gap: 16px; }
.point { display: flex; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.point .card-icon { margin: 0; width: 44px; height: 44px; }
.point .card-icon .icon { width: 22px; height: 22px; }
.point h4 { margin-bottom: .2em; }
.point p { margin: 0; color: var(--ink-2); font-size: .93rem; }

/* RFQ / Contact */
.contact { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: start; }
.rfq-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cfd4e3;
  border-radius: 6px;
  font: inherit;
  font-size: 1rem; /* 16px stops iPhones zooming in on focus */
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(58, 111, 174, .18); }
.field input.is-highlight { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(51, 195, 216, .25); }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); }
.form-note.is-success { color: #1f8a5b; font-weight: 600; }

.contact-card { padding: 32px; border-radius: var(--radius); background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.25rem; margin-bottom: 18px; }
.contact-card ul { display: grid; gap: 16px; }
.contact-card li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.contact-card .icon { margin-top: 3px; }
.contact-card a { color: #fff; }
.contact-tip { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: .9rem; color: rgba(255, 255, 255, .9); }

/* Monitor model pages */
.site-nav a.is-active:not(.btn) { color: var(--blue); }
.page-hero {
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(51, 195, 216, .2), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(90, 42, 130, .45), transparent 50%),
    var(--ink);
}
.page-hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 56px 0; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-hero p { color: #c9cde0; max-width: 520px; margin-bottom: 24px; }
.page-hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 40px rgba(0, 0, 0, .35); }
.breadcrumb { margin-bottom: 14px; font-size: .85rem; color: #b4bad4; }
.breadcrumb a { color: #b4bad4; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: var(--cyan); }

.model-table .brand { font-weight: 700; color: var(--indigo); }
.model-table td:last-child { text-align: right; }
.table-note { margin: 12px 0 0; font-size: .82rem; color: var(--muted); }

.note-box {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  padding: 24px 28px;
  background: #f2fbfd;
  border: 1px solid #cfe9ef;
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius);
}
.note-box .card-icon { margin: 0; }
.note-box h3 { font-size: 1.1rem; margin-bottom: .25em; }
.note-box p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.note-box .btn { margin-left: auto; flex: none; }

.section-tight { padding: 56px 0; }
.section-title { font-size: 1.25rem; margin-bottom: 20px; }
.type-links { grid-template-columns: repeat(3, 1fr); }
.type-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-weight: 600;
}
.type-link img { width: 96px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.type-link:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* Footer */
.site-footer { background: var(--ink); color: #b4bad4; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 0 40px; }
.footer-about img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-about p { max-width: 320px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-col li + li { margin-top: 8px; }
.site-footer a { color: #b4bad4; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 0; }

/* Responsive */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .brand-list { grid-template-columns: repeat(4, 1fr); }
  .site-nav { gap: 20px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(30, 34, 66, .08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; padding: .8em 1.5em; font-size: 1rem; }

  /* Tablets keep text and picture side by side */
  .hero-inner { grid-template-columns: 1.2fr 1fr; gap: 28px; padding: 56px 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .tips { grid-template-columns: 1fr; }
  .about, .contact { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .page-hero-inner { grid-template-columns: 1fr 1fr; gap: 28px; padding: 44px 0; }
  .type-links { grid-template-columns: 1fr; }
  .note-box { flex-wrap: wrap; }
  .note-box .btn { margin-left: 0; }

  /* Tablets: let table text wrap instead of scrolling sideways */
  .spec-table th, .spec-table td { padding: 10px 12px; white-space: normal; }
  .model-table td:last-child { white-space: nowrap; }

  /* Bigger tap areas for touch screens */
  .topbar a { padding-block: 8px; }
  .breadcrumb a, .link-more { display: inline-block; padding-block: 8px; }
  .footer-col li + li { margin-top: 0; }
  .footer-col li a { display: inline-block; padding-block: 7px; }
  .contact-card li { align-items: center; }
  .contact-card .icon { margin-top: 0; }
  .contact-card a { display: inline-block; padding-block: 6px; }
}

@media (max-width: 600px) {
  :root { --header-h: 60px; }
  .topbar-note { display: none; }
  .brand img { height: 32px; }

  /* Phones: shorter hero so products appear sooner */
  .hero-inner { grid-template-columns: 1fr; padding: 44px 0 48px; }
  .hero-art { display: none; }
  .hero-actions { margin: 24px 0 20px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-points { gap: 8px 18px; }
  .page-hero-inner { grid-template-columns: 1fr; }

  .brand-list { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .brand-list button { padding: 12px 2px; font-size: .8rem; }

  /* Cable cards: a little more compact */
  .grid { gap: 14px; }
  .card-row { padding: 16px; gap: 14px; }
  .card-body p { margin-bottom: 10px; }
  .card-foot { padding-top: 10px; }

  /* Cable guide: one compact card per cable, no sideways scrolling */
  .guide-table thead { display: none; }
  .guide-table, .guide-table tbody { display: block; }
  .guide-table tr { display: flex; flex-wrap: wrap; gap: 2px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .guide-table tbody tr:last-child { border-bottom: 0; }
  .guide-table tbody th { flex-basis: 100%; padding: 0; border: 0; }
  .guide-table td { padding: 0; border: 0; font-size: .9rem; white-space: normal; }
  .guide-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }

  .section { padding: 56px 0; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .rfq-form { grid-template-columns: 1fr; padding: 22px; }
  .form-actions .btn { width: 100%; }
  .contact-card { padding: 24px; }

  /* Footer: product and company links side by side */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding: 44px 0 28px; }
  .footer-about, .footer-col:last-child { grid-column: 1 / -1; }

  /* Model table: one compact card per model, specs on one line */
  .model-table thead { display: none; }
  .model-table, .model-table tbody { display: block; }
  .model-table tr { display: flex; flex-wrap: wrap; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .model-table tbody tr:last-child { border-bottom: 0; }
  .model-table tbody th, .model-table td { padding: 0; border: 0; white-space: normal; text-align: left; }
  .model-table td.brand, .model-table tbody th { flex-basis: 100%; }
  .model-table tbody th { font-size: 1.05rem; }
  .model-table td[data-label] { font-size: .92rem; color: var(--ink-2); }
  .model-table td[data-label] + td[data-label]::before { content: "·"; margin: 0 8px; color: var(--muted); }
  .model-table td:last-child { flex-basis: 100%; padding-top: 8px; text-align: left; }
}

/* 404 page (kept out of inline styles so the Content-Security-Policy can block them) */
.page-404 { min-height: 100vh; display: flex; flex-direction: column; }
.page-404 main { flex: 1; display: flex; flex-direction: column; }
.page-404 .page-hero { flex: 1; display: flex; align-items: center; }
.page-404 .page-hero .container { padding: 96px 0; text-align: center; }
.page-404 .page-hero p { margin-inline: auto; }
.page-404 .hero-actions { justify-content: center; }
