/* ==========================================================================
   McGuire Bearing  |  Site stylesheet
   Replaces /css/style.css on every page. Works with or without
   bootstrap.min.css and styles both the new homepage markup and the
   existing Bootstrap 3 template markup used on inner pages.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap");
/* Keeps the existing "fa fa-*" icons on inner pages working */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");

/* 1. Design tokens
   ========================================================================== */
:root {
  --navy: #12263f;
  --navy-deep: #0c1b2e;
  --blue: #1f6fb2;
  --blue-dark: #185a91;
  --blue-soft: #9cc6ea;
  --steel: #eef2f6;
  --line: #d5dde6;
  --text: #2a3340;
  --muted: #5b6676;
  --white: #ffffff;
  --display: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --radius: 4px;
  --header-h: 76px;
}

/* 2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: var(--blue-dark); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
h4 { font-size: 1.35rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }
h1 a, h2 a, h3 a, h4 a { color: inherit; }
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover { color: var(--blue); }

ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
blockquote {
  margin: 0 0 1.5em;
  padding: 16px 24px;
  border-left: 3px solid var(--blue);
  background: var(--steel);
  color: var(--muted);
}

/* 3. Layout and grid (Bootstrap 3 compatible)
   ========================================================================== */
#wrapper { width: 100%; overflow-x: hidden; }
.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -14px;
}
.row::before, .row::after { display: none; }
[class*="col-"] {
  position: relative;
  width: 100%;
  min-height: 1px;
  padding: 0 14px;
  float: none;
}
.section, #content { padding: 80px 0; }
.section-title { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 68ch; }
.space { height: 32px; }
.clearfix::after { content: ""; display: table; clear: both; }

.aligncenter { text-align: center; margin-left: auto; margin-right: auto; }
div.aligncenter { max-width: 820px; color: var(--muted); }
h1.aligncenter, h2.aligncenter, h3.aligncenter { color: var(--navy); }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.pull-left { float: left; }
.pull-right { float: right; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.colored { color: var(--blue); }
.pr-10 { padding-right: 10px; }
.hidden { display: none !important; }

/* 4. Header and navigation
   ========================================================================== */
header, .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
header .navbar, .navbar-default, .navbar-static-top {
  margin: 0;
  min-height: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
header .navbar > .container, .nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  position: relative;
}
.navbar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  float: none;
}
.navbar-brand, .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: auto;
  padding: 10px 0;
  float: none;
  color: var(--navy);
}
.navbar-brand p, .brand p {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.05;
  color: var(--navy);
}
.navbar-brand img, .brand img, .bearing_logo { height: 44px; width: auto; order: -1; }

.nav, .navbar-nav, .nav-list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  float: none;
}
.navbar-nav > li, .nav-list > li { margin: 0; float: none; position: relative; }
.navbar-nav > li > a, .nav-list > li > a {
  display: block;
  padding: 10px 16px;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: transparent;
  border-bottom: 2px solid transparent;
}
.navbar-nav > li > a:hover, .nav-list > li > a:hover,
.navbar-default .navbar-nav > li > a:hover { color: var(--blue); background: transparent; }
.navbar-nav > .active > a, .nav-list > .active > a,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: var(--blue);
  background: transparent;
  border-bottom-color: var(--blue);
}

/* Dropdowns on inner pages */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 110;
  display: none;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.open > .dropdown-menu, .dropdown:hover > .dropdown-menu { display: block; }
.dropdown-menu > li { margin: 0; }
.dropdown-menu > li > a { display: block; padding: 8px 18px; color: var(--text); }
.dropdown-menu > li > a:hover { background: var(--steel); color: var(--blue); }

/* Mobile menu button (legacy .navbar-toggle and new .nav-toggle) */
.navbar-toggle, .nav-toggle {
  display: none;
  margin: 0;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.navbar-toggle .icon-bar, .nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--navy);
  border-radius: 0;
}
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { background: var(--steel); }

/* 5. Page headline and breadcrumbs (inner pages)
   ========================================================================== */
