/* The Coil Works — site styles
   Design language taken from the Induction Coil Services data sheet. */

:root {
  --navy-900: #0F1E38;
  --navy-800: #172C4E;
  --navy-700: #1B3A6B;
  --blue-500: #1668B3;
  --red: #C8102E;
  --red-dark: #A60D26;
  --ink: #2E3439;
  --slate: #5B6672;
  --rule: #D4DAE1;
  --band: #EDF1F5;
  --paper: #FFFFFF;

  --wrap: 1180px;
  --gap: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--blue-500); }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  color: var(--navy-700);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 900;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; max-width: 72ch; }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 .9em;
}

.eyebrow--light { color: rgba(255,255,255,.82); }

.dash::before {
  content: "";
  display: block;
  width: 56px;
  height: 5px;
  background: var(--red);
  margin-bottom: 18px;
}

.quiet { color: var(--slate); }
.small { font-size: .92rem; }

/* ---------- Utility bar ---------- */

.utility {
  background: var(--navy-900);
  color: rgba(255,255,255,.78);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
}
.utility .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.utility a { color: #fff; text-decoration: none; letter-spacing: .06em; }

/* ---------- Masthead ---------- */

.masthead {
  border-bottom: 4px solid var(--red);
  background: var(--paper);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.masthead-logo img { width: 265px; }
.masthead-mark img { width: 185px; }
.masthead-title {
  text-align: right;
  color: var(--navy-700);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .95rem;
  line-height: 1.5;
}
.masthead-title span {
  display: block;
  color: var(--slate);
  font-size: .78rem;
  font-weight: 700;
}

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

.nav {
  background: var(--navy-800);
}
.nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: block;
  padding: 14px 20px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .87rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  border-bottom: 4px solid transparent;
}
.nav a:hover { background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }

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

.hero {
  position: relative;
  background: var(--navy-800);
  color: #fff;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  top: 0; right: 0; bottom: 0; left: 0;
  background-size: cover;
  background-position: center right;
  opacity: .55;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(100deg, var(--navy-800) 32%, rgba(23,44,78,.72) 58%, rgba(23,44,78,.25) 100%);
}
.hero .wrap {
  position: relative;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.9);
  max-width: 56ch;
}
.hero--compact .wrap { padding-top: 42px; padding-bottom: 42px; }

/* ---------- Stat bar ---------- */

.stats {
  background: var(--band);
  border-bottom: 1px solid var(--rule);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 26px;
  padding-bottom: 26px;
}
.stat { padding: 0 22px; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b {
  display: block;
  color: var(--navy-700);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.1;
}
.stat span {
  display: block;
  margin-top: 6px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- Sections ---------- */

.section { padding: 62px 0; }
.section--band { background: var(--band); }
.section--tight { padding: 44px 0; }

.lead { font-size: 1.12rem; color: var(--slate); }

/* ---------- Coil entries ---------- */

.coil {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: start;
  padding: 34px 0;
  border-top: 1px solid var(--rule);
}
.coil:first-of-type { border-top: 0; }
.coil-figure {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 6px;
  margin: 0;
}
.coil-figure figcaption {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 9px 4px 3px;
}
.coil-media { display: grid; gap: 14px; }
.coil-media .coil-figure--photo { justify-self: start; max-width: 62%; }

/* click to enlarge */
.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(15, 30, 56, .95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  z-index: 200;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 96vw;
  max-height: 84vh;
  width: auto;
  background: #fff;
  padding: 8px;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: var(--red);
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-size: .8rem;
  padding: 11px 18px;
  cursor: pointer;
}
.lightbox-caption {
  position: absolute;
  left: 0; right: 0;
  bottom: 20px;
  text-align: center;
  color: rgba(255,255,255,.85);
  font-size: .85rem;
}

/* media placeholders awaiting source files */
.media-slot {
  border: 2px dashed var(--slate);
  background: var(--band);
  color: var(--slate);
  text-align: center;
  padding: 44px 26px;
}
.media-slot b { display: block; color: var(--navy-700); font-size: 1.05rem; margin-bottom: 6px; }
.media-frame { background: #000; }
.media-frame video { width: 100%; display: block; }
.video-embed {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* video poster card — links out until the embed is dropped in */
.video-card {
  position: relative;
  display: block;
  background: #000;
  overflow: hidden;
  text-decoration: none;
}
.video-card img { width: 100%; opacity: .62; }
.video-card:hover img { opacity: .75; }
.video-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 26px;
  background: linear-gradient(180deg, rgba(15,30,56,0) 0%, rgba(15,30,56,.88) 100%);
  color: #fff;
}
.video-card-body b { display: block; font-size: 1.25rem; font-weight: 900; }
.video-card-body span { font-size: .84rem; color: rgba(255,255,255,.8); }
.video-card-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--red);
}
.video-card-play::after {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-left: 24px solid #fff;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}
.coil-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}
.coil-title h3 { margin: 0; color: var(--blue-500); font-size: 1.45rem; }
.coil-title h3 em { font-style: normal; color: var(--navy-700); }
.tag {
  background: var(--red);
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
}
.oem {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 14px;
}

/* Red square bullets, as on the data sheet */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 11px;
  max-width: 62ch;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .56em;
  width: 8px;
  height: 8px;
  background: var(--red);
}

