/* ==========================================================================================
   Surfing Solutions, website v2. The shared design system.
   Built to the Anand Liners standard: its type (Manrope, with Roboto on small buttons), its
   palette, its spacing and its components, measured from the live pages at 1440 and 390 wide.
   Page specific sections live in their own files under assets/css/ and reuse these parts.
   ========================================================================================== */

:root {
  --red: #D92428;          /* the accent: buttons, second line of every title, icons */
  --blue: #1B3F95;         /* labels above titles, the badge edge, the hero's lower line */
  --black: #000000;        /* titles on light */
  --text: #1A1A1A;         /* reading text */
  --dark: #1A1A1A;         /* the top bar, the footer, the dark bands */
  --light: #F5F5F5;        /* the header box, grey panels and cards */
  --line: #DFDFDF;         /* card and list borders */
  --grey: #909090;         /* contact strip values */
  --muted: #7A7A7A;        /* small print on cards */
  --white: #FFFFFF;
  --font: "Manrope", sans-serif;
  --font-alt: "Roboto", sans-serif;
  --container: 1366px;
  --gutter: 20px;
  --ease: cubic-bezier(0.58, 0.3, 0.005, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 24px; font-weight: 500;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 16px; letter-spacing: 0.5px; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font); }
ul { margin: 0; padding: 0; list-style: none; }
strong, b { font-weight: 700; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 3px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- layout ---------- */
.section { position: relative; padding: 90px var(--gutter); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; position: relative; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.center { text-align: center; }
.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); color: var(--light); }

/* ---------- entrance animation: Elementor's fadeInUp, 1.25 s, eased ---------- */
.js [data-anim] { visibility: hidden; }
.js [data-anim].animated { visibility: visible; animation-duration: 1.25s; animation-fill-mode: both; }
.js [data-anim].animated.fadeInUp { animation-name: fadeInUp; }
.js [data-anim].animated.fadeIn { animation-name: fadeIn; }
.js [data-anim].animated.fadeInLeft { animation-name: fadeInLeft; }
.js [data-anim].animated.fadeInRight { animation-name: fadeInRight; }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInRight { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js [data-anim] { visibility: visible; }
  .js [data-anim].animated { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- labels, titles, text ---------- */
.tag {
  display: inline-block; padding: 7px; margin-bottom: 20px;
  font: 600 18px/18px var(--font); color: var(--white);
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 52%, rgba(27, 63, 149, 0) 100%);
}
.tag--solid { background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 62%, rgba(27, 63, 149, 0) 100%); }
.title { font: 700 45px/55px var(--font); color: var(--black); margin: 0 0 30px; }
.title .t1 { color: inherit; }
.title .t2 { color: var(--red); }
.on-dark .title, .title.on-dark { color: var(--light); }
.title--sm { font-size: 36px; line-height: 46px; }
.lead { font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: 0.5px; color: var(--text); }
.text p { font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: 0.5px; color: var(--text); }
.text p strong { font-weight: 700; }
.red { color: var(--red); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px;
  background: var(--red); color: var(--light); border-radius: 3px;
  font: 600 16px/16px var(--font); transition: background 0.3s, color 0.3s;
}
.btn .ico {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 3px;
  background: var(--white); color: var(--red); font-size: 16px; transition: background 0.3s, color 0.3s;
}
.btn .ico i { transform: rotate(-45deg); }
.btn:hover { background: var(--blue); }
.btn:hover .ico { color: var(--blue); }
.btn--plain { padding: 12px 20px; }
.btn-arrow {
  display: inline-grid; place-items: center; width: 42px; height: 44px; border-radius: 10%;
  background: var(--red); color: var(--white); font-size: 21px; transition: background 0.3s;
}
.btn-arrow:hover { background: var(--blue); }

