/* Caper Scaffold Services Inc. | v1.3.0 | like-for-like rebuild of the Wix site */

:root {
  --charcoal: #3b3a3a;
  --navy: #1e2d3b;
  --yellow: #edcd1f;
  --grey: #f7f7f7;
  --red: #e21c21;
  --green: #2aa660;
  --head: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 116px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-weight: 300; font-size: 17px; line-height: 1.7; color: var(--charcoal); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
strong { font-weight: 400; }
.wrap { width: 980px; max-width: calc(100% - 40px); margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; z-index: 300; background: #fff; padding: 8px 12px; }
.no-scroll { overflow: hidden; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h); background: var(--charcoal); box-shadow: 0 1px 4px rgba(0,0,0,.6); color: #fff; font-family: var(--head); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 48px 0 36px; }
.brand { display: flex; align-items: center; gap: 32px; }
.brand__logo { display: block; width: auto; height: 100px; }
.brand__text { text-align: right; }
.brand__name { display: block; text-decoration: none; font-size: 17px; line-height: 1; font-weight: 400; letter-spacing: .02em; }
.brand__name b { font-weight: 700; }
.brand__phone { display: block; margin-top: 18px; font-size: 16px; line-height: 1; font-weight: 600; text-decoration: none; }
.nav ul { list-style: none; display: flex; gap: 58px; margin: 0; padding: 0; }
.nav a { font-size: 16px; font-weight: 600; text-transform: uppercase; text-decoration: none; color: #fff; transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--red); }
.menu-btn { display: none; }

/* Mobile menu overlay */
.menu { position: fixed; inset: 0; z-index: 200; background: var(--yellow); display: none; font-family: var(--head); overflow-y: auto; }
.menu.is-open { display: block; }
.menu__close { position: absolute; top: 36px; right: 34px; width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--charcoal); }
.menu ul { list-style: none; margin: 0; padding: 86px 0 40px; text-align: center; }
.menu a { display: block; padding: 11px 0; font-size: 20px; font-weight: 400; text-transform: uppercase; text-decoration: none; color: var(--charcoal); }
.menu a.is-active { color: #fff; }

/* Hero: photo sits in a fixed layer and shows again beside the About panel */
.hero-bg { position: fixed; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero { position: relative; height: 900px; max-height: 100vh; min-height: 560px; margin-top: 0; display: flex; align-items: center; }
.hero__band { width: 100%; margin-top: 116px; padding: 22px 20px 26px; background: rgba(59,58,58,.65); text-align: center; }
.hero h1 { font-family: var(--head); font-weight: 600; font-size: 60px; line-height: 1.2; color: #fff; text-transform: uppercase; max-width: 900px; margin: 0 auto; }
.hero__down { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); color: #fff; line-height: 0; }

.section { background: #fff; padding: 110px 0 60px; }
.section-title { font-family: var(--head); font-weight: 600; font-size: 55px; line-height: 1.25; letter-spacing: .05em; color: var(--navy); text-align: center; text-transform: uppercase; }
.bar { display: block; width: 120px; height: 10px; background: var(--yellow); margin: 12px auto 0; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 300px); justify-content: center; gap: 0 22px; margin-top: 50px; }
.card { background: var(--grey); }
.card__img { position: relative; height: 237px; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img .bmr { position: absolute; right: 42px; bottom: 12px; width: 60px; height: auto; }
.card__body { padding: 32px 22px 12px; font-size: 15px; line-height: 1.6; }
.card h3 { font-family: var(--head); font-weight: 600; font-size: 22px; line-height: 1.1; color: var(--charcoal); text-align: center; margin: 0 -14px 24px; white-space: nowrap; }
.card p + p { margin-top: 24px; }

/* About */
.about { background: transparent; }
.about__panel { width: 55.6%; background: var(--grey); padding: 36px 60px 40px 0; }
.about__inner { width: 450px; max-width: 100%; margin-left: auto; }
.about .section-title, .about .bar { margin-left: -60px; }
.about .bar { margin: 12px auto 0; transform: translateX(-30px); }
.about p { margin-top: 28px; }
.about .lead { font-family: var(--body); font-weight: 400; font-size: 22px; line-height: 1.4; text-align: center; color: #2f2e2e; }
.about a { font-weight: 400; color: #2f2e2e; }
.about__logos { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; }

/* Stats */
.stats { background: var(--charcoal); color: #fff; font-family: var(--head); padding: 38px 0 42px; }
.stats ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); width: 900px; max-width: calc(100% - 40px); }
.stats li { text-align: center; position: relative; padding: 0 10px; }
.stats li + li::before { content: ""; position: absolute; left: 0; top: 24px; height: 74px; width: 2px; background: #fff; }
.stats .num { display: block; font-size: 60px; font-weight: 600; line-height: 1.2; }
.stats li:nth-child(3) .lbl { max-width: 200px; }
.stats .num sup { font-size: .4em; font-weight: 500; vertical-align: top; position: relative; top: .5em; margin-left: 1px; }
.stats .lbl { display: block; font-size: 22px; font-weight: 600; line-height: 1.1; max-width: 150px; margin: 14px auto 0; }

/* Projects collage */
.projects { padding-bottom: 40px; }
.gallery { margin-top: 130px; display: flex; flex-direction: column; gap: 30px; }
.grow { display: flex; gap: 30px; }
.gitem { position: relative; display: block; min-width: 0; margin: 0; overflow: hidden; outline-offset: 3px; }
.gitem picture { display: block; width: 100%; height: 100%; }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gitem figcaption { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; background: rgba(255,255,255,.72); font-family: var(--head); font-weight: 600; font-size: 20px; line-height: 1.2; color: var(--charcoal); text-align: center; opacity: 0; transition: opacity .45s ease; }
.gitem figcaption::after { content: ""; position: absolute; left: 50%; top: calc(50% + 22px); width: 0; height: 4px; background: var(--yellow); transform: translateX(-50%); transition: width .45s ease .1s; }
.gitem:hover img, .gitem:focus-visible img { transform: scale(1.05); }
.gitem:hover figcaption, .gitem:focus-visible figcaption { opacity: 1; }
.gitem:hover figcaption::after, .gitem:focus-visible figcaption::after { width: 48px; }
.grow--four .gitem { height: 246px; }
.g1, .g5 { flex: 246 1 0; } .g2 { flex: 199 1 0; } .g4 { flex: 200 1 0; }
.grow--two .gitem { flex: 1 1 0; aspect-ratio: 1; }
.gsmall { flex: 492 1 0; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.gsmall .gitem { aspect-ratio: 1; }
.g11 { flex: 459 1 0; }
/* Touch screens have no hover: show the label as a band along the bottom instead. */
@media (hover: none) {
  .gitem figcaption { inset: auto 0 0 0; display: block; padding: 7px 10px; background: rgba(59,58,58,.72); color: #fff; font-size: 14px; opacity: 1; }
  .gitem figcaption::after { display: none; }
  .gitem:hover img { transform: none; }
}

/* Clients */
.clients { background: var(--grey); padding: 56px 0 70px; }
.clients ul { list-style: none; margin: 44px 0 0; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.clients img { filter: grayscale(1); }

/* Contact */
.contact { background: #fff; padding: 66px 0 0; }
.contact__grid { display: grid; grid-template-columns: 570px 1fr; margin-top: 78px; text-align: left; }
.contact h3 { font-family: var(--head); font-weight: 600; font-size: 25px; line-height: 1.3; color: var(--navy); }
.contact p { margin-top: 12px; }
.contact h3 + p { margin-top: 14px; }
.contact .emp { margin-top: 26px; }
.contact .emp + p { max-width: 350px; margin-top: 26px; }
.contact a { font-weight: 400; color: #2f2e2e; }
.contact-line { display: flex; align-items: center; gap: 17px; margin-top: 16px; font-size: 22px; font-weight: 400; line-height: 1.2; }
.contact-line a { text-decoration: none; }
.contact-line--email { font-size: 17px; }
.contact-line--email a { text-decoration: underline; }
.contact-line .ico { flex: none; width: 43px; height: 43px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }

/* Footer */
.site-footer { background: #fff; text-align: center; font-family: var(--head); font-size: 14px; font-weight: 500; letter-spacing: .03em; color: #2f2e2e; padding: 40px 20px 46px; }
.site-footer .bar { width: 70px; margin: 0 auto 52px; }
.site-footer--plain { border-top: 20px solid var(--grey); padding-top: 12px; }

/* Scaffold systems page */
.page-head { background: var(--grey); margin-top: var(--header-h); padding: 74px 0 0; }
.page-head .wrap { position: relative; padding-bottom: 96px; }
.page-head h1 { font-family: var(--head); font-weight: 600; font-size: 55px; line-height: 1.2; color: var(--navy); text-transform: uppercase; max-width: 880px; padding-left: 20px; }
.page-head .bar { position: absolute; left: 24px; bottom: -5px; width: 115px; margin: 0; }
.systems { display: grid; grid-template-columns: 410px 410px; justify-content: center; gap: 46px 114px; padding: 52px 0 40px; }
.system { scroll-margin-top: 20px; }
.system h2 { font: inherit; font-weight: 400; }
.system:nth-child(odd) { text-align: right; }
.system:nth-child(odd) .slides { margin-left: auto; }
.slides { position: relative; width: 258px; height: 281px; margin-top: 14px; overflow: hidden; background: #a0a09f; }
/* Hidden slides are display:none so their lazy images load only when first shown. */
.slides picture { position: absolute; inset: 0; display: none; }
.slides picture.is-current { display: block; animation: slide-in .4s; }
@keyframes slide-in { from { opacity: 0; } to { opacity: 1; } }
.slides img { width: 100%; height: 100%; object-fit: cover; }
.slides button { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 70px; background: none; border: 0; padding: 0; color: #fff; cursor: pointer; filter: drop-shadow(0 0 2px rgba(0,0,0,.6)); }
.slides .prev { left: 0; } .slides .next { right: 0; }
.slides .count { position: absolute; right: 8px; bottom: 6px; font-family: var(--head); font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 0 3px rgba(0,0,0,.8); }
.back { text-align: center; padding: 0 0 0; }
.btn { display: inline-block; background: var(--charcoal); color: var(--yellow); font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; padding: 11px 14px; transition: background .2s; }
.btn:hover { background: #000; }

/* 404 */
.notfound { margin-top: var(--header-h); padding: 110px 20px 90px; text-align: center; }
.notfound p { margin: 30px 0 34px; }

.to-top { display: none; }
.callbar { display: none; }

@media (max-width: 1100px) {
  .nav ul { gap: 28px; }
  .site-header__inner { padding: 0 24px; }
  .about__panel { width: 62%; padding-left: 30px; }
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 860px) {
  :root { --header-h: 124px; }
  body { font-size: 16px; }
  .site-header__inner { padding: 0 64px 0 20px; justify-content: flex-start; }
  .brand { gap: 22px; align-items: center; }
  .brand__logo { width: 118px; height: auto; margin: 0; }
  .brand__text { padding: 0; }
  .brand__name { font-size: 15px; }
  .brand__phone { font-size: 15px; margin-top: 14px; }
  .nav { display: none; }
  .menu-btn { display: block; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; background: none; border: 0; padding: 0; color: #fff; cursor: pointer; }

  .hero-bg { position: absolute; top: var(--header-h); bottom: auto; height: 470px; }
  .hero { height: calc(470px + var(--header-h)); min-height: 0; max-height: none; align-items: flex-start; }
  .hero__band { margin-top: calc(var(--header-h) + 20px); padding: 34px 16px 40px; }
  .hero h1 { font-size: 32px; line-height: 1.25; }
  .hero__down { display: none; }

  .section { padding: 34px 0 40px; }
  .section-title { font-size: 34px; }
  .bar { width: 80px; height: 9px; margin-top: 8px; }
  main { display: flex; flex-direction: column; }
  .stats { order: 1; } .about { order: 2; } .projects { order: 3; } .clients { order: 4; } .contact { order: 5; }

  .cards { grid-template-columns: minmax(0, 350px); gap: 20px; margin-top: 36px; }
  .card__img { height: auto; aspect-ratio: 300 / 237; }
  .card__body { padding: 30px 20px 24px; font-size: 16px; }
  .card h3 { font-size: 22px; text-align: left; }

  .about { background: var(--grey); padding: 34px 0 40px; }
  .about__panel { width: auto; padding: 0 24px; background: none; }
  .about__inner { width: auto; margin: 0 auto; max-width: 520px; }
  .about .section-title, .about .bar { margin-left: auto; transform: none; }
  .about p { margin-top: 18px; }
  .about__logos { flex-direction: column; }

  .stats { padding: 30px 0 46px; }
  .stats ul { grid-template-columns: 1fr 1fr; gap: 56px 0; }
  .stats li + li::before { display: none; }
  .stats li:nth-child(-n+2)::after { content: ""; position: absolute; left: 50%; bottom: -30px; width: 70px; height: 2px; margin-left: -35px; background: #fff; }
  .stats .num { font-size: 40px; }
  .stats .lbl { font-size: 21px; }

  .gallery { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .grow, .gsmall { display: contents; }
  .gitem, .grow--four .gitem { height: auto; aspect-ratio: 1; }
  .g3, .g6, .g11 { grid-column: span 2; }
  .g3 { order: 1; } .g4, .g5 { order: 2; } .g6 { order: 3; } .gsmall .gitem { order: 4; } .g11 { order: 5; }

  .clients { padding: 40px 0 50px; }
  .clients ul { flex-direction: column; gap: 34px; margin-top: 40px; }

  .contact { padding-top: 40px; }
  .contact__grid { grid-template-columns: 1fr; gap: 44px; margin-top: 40px; }
  .contact-line { font-size: 20px; }
  .contact-line--email { font-size: 17px; }
  .site-footer { padding-top: 50px; }
  .site-footer .bar { display: none; }

  .page-head { padding-top: 34px; text-align: center; }
  .page-head .wrap { padding-bottom: 36px; }
  .page-head h1 { font-size: 24px; line-height: 1.3; padding: 0; max-width: 300px; margin: 0 auto; }
  .page-head .bar { position: static; margin: 12px auto 0; width: 80px; }
  .systems { grid-template-columns: minmax(0, 1fr); gap: 50px; padding: 40px 12px; max-width: 500px; margin: 0 auto; }
  .system:nth-child(1) { order: 1; } .system:nth-child(2) { order: 2; } .system:nth-child(4) { order: 3; }
  .system:nth-child(5) { order: 4; } .system:nth-child(3) { order: 5; } .system:nth-child(6) { order: 6; }
  .system > h2, .system > p { padding: 0 8px; }
  .slides { width: 100%; height: auto; aspect-ratio: 1; }
  .back { padding-bottom: 30px; }

  /* Tap-to-call bar: phones and small tablets only. The page gets matching bottom room so the bar never covers the footer. */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .callbar { display: flex; align-items: center; justify-content: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; height: calc(56px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--yellow); color: var(--charcoal); font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: .02em; text-decoration: none; box-shadow: 0 -1px 5px rgba(0,0,0,.25); }
  .callbar:active { background: #d9bb1c; }

  .to-top { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); z-index: 90; width: 60px; height: 60px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--yellow); box-shadow: 0 1px 5px rgba(0,0,0,.15); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .to-top.is-visible { opacity: 1; pointer-events: auto; }
}

/* Smallest phones (under 360 px): slightly smaller logo so the company name stays on two lines. */
@media (max-width: 359px) {
  .site-header__inner { padding: 0 56px 0 12px; }
  .brand { gap: 12px; }
  .brand__logo { width: 96px; }
  .brand__name { font-size: 14px; }
  .brand__phone { font-size: 14px; margin-top: 12px; }
  .menu-btn { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slides picture.is-current { animation: none; }
  .gitem img, .gitem figcaption, .gitem figcaption::after { transition: none; }
  .to-top { transition: none; }
}