/* ---------- Card grids ---------- */

.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--navy-700);
  padding: 22px;
}
.card h3 { font-size: 1.12rem; color: var(--blue-500); }
.card p:last-child { margin-bottom: 0; }
.card img { margin-bottom: 14px; }

.cols3 { columns: 3; column-gap: 36px; }
.cols3 .ticks li { break-inside: avoid; }

/* ---------- Service centers ---------- */

.centers {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.center {
  background: var(--navy-800);
  color: #fff;
  padding: 22px 24px;
}
.center b { display: block; font-size: 1.45rem; font-weight: 900; }
.center span {
  display: block;
  margin-top: 6px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

/* ---------- Banners ---------- */

.banner {
  background: var(--red);
  color: #fff;
  padding: 30px 0;
}
.banner .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
}
.banner h2, .banner p { color: #fff; margin: 0; }
.banner h2 { font-size: 1.35rem; }
.banner p { margin-top: 8px; max-width: 66ch; }
.banner-contact {
  text-align: right;
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.5;
}
.banner-contact a { color: #fff; text-decoration: none; }

.offer {
  border: 3px solid var(--red);
  padding: 26px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 26px;
  align-items: start;
  background: #fff;
}
.offer-pct {
  color: var(--red);
  font-size: 3.4rem;
  font-weight: 900;
  line-height: .9;
}
.offer-pct span {
  display: block;
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--slate);
  margin-top: 8px;
}
.offer h3 { margin-top: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-size: .85rem;
  padding: 14px 26px;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--red-dark); }
.btn--ghost {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- Form ---------- */

.form {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  max-width: 720px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--slate);
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }

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

.partners {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
}
.partners .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.partners img { width: 260px; }
.partners p {
  margin: 0;
  text-align: right;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--navy-700);
  max-width: 42ch;
}

.site-footer {
  position: relative;
  background: var(--navy-900);
  color: rgba(255,255,255,.82);
  overflow: hidden;
}
.footer-photo {
  position: absolute;
  inset: 0;
  top: 0; right: 0; bottom: 0; left: 0;
  background-size: cover;
  background-position: center;
  opacity: .3;
}
.footer-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, var(--navy-900) 26%, rgba(15,30,56,.75) 100%);
}
.site-footer .wrap {
  position: relative;
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 52px;
  padding-bottom: 52px;
}
.site-footer h4 {
  color: rgba(255,255,255,.72);
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.site-footer a { color: #fff; }
.site-footer .phone {
  font-size: 1.7rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
}
.site-footer .mail {
  font-size: 1.02rem;
  font-weight: 700;
  word-break: break-word;
}

.colophon {
  background: var(--red);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.colophon .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
  padding-top: 13px;
  padding-bottom: 13px;
}
.colophon a { color: #fff; text-decoration: none; letter-spacing: .08em; }
.colophon a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .coil { grid-template-columns: 1fr; gap: 22px; }
  .coil-media .coil-figure--photo { max-width: 100%; }
  .stats .wrap { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .banner .wrap { grid-template-columns: 1fr; }
  .banner-contact { text-align: left; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .cols3 { columns: 2; }
  .partners p { text-align: left; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .masthead .wrap { flex-wrap: wrap; }
  .masthead-mark { display: none; }
  .masthead-title { text-align: left; }
  .nav a { padding: 12px 14px; font-size: .8rem; }
  .stats .wrap { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; padding-bottom: 14px; }
  .form { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; gap: 14px; }
  .cols3 { columns: 1; }
  .utility .wrap { font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
