/* etron.ca — static site styles */

/* Self-hosted fonts (latin subset, variable weight) */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/montserrat.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/montserrat-italic-600.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/open-sans.woff2") format("woff2");
}
:root {
  --navy: #223e67;
  --navy-dark: #172b48;
  --navy-deep: #0f1e33;
  --charcoal: #363435;
  --ink: #1f2328;
  --muted: #5b6573;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --accent: #f5b301;
  --accent-hover: #ffc629;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 30, 51, .10);
  --wrap: 1160px;
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--navy-deep); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); font-weight: 400; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 400; }
h3 { font-size: 1.1rem; font-weight: 600; }
h1 strong, h2 strong { font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: .9rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 24px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--navy-deep); }
.btn-accent:hover { background: var(--accent-hover); color: var(--navy-deep); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand img { width: 141px; height: 42px; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a.nav-link {
  font-family: var(--font-head); font-size: .95rem; font-weight: 500; color: var(--charcoal); text-decoration: none;
}
.header-nav a.nav-link:hover { color: var(--navy); }
.header-nav .btn { padding: 11px 18px; font-size: .92rem; }
.header-nav .btn-label-short { display: none; }

@media (max-width: 820px) {
  .header-nav .nav-link { display: none; }
}
@media (max-width: 420px) {
  .header-inner { height: 64px; }
  .brand img { width: 118px; height: 35px; }
  .header-nav .btn { padding: 10px 14px; }
  .header-nav .btn-label-long { display: none; }
  .header-nav .btn-label-short { display: inline; }
}

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(245, 179, 1, .16), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
  padding-top: 88px; padding-bottom: 96px;
}
.hero h1 { color: #fff; }
.hero h1 strong { color: var(--accent); }
.hero .lead { font-size: 1.15rem; color: rgba(255, 255, 255, .85); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-figure { margin: 0; position: relative; }
.hero-figure img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.hero-figure::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid rgba(245, 179, 1, .55);
  border-radius: var(--radius); z-index: -1;
}
.hero-figure { z-index: 0; isolation: isolate; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding-top: 56px; padding-bottom: 72px; }
  .hero-figure { max-width: 560px; margin-right: 18px; }
}
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Sections */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 48px; }
@media (max-width: 700px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* Feature cards */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.feature {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.feature-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(34, 62, 103, .08); color: var(--navy);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0; padding-top: 3px; font-size: 1.05rem; color: var(--ink); }
.feature h3::first-letter { text-transform: uppercase; }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-body h2 { font-weight: 700; }
.split-body .callout { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--navy); margin: 1.2em 0; }
.split-body .quote {
  font-family: var(--font-head); font-size: 1.2rem; color: var(--charcoal);
  border-left: 4px solid var(--accent); padding-left: 18px; margin: 1.5em 0 1.8em;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* Industries */
.industries-intro { font-family: var(--font-head); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-style: italic; font-weight: 600; color: var(--navy-deep); max-width: 820px; margin: 0 auto 40px; text-align: center; }
.industry-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.industry {
  text-align: center; background: #fff; border-radius: var(--radius); padding: 30px 20px; border: 1px solid var(--line);
}
.industry svg { width: 44px; height: 44px; color: var(--navy); margin: 0 auto 12px; display: block; }
.industry span { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
@media (max-width: 640px) { .industry-list { grid-template-columns: 1fr; } .industry { display: flex; align-items: center; gap: 16px; text-align: left; padding: 18px 20px; } .industry svg { margin: 0; width: 36px; height: 36px; } }

.service-area { margin: 40px auto 0; max-width: 820px; text-align: center; color: var(--muted); font-size: .98rem; }

/* Contact */
.contact { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; text-align: center; }
.contact h2 { color: #fff; font-weight: 700; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 20px; margin-top: 36px; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 20px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius);
  color: #fff; text-decoration: none; transition: background-color .15s, border-color .15s;
}
.contact-card:hover { background: rgba(255, 255, 255, .12); border-color: var(--accent); color: #fff; }
.contact-card svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 6px; }
.contact-card .label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.contact-card .value { font-family: var(--font-head); font-size: clamp(1.15rem, 1rem + .8vw, 1.45rem); font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 640px) { .contact-cards { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .65); font-size: .9rem; padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.site-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.site-footer p { margin: 0; }
