/*
Theme Name: MSGrating
Theme URI: https://msgrating.com
Author: MSGrating
Author URI: https://msgrating.com
Description: Custom WordPress theme for MSGrating — Industrial & Manufacturing. Clean, professional base theme ready for designer customisation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: msgrating
Tags: industrial, manufacturing, custom, responsive
*/

/* ============================================================
   CSS CUSTOM PROPERTIES (Brand Tokens)
   ============================================================ */
:root {
  /* Brand Colours */
  --color-primary:       #1B4F9B;   /* Deep Industrial Blue */
  --color-primary-dark:  #133a74;
  --color-primary-light: #2b65c0;
  --color-accent:        #E8253A;   /* Bold Red */
  --color-accent-dark:   #c41e30;
  --color-accent-light:  #ff3d52;

  /* Neutrals */
  --color-dark:          #1A1A1A;
  --color-dark-mid:      #333333;
  --color-mid:           #666666;
  --color-light:         #f5f5f5;
  --color-border:        #e0e0e0;
  --color-white:         #ffffff;

  /* Typography */
  --font-heading:        'Barlow Condensed', sans-serif;
  --font-body:           'Barlow', sans-serif;
  --font-size-base:      16px;
  --line-height-base:    1.6;

  /* Spacing Scale */
  --space-xs:    4px;
  --space-sm:    8px;
  --space-md:    16px;
  --space-lg:    24px;
  --space-xl:    40px;
  --space-2xl:   64px;
  --space-3xl:   96px;

  /* Layout */
  --container-max:  1280px;
  --container-pad:  clamp(16px, 5vw, 40px);

  /* Radii */
  --radius-sm:  4px;
  --radius-md:  8px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.10);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.15);

  /* Transitions */
  --transition: 0.25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--font-size-base); scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }

ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-3xl);
}

.section--sm { padding-block: var(--space-2xl); }
.section--lg { padding-block: calc(var(--space-3xl) * 1.5); }

.section--dark {
  background: var(--color-dark);
  color: var(--color-white);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--color-white); }

.section--primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.section--primary h1,
.section--primary h2,
.section--primary h3 { color: var(--color-white); }

.section--light { background: var(--color-light); }

.grid {
  display: grid;
  gap: var(--space-lg);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.flex { display: flex; gap: var(--space-md); }
.flex--center { align-items: center; }
.flex--between { justify-content: space-between; }
.flex--wrap { flex-wrap: wrap; }

.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  line-height: 1;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn--accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn--outline-white:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--lg { padding: 16px 36px; font-size: 1.1rem; }
.btn--sm { padding: 8px 18px; font-size: 0.85rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 3px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-header__logo img {
  height: 50px;
  width: auto;
}

/* Top bar (optional) */
.site-header__topbar {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.8rem;
  padding: 6px 0;
}
.site-header__topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-lg);
}
.site-header__topbar a {
  color: var(--color-white);
  opacity: 0.85;
}
.site-header__topbar a:hover { opacity: 1; color: var(--color-white); }

No, don't replace it — just add the ::after styles and remove the background hover since you're using the tick instead. Here's the updated block:
css/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-primary { display: flex; align-items: center; gap: var(--space-xs); }

.nav-primary a {
  position: relative;
  display: block;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-dark);
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.nav-primary a:hover,
.nav-primary .current-menu-item > a {
  color: var(--color-white);
}

/* Red diagonal tick */
.nav-primary a::after {
  content: '';
  position: absolute;
  bottom: 16px;
  left: 2px;
  width: 0;
  height: 3px;
  background: #E8253A;
  border-radius: 2px;
  transform: rotate(45deg);
  transform-origin: left center;
  transition: width 0.2s ease;
}

.nav-primary a:hover::after,
.nav-primary .current-menu-item > a::after {
  width: 14px;
}

/* Dropdown */
.nav-primary .menu-item-has-children { position: relative; }
.nav-primary .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border-top: 3px solid var(--color-accent);
  box-shadow: var(--shadow-md);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.nav-primary .menu-item-has-children:hover > .sub-menu { display: block; }
.nav-primary .sub-menu li a {
  padding: 10px 16px;
  font-size: 0.88rem;
  border-radius: 0;
  border-bottom: 1px solid var(--color-border);
}
.nav-primary .sub-menu li:last-child a { border-bottom: none; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-dark);
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--color-primary);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, rgba(27,79,155,0.7) 100%);
}