/* ---------- top bar ---------- */
.topbar { background: var(--dark); color: var(--white); padding: 0 var(--gutter); position: relative; z-index: 3; }
.topbar .container { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.topbar a { font: 400 16px/24px var(--font); color: var(--white); }
.topbar .cert { text-decoration: underline; text-underline-offset: 2px; }
.topbar .mail i { color: var(--red); margin-right: 5px; font-size: 14px; }

/* ---------- header ---------- */
.site-header { position: absolute; left: 0; right: 0; top: 44px; z-index: 20; padding: 0 var(--gutter); }
.site-header .bar {
  max-width: var(--container); margin: 0 auto; height: 84px; display: flex; align-items: stretch;
  background: var(--light); border-radius: 6px;
}
.brand { width: 217px; flex: 0 0 217px; padding: 10px; display: flex; align-items: center; border-radius: 6px 0 0 6px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--black); }
.logo svg.mark { width: 44px; height: 44px; flex: 0 0 44px; }
.logo .words { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.logo .w1 { font: 800 16.5px/1 var(--font); letter-spacing: 0.01em; }
.logo .w1 .a { color: var(--red); }
.logo .w1 .b { color: var(--blue); font-weight: 600; }
.mark .sq { stroke: var(--blue); }
.mark .rd { stroke: var(--red); }
.mark .rf { fill: var(--red); }
.logo--light { color: var(--white); }
.logo--light .w1 .b { color: var(--white); }
.logo--light .mark .sq { stroke: var(--white); }

.nav { flex: 1; display: flex; justify-content: center; align-items: center; }
.menu { display: flex; align-items: center; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > button {
  display: flex; align-items: center; gap: 8px; position: relative; padding: 10px 15px;
  font: 600 16px/16px var(--font); color: var(--black);
}
.menu > li > a::after, .menu > li > button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red);
  transform: scaleX(0); opacity: 0; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu > li:hover > a::after, .menu > li:hover > button::after,
.menu > li > [aria-current="page"]::after { transform: scaleX(1); opacity: 1; }
.menu .caret { font-size: 12px; transition: transform 0.2s; }
.sub {
  position: absolute; top: calc(100% + 28px); left: 0; width: 220px; background: var(--white);
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.1); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.1s, transform 0.1s, visibility 0.1s; z-index: 30;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 28px; }
.menu > li:hover > .sub, .menu > li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 15px 15px 15px 35px; font: 600 16px/16px var(--font); color: var(--black); transition: color 0.2s, background 0.2s; }
.sub a:hover, .sub a[aria-current="page"] { color: var(--red); background: var(--light); }

.header-cta {
  width: 230px; flex: 0 0 230px; background: var(--red); border-radius: 0 6px 6px 0;
  display: flex; align-items: center; justify-content: center;
}
.header-cta .btn { padding: 0; background: transparent; }
.header-cta .btn:hover { background: transparent; }
.header-cta .btn:hover .ico { color: var(--red); background: var(--light); }
.menu-toggle { display: none; }

@media (min-width: 1025px) and (max-width: 1200px) {
  .brand { width: 196px; flex-basis: 196px; }
  .header-cta { width: 180px; flex-basis: 180px; }
  .menu > li > a, .menu > li > button { padding: 10px 9px; }
  .counter .num { font-size: 34px; line-height: 50px; }
  .counter .lbl { font-size: 16px; line-height: 24px; }
  .counter .ic { margin-bottom: 12px; }
}

