:root {
  --ms-red: #d51f2a;
  --ms-red-dark: #a90f19;
  --ms-ink: #16181d;
  --ms-muted: #68707d;
  --ms-surface: #f6f7f9;
  --ms-radius: 18px;
  --ms-shadow: 0 18px 50px rgba(22, 24, 29, .10);
}

html { scroll-behavior: smooth; }
body { color: var(--ms-ink); background: #fff; overflow-x: hidden; }
body, button, input, textarea, select { font-family: "Lato", system-ui, sans-serif; }
img { max-width: 100%; height: auto; }

#topbar { background: #111318; }
#header { background: rgba(255,255,255,.97); box-shadow: 0 8px 30px rgba(0,0,0,.07); }
#header .logo img { height: auto; }
#navbar > ul > li > a { font-weight: 700; letter-spacing: .01em; }
#navbar a:hover, #navbar .active { color: var(--ms-red); }

main section, body > section:not(#topbar):not(.hero-slider):not(.main-footer) { position: relative; }
.container { max-width: 1200px; }
p { color: #4d5561; line-height: 1.75; }
h1, h2, h3 { color: var(--ms-ink); letter-spacing: -.025em; }
.text-danger { color: var(--ms-red) !important; }
.red-btn, .btn-danger { border: 0; border-radius: 10px; background: linear-gradient(135deg,var(--ms-red),var(--ms-red-dark)); box-shadow: 0 10px 25px rgba(213,31,42,.22); transition: transform .2s, box-shadow .2s; }
.red-btn:hover, .btn-danger:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(213,31,42,.3); }

/* Consistent catalogue and content presentation across legacy pages. */
.product, .product-details, .card, .card-prod { border: 1px solid rgba(22,24,29,.07) !important; border-radius: var(--ms-radius) !important; box-shadow: var(--ms-shadow); overflow: hidden; background: #fff; }
.product-title, .product-titile, .prod-desctitle, .related-title { font-weight: 800; }
.product-titile { text-shadow: 0 3px 18px rgba(0,0,0,.22); }
.swiper-product { background: var(--ms-surface); padding-block: clamp(3rem,7vw,6rem); }
.card-prod { height: 100%; transition: transform .25s, box-shadow .25s; }
.card-prod:hover { transform: translateY(-7px); box-shadow: 0 24px 55px rgba(22,24,29,.15); }
.card-prod img { aspect-ratio: 4 / 3; object-fit: contain; padding: 1rem; background: #fff; }

.hero-slider { height: clamp(520px, 72vh, 760px); background: #15171b; }
.hero-slide { position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-slide__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease; }
.swiper-slide-active .hero-slide__image { transform: scale(1); }
.hero-slide__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 9, 13, .88) 0%, rgba(7, 9, 13, .60) 48%, rgb(7 9 13 / 0%) 78%), linear-gradient(0deg, rgb(7 9 13 / 0%), #00000000 45%); }
.hero-slide__content { position: relative; z-index: 2; color: #fff; padding-bottom: 3rem; }
.hero-slide__content > * { max-width: 720px; opacity: 0; transform: translateY(24px); }
.swiper-slide-active .hero-slide__content > * { animation: heroReveal .75s ease forwards; }
.swiper-slide-active .hero-slide__content > *:nth-child(2) { animation-delay: .12s; }
.swiper-slide-active .hero-slide__content > *:nth-child(3) { animation-delay: .23s; }
.swiper-slide-active .hero-slide__content > *:nth-child(4) { animation-delay: .34s; }
.hero-slide__content h1, .hero-slide__content h2 { color: #fff; font-size: 57px; line-height: .98; font-weight: 900; text-transform: uppercase; }
.hero-slide__content p { color: rgba(255,255,255,.88); font-size: clamp(1rem,1.6vw,1.3rem); }
.hero-slide__content .hero-slide__eyebrow { color: #ff6871; font-size: .82rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.hero-slide__cta { display: inline-flex; align-items: center; gap: .7rem; margin-top: .65rem; padding: .9rem 1.25rem; color: #fff; background: var(--ms-red); border-radius: 9px; font-weight: 800; text-decoration: none; }
.hero-slider__controls { position: absolute; z-index: 5; left: 50%; bottom: 2rem; transform: translateX(-50%); display: flex; align-items: center; gap: .8rem; }
.hero-slider__controls button { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #fff; background: rgba(10,12,16,.35); backdrop-filter: blur(8px); }
.hero-pagination { width: auto !important; }
.hero-pagination .swiper-pagination-bullet { width: 28px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.6); }
.hero-pagination .swiper-pagination-bullet-active { background: #fff; }

.main-footer { margin-top: 0; background: linear-gradient(145deg,#111318,#20232a); color: #fff; }
.main-footer p, .main-footer a { color: rgba(255,255,255,.76); }
.main-footer a:hover { color: #fff; }

/* Homepage section system */
.home-section, .home-capabilities, .home-values, .home-manufacturer, .home-industries { padding-block: 0; }
.home-intro img, .home-solution img, .home-assurance img, .home-manufacturer img { border-radius: 24px; box-shadow: var(--ms-shadow); }
.home-intro .row, .home-solution .row, .home-assurance .row, .home-manufacturer .row { row-gap: 2.5rem; align-items: center; }
.section-heading {     padding-top: 30px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-heading h2 { margin: .45rem 0 .75rem; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 900; }
.section-heading p { margin: 0 auto; font-size: 1.08rem; }
.section-kicker { display: inline-block; color: var(--ms-red); font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.section-heading--light h2, .section-heading--light p { color: #fff; }
.section-heading--light p { color: rgba(255,255,255,.74); }

.ms-theme-btn { display: inline-flex; align-items: center; gap: .65rem; padding: .9rem 1.35rem; border: 2px solid var(--ms-red); border-radius: 10px; color: #fff !important; background: var(--ms-red); font-weight: 800; text-decoration: none; box-shadow: 0 10px 26px rgba(213,31,42,.24); transition: color .22s, background .22s, border-color .22s, transform .22s, box-shadow .22s; }
.ms-theme-btn:hover, .ms-theme-btn:focus-visible { color: #fff !important; background: var(--ms-red-dark); border-color: var(--ms-red-dark); transform: translateY(-3px); box-shadow: 0 15px 32px rgba(169,15,25,.34); }
.ms-theme-btn i { transition: transform .22s; }
.ms-theme-btn:hover i { transform: translateX(4px); }

.swiper-product { position: relative; display: block; width: 100%; height: auto; min-height: 0; padding-block: clamp(4.5rem,8vw,7rem); background: linear-gradient(180deg,#f7f8fa 0%,#fff 100%); overflow: hidden; align-items: initial; }
.swiper-product > .container { width: 100%; }
.product-range__intro { margin-bottom: clamp(2.5rem,5vw,4rem); }
.product-range__intro .row { width: auto; }
.product-range__intro h2 { max-width: 650px; margin: .55rem 0 0; font-size: clamp(2.15rem,4.5vw,3.65rem); line-height: 1.08; font-weight: 900; }
.product-range__intro p { max-width: 620px; margin: 0 0 1.25rem; font-size: 1.08rem; }
.product-range__highlights { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
.product-range__highlights span { display: inline-flex; align-items: center; gap: .4rem; color: var(--ms-ink); font-size: .94rem; font-weight: 800; }
.product-range__highlights i { color: var(--ms-red); font-size: 1.1rem; }
.product-range__slider-row { position: relative; display: block; clear: both; }
.product-slider-shell { position: relative; padding: .5rem 3.5rem 3.5rem; }
.product-slider-shell .mySwiper { display: block; width: 100%; padding: .75rem .25rem 1.5rem; overflow: hidden; }
.product-slider-shell .swiper-wrapper { display: flex; align-items: stretch; }
.product-slider-shell .swiper-slide { display: flex; height: auto; }
.product-slider-shell .card-prod { margin: 0; }
.product-slider-shell .card-content { min-height: 355px; justify-content: space-between; }
.product-slider-shell .card-prod .image { width: 100%; overflow: hidden; }
.product-slider-shell .card-prod img { width: 100%; height: 265px; transform: scale(1); transition: transform .4s ease; }
.product-slider-shell .card-prod:hover img { transform: scale(1.045); }
.product-slider-shell .name-profession { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.15rem 1rem .3rem; }
.product-slider-shell .profession { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; color: #fff; background: var(--ms-red); transition: background .2s, transform .2s; }
.product-slider-shell .card-prod:hover .profession { background: var(--ms-red-dark); transform: translateX(3px); }
.swiper-product .name a { color: var(--ms-ink); text-decoration: none; transition: color .2s; }
.swiper-product .card-prod:hover .name a { color: var(--ms-red); }
.swiper-product .swiper-button-next, .swiper-product .swiper-button-prev { width: 46px; height: 46px; border-radius: 50%; color: #fff; background: var(--ms-red); box-shadow: 0 8px 22px rgba(213,31,42,.25); }
.swiper-product .swiper-button-next:hover, .swiper-product .swiper-button-prev:hover { background: var(--ms-red-dark); }
.swiper-product .swiper-button-next::after, .swiper-product .swiper-button-prev::after { font-size: 17px; font-weight: 900; }
.swiper-product .swiper-pagination-bullet-active { background: var(--ms-red); }
.product-slider-shell .swiper-pagination { bottom: .45rem; }
.product-range__footer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 1rem; padding: 1.5rem 1.75rem; border: 1px solid rgba(22,24,29,.08); border-radius: 16px; background: #fff; box-shadow: 0 12px 35px rgba(22,24,29,.07); }
.product-range__footer p { margin: 0; color: var(--ms-ink); font-size: 1.04rem; font-weight: 700; }

.home-capabilities { background: #15171c url('../../images/aib.png') no-repeat bottom center / min(100%,1100px) auto; }
.capability-card { height: 100%; padding: 2.5rem 1.25rem; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: #fff; box-shadow: var(--ms-shadow); transition: transform .25s, box-shadow .25s; }
.capability-card:hover { transform: translateY(-8px); box-shadow: 0 24px 52px rgba(0,0,0,.26); }
.capability-card img { width: 72px; height: 72px; object-fit: contain; transition: transform .25s; }
.capability-card:hover img { transform: scale(1.08); }
.capability-card a { color: var(--ms-ink); text-decoration: none; }
.capability-card:hover h4 { color: var(--ms-red); }

.home-quality .back-points { background-attachment: scroll !important; position: relative; }
.home-quality .back-points::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(10,12,16,.88),rgba(10,12,16,.60)); }
.home-quality .container { position: relative; }
.quality-message { max-width: 500px; padding: 2rem; text-align: left; }
.quality-message h2 { margin-block: .55rem 1rem; color: #fff; font-size: clamp(2rem,4vw,3.25rem); font-weight: 900; }
.quality-message p { color: rgba(255,255,255,.78); }
.home-quality li { margin-bottom: .7rem; font-weight: 700; }
.home-assurance { background: var(--ms-surface); }
.home-values .home-mission { padding: 2rem; border-right: 1px solid rgba(22,24,29,.10); }
.home-values .home-mission:last-child { border-right: 0; }
.home-manufacturer { background: linear-gradient(180deg,#fff,var(--ms-surface)); }
.home-manufacturer .mkwld li { margin-bottom: .8rem; color: #4d5561; }
.home-manufacturer a { color: var(--ms-red-dark); }
.home-industries .row > div { transition: transform .25s; }
.home-industries .row > div:hover { transform: translateY(-6px); }
.home-industries img { aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; box-shadow: 0 12px 30px rgba(22,24,29,.12); }
.home-industries h4 { margin-top: .85rem; }
.home-intro + .swiper-product, .swiper-product + .home-capabilities, .home-capabilities + .home-solution, .home-solution + .home-quality, .home-quality + .home-assurance, .home-assurance + .home-values, .home-values + .home-manufacturer, .home-manufacturer + .home-industries { margin-top: 0; }

@keyframes heroReveal { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (max-width: 767px) {
  .hero-slider { height: 560px; }
  .hero-slide__shade { background: linear-gradient(90deg,rgba(7,9,13,.88),rgba(7,9,13,.55)); }
  .hero-slide__content { padding-inline: 1.25rem; }
  .hero-slide__content h1, .hero-slide__content h2 { font-size: clamp(2.25rem,12vw,3.5rem); }
  #topbar .hmail1 { display: none !important; }
  .home-values .home-mission { border-right: 0; border-bottom: 1px solid rgba(22,24,29,.10); }
  .home-quality .row { text-align: left; }
  .quality-message { padding-inline: 0; }
  .product-slider-shell { padding-inline: 0; }
  .product-slider-shell .swiper-button-prev, .product-slider-shell .swiper-button-next { display: none; }
  .product-range__footer { align-items: flex-start; flex-direction: column; }
  .product-range__footer .ms-theme-btn { width: 100%; justify-content: center; }
  .product-range__intro h2 { font-size: clamp(2rem,10vw,2.8rem); }
  .product-range__highlights { display: grid; grid-template-columns: 1fr; }
  .product-slider-shell .card-content { min-height: 330px; }
  .product-slider-shell .card-prod img { height: 235px; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .product-range__intro .col-lg-6 + .col-lg-6 { padding-top: .5rem; }
  .product-slider-shell { padding-inline: 2.75rem; }
  .product-slider-shell .card-content { min-height: 335px; }
  .product-slider-shell .card-prod img { height: 240px; }
}