/* Decorative grating pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 500px;
  height: 500px;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.04) 0px,
    rgba(255,255,255,0.04) 4px,
    transparent 4px,
    transparent 20px
  );
  border-radius: 50%;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  color: var(--color-white);
}

.hero__label {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.hero h1 { color: var(--color-white); margin-bottom: var(--space-lg); }

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  max-width: 520px;
}

.hero__actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* Hero with background image */
.hero--bg-image { background-size: cover; background-position: center; }
.hero--bg-image::before {
  background: linear-gradient(90deg, rgba(27,79,155,0.92) 40%, rgba(27,79,155,0.5) 100%);
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-header { margin-bottom: var(--space-2xl); }
.section-header--center { text-align: center; }

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-divider {
  width: 48px;
  height: 4px;
  background: var(--color-accent);
  margin-top: var(--space-md);
}
.section-header--center .section-divider { margin-inline: auto; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card--accent-top { border-top: 4px solid var(--color-accent); }
.card--primary-top { border-top: 4px solid var(--color-primary); }

.card__image img { width: 100%; height: 220px; object-fit: cover; }

.card__body { padding: var(--space-lg); }

.card__category {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: var(--space-sm);
}

.card__text { color: var(--color-mid); font-size: 0.95rem; margin-bottom: var(--space-md); }

.card__footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Icon Card */
.card--icon { text-align: center; padding: var(--space-xl) var(--space-lg); }
.card--icon .card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: var(--color-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

/* ============================================================
   STATS / NUMBERS
   ============================================================ */
.stats { display: flex; flex-wrap: wrap; gap: var(--space-lg); }

.stat {
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat__label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-mid);
}

/* ============================================================
   PRODUCT / SERVICE LISTING
   ============================================================ */
.product-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-lg); }

.product-card__image { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__image img { transform: scale(1.05); }

.product-card__badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.product-card__body { padding: var(--space-lg); }
.product-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.product-card__desc { color: var(--color-mid); font-size: 0.9rem; margin-bottom: var(--space-md); }

/* ============================================================
   TESTIMONIALS / QUOTES
   ============================================================ */
.testimonial {
  background: var(--color-white);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-lg) var(--space-xl);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}

.testimonial__text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-dark-mid);
  margin-bottom: var(--space-md);
}

.testimonial__author {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  font-size: 0.9rem;
}

.testimonial__company {
  font-size: 0.85rem;
  color: var(--color-mid);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--color-accent);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.cta-banner h2 { color: var(--color-white); margin-bottom: var(--space-md); }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: var(--space-xl); font-size: 1.1rem; }

.cta-banner--primary { background: var(--color-primary); }

/* ============================================================
   CONTACT / FORM
   ============================================================ */
.form-group { margin-bottom: var(--space-lg); }

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-dark);
  margin-bottom: var(--space-xs);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--color-primary); }

textarea.form-control { resize: vertical; min-height: 140px; }

select.form-control { appearance: none; cursor: pointer; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-mid);
  padding: var(--space-md) 0;
}
.breadcrumbs a { color: var(--color-primary); }
.breadcrumbs .sep { color: var(--color-border); }
.breadcrumbs .current { color: var(--color-dark); font-weight: 600; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  margin-top: var(--space-2xl);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-dark);
  transition: all var(--transition);
}
.pagination a:hover,
.pagination .current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.75);
  padding-top: var(--space-3xl);
}

.site-footer__top { padding-bottom: var(--space-2xl); border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-footer__top .grid { gap: var(--space-2xl); }

.site-footer__brand .logo { height: 44px; margin-bottom: var(--space-lg); }
.site-footer__brand p { font-size: 0.9rem; max-width: 280px; }

.site-footer__heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.site-footer__links { display: flex; flex-direction: column; gap: var(--space-sm); }
.site-footer__links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.site-footer__links a:hover { color: var(--color-accent); }

.site-footer__contact-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  color: rgba(255,255,255,0.75);
}

.site-footer__bottom {
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.site-footer__bottom a { color: rgba(255,255,255,0.55); }
.site-footer__bottom a:hover { color: var(--color-accent); }

/* ============================================================
   ACCENT STRIP
   ============================================================ */
.accent-strip {
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 50%, var(--color-accent) 50%);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.widget { margin-bottom: var(--space-2xl); }

.widget-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-dark);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid var(--color-primary);
}

/* ============================================================
   PAGE LAYOUTS
   ============================================================ */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-2xl);
  align-items: start;
}

.page-title-bar {
  background: var(--color-light);
  border-bottom: 3px solid var(--color-primary);
  padding: var(--space-xl) 0;
}
.page-title-bar h1 { margin: 0; }

/* ============================================================
   UTILITIES
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .page-with-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-primary { display: none; }
  .nav-primary.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0; right: 0;
    background: var(--color-white);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    gap: var(--space-xs);
  }
  .nav-primary.is-open a { display: block; padding: 12px 16px; }
  .nav-primary .sub-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--color-accent);
    margin-left: var(--space-md);
    margin-top: var(--space-xs);
    display: none;
  }

  .nav-toggle { display: flex; }

  .hero { min-height: 420px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }

  .site-footer__top .grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  :root { --font-size-base: 15px; }
  .section { padding-block: var(--space-2xl); }
  .stats { flex-direction: column; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta-banner { display: none; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}