/* ---------- mobile header and menu (tablet and phone) ---------- */
@media (max-width: 1024px) {
  .topbar { display: none; }
  .site-header { position: sticky; top: 0; padding: 0; }
  .site-header .bar { height: 62px; border-radius: 0; }
  .brand { width: auto; flex: 1 1 auto; padding: 0 10px; }
  .logo svg.mark { width: 36px; height: 36px; flex-basis: 36px; }
  .logo .w1 { font-size: 13px; }
  .menu-toggle {
    display: grid; place-items: center; width: 40px; height: 42px; margin: 10px 14px; align-self: center;
    border-radius: 3px; color: #494C4F; font-size: 22px;
  }
  .menu-toggle .x { display: none; width: 24px; height: 24px; border: 2px solid #111; border-radius: 3px; font-size: 14px; place-items: center; color: #111; }
  .nav-open .menu-toggle .bars { display: none; }
  .nav-open .menu-toggle .x { display: grid; }
  .header-cta { width: auto; flex: 0 0 156px; border-radius: 0; padding-left: 5px; }
  .header-cta .btn { font-size: 14px; gap: 10px; }
  .header-cta .btn .ico { width: 34px; height: 34px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 62px; display: block; background: var(--white);
    border-top: 2px solid #111; max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  }
  .nav-open .nav { max-height: 80vh; overflow-y: auto; }
  .menu { display: block; }
  .menu > li { border-bottom: 1px solid #C4C4C4; }
  .menu > li > a, .menu > li > button { width: 100%; justify-content: space-between; padding: 15px 15px; font-size: 16px; line-height: 16px; }
  .menu > li > a::after, .menu > li > button::after { display: none; }
  .menu > li > [aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); }
  .menu .caret { font-size: 14px; }
  .sub { position: static; width: auto; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; background: var(--light); }
  .sub::before { display: none; }
  .menu > li.open > .sub { display: block; }
  .menu > li.open .caret { transform: rotate(180deg); }
  .sub a { padding: 14px 15px 14px 30px; border-top: 1px solid #E4E4E4; }
}

/* ---------- home: hero slider ---------- */
.hero { position: relative; height: 737px; overflow: hidden; background: #111 center/cover no-repeat; color: var(--light); }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.56); z-index: 1; }
.hero .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(var(--red) 0 2px, var(--blue) 2px 5px); z-index: 4; }
.hero .viewport { position: absolute; inset: 0; overflow: hidden; background: rgba(0, 0, 0, 0.46); z-index: 2; }
.hero .track { display: flex; height: 100%; will-change: transform; }
.hero .slide { position: relative; flex: 0 0 100%; height: 100%; margin-right: 20px; padding: 0 var(--gutter); }
.hero .slide-inner { max-width: var(--container); margin: 0 auto; position: relative; height: 100%; }
.hero .frame {
  position: absolute; left: 0; top: 189px; width: 765px; min-height: 498px; padding: 50px 20px 50px 50px; z-index: 2;
  border: 5px solid transparent;
  border-image: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.6) 34%, rgba(255, 255, 255, 0.08) 96%) 1;
}
.hero .frame .tag { font-size: 20px; line-height: 20px; margin-bottom: 30px; }
.hero h1, .hero .h1 { font: 700 65px/78px var(--font); color: var(--light); text-transform: uppercase; margin: 0 0 30px; max-width: 685px; }
.hero .product { position: absolute; right: calc(-1 * max(var(--gutter), (100vw - var(--container)) / 2)); bottom: 5px; width: min(40vw, 760px); z-index: 1; }
/* these two groups are wide and low, so they get a wider frame to show their parts at the same scale */
.hero .product--wide { width: min(46vw, 880px); }
.hero .product img { display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); mask-image: linear-gradient(90deg, transparent 0, #000 16%); }
.hero .arrow {
  position: absolute; top: calc(50% - 30px); z-index: 5; width: 40px; height: 40px; border-radius: 5px;
  background: var(--white); color: var(--black); font-size: 20px; display: grid; place-items: center;
}
.hero .arrow.prev { left: 20px; }
.hero .arrow.next { right: 20px; }

/* ---------- home: material chips ---------- */
.chips { padding: 10px var(--gutter) 0; }
.chips .container { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.chip {
  display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 43px; padding: 10px;
  background: var(--light); border-radius: 3px; font: 500 15px/22.5px var(--font); color: var(--black); text-align: center;
  transition: background 0.3s;
}
.chip i { color: var(--red); font-size: 15px; margin-right: 5px; }
.chip:hover { background: #ECECEC; }

/* ---------- home: about ---------- */
.about-home { padding: 70px var(--gutter) 90px; }
.about-home .row-2 { align-items: start; }
.about-home .media { position: relative; padding: 69px 0 0 10px; }
.about-home .media .outline { position: absolute; top: 0; left: 100px; width: 470px; height: 140px; border: 5px solid var(--red); border-bottom: 0; }
.about-home .media img { position: relative; width: 100%; height: 700px; object-fit: cover; }
.badge {
  position: absolute; left: calc(-1 * (100vw - min(100vw - 40px, var(--container))) / 2 - 3px); bottom: -48px; width: 236px; height: 200px; z-index: 2;
  background-color: var(--red); border-bottom: 5px solid var(--blue); color: var(--light);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1.2px, transparent 1.4px); background-size: 9px 9px;
}
.badge .num { font: 600 69px/69px var(--font); color: var(--light); }
.badge .lbl { font: 600 20px/50px var(--font); color: var(--white); }
.about-home .copy { padding-top: 16px; }
.about-home .copy .title { margin-bottom: 25px; }
.about-home .copy p { color: var(--text); }
.about-home .copy .list-plain { margin: 0 0 20px; }
.list-plain li { font: 500 16px/24px var(--font); letter-spacing: 0.5px; color: var(--text); }
.certline { display: flex; align-items: center; gap: 20px; margin-top: 30px; }
.seal { width: 124px; height: 124px; flex: 0 0 124px; }
.certline p { margin: 0; }

/* ---------- product cards (home and about) ---------- */
.products-band { position: relative; padding: 80px var(--gutter) 80px; overflow: hidden; }
.products-band .head { position: relative; text-align: center; margin-bottom: 42px; }
.products-band .head::before {
  content: ""; position: absolute; z-index: -1; top: -80px; bottom: -292px; left: 50%; width: 100vw; margin-left: -50vw;
  background: #1d1d1d url("../img/bg/dark-texture.svg") center/cover;
}
.products-band .title { color: var(--light); max-width: 1000px; margin: 0 auto; }
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }   /* six lines of parts: two rows of three */
.pcards--4 { grid-template-columns: repeat(4, 1fr); }
.pcard { display: flex; flex-direction: column; }
.pcard .img { display: block; height: 250px; background: var(--white); border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; overflow: hidden; }   /* a definite box, so a wide card still shows the whole part */
.pcard .img img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform 0.5s; }
.pcard:hover .img img { transform: scale(1.06); }
.pcard .body {
  flex: 1; position: relative; min-height: 140px; padding: 20px 20px 70px; background: var(--light);
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px;
}
.pcard h3 { font: 700 26px/36px var(--font); color: var(--black); }
.pcard .btn-arrow { position: absolute; right: 16px; bottom: 16px; }

/* ---------- home: why us ---------- */
.why { padding: 80px var(--gutter); background: var(--light); overflow: hidden; }
.why .container { display: grid; grid-template-columns: minmax(0, 674px) minmax(0, 1fr); gap: 50px; align-items: start; }
.why .left { position: relative; padding-left: 150px; }
.why .slant { position: absolute; left: calc(-1 * (100vw - min(100vw - 40px, var(--container))) / 2); top: -10px; bottom: -10px; width: calc((100vw - min(100vw - 40px, var(--container))) / 2 + 150px); background: var(--red); overflow: hidden; }
.why .slant::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 12%; width: 14px; background: var(--light); transform: skewX(-8deg); }
.why .slant::after { content: ""; position: absolute; top: 4px; bottom: 4px; left: calc(12% + 20px); width: 3px; background: var(--light); transform: skewX(-8deg); opacity: 0.9; }
.why .card { position: relative; background: var(--white); padding: 20px; }
.why .right { padding-top: 10px; position: relative; }
.why .right .title { margin-bottom: 30px; }
.why .right .text { margin-bottom: 20px; }
.why .sketch { position: absolute; right: -40px; bottom: -150px; width: 660px; opacity: 1; pointer-events: none; }