#inner-headline {
  background: var(--navy);
  padding: 44px 0;
  color: var(--white);
}
#inner-headline h1, #inner-headline h2, #inner-headline h3,
#inner-headline .pageTitle { color: var(--white); margin: 0; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  background: transparent;
  font-size: .92rem;
  color: var(--blue-soft);
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; padding-right: 6px; color: var(--blue-soft); }
.breadcrumb a { color: #d9e3ee; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .active { color: var(--white); }
#content .breadcrumb { color: var(--muted); }
#content .breadcrumb a { color: var(--blue); }
#content .breadcrumb .active { color: var(--text); }

/* 6. Hero and banner
   ========================================================================== */
.hero, #banner {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12,27,46,.92) 0%, rgba(12,27,46,.55) 60%, rgba(12,27,46,.2) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
.hero h1, .hero h3 {
  color: var(--white);
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: -.01em;
  max-width: 12ch;
  margin-bottom: .3em;
}
.hero p { font-size: 1.15rem; max-width: 52ch; color: #d9e3ee; margin: 0 0 32px; }

/* Legacy flexslider banner */
.flexslider { position: relative; margin: 0; background: var(--navy-deep); border: 0; border-radius: 0; box-shadow: none; }
.flexslider .slides { list-style: none; margin: 0; padding: 0; }
.flexslider .slides li { position: relative; margin: 0; }
.flexslider .slides img { width: 100%; max-height: 560px; object-fit: cover; opacity: .5; }
.flex-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  padding: 0 24px;
  color: var(--white);
  background: none;
}
.flex-caption h3 { color: var(--white); font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 12ch; }
.flex-caption p { color: #d9e3ee; font-size: 1.1rem; max-width: 52ch; margin-bottom: 28px; }
.flex-control-nav, .flex-direction-nav { display: none; }

/* 7. Buttons
   ========================================================================== */
.btn, .btn-theme, .more, button.btn, input[type="submit"], input[type="button"] {
  display: inline-block;
  padding: 14px 30px;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover, .btn-theme:hover, .more:hover,
input[type="submit"]:hover, input[type="button"]:hover {
  background: var(--blue-dark);
  color: var(--white);
}
.btn-default, .btn-light {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn-default:hover, .btn-light:hover { background: var(--steel); color: var(--navy); }
.btn-primary { background: var(--blue); border: 0; }
.btn-lg { padding: 16px 36px; font-size: 1.08rem; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

/* 8. Content blocks
   ========================================================================== */
/* Intro block (heading left, text right) */
.services-intro { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.services-intro p { margin: 0; color: var(--muted); font-size: 1.08rem; max-width: 68ch; }

/* Feature strip */
.features { background: var(--steel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.feature { padding: 56px 36px; border-left: 1px solid var(--line); }
.feature:first-child { border-left: 0; padding-left: 0; }
.feature-icon { width: 44px; height: 44px; color: var(--blue); margin-bottom: 20px; }
.feature h3 { font-size: 1.45rem; margin-bottom: .4em; }
.feature h3 a { color: var(--navy); }
.feature h3 a:hover { color: var(--blue); }
.feature p { margin: 0; color: var(--muted); }

/* Legacy service boxes */
.media, .service-box { display: flex; gap: 20px; margin-bottom: 32px; }
.service-box .pull-left { float: none; flex: none; }
.service-box .fa {
  font-size: 1.6rem;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 50%;
}
.media-body { flex: 1; }
.media-heading { font-size: 1.35rem; color: var(--navy); margin-bottom: .35em; }
.media-body p { color: var(--muted); margin: 0; }

/* Precision grades and benefit list */
.grades { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.grade {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}
.grades-label { color: var(--muted); margin: 0 0 40px; }
.perks {
  list-style: none;
  margin: 0 0 64px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.perks li { position: relative; margin: 0; padding: 18px 20px 18px 28px; border-bottom: 1px solid var(--line); }
.perks li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 27px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

/* Image + text split */
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.company-grid img, img.gongsi { width: 100%; border-radius: var(--radius); }

/* Product link lists (new and legacy) */
.product-links, .list-unstyled { list-style: none; margin: 24px 0 0; padding: 0; }
.product-links li, .list-unstyled li { margin: 0; }
.product-links a, .list-unstyled a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  color: var(--navy);
}
.product-links a:hover, .list-unstyled a:hover { color: var(--blue); }
.product-links svg { flex: none; width: 18px; height: 18px; color: var(--blue); }
.list-unstyled .fa { color: var(--blue); }

/* 9. Product cards and listings
   ========================================================================== */
.products, #events { background: var(--steel); }
.products-head { margin-bottom: 44px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card, .post3 {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: border-color .2s;
}
.product-card:hover, .post3:hover { border-color: var(--blue); color: var(--text); }
.product-card .img-wrap { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 20px; background: var(--white); }
.product-card img { max-height: 100%; object-fit: contain; }
.product-card .body { padding: 22px 24px 26px; border-top: 1px solid var(--line); }
.product-card .name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy);
  margin: 0 0 6px;
}
.product-card:hover .name { color: var(--blue); }
.product-card .desc { color: var(--muted); font-size: .95rem; }

/* Legacy .post3 card internals */
#events .row > [class*="col-"] { margin-bottom: 28px; }
.post3 img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 20px; border-bottom: 1px solid var(--line); }
.post3 p {
  margin: 20px 24px 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy);
}
.post3 span { display: block; margin: 0 24px 24px; color: var(--muted); font-size: .95rem; }
.post3 a:hover p { color: var(--blue); }

/* Articles and product detail pages */
article, .post { margin-bottom: 48px; }
.post-heading h1, .post-heading h2, .post-heading h3 { margin-bottom: .3em; }
.post-image img { width: 100%; border-radius: var(--radius); margin-bottom: 24px; }
.post-meta, .meta { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }

/* 10. Sidebar widgets
   ========================================================================== */
aside .widget, .left-sidebar .widget, .right-sidebar .widget {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
aside .widgetheading, .left-sidebar .widgetheading, .right-sidebar .widgetheading {
  font-size: 1.3rem;
  color: var(--navy);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { margin-bottom: 10px; }
aside .link-list a, .left-sidebar .link-list a, .right-sidebar .link-list a { color: var(--text); }
aside .link-list a:hover, .left-sidebar .link-list a:hover, .right-sidebar .link-list a:hover { color: var(--blue); }

/* 11. Tables (bearing specifications)
   ========================================================================== */
table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 24px;
  border-collapse: collapse;
  background: var(--white);
  font-size: .95rem;
}
.table-wrap, .table-responsive { overflow-x: auto; margin-bottom: 24px; }
th, td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th, thead td {
  font-weight: 600;
  color: var(--navy);
  background: var(--steel);
  border-bottom: 2px solid var(--line);
}
tbody tr:hover { background: #f6f8fb; }
.table-bordered th, .table-bordered td { border: 1px solid var(--line); }
.table-striped tbody tr:nth-child(odd) { background: #f8fafc; }

/* 12. Forms (contact and inquiry pages)
   ========================================================================== */
form { margin: 0; }
label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--navy); }
.form-group { margin-bottom: 20px; }
.form-control, input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="search"], input[type="password"], select, textarea {
  display: block;
  width: 100%;
  height: auto;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: none;
  transition: border-color .2s;
}
.form-control:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31,111,178,.15);
}
textarea { min-height: 160px; resize: vertical; }
::placeholder { color: #8a95a3; }
.help-block, .validation { display: block; margin-top: 6px; font-size: .88rem; color: #b3261e; }

/* 13. Pagination
   ========================================================================== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 32px 0;
  padding: 0;
}
.pagination li { margin: 0; }
.pagination li a, .pagination li span, .pagination > a, .pagination > span {
  display: block;
  min-width: 40px;
  padding: 8px 12px;
  text-align: center;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.pagination li a:hover, .pagination > a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .active a, .pagination .active span, .pagination .current {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

/* 14. Call to action band
   ========================================================================== */
.cta, #clients { background: var(--blue); color: var(--white); }
#clients { padding: 80px 0; }
.cta-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: center; }
.cta h3, #clients h3 { color: var(--white); font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.cta p, #clients .aligncenter { margin: 0; color: #e3eef8; max-width: 62ch; }
.cta .btn-wrap { text-align: right; }
#clients .more { display: table; margin: 8px auto 0; background: var(--white); color: var(--navy); }
#clients .more:hover { background: var(--steel); color: var(--navy); }

/* 15. Footer
   ========================================================================== */
footer { background: var(--navy-deep); color: #b8c5d4; font-size: .95rem; padding: 0; }
footer > .container > .row, .footer-grid { padding: 72px 0 56px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
footer .widget { margin-bottom: 24px; }
footer .widgetheading { font-size: 1.25rem; color: var(--white); margin-bottom: 18px; }
footer a:hover .widgetheading { color: var(--blue-soft); }
footer a { color: #d3dde8; }
footer a:hover { color: var(--white); }
footer p { margin: 0 0 10px; }
footer strong { color: var(--white); }
footer [class^="icon-"], footer [class*=" icon-"] { color: var(--blue-soft); }
.contact-line { display: flex; gap: 10px; align-items: flex-start; }
.contact-line svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--blue-soft); }

#sub-footer { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
#sub-footer .row, .sub-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
#sub-footer .row > [class*="col-"] { width: auto; }
.copyright p { margin: 0; }
.social-network { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social-network li { margin: 0; }
.social-network a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #d3dde8;
}
.social-network a:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.social-network svg { width: 16px; height: 16px; }
.social-network .fa { font-size: 15px; }

/* 16. Back to top
   ========================================================================== */
.scrollup {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, background .2s;
}
.scrollup.show, .scrollup[style*="block"] { opacity: 1; pointer-events: auto; }
.scrollup:hover { background: var(--blue); color: var(--white); }
.scrollup svg { width: 20px; height: 20px; }
.scrollup .fa { font-size: 22px; color: var(--white); }

/* 17. Responsive
   ========================================================================== */
@media (max-width: 991px) {
  .services-intro, .company-grid, .cta-inner { grid-template-columns: 1fr; gap: 24px; }
  .cta .btn-wrap { text-align: left; }
  .features-grid { grid-template-columns: 1fr; }
  .feature, .feature:first-child { border-left: 0; border-top: 1px solid var(--line); padding: 40px 0; }
  .feature:first-child { border-top: 0; }
  .perks, .product-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .navbar-toggle, .nav-toggle { display: block; }
  header .navbar > .container { justify-content: space-between; }
  .navbar-header { width: 100%; }
  .navbar-collapse, .navbar-collapse.collapse {
    display: none !important;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    max-height: none;
    padding: 0;
    background: var(--white);
    border-top: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
  }
  .navbar-collapse.open, .navbar-collapse.in, .navbar-collapse.collapsing { display: block !important; }
  .navbar-nav, .nav-list { flex-direction: column; gap: 0; margin: 0; padding: 8px 24px 16px; }
  .navbar-nav > li > a, .nav-list > li > a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .navbar-nav > .active > a, .nav-list > .active > a { border-bottom-color: var(--blue); }
  .dropdown-menu { position: static; border: 0; padding: 0 0 0 16px; }

  .section, #content, #clients { padding: 64px 0; }
  .hero-inner { min-height: 460px; }
  .perks, .product-grid, .footer-grid { grid-template-columns: 1fr; }
  .grade { width: 60px; height: 60px; font-size: 1.35rem; }
  .alignleft, .alignright { float: none; margin: 0 0 16px; }
  #sub-footer .row, .sub-footer-inner { justify-content: center; text-align: center; }
}

@media (min-width: 768px) {
  .navbar-collapse.collapse { display: block !important; height: auto !important; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 18. Print
   ========================================================================== */
@media print {
  header, footer, .scrollup, .navbar-toggle, .nav-toggle, #clients, .cta { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* 19. Grid columns (Bootstrap 3 class names)
   ========================================================================== */
.col-xs-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
.col-xs-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
.col-xs-3 { flex: 0 0 25.0000%; max-width: 25.0000%; }
.col-xs-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-xs-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
.col-xs-6 { flex: 0 0 50.0000%; max-width: 50.0000%; }
.col-xs-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
.col-xs-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
.col-xs-9 { flex: 0 0 75.0000%; max-width: 75.0000%; }
.col-xs-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
.col-xs-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
.col-xs-12 { flex: 0 0 100.0000%; max-width: 100.0000%; }
.col-xs-offset-1 { margin-left: 8.3333%; }
.col-xs-offset-2 { margin-left: 16.6667%; }
.col-xs-offset-3 { margin-left: 25.0000%; }
.col-xs-offset-4 { margin-left: 33.3333%; }
.col-xs-offset-5 { margin-left: 41.6667%; }
.col-xs-offset-6 { margin-left: 50.0000%; }
.col-xs-offset-7 { margin-left: 58.3333%; }
.col-xs-offset-8 { margin-left: 66.6667%; }
.col-xs-offset-9 { margin-left: 75.0000%; }
.col-xs-offset-10 { margin-left: 83.3333%; }
.col-xs-offset-11 { margin-left: 91.6667%; }
@media (min-width: 768px) {
  .col-sm-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
  .col-sm-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-sm-3 { flex: 0 0 25.0000%; max-width: 25.0000%; }
  .col-sm-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-sm-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-sm-6 { flex: 0 0 50.0000%; max-width: 50.0000%; }
  .col-sm-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .col-sm-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .col-sm-9 { flex: 0 0 75.0000%; max-width: 75.0000%; }
  .col-sm-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
  .col-sm-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
  .col-sm-12 { flex: 0 0 100.0000%; max-width: 100.0000%; }
  .col-sm-offset-1 { margin-left: 8.3333%; }
  .col-sm-offset-2 { margin-left: 16.6667%; }
  .col-sm-offset-3 { margin-left: 25.0000%; }
  .col-sm-offset-4 { margin-left: 33.3333%; }
  .col-sm-offset-5 { margin-left: 41.6667%; }
  .col-sm-offset-6 { margin-left: 50.0000%; }
  .col-sm-offset-7 { margin-left: 58.3333%; }
  .col-sm-offset-8 { margin-left: 66.6667%; }
  .col-sm-offset-9 { margin-left: 75.0000%; }
  .col-sm-offset-10 { margin-left: 83.3333%; }
  .col-sm-offset-11 { margin-left: 91.6667%; }
}
@media (min-width: 992px) {
  .col-md-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
  .col-md-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-md-3 { flex: 0 0 25.0000%; max-width: 25.0000%; }
  .col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-md-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-md-6 { flex: 0 0 50.0000%; max-width: 50.0000%; }
  .col-md-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .col-md-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .col-md-9 { flex: 0 0 75.0000%; max-width: 75.0000%; }
  .col-md-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
  .col-md-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
  .col-md-12 { flex: 0 0 100.0000%; max-width: 100.0000%; }
  .col-md-offset-1 { margin-left: 8.3333%; }
  .col-md-offset-2 { margin-left: 16.6667%; }
  .col-md-offset-3 { margin-left: 25.0000%; }
  .col-md-offset-4 { margin-left: 33.3333%; }
  .col-md-offset-5 { margin-left: 41.6667%; }
  .col-md-offset-6 { margin-left: 50.0000%; }
  .col-md-offset-7 { margin-left: 58.3333%; }
  .col-md-offset-8 { margin-left: 66.6667%; }
  .col-md-offset-9 { margin-left: 75.0000%; }
  .col-md-offset-10 { margin-left: 83.3333%; }
  .col-md-offset-11 { margin-left: 91.6667%; }
}
@media (min-width: 1200px) {
  .col-lg-1 { flex: 0 0 8.3333%; max-width: 8.3333%; }
  .col-lg-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-lg-3 { flex: 0 0 25.0000%; max-width: 25.0000%; }
  .col-lg-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-lg-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-lg-6 { flex: 0 0 50.0000%; max-width: 50.0000%; }
  .col-lg-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .col-lg-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .col-lg-9 { flex: 0 0 75.0000%; max-width: 75.0000%; }
  .col-lg-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
  .col-lg-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
  .col-lg-12 { flex: 0 0 100.0000%; max-width: 100.0000%; }
  .col-lg-offset-1 { margin-left: 8.3333%; }
  .col-lg-offset-2 { margin-left: 16.6667%; }
  .col-lg-offset-3 { margin-left: 25.0000%; }
  .col-lg-offset-4 { margin-left: 33.3333%; }
  .col-lg-offset-5 { margin-left: 41.6667%; }
  .col-lg-offset-6 { margin-left: 50.0000%; }
  .col-lg-offset-7 { margin-left: 58.3333%; }
  .col-lg-offset-8 { margin-left: 66.6667%; }
  .col-lg-offset-9 { margin-left: 75.0000%; }
  .col-lg-offset-10 { margin-left: 83.3333%; }
  .col-lg-offset-11 { margin-left: 91.6667%; }
}