/* =========================================================
   Sky Steel Services - website styles
   Palette: graphite, galvanized grey, steel grey, primer red
   ========================================================= */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }

:root {
  --graphite: #262b30;
  --graphite-dark: #1c2024;
  --steel: #5f6b75;
  --steel-light: #9aa5ae;
  --galv: #e6e9eb;
  --page: #f2f3f4;
  --line: #cfd5da;
  --red: #8e1b1f;
  --red-dark: #6f1518;
  --text: #24292e;
  --muted: #55606a;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --header-h: 128px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  /* copy protection: no text selection except contact details */
  -webkit-user-select: none; user-select: none;
}
.selectable, .selectable * { -webkit-user-select: text; user-select: text; }
img { max-width: 100%; height: auto; display: block; -webkit-user-drag: none; -webkit-touch-callout: none; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; color: var(--graphite); margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: 2rem; text-transform: uppercase; letter-spacing: .02em; }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: .01em; }
p { margin: 0 0 .8em; }

/* Dimension-line heading:  |------------|  under the text */
.dim { display: inline-block; margin-bottom: 1.1rem; }
.dim::after {
  content: ""; display: block; height: 9px; margin-top: 6px;
  border-left: 2px solid var(--red); border-right: 2px solid var(--red);
  background: linear-gradient(var(--red), var(--red)) center / 100% 1.5px no-repeat;
}

