/* Stockport Cutting Formes Ltd: one shared stylesheet.
   Colours and sizes follow the previous theme: grey page, dark bars, blue links, 1020px column, 14px text. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #f7f7f7; color: #777;
  font: 14px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
  word-wrap: break-word;
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: #0088cc; text-decoration: none; }
a:hover, a:focus { color: #005580; text-decoration: underline; }
h1, h2, h3 { margin: 0 0 15px; font-weight: 400; line-height: 1.25; }
h1 { font-size: 26px; }
h2 { font-size: 22px; }
p { margin: 0 0 12px; }

.container { max-width: 1170px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: #000; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* top bar with icon links */
.topbar { background: #333; }
.social { display: flex; justify-content: flex-end; gap: 6px; padding: 6px 0; }
.social a { color: #fff; background: #555; border-radius: 3px; padding: 1px 9px; font-size: 12px; line-height: 20px; }
.social a:hover, .social a:focus { background: #0088cc; text-decoration: none; }

/* logo and contact details */
.site-header { padding: 15px 0; }
.header-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.logo { display: inline-block; flex: none; }
.contact-details { text-align: right; padding-top: 10px; max-width: 430px; }
.contact-details p { margin: 0 0 4px; }
.contact-details svg { color: #aaa; vertical-align: -2px; margin-left: 4px; }

/* main navigation */
.main-nav { background: #1b1b1b; background-image: linear-gradient(to bottom, #222, #111); border-top: 1px solid #000; }
.main-nav ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.main-nav li + li { border-left: 1px solid #3c3c3c; }
.main-nav a { display: block; color: #f6f6f6; padding: 11px 16px; line-height: 20px; }
.main-nav a:hover, .main-nav a:focus { background: #666; color: #f6f6f6; text-decoration: none; }
.main-nav a[aria-current="page"] { background: #717171; color: #fff; }
.main-nav .home svg { display: block; }

/* page body */
.page { padding-top: 25px; padding-bottom: 20px; min-height: 40vh; }
.page-title { color: #555; }
.callout_title { color: #555; }
.row { display: grid; gap: 25px; margin-bottom: 25px; align-items: start; }
.cols-1 { grid-template-columns: 1fr; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); align-items: center; }
.pic { text-align: center; margin: 0; }
.cell > :last-child { margin-bottom: 0; }

/* embedded video, kept 16:9 */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-gate { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 16px; color: #ddd; }
.video-gate p { margin: 0 0 10px; }
.video-title { font-size: 18px; color: #fff; }
.video-note { font-size: 13px; max-width: 460px; }
a.video-btn { display: inline-block; background: #fff; color: #111; font-weight: 700; padding: 9px 22px; border-radius: 4px; }
a.video-btn:hover, a.video-btn:focus { background: #0088cc; color: #fff; text-decoration: none; }
@media (max-width: 480px) { .video-gate { padding: 8px; } .video-title { font-size: 15px; } .video-note { font-size: 12px; } .video-gate p { margin-bottom: 6px; } }

/* slider: shows the first picture without JavaScript */
.slider { position: relative; overflow: hidden; background: #000; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; margin: 0; opacity: 0; transition: opacity .8s ease; }
.slide img { display: block; width: 100%; }
.slider:not(.slider--js) .slide:first-child, .slide.is-active { opacity: 1; }
.slider-btn { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 56px;
  border: 0; background: rgba(0,0,0,.35); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.slider--js .slider-btn { display: block; }
.slider-prev { left: 0; } .slider-next { right: 0; }
.slider-btn:hover, .slider-btn:focus-visible { background: rgba(0,0,0,.65); }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* testimonials */
.testimonial { background: #fdfdfd; border: 1px solid #e5e5e5; padding: 20px; margin-bottom: 25px; }
.testimonial::after { content: ""; display: block; clear: both; }
.testimonial .logo { margin-bottom: 15px; }
.testimonial img.alignleft { float: left; margin: 0 20px 10px 0; }

/* contact */
.contact { background: #fdfdfd; border: 1px solid #e5e5e5; padding: 20px; }
.contact::after { content: ""; display: block; clear: both; }

/* footer */
.site-footer { background: #303030; color: #bababa; padding: 14px 0; margin-top: 20px; }
.site-footer p { margin: 0; }

/* phones and small tablets */
@media (max-width: 767px) {
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .main-nav ul { display: grid; grid-template-columns: repeat(2, 1fr); }
  .main-nav .home { display: none; }
  .main-nav a { padding: 12px 14px; }
  .social { justify-content: center; }
  .header-row { flex-direction: column; align-items: center; gap: 10px; }
  .contact-details { text-align: center; padding-top: 0; }
  .site-header { text-align: center; }
  .main-nav li + li { border-left: 0; }
  .testimonial img.alignleft { float: none; display: block; margin: 0 0 10px; }
}

@media print { .topbar, .main-nav, .slider-btn { display: none; } body { background: #fff; color: #000; } }
