/* Warp Textiles Inc. Hand-written stylesheet, replaces the Oshin theme.
   Values measured from the live site at 1280px and 390px wide. */

:root {
  --red: #d80808;
  --red-alt: #dd3333;
  --text: #444;
  --dark: #222;
  --rule: #e8e8e8;
  --footer: #3d3f3e;
  --footer-bar: #2c2e2e;
  --footer-text: #a2a2a2;
  --footer-head: #dfdfdf;
  --footer-list: #cacaca;
  --wrap: 1160px;
  --side: 60px;
  --gap: 58px;
  --header-h: 83px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 28px;
  color: var(--text);
  background: #fff;
}

img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--red); text-decoration: none; }
a:hover { color: #000; }
a.plain { color: inherit; }
p { margin: 0 0 30px; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 400; }
.center { text-align: center; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  width: calc(100% - 2 * var(--side));
  max-width: var(--wrap);
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  background: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo { display: block; line-height: 0; }
.logo img { width: 200px; height: 33px; }

.site-nav ul { list-style: none; margin: 0 30px 0 0; padding: 0; display: flex; }
.site-nav a {
  display: block;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 400;
  line-height: var(--header-h);
  text-transform: uppercase;
  color: #333;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--red); }

.menu-toggle {
  display: none;
  width: 30px; height: 30px;
  margin-right: 12px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle .bars,
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  display: block;
  width: 18px; height: 2px;
  margin: 0 auto;
  background: #333;
  position: relative;
  transition: transform .2s, background-color .2s;
}
.menu-toggle .bars::before,
.menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -5px; }
.menu-toggle .bars::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }

/* Home: header sits over the full-height hero image */
.home .site-header { position: absolute; top: 0; left: 0; right: 0; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 15px 20px;
  font-size: 13px;
  font-weight: 400;
  line-height: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  transition: background-color .2s;
}
.button:hover { background: #000; color: #fff; }

/* ---------- Headings ---------- */
.heading {
  margin: 0;
  font-size: 38px;
  font-weight: 300;
  line-height: 63px;
  color: var(--red);
}
.heading-alt { color: var(--red-alt); margin-bottom: 30px; }
.subheading {
  margin: 0 0 30px;
  font-size: 30px;
  font-weight: 300;
  line-height: 1.8;
  text-align: center;
  color: var(--red);
}
.subheading-sm { font-size: 20px; text-align: left; }

/* ---------- Home hero ---------- */
.hero {
  display: flex;
  align-items: center;
  height: 100vh;
  min-height: 560px;
  background: var(--bg) no-repeat center center / cover fixed;
}
.hero-box { background: #fff; padding: 25px; }
.hero-box p { margin-bottom: 60px; }
.spacer { height: 180px; }

/* ---------- Inner page banner ---------- */
.page-banner {
  position: relative;
  padding: 30px 0;
  background: var(--bg) no-repeat center center / cover fixed;
  text-align: center;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: #000;
  opacity: var(--overlay, .5);
}
.page-banner .wrap { position: relative; }
.page-banner h1 {
  margin: 0;
  font-size: 70px;
  font-weight: 300;
  line-height: 1.8;
  color: #fff;
}

/* ---------- Sections and columns ---------- */
.section { padding: 90px 0; }
.section-100 { padding: 100px 0; }
.cols { display: grid; gap: 50px var(--gap); }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-2-1 { grid-template-columns: 754fr 348fr; }
.lead {
  max-width: 80%;
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 35px;
}
.lead p { margin: 0 0 30px; }
.lead p:last-child { margin: 0; }
.sep {
  width: 100px; height: 3px;
  margin: 0 0 30px;
  border: 0;
  background: var(--rule);
}
.sep-sm { width: 40px; height: 2px; margin: 38px auto 0; }

/* ---------- Products ---------- */
.section-products { padding-top: 140px; }
.products { row-gap: 50px; }
.product .product-img img { width: 100%; }
.product p { margin-bottom: 30px; }

/* ---------- Technical info gallery ---------- */
.gallery-row { margin-top: 50px; }
.gallery {
  list-style: none;
  margin: 0; padding: 0 40px 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px 40px;
  padding-left: 40px;
  align-items: start;
}
.gallery a { position: relative; display: block; overflow: hidden; }
.gallery a::after {
  content: "+";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  background: rgba(216, 8, 8, .85);
  opacity: 0;
  transition: opacity .2s;
}
.gallery a:hover::after,
.gallery a:focus-visible::after { opacity: 1; }
.gallery img { width: 100%; }

/* ---------- Catalogue (CSS-only filter) ---------- */
.catalogue > input { position: absolute; opacity: 0; pointer-events: none; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filters label {
  margin: 0 5px 0 0;
  padding: 5px 18px;
  font-size: 15px;
  font-weight: 400;
  line-height: 28px;
  border: 1px solid transparent;
  cursor: pointer;
}
.filters label:hover { color: var(--red); }
#f-all:checked ~ .filters [for="f-all"],
#f-aquaculture:checked ~ .filters [for="f-aquaculture"],
#f-construction:checked ~ .filters [for="f-construction"],
#f-safety:checked ~ .filters [for="f-safety"],
#f-sport:checked ~ .filters [for="f-sport"] { color: var(--red); border-color: var(--red); }
.catalogue > input:focus-visible ~ .filters { outline: 1px dotted #999; }
#f-aquaculture:checked ~ .catalogue-grid .item:not(.cat-aquaculture),
#f-construction:checked ~ .catalogue-grid .item:not(.cat-construction),
#f-safety:checked ~ .catalogue-grid .item:not(.cat-safety),
#f-sport:checked ~ .catalogue-grid .item:not(.cat-sport) { display: none; }

.catalogue-grid {
  list-style: none;
  margin: 0; padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: start;
}
.item a { display: block; color: #fff; }
.item img { width: 100%; aspect-ratio: 650 / 406; object-fit: cover; }
.item-caption {
  display: block;
  padding: 15px 18px;
  text-align: center;
  background: rgba(216, 8, 8, .85);
}
.item-title {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 600;
  line-height: 30px;
  text-transform: uppercase;
}
.item-cats { display: block; font-size: 14px; line-height: 17px; }
.item a:hover .item-caption { background: #000; }

/* ---------- Product detail ---------- */
.detail-title {
  margin: 0 0 30px;
  font-size: 28px;
  font-weight: 300;
  line-height: 46px;
  text-align: center;
  color: var(--dark);
}
.detail-intro {
  max-width: 80%;
  margin: 0 auto;
  font-size: 16px;
  line-height: 35px;
  text-align: center;
}
.detail-body { margin-top: 88px; }
.detail-img { text-align: center; }
.detail-img img { width: 300px; }
.spec-table {
  width: 100%;
  margin: 32px 0 31px;
  border-collapse: collapse;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14.4px;
  line-height: 20px;
  color: #333;
}
.spec-table th {
  padding: 7px;
  font-size: 13.6px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}
.spec-table td { padding: 7px; font-weight: 300; text-align: left; }
.spec-table tr { border-bottom: 1px solid #e8e8e8; }

/* ---------- Footer ---------- */
.site-footer { font-size: 13px; font-weight: 400; line-height: 24px; color: var(--footer-text); }
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px var(--gap);
  padding: 70px 0;
}
.site-footer::before { content: ""; display: block; }
.site-footer { background: var(--footer); }
.site-footer .footer-widgets { width: calc(100% - 2 * var(--side)); }
.widget h2 {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  line-height: 22px;
  text-transform: uppercase;
  color: var(--footer-head);
}
.widget p { margin: 0; }
.iso { margin: 0; }
.iso img { display: block; width: 95px; height: 125px; }
.iso figcaption { margin-top: 6px; }
.contact-list { list-style: none; margin: 0; padding: 0; color: var(--footer-list); }
.contact-list li { display: flex; align-items: center; gap: 22px; margin-bottom: 12px; line-height: 25px; }
.contact-list svg { flex: none; width: 13px; height: 13px; color: var(--footer-list); }
.contact-list a { color: inherit; }
.contact-list a:hover { color: #fff; }
.footer-bar { height: 80px; background: var(--footer-bar); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 6px 12px rgba(0,0,0,.08);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: block; margin: 0; padding: 10px 0; }
  .site-nav a {
    padding: 0 var(--side);
    font-size: 12px;
    line-height: 40px;
    color: #232323;
  }
  .catalogue-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  :root { --side: 45px; }
  .cols-2, .cols-2-1, .footer-widgets { grid-template-columns: 1fr; }
  .cols { row-gap: 60px; }
  .hero { height: auto; min-height: 0; padding: 100px 0; background-attachment: scroll; }
  .hero .heading { font-size: 27px; line-height: 40px; margin-bottom: 4px; }
  .page-banner { background-attachment: scroll; }
  /* Long single words (PRODUCTS) are shrunk so they don't break mid-word like on the old site */
  .page-banner h1 { font-size: var(--banner-fs-mobile, 70px); }
  .gallery { grid-template-columns: 1fr; padding-right: 0; }
  .catalogue-grid { grid-template-columns: 1fr; }
  .detail-body { margin-top: 88px; }
  .spec-table { margin-top: 0; }
  .footer-bar { height: 70px; }
}
