/* semacom.ca — design «Clear Line» */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FFFFFF;
  --tint: #F2F7F8;
  --ink: #0E2231;
  --ink-2: #33495A;
  --muted: #4E6170;
  --soft: #5A6B77;
  --teal: #00798C;
  --teal-dark: #005F6E;
  --teal-tint: #E1F0F2;
  --line: #E3ECEF;
  --line-2: #B9D3DA;
  --navy: #001524;
  --navy-muted: #A9C0C9;
  --gutter: clamp(20px, 5.6vw, 80px);
  --section: clamp(64px, 7vw, 96px);
  --radius: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; flex: none; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(820px + 2 * var(--gutter)); }
section[id] { scroll-margin-top: 96px; }

.skip-link { position: absolute; left: -9999px; top: 12px; }
.skip-link:focus { left: 12px; z-index: 30; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: #FFFFFF; }

/* Buttons */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 1.5px solid transparent; border-radius: 12px; font-size: 16px; font-weight: 600; white-space: nowrap; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.btn-primary { background: var(--teal); color: #FFFFFF; }
.btn-primary:hover { background: var(--teal-dark); color: #FFFFFF; }
.btn-outline { border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm { min-height: 44px; padding: 0 18px; border-radius: 10px; font-size: 15px; }

/* Header and footer */

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { width: auto; height: 40px; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav-link { color: var(--ink-2); }
.nav-link:hover { color: var(--teal); }

.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-block: 32px 40px; font-size: 14px; color: var(--soft); }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.footer-brand img { width: auto; height: 30px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--soft); }
.footer-links a:hover { color: var(--teal); }

/* Sections */

.section { padding-block: var(--section); }
.section-tint { background: var(--tint); }
.section-title { font-size: clamp(30px, 3vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }

.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; padding-block: clamp(48px, 6vw, 72px) clamp(64px, 7vw, 96px); }
.hero-text { grid-column: 1 / span 6; }
.hero-media { grid-column: 8 / span 5; }
.hero h1 { font-size: clamp(38px, 4.4vw, 62px); line-height: 1.05; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.lead { max-width: 560px; margin-top: 24px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.checks { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 36px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.checks li { display: flex; align-items: center; gap: 8px; }
.hero-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 24px; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #FFFFFF; }
.icon-tile { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--teal-tint); color: var(--teal); }
.card h3 { margin-top: 22px; font-size: 19px; line-height: 1.3; font-weight: 600; }
.card p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: start; }
.features-aside { grid-column: 1 / span 4; }
.features-aside img { width: 100%; margin-top: 36px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 20px; }
.feature-list { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.feature { padding-block: 26px; border-top: 1px solid var(--line); color: var(--teal); }
.feature h3 { margin-top: 16px; font-size: 18px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.feature p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--muted); }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.service { display: flex; gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #FFFFFF; color: var(--teal); }
.service h3 { font-size: 18px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.service p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.step { padding-top: 28px; border-top: 2px solid var(--teal); }
.step-label { font-size: 15px; font-weight: 600; color: var(--teal); }
.step h3 { margin-top: 12px; font-size: 22px; line-height: 1.3; font-weight: 600; }
.step p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--muted); }

.video-band { background: var(--navy); color: #FFFFFF; }
.video-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; }
.video-text { grid-column: 1 / span 5; }
.video-text p { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--navy-muted); }
.video-media { grid-column: 7 / span 6; }
.video { position: relative; display: block; overflow: hidden; border-radius: 18px; }
.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.play { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: var(--teal); color: #FFFFFF; box-shadow: 0 10px 30px rgba(0, 21, 36, 0.35); transform: translate(-50%, -50%); transition: transform 0.2s ease; }
.video:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.video:focus-visible { outline-color: #FFFFFF; }
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; }

.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: start; }
.about { grid-column: 1 / span 6; }
.about p { margin-top: 20px; font-size: 19px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.about img { width: 100%; margin-top: 36px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; }
.contact-card { grid-column: 8 / span 5; padding: 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--tint); }
.contact-card .section-title { font-size: clamp(28px, 2.6vw, 34px); }
.contact-card > p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.contact-list { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; font-size: 16px; line-height: 1.5; }
.contact-list li { display: flex; gap: 14px; color: var(--teal); }
.contact-list span { color: var(--ink); }
.contact-list strong { display: block; font-weight: 600; }
.contact-card .actions { margin-top: 32px; }

/* Privacy policy and 404 */

.page-head { padding-block: clamp(48px, 6vw, 80px) clamp(28px, 3vw, 40px); background: var(--tint); }
.page-head h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.page-head p { margin-top: 16px; color: var(--muted); }
.page-body { padding-block: 48px var(--section); }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 36px; font-size: 22px; line-height: 1.3; font-weight: 600; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 10px; }

/* Responsive */

@media (max-width: 1100px) {
  .cards, .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { gap: 22px; }
}

@media (max-width: 900px) {
  .hero, .features, .video-row, .contact { grid-template-columns: minmax(0, 1fr); }
  .nav-link { display: none; }
  .hero-text, .hero-media, .features-aside, .feature-list, .video-text, .video-media, .about, .contact-card { grid-column: 1 / -1; }
  .hero { row-gap: 36px; }
  .hero-media img { aspect-ratio: 4 / 3; }
  .features { row-gap: 8px; }
  .features-aside img { aspect-ratio: 16 / 10; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .video-row { row-gap: 28px; }
  .contact { row-gap: 48px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  section[id] { scroll-margin-top: 76px; }
  .header-row { min-height: 68px; }
  .brand img { height: 32px; }
  .cards, .services, .feature-list { grid-template-columns: 1fr; }
  .card, .service { padding: 22px; }
  .contact-card { padding: 26px; }
  .actions .btn { flex: 1 1 100%; }
  .play { width: 68px; height: 68px; }
}