/* ---------- accordion (the home card, product and quality pages) ---------- */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; display: flex; align-items: center; gap: 0; text-align: left; padding: 10px 10px 0 10px;
  font: 600 21px/31.5px var(--font); color: var(--black);
}
.acc-head .ic { width: 40px; flex: 0 0 40px; color: var(--black); font-size: 20px; display: grid; place-items: center; }
.acc-head .t { flex: 1; padding: 10px; }
.acc-item.open .acc-head .t, .acc-item.open .acc-head .ic { color: var(--red); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s ease; }
.acc-body > div { overflow: hidden; }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body p { padding: 10px 10px 20px 20px; margin: 0; font: 500 16px/24px var(--font); letter-spacing: 0.5px; color: var(--black); }

/* the plus and minus accordion (quality, product pages) */
.acc2 .acc-item { border: 0; margin-bottom: 12px; }
.acc2 .acc-head {
  padding: 8px 14px; background: var(--light); font: 500 16px/24px var(--font); color: var(--black);
  justify-content: space-between; border: 1px solid transparent;
}
.acc2 .acc-head::after { content: "+"; font: 600 22px/1 var(--font); }
.acc2 .acc-item.open .acc-head { background: var(--red); color: var(--white); }
.acc2 .acc-item.open .acc-head::after { content: "\2212"; }
.acc2 .acc-body > div { padding: 0 6px; }
.acc2 .acc-item.open .acc-body > div { padding: 14px 6px 6px; }