/* Buttons */
.btn {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none;
  font-family: var(--head); font-weight: 600; font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .6em 1.4em; border: 2px solid var(--red); border-radius: 2px; transition: background .2s, border-color .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-light { background: #fff; color: var(--red); border-color: #fff; }
.btn-light:hover { background: var(--galv); border-color: var(--galv); color: var(--red-dark); }

/* ---------- Fixed header ---------- */
#header { position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.topbar { background: #fff; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 82px; }
.logo img { width: 210px; }
.top-contact { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.top-contact a { color: var(--graphite); text-decoration: none; }
.top-contact a:hover { color: var(--red); }
.top-phone { font-family: var(--head); font-weight: 700; font-size: 1.35rem; }
.top-contact .btn { color: #fff; font-size: 1rem; padding: .45em 1.1em; }
.mainnav { background: var(--graphite); border-bottom: 3px solid var(--red); }
.mainnav .wrap { display: flex; }
.mainnav a {
  color: #dfe3e6; text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .07em; text-transform: uppercase; padding: 10px 18px; white-space: nowrap;
}
.mainnav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.mainnav a.active { color: #fff; background: var(--red); }

/* ---------- Hero / blueprint banner ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background-color: var(--graphite);
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero::before {
  content: ""; position: absolute; top: 4%; right: -6%; width: 68%; height: 92%;
  background: url("../images/banner-lines.png") right center / contain no-repeat; opacity: .5;
}
.hero-inner { position: relative; padding: 80px 24px 90px; }
.hero-text { max-width: 620px; }
.hero h1 { color: #fff; margin-bottom: .3em; }
.eyebrow { font-family: var(--head); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-light); font-size: 1rem; margin-bottom: 1rem; }
.hero-sub { font-size: 1.3rem; color: #d3d8dc; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.types { background: var(--galv); border-bottom: 1px solid var(--line); }
.types .wrap { padding-top: 14px; padding-bottom: 14px; text-align: center; font-family: var(--head); font-weight: 600; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.types i { display: inline-block; width: 6px; height: 6px; background: var(--red); margin: 0 10px 3px; transform: rotate(45deg); }
.types b { color: var(--graphite); margin-left: 18px; }

/* Inner page header */
.page-head { background: var(--graphite); color: #fff; padding: 38px 0 34px;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 28px 28px; }
.page-head h1 { color: #fff; margin-bottom: .15em; font-size: clamp(2.2rem, 4vw, 3rem); }
.page-head p { color: #c9cfd4; margin: 0; font-size: 1.15rem; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--galv); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 860px; margin-bottom: 1.5rem; }
.more { margin: 18px 0 0; font-weight: 600; }
.more a { text-decoration: none; }
.small-note { margin: 16px 0 0; font-size: .92rem; color: var(--muted); font-style: italic; }
h3.sub { font-size: 1.5rem; text-transform: uppercase; }

/* Steel-shape icons */
.svc-card svg, .svc-title svg, .profile-strip svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }

/* Service cards (home) */
.svc-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.svc-card { display: block; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--graphite); padding: 20px 18px 18px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.svc-card:hover { border-top-color: var(--red); transform: translateY(-3px); color: var(--text); }
.svc-card svg { width: 46px; height: 46px; color: var(--red); margin-bottom: 10px; }
.svc-card h3 { font-size: 1.25rem; margin-bottom: .35em; }
.svc-card p { font-size: .95rem; color: var(--muted); margin: 0; }

/* Steel profile strip */
.profile-strip { background: var(--graphite-dark); color: var(--steel-light); }
.profile-strip .wrap { display: flex; justify-content: space-between; padding-top: 16px; padding-bottom: 14px; }
.profile-strip span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.profile-strip svg { width: 34px; height: 34px; stroke-width: 2; }
.profile-strip small { font-family: var(--head); font-weight: 600; letter-spacing: .12em; font-size: .8rem; }

/* Why block */
.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.quality { margin: 0; padding: 18px 22px; background: #fff; border-left: 4px solid var(--red); font-family: var(--head); font-weight: 600; font-size: 1.5rem; line-height: 1.25; color: var(--graphite); }

/* Fillet-weld bullets */
ul.weld { list-style: none; margin: 0; padding: 0; }
ul.weld li { position: relative; padding: 9px 0 9px 30px; border-bottom: 1px solid var(--line); }
ul.weld li:last-child { border-bottom: 0; }
ul.weld li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 13px; height: 13px; background: var(--red); clip-path: polygon(0 0, 0 100%, 100% 100%); }
ul.weld b { color: var(--graphite); }
ul.deliver { columns: 2; column-gap: 40px; }
ul.deliver li { break-inside: avoid; }
ul.practices { max-width: 860px; }

/* Service blocks */
.svc-block { display: grid; grid-template-columns: 1fr 1.45fr; gap: 36px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.svc-block:last-child { border-bottom: 0; }
.svc-block img { border: 1px solid var(--line); background: #fff; }
.svc-block.flip { grid-template-columns: 1.45fr 1fr; }
.svc-block.flip img { order: 2; }
.svc-title { display: flex; align-items: center; gap: 12px; font-size: 1.8rem; }
.svc-title svg { width: 38px; height: 38px; color: var(--red); flex: none; }
.svc-block p { color: var(--muted); }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--graphite); padding: 18px; }
.steps span { font-family: var(--head); font-weight: 700; font-size: 2.2rem; color: var(--red); line-height: 1; }
.steps h3 { margin: 8px 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Sliders ---------- */
.slider { position: relative; background: #fff; border: 1px solid var(--line); outline: none; }
.slider:focus-visible { box-shadow: 0 0 0 3px rgba(142,27,31,.35); }
.slides { display: flex; transition: transform .55s ease; }
.slider-viewport { overflow: hidden; }
.slide { flex: 0 0 100%; margin: 0; }
.slide img { width: 100%; cursor: zoom-in; }
.slide figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 18px; background: var(--graphite); color: #fff; }
.slide figcaption strong { font-family: var(--head); font-weight: 600; font-size: 1.3rem; letter-spacing: .03em; text-transform: uppercase; }
.slide figcaption span { color: var(--steel-light); font-weight: 600; }
.sl-btn {
  position: absolute; top: calc(50% - 50px); width: 46px; height: 64px; border: 0; cursor: pointer;
  background: rgba(38,43,48,.82); color: #fff; font-size: 2.4rem; line-height: 1; padding: 0 0 6px;
}
.sl-btn:hover { background: var(--red); }
.sl-prev { left: 0; } .sl-next { right: 0; }
.sl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.sl-dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.sl-dots button { width: 12px; height: 12px; padding: 0; border: 2px solid var(--steel); background: transparent; transform: rotate(45deg); cursor: pointer; }
.sl-dots button.on { background: var(--red); border-color: var(--red); }
.sl-count { font-family: var(--head); font-weight: 600; letter-spacing: .08em; min-width: 60px; }

/* Lightbox */
#lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,23,26,.92); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 20px; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 100%; max-height: calc(100vh - 110px); background: #fff; }
#lightbox p { color: #fff; margin: 12px 0 0; font-family: var(--head); font-size: 1.2rem; letter-spacing: .04em; text-transform: uppercase; }
#lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* Call to action */
.cta { background: var(--red); color: #fff; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 34px; padding-bottom: 34px; }
.cta h2 { color: #fff; margin: 0 0 .15em; font-size: 1.9rem; }
.cta p { margin: 0; color: #f3dcdc; font-size: 1.1rem; }

/* Contact page */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 36px; }
.c-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--graphite); padding: 18px 22px; }
.c-card h3 { text-transform: uppercase; color: var(--steel); font-size: 1.1rem; letter-spacing: .08em; }
.c-card p { margin: 0; font-size: 1.15rem; }
.c-card a { color: var(--graphite); text-decoration: none; font-weight: 600; }
.c-card a:hover { color: var(--red); }
.send-box { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); padding: 24px 28px; }
.send-steps { margin: 0 0 20px; padding-left: 22px; }
.send-steps li { margin-bottom: 8px; }

/* Footer */
.footer { background: var(--graphite-dark); color: #aab3ba; font-size: .95rem; }
.footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; padding-top: 36px; padding-bottom: 26px; }
.footer h4 { font-family: var(--head); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 10px; font-size: 1.05rem; }
.footer a { color: #dfe3e6; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-logo { background: #fff; padding: 8px 12px; display: inline-block; margin-bottom: 12px; }
.footer-logo img { width: 170px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 5px; }
.copyright { border-top: 1px solid #343a40; text-align: center; padding: 14px 24px; font-size: .85rem; color: #8a949c; }

/* ---------- Tablets ---------- */
@media (max-width: 1000px) {
  .svc-cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; gap: 24px; }
  .hero::before { opacity: .28; width: 90%; right: -20%; }
  .top-contact .top-email { display: none; }
}
/* ---------- Phones ---------- */
@media (max-width: 680px) {
  :root { --header-h: 104px; }
  .topbar .wrap { height: 62px; }
  .logo img { width: 150px; }
  .top-contact .top-phone { display: none; }
  .top-contact .btn { font-size: .9rem; padding: .4em .8em; }
  .mainnav .wrap { overflow-x: auto; padding: 0; -webkit-overflow-scrolling: touch; }
  .mainnav a { font-size: .95rem; padding: 9px 13px; }
  .hero-inner { padding: 50px 24px 56px; }
  .types b { display: block; margin: 6px 0 0; }
  .svc-cards, .steps, .contact-cards, .footer .wrap { grid-template-columns: 1fr; }
  .svc-block, .svc-block.flip { grid-template-columns: 1fr; gap: 16px; }
  .svc-card { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 14px 16px; }
  .svc-card svg { width: 38px; height: 38px; margin: 2px 0 0; grid-row: span 2; }
  .svc-block.flip img { order: 0; }
  ul.deliver { columns: 1; }
  .profile-strip svg { width: 26px; height: 26px; }
  .profile-strip small { font-size: .65rem; }
  .slide figcaption { flex-direction: column; gap: 2px; }
  .sl-btn { width: 36px; height: 50px; font-size: 1.9rem; top: calc(50% - 60px); }
  .sl-hint { display: none; }
  .section { padding: 40px 0; }
  h2 { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) { .slides, .svc-card { transition: none; } html { scroll-behavior: auto; } }