/* ---------- home: numbers band ---------- */
.stats { position: relative; padding: 0 var(--gutter); color: var(--white); }
.stats .bgimg { position: absolute; left: 0; right: 0; top: 0; height: 755px; background: #111 center/cover no-repeat; background-attachment: fixed; }
.stats .bgimg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); }
.stats .container { display: grid; grid-template-columns: minmax(0, 538px) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); min-height: 805px; }
.marquee { position: absolute; right: -17px; top: 0; width: 560px; height: 103px; background: var(--white); overflow: hidden; z-index: 3; display: flex; align-items: center; }
.marquee .run { display: flex; white-space: nowrap; animation: marquee 30s linear 250ms infinite; }
.marquee span { font: 700 55px/82.5px var(--font); letter-spacing: 1px; color: #C4C3C3; padding-right: 22px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .run { animation: none; } }
.stats .video { position: relative; margin-top: 132px; height: 673px; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 0 0 var(--red); z-index: 2; background: #222; }
.stats .video img { width: 100%; height: 100%; object-fit: cover; }
.stats .video .play { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: rgba(217, 36, 40, 0.85); color: #fff; font-size: 34px; display: grid; place-items: center; padding-left: 6px; }
.stats .copy { position: relative; z-index: 2; padding-top: 232px; }
.stats .copy .title { color: var(--white); margin-bottom: 55px; }
.counters { display: grid; grid-template-columns: repeat(3, minmax(0, 236px)); gap: 20px; }
.counter {
  width: 100%; max-width: 236px; aspect-ratio: 1 / 1; border-radius: 10px; background: rgba(255, 255, 255, 0.15);
  border: 3px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 20px 10px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.counter > * { flex-shrink: 0; }
.counter .ic { width: 50px; height: 50px; background: var(--red); color: var(--white); display: grid; place-items: center; font-size: 26px; margin-bottom: 20px; }
.counter .num { font: 500 45px/67.5px var(--font); color: #FFFEFE; }
.counter .num::after { content: ""; display: block; width: 30px; height: 2px; background: var(--red); margin: 6px auto 12px; }
.counter .lbl { font: 600 20px/30px var(--font); color: var(--light); }

/* ---------- blog cards and the carousel ---------- */
.blog-home { padding: 60px var(--gutter) 80px; }
.blog-home .head { text-align: center; margin-bottom: 30px; }
.blog-home .title { margin: 0; }
.carousel { position: relative; padding: 0 50px; }
.carousel .viewport { overflow: hidden; }
.carousel .track { display: flex; gap: 20px; transition: transform 1s ease; will-change: transform; }
.carousel .track.dragging { transition: none; }
.carousel .item { flex: 0 0 calc((100% - 40px) / 3); }
.carousel .nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 3px;
  background: var(--black); color: var(--white); display: grid; place-items: center; font-size: 18px; z-index: 2;
}
.carousel .nav-btn.prev { left: 0; }
.carousel .nav-btn.next { right: 0; }
.carousel .dots { display: flex; justify-content: center; gap: 5px; margin-top: 20px; }
.carousel .dots button { width: 8px; height: 8px; border-radius: 50%; background: #C8C8C8; }
.carousel .dots button[aria-current="true"] { background: var(--black); }

.bcard { display: flex; flex-direction: column; height: 100%; background: var(--light); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.bcard .img { position: relative; height: 280px; overflow: hidden; background: #000; }
.bcard .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.bcard:hover .img img { transform: scale(1.1); }
.bcard .pill { position: absolute; left: 20px; top: 14px; z-index: 2; padding: 5px; border-radius: 3px; background: var(--red); color: var(--white); font: 500 14px/21px var(--font); text-transform: uppercase; letter-spacing: 0.5px; }
.bcard .pill.soon { background: var(--blue); }
.bcard .body { flex: 1; display: flex; flex-direction: column; padding: 20px; }
.bcard h3 { font: 500 22px/33px var(--font); color: var(--black); margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard p { font: 500 16px/24px var(--font); color: var(--text); letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 26px; }
.bcard .more { margin-top: auto; align-self: flex-start; display: inline-grid; place-items: center; width: 58px; height: 52px; border-radius: 5px; background: var(--white); color: var(--black); font-size: 18px; transition: background 0.3s, color 0.3s; }
.bcard:hover .more { background: var(--red); color: var(--white); }
.bcard.soon .more { opacity: 0.35; }

/* ---------- contact strip and footer ---------- */
.contact-strip { position: relative; border-top: 1px solid var(--line); padding: 20px var(--gutter); }
.contact-strip .items { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cinfo { display: flex; gap: 20px; padding: 7px 20px; min-height: 135px; }
.cinfo + .cinfo { border-left: 1px solid var(--line); }
.cinfo .ic { color: var(--red); font-size: 30px; width: 30px; line-height: 1; margin-top: 6px; }
.cinfo .k { font: 700 18px/21.6px var(--font); color: var(--black); margin-bottom: 10px; display: block; }
.cinfo .v, .cinfo .v a { font: 400 16px/24px var(--font); color: var(--grey); overflow-wrap: anywhere; }
.cinfo .v a:hover { color: var(--red); }

.footer { background: var(--dark); color: var(--light); padding: 50px var(--gutter) 0; }
.footer .container { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; }
.footer .cols { display: contents; }
.fcol h2 { font: 600 19px/30px var(--font); color: var(--white); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 20px; }
.fcol p { font: 500 16px/24px var(--font); letter-spacing: 0.5px; color: var(--light); }
.fcol .links li { margin-bottom: 5px; }
.fcol .links a { display: flex; gap: 10px; font: 400 16px/24px var(--font); color: var(--white); }
.fcol .links a i { color: var(--red); font-size: 12px; margin-top: 6px; }
.fcol .links a:hover { color: var(--red); }
.footer .bottom {
  max-width: var(--container); margin: 30px auto 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: var(--black); border-radius: 50px 50px 0 0; padding: 30px; min-height: 125px;
}
.footer .bottom p { margin: 0; font: 500 14px/21px var(--font); color: var(--white); letter-spacing: 0.5px; }
.footer .bottom .legal { margin-left: 10px; white-space: nowrap; }
.footer .bottom .legal a { color: #BDBDBD; margin-left: 10px; text-decoration: underline; text-underline-offset: 3px; }
.footer .bottom .legal a:hover { color: var(--white); }
.footer .bottom .logo { justify-self: center; }
.footer .bottom .logo svg.mark { width: 64px; height: 64px; flex-basis: 64px; }
.footer .bottom .logo .w1 { font-size: 22px; }
.socials { justify-self: end; display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: var(--red); border: 2px solid var(--red); color: var(--light); display: grid; place-items: center; font-size: 16px; transition: transform 0.6s ease, background-color 0.3s, border-color 0.3s, color 0.3s; }
.socials a:hover, .socials a:focus-visible { transform: rotate(360deg); background: var(--blue); border-color: var(--blue); color: #fff; }
@media (prefers-reduced-motion: reduce) { .socials a:hover, .socials a:focus-visible { transform: none; } }

.to-top {
  position: fixed; right: 30px; bottom: 30px; width: 44px; height: 46px; z-index: 40; background: var(--red); color: var(--white);
  display: grid; place-items: center; font-size: 14px; border-radius: 2px; opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all 0.3s ease-in-out; box-shadow: 0 0 10px 0 rgba(255, 255, 255, 0.5);
}
.to-top:hover { background: #4039EC; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- inner pages: banner and the red sub menu ---------- */
.page-banner { position: relative; height: 412px; padding: 64px var(--gutter) 0; background: #222 center/cover no-repeat; color: var(--light); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 1; }
.page-banner > * { position: relative; z-index: 2; }
.page-banner > .banner-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-banner h1 { font: 700 45px/45px var(--font); text-transform: uppercase; color: var(--light); margin-bottom: 14px; max-width: 1100px; }
.page-banner h1.long { font-size: 30px; line-height: 36px; font-weight: 500; text-transform: none; }
.crumbs { display: flex; gap: 10px; align-items: center; justify-content: center; font: 700 14px/21px var(--font); color: var(--light); }
.crumbs i { font-size: 13px; margin-right: 6px; }
.crumbs .sep { font: 400 16px/24px var(--font); }
.crumbs .date { font: 400 16px/24px var(--font); }
.crumbs .date i { margin-right: 6px; }
.crumbs .date i { color: var(--red); }
.subnav { position: sticky; top: 0; z-index: 15; background: var(--red); padding: 0 10px; }
.subnav ul { max-width: var(--container); margin: 0 auto; min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 40px; padding: 0 8px; }
.subnav a { display: inline-flex; align-items: center; gap: 5px; padding: 10px 0; font: 600 16px/24px var(--font); color: var(--white); }
.subnav a i { font-size: 13px; }
.subnav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- shared inner page parts ---------- */
.feature-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fcard { background: var(--light); border-radius: 10px; padding: 26px 20px 26px; border: 1px solid transparent; transition: border-color 0.3s, transform 0.3s; }
.fcard:hover { border-color: var(--line); transform: translateY(-4px); }
.fcard .ic { color: var(--red); font-size: 32px; margin-bottom: 18px; display: inline-block; }
.fcard h3 { font: 500 20px/30px var(--font); color: var(--black); margin-bottom: 10px; }
.fcard p { font: 500 14px/21px var(--font); letter-spacing: 0; color: var(--muted); }

.spec-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scard { border: 1px solid var(--line); border-radius: 6px; padding: 18px 12px 16px; background: var(--white); }
.scard h3 { font: 500 16px/24px var(--font); color: var(--black); margin-bottom: 8px; }
.scard p { font: 500 13px/19px var(--font); letter-spacing: 0; color: var(--muted); }

.check-list li { position: relative; padding-left: 26px; margin-bottom: 10px; font: 500 15px/22px var(--font); color: var(--text); letter-spacing: 0.3px; }
.check-list li::before { content: "\f138"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; top: 0; color: var(--red); font-size: 15px; }
.check-list li strong { display: block; color: var(--black); }
.arrow-list li { position: relative; padding-left: 20px; margin-bottom: 8px; font: 500 15px/22px var(--font); color: var(--text); }
.arrow-list li::before { content: "\f105"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 2px; top: 0; color: var(--red); }

/* tabs */
.tabs [role="tablist"] { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.tabs [role="tab"] { flex: 1; padding: 16px 20px; text-align: center; font: 700 16px/24px var(--font); text-transform: uppercase; color: var(--black); background: var(--white); transition: background 0.3s, color 0.3s; }
.tabs [role="tab"][aria-selected="true"] { background: var(--red); color: var(--white); }
.tabs [role="tabpanel"][hidden] { display: none; }
.tabs [role="tabpanel"] { animation: fadeIn 0.5s both; }
.tabs--compact [role="tablist"] { justify-content: center; border-bottom: 0; gap: 0; }
.tabs--compact [role="tab"] { flex: 0 0 auto; padding: 12px 26px; font-size: 15px; }

/* data table with search, filter and sort */
.dt-tools { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 14px; flex-wrap: wrap; }
.dt-tools select, .dt-tools input { height: 32px; border: 1px solid #AAA; border-radius: 3px; padding: 4px 8px; font: 400 13px var(--font); background: var(--white); min-width: 200px; }
.dt-tools label { font: 400 13px var(--font); color: var(--text); display: flex; align-items: center; gap: 6px; }
.dt-wrap { overflow-x: auto; }
table.dt { width: 100%; border-collapse: collapse; font: 400 13px/18px var(--font); }
table.dt th { background: var(--red); color: var(--white); text-align: left; padding: 12px 26px 12px 10px; font-weight: 600; text-transform: uppercase; position: relative; cursor: pointer; border-right: 1px solid rgba(255, 255, 255, 0.35); white-space: nowrap; }
table.dt th::after { content: "\f0dc"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 11px; opacity: 0.7; }
table.dt th[aria-sort="ascending"]::after { content: "\f0de"; opacity: 1; }
table.dt th[aria-sort="descending"]::after { content: "\f0dd"; opacity: 1; }
table.dt td { padding: 10px 10px; border-bottom: 1px solid #EDEDED; color: var(--text); vertical-align: top; }
table.dt tbody tr:nth-child(even) td { background: #F9ECEC; }
table.dt tbody tr:hover td { background: #F3DADA; }
.dt-empty { padding: 16px 10px; color: var(--muted); }

/* photo grid and lightbox */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.gallery a { display: block; border: 2px solid var(--red); overflow: hidden; aspect-ratio: 3 / 2; background: #eee; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery a:hover img { transform: scale(1.08); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(30, 30, 30, 0.92); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 88vw; max-height: 86vh; text-align: center; }
.lightbox img { max-width: 88vw; max-height: 78vh; object-fit: contain; margin: 0 auto; box-shadow: 0 0 40px rgba(0, 0, 0, 0.6); animation: fadeIn 0.3s both; }
.lightbox figcaption { color: #ddd; font-size: 14px; margin-top: 12px; }
.lightbox .lb-btn { position: absolute; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; font-size: 22px; background: rgba(30, 30, 30, 0.6); }
.lightbox .lb-close { right: 10px; top: 10px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; left: 14px; top: 16px; color: #ccc; font-size: 13px; }

/* modal (the video) */
.modal { position: fixed; inset: 0; z-index: 180; background: rgba(0, 0, 0, 0.5); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal .box { position: relative; width: 500px; max-width: 100%; background: var(--white); border-radius: 10px; padding: 30px; animation: fadeInUp 0.5s both; }
.modal .box h2 { font: 600 30px/30px var(--font); color: var(--black); margin-bottom: 20px; }
.modal .close { position: absolute; right: -10px; top: -10px; width: 30px; height: 30px; border-radius: 50%; background: #323232; color: #fff; display: grid; place-items: center; font-size: 16px; }
.modal label { display: block; font: 700 15px/25.5px var(--font); color: #000; margin: 14px 0 3px; }
.modal label .req { color: #E51919; }
.modal input { width: 100%; height: 41px; padding: 9px; border: 1px solid var(--white); background: var(--light); border-radius: 2px; font: 400 16px var(--font); margin-bottom: 20px; }
.modal .video-box { width: 900px; padding: 0; background: #000; }
.modal .video-box iframe, .modal .video-box video { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

/* forms (contact page) */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 20px; box-shadow: 0 0 12px rgba(0, 0, 0, 0.05); }
.field { margin-bottom: 16px; }
.field label { display: block; font: 700 13px/20px var(--font); color: #000; margin-bottom: 4px; }
.field .req { color: #E51919; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #DDD; border-radius: 2px; padding: 9px 10px; font: 400 14px/20px var(--font); color: #000; background: var(--white); }
.field textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; color: var(--muted); margin-top: 10px; }
.form-done { display: none; padding: 16px; background: #EEF6EE; border-left: 4px solid #2E7D32; font-size: 15px; color: #1B4D1F; }
form.sent .form-done { display: block; }
form.sent .form-fields { display: none; }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .section { padding: 70px var(--gutter); }
  .title { font-size: 36px; line-height: 46px; }
  .row-2 { grid-template-columns: 1fr; gap: 30px; }
  .hero { height: 620px; }
  .hero .slide { padding: 0 72px; }
  .hero .frame { top: 60px; width: min(620px, 100%); min-height: 0; height: auto; padding: 30px; }
  .hero h1, .hero .h1 { font-size: 48px; line-height: 58px; }
  .hero .product, .hero .product--wide { width: min(58vw, 560px); right: -72px; }
  .chips .container { grid-template-columns: repeat(3, 1fr); }
  .about-home .copy { padding-top: 40px; }
  .about-home .media img { height: 520px; }
  .badge { left: -20px; }
  .pcards { grid-template-columns: repeat(2, 1fr); }
  .why .container { grid-template-columns: 1fr; }
  .why .left { padding-left: 60px; }
  .why .slant { width: 80px; left: -20px; }
  .why .sketch { display: none; }
  .stats .container { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .stats .bgimg { height: 100%; background-attachment: scroll; }
  .stats .video { margin-top: 140px; height: 520px; }
  .stats .copy { padding: 0 0 70px; }
  .counters { grid-template-columns: repeat(3, 1fr); }
  .counter { width: auto; max-width: none; aspect-ratio: auto; min-height: 236px; }
  .marquee { right: 0; left: 0; width: auto; height: 80px; }
  .marquee span { font-size: 40px; line-height: 60px; }
  .carousel .item { flex-basis: calc((100% - 20px) / 2); }
  .contact-strip .items { width: 100%; grid-template-columns: 1fr 1fr; }
  .cinfo:nth-child(2) { grid-column: 1 / -1; order: 3; border-left: 0; border-top: 1px solid var(--line); }
  .cinfo:last-child { border-left: 1px solid var(--line); }
  .footer .container { grid-template-columns: 1fr 1fr; }
  .contact-strip .items { margin-left: 0; }
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .page-banner { height: 360px; padding-top: 0; }
  .subnav { position: static; }
}

/* ---------- phone ---------- */
@media (max-width: 767px) {
  .section { padding: 50px var(--gutter); }
  .title { font-size: 30px; line-height: 39px; margin-bottom: 20px; }
  .tag { font-size: 18px; line-height: 18px; }
  .hero { height: 600px; }
  .hero .slide { padding: 0 20px; }
  .hero .frame { min-height: 0; }
  .hero .frame { position: relative; top: 50px; left: 0; width: 100%; padding: 15px 15px 20px; }
  .hero .frame .tag { font-size: 18px; line-height: 18px; margin-bottom: 20px; }
  .hero h1, .hero .h1 { font-size: 30px; line-height: 36px; margin-bottom: 20px; }
  .hero .frame .btn { padding: 10px; }
  .hero .product { position: absolute; left: -20px; right: -20px; bottom: 5px; width: auto; }
  .hero .product img { -webkit-mask-image: none; mask-image: none; }
  .hero .arrow { width: 30px; height: 30px; font-size: 12px; top: 253px; }
  .hero .arrow.prev { left: 5px; }
  .hero .arrow.next { right: 5px; }
  .chips { padding: 15px 10px 0; }
  .chips .container { grid-template-columns: 1fr 1fr; }
  .about-home { padding: 40px var(--gutter) 50px; }
  .about-home .media { display: none; }  /* the reference drops the photograph and the badge on phones */
  .about-home .media .outline { left: 40px; width: 70%; height: 80px; }
  .about-home .media img { height: 340px; }
  .badge { width: 170px; height: 150px; bottom: -30px; left: -20px; }
  .badge .num { font-size: 50px; line-height: 50px; }
  .badge .lbl { font-size: 17px; line-height: 40px; }
  .seal { width: 100px; height: 100px; flex-basis: 100px; }
  .products-band { padding: 50px var(--gutter); }
  .pcards, .pcards--4 { grid-template-columns: 1fr; }
  .pcard h3 { font-size: 22px; line-height: 32px; }
  .why { padding: 50px var(--gutter); }
  .why .left { padding-left: 0; }
  .why .slant { display: none; }
  .stats .video { margin-top: 110px; height: 420px; }
  .counters { grid-template-columns: 1fr; justify-items: center; }
  .counter { width: 100%; max-width: 350px; min-height: 200px; }
  .marquee { height: 64px; }
  .marquee span { font-size: 30px; line-height: 44px; }
  .carousel { padding: 0 44px; }
  .carousel .item { flex-basis: 100%; }
  .carousel .nav-btn { width: 32px; height: 32px; font-size: 14px; }
  .contact-strip { padding: 20px 10px; }
  .contact-strip .items { grid-template-columns: 1fr 1fr; }
  .cinfo { flex-direction: column; gap: 8px; padding: 10px; min-height: 0; }
  .cinfo:nth-child(2) { grid-column: 1 / -1; order: 3; border-left: 0; border-top: 1px solid var(--line); }
  .cinfo:last-child { border-left: 1px solid var(--line); }
  .footer .container { grid-template-columns: 1fr; }
  .footer .bottom { grid-template-columns: 1fr; justify-items: center; gap: 16px; text-align: center; border-radius: 40px 40px 0 0; }
  .footer .bottom > a { order: -1; }
  .socials { justify-self: center; order: 0; }
  .footer .bottom p { order: 1; }
  .footer .bottom .legal { display: block; margin: 6px 0 0; }
  .feature-cards, .spec-cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .page-banner { height: 350px; }
  .page-banner h1 { font-size: 30px; line-height: 36px; }
  .page-banner h1.long { font-size: 24px; line-height: 32px; }
  .subnav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 8px; }
  .subnav a { font-size: 14px; line-height: 21px; padding: 4px 0; }
  .tabs [role="tablist"] { flex-direction: column; }
  .to-top { right: 16px; bottom: 16px; }
}

/* very narrow phones (360 px): the header fits without a sideways scroll */
@media (max-width: 379px) {
  .menu-toggle { margin: 10px 6px; }
  .header-cta { flex-basis: 132px; }
  .header-cta .btn { font-size: 13px; gap: 8px; }
  .header-cta .btn .ico { width: 30px; height: 30px; }
}
