/* ---------- Brand variables (change colours here) ---------- */
:root {
  --fp-primary: #cb0000;
  --fp-primary-dark: #a30000;
  --fp-text: #212529;
  --fp-heading: #111111;
  --fp-muted: #666666;
  --fp-light: #f5f6f8;
  --fp-border: #e5e7eb;
  --fp-navy: #393a74; /* exact navy of the client logo tile */
  --fp-radius: 6px;        /* buttons, search, chips */
  --fp-radius-card: 10px;  /* cards, photos, panels */
}

/* Base size 14px (was 16px): every rem-based size scales down ~12% */
html { font-size: 87.5%; }

@media (min-width: 1400px) {
  .container { max-width: 1200px; }
}

body {
  font-family: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--fp-text);
  background: #fff;
}

a { color: inherit; text-decoration: none; }

/* Headings: semi-bold with slightly tight tracking looks cleaner than heavy bold */
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.015em; }

/* ---------- Header (floating rectangular bar) ---------- */
.site-header {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 0 16px;
}
.site-header .header-pill {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  padding: 6px 14px 6px 6px;
}
.site-header .navbar-brand { padding: 0; }
/* Logo is a ready-made navy tile (3.26 : 1). Only the height is set, so it is never stretched or squashed. */
.brand-logo {
  display: block;
  height: 58px;
  width: auto;
  border-radius: 3px;
  transition: height 0.3s ease;
}

.site-header .nav-link {
  color: var(--fp-text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 1.1rem 0.9rem;
  position: relative;
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--fp-primary); }
.site-header .dropdown-menu {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 8px;
  font-size: 0.875rem;
}
.site-header .dropdown-item { border-radius: 4px; padding: 8px 14px; }
.site-header .dropdown-item:hover { background: var(--fp-light); color: var(--fp-primary); }
@media (min-width: 992px) {
  .site-header .dropdown:hover > .dropdown-menu,
  .site-header .dropdown:focus-within > .dropdown-menu { display: block; margin-top: 0; } /* keyboard users can reach the submenu too */
}

.header-search { position: relative; }
.header-search input {
  border: 0;
  border-bottom: 1px solid var(--fp-border);
  background: transparent;
  font-size: 0.8rem;
  padding: 4px 8px;
  width: 130px;
  outline: none;
}
.header-search input:focus { border-color: var(--fp-primary); }

/* ---------- Buttons ---------- */
.btn-fp {
  background: var(--fp-primary);
  color: #fff;
  border: 0;
  border-radius: var(--fp-radius);
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-fp:hover { background: var(--fp-primary-dark); color: #fff; }

/* ---------- Page offset for fixed header ---------- */
main { min-height: 60vh; }
.placeholder-section {
  padding: 140px 16px 80px;
  text-align: center;
  color: var(--fp-muted);
}

/* ---------- Hero slider ---------- */
.hero-swiper {
  --swiper-theme-color: var(--fp-primary);
  --swiper-navigation-size: 28px;
}
.hero-swiper .swiper-slide {
  position: relative;
  height: clamp(420px, 70vh, 640px);
  display: flex;
  align-items: center;
}
.hero-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.hero-img::before {
  /* dark-to-clear fade so the white text stays readable over any photo */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 20, 30, 0.75) 0%, rgba(10, 20, 30, 0.35) 55%, rgba(10, 20, 30, 0) 100%);
}
.hero-img { background: var(--fp-navy); }
.hero-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-label {
  position: relative;
  margin: 16px 56px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}
.hero-caption {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-top: 56px;
  padding-left: 56px;
  padding-right: 56px;
}
.hero-caption h1,
.hero-caption h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 600;
  max-width: 620px;
  line-height: 1.15;
}
.hero-kicker {
  display: inline-block;
  border-left: 3px solid var(--fp-primary);
  padding-left: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-text {
  max-width: 480px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 16px 0 26px;
}
.btn-lg-fp { padding: 10px 30px; font-size: 0.95rem; display: inline-block; }
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next { color: #fff; }
.hero-swiper .swiper-pagination-bullet { background: #fff; opacity: 0.6; }
.hero-swiper .swiper-pagination-bullet-active { background: var(--fp-primary); opacity: 1; }
@media (max-width: 767px) {
  .hero-caption { padding-left: 24px; padding-right: 24px; }
  .img-label { margin: 16px 24px 40px; } /* sits above the slider dots */
  .hero-swiper .swiper-button-prev,
  .hero-swiper .swiper-button-next { display: none; }
}

/* ---------- Section headings ---------- */
.section-head { margin-bottom: 2.5rem; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--fp-heading);
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 44px;
  height: 3px;
  margin-left: -22px;
  background: var(--fp-primary);
}
.section-sub { color: var(--fp-muted); max-width: 560px; margin: 0.5rem auto 0; }

/* ---------- Products ---------- */
.products-section { padding: 64px 0; background: #fff; }
.product-swiper {
  --swiper-theme-color: var(--fp-primary);
  /* Swiper clips anything outside its box, so reserve room for the hover lift and shadow */
  padding: 12px 10px 44px;
  margin: -12px -10px 0;
}
.product-slider { position: relative; }
.product-swiper .swiper-scrollbar {
  height: 4px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  width: auto;
  background: #e6e9ee;
}
.product-swiper .swiper-scrollbar-drag { background: var(--fp-primary); }
.slider-arrow {
  position: absolute;
  top: calc(50% - 44px);
  z-index: 5;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--fp-text);
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: background 0.2s, color 0.2s, opacity 0.2s, transform 0.2s;
}
.slider-prev { left: -22px; }
.slider-next { right: -22px; }
.slider-arrow:hover { background: var(--fp-primary); color: #fff; transform: scale(1.08); }
.slider-arrow:focus-visible { outline: 2px solid var(--fp-primary); outline-offset: 3px; }
.slider-arrow.swiper-button-disabled { opacity: 0; pointer-events: none; }
.slider-arrow.swiper-button-lock { display: none; }
@media (max-width: 767.98px) {
  .slider-arrow { width: 36px; height: 36px; font-size: 0.95rem; top: calc(50% - 56px); }
  .slider-prev { left: -6px; }
  .slider-next { right: -6px; }
}
.product-card { display: block; text-align: center; }
.product-img {
  aspect-ratio: 1 / 1;
  border-radius: var(--fp-radius-card);
  background: linear-gradient(135deg, #eceff3, #d9dee5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover .product-img {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.product-img img,
.news-img img,
.photo-box img,
.video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-img img { transition: transform 0.4s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.news-img { overflow: hidden; }
.video-box { overflow: hidden; }
.img-label-dark { font-size: 0.75rem; color: var(--fp-muted); margin-bottom: 12px; }
.product-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fp-heading);
  margin-top: 16px;
  transition: color 0.2s;
}
.product-card:hover h3 { color: var(--fp-primary); }

/* Category icon bar */
.category-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--fp-light);
  border-radius: 12px;
  padding: 18px 24px;
  margin-top: 10px;
}
.category-list {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  /* 11 categories: 6 per row on desktop (6 + 5), 4 per row on phones; a short last row stays centred */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.category-list li { flex: 0 0 calc((100% - 5 * 8px) / 6); }
.category-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.category-list i { font-size: 1.9rem; color: var(--fp-muted); transition: color 0.2s; }
.category-list a:hover { background: #fff; color: var(--fp-primary); }
.category-list a:hover i { color: var(--fp-primary); }
.more-btn { padding: 8px 20px; white-space: nowrap; }
@media (max-width: 991px) {
  .category-bar { flex-direction: column; align-items: stretch; }
  .category-list li { flex-basis: calc((100% - 3 * 8px) / 4); }
  .more-btn { align-self: center; }
}

/* ---------- Company introduction ---------- */
.about-section { padding: 64px 0; background: var(--fp-light); }
.video-box {
  aspect-ratio: 16 / 9;
  border-radius: var(--fp-radius-card);
  background: var(--fp-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}
.video-box i { font-size: 4.5rem; color: #fff; opacity: 0.9; }
.video-box .img-label-dark { color: rgba(255, 255, 255, 0.75); margin: 0; }
.map-box { aspect-ratio: 16 / 9; }
.accent-line { width: 44px; height: 3px; background: var(--fp-primary); margin-bottom: 14px; }
.section-title-left {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--fp-heading);
  margin-bottom: 1rem;
}
.about-text { color: var(--fp-muted); line-height: 1.75; }
.stats { margin-top: 1.5rem; }
.stat-num {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--fp-primary);
  line-height: 1;
}
.stat-num sup { font-size: 0.5em; top: -0.6em; }
.stat-label { color: var(--fp-muted); font-size: 0.9rem; margin-top: 6px; }

/* ---------- News ---------- */
.news-section { padding: 64px 0; background: #fff; }
.news-card {
  display: block;
  height: 100%;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-card);
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}
.news-img {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #eceff3, #d9dee5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.news-body { padding: 20px; }
.news-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fp-heading);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.news-card:hover .news-title { color: var(--fp-primary); }
.news-desc {
  color: var(--fp-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-date { font-size: 0.8rem; color: var(--fp-muted); }

/* ---------- Inner pages ---------- */
.page-banner {
  padding: 120px 0 48px;
  background: var(--fp-navy);
  color: #fff;
}
.page-banner h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; margin: 0 0 8px; }
.page-banner .crumbs { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); margin: 0; }
.page-banner .crumbs a:hover { color: #fff; text-decoration: underline; }
.page-section { padding: 56px 0; }
.page-section.alt { background: var(--fp-light); }
.page-section[id], .product-group[id] { scroll-margin-top: 90px; }

.legal-text { max-width: 760px; margin: 0 auto; line-height: 1.75; color: var(--fp-text); }
.legal-text h2 { font-size: 1.2rem; font-weight: 600; color: var(--fp-heading); margin: 2rem 0 0.6rem; }
.legal-text a { color: var(--fp-primary); text-decoration: underline; }
.footer-bottom a { text-decoration: underline; }

.group-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--fp-heading);
  border-left: 4px solid var(--fp-primary);
  padding-left: 12px;
  margin-bottom: 1.5rem;
}
.product-group { margin-bottom: 3.5rem; }
.product-group:last-child { margin-bottom: 0; }

.feature-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-card);
  padding: 26px 22px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1); }
.feature-card i { font-size: 2rem; color: var(--fp-primary); }
.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin: 12px 0 8px; color: var(--fp-heading); }
.feature-card p { color: var(--fp-muted); font-size: 0.92rem; margin: 0; line-height: 1.65; }
/* Service page: each card is a dropdown target, with its enquiry link pinned to the bottom */
.service-card { display: flex; flex-direction: column; scroll-margin-top: 110px; }
.service-card p { flex: 1; }
.service-link { margin-top: 14px; font-size: 0.9rem; font-weight: 600; color: var(--fp-primary); }
.service-link:hover { text-decoration: underline; }
.service-card:target { border-color: var(--fp-primary); box-shadow: 0 0 0 3px rgba(203, 0, 0, 0.12); }

.contact-info-item { display: flex; gap: 14px; margin-bottom: 1.4rem; }
.contact-info-item i { font-size: 1.5rem; color: var(--fp-primary); }
.contact-info-item h3 { font-size: 1rem; font-weight: 600; margin: 0 0 2px; }
.contact-info-item p, .contact-info-item a { color: var(--fp-muted); margin: 0; }
.contact-info-item a:hover { color: var(--fp-primary); }
.contact-form-card {
  background: #fff;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-card);
  padding: 28px;
}
.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--fp-primary);
  box-shadow: 0 0 0 0.2rem rgba(203, 0, 0, 0.15);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1b1d21;
  color: #c9cdd3;
  font-size: 0.9rem;
}
.site-footer .footer-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 10px;
}
.site-footer .footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--fp-primary);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-logo { height: 56px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #8b9097;
}

/* ---------- Floating WhatsApp button (added to every page by js/main.js) ---------- */
/* Desktop: a green "Chat with us" pill, bottom right. Phones: a round icon. The back-to-top
   arrow sits above it, and on product pages both move up while the "Get a Quote" bar shows. */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1040;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, bottom 0.3s ease;
}
.whatsapp-float i { font-size: 1.45rem; line-height: 1; }
.whatsapp-float:hover { color: #fff; background: #1ebe5b; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26); }
.whatsapp-float:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px #25d366; }
@media (max-width: 767.98px) {
  .whatsapp-float { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .whatsapp-float .wa-label { display: none; }
  .whatsapp-float i { font-size: 1.6rem; }
}
body.quote-bar-on .whatsapp-float { bottom: 78px; }

/* ---------- Product catalogue ---------- */

.crumb-bar { padding: 92px 0 0; background: var(--fp-light); }
.crumbs-list { list-style: none; margin: 0; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.82rem; color: var(--fp-muted); }
.crumbs-list li + li::before { content: "/"; margin-right: 6px; color: #aab0b8; }
.crumbs-list a:hover { color: var(--fp-primary); }
.crumbs-list li[aria-current] { color: var(--fp-heading); font-weight: 500; }
.pd { padding-top: 32px; }

.cat-pills { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pills a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  font-size: 0.82rem;
  background: #fff;
  transition: all 0.2s;
}
.cat-pills a span { color: var(--fp-muted); font-size: 0.75rem; margin-left: 2px; }
.cat-pills a:hover { border-color: var(--fp-primary); color: var(--fp-primary); }
.cat-pills a.active { background: var(--fp-primary); border-color: var(--fp-primary); color: #fff; }
.cat-pills a.active span { color: rgba(255, 255, 255, 0.8); }
.cat-intro { color: var(--fp-muted); margin-bottom: 1.5rem; }

.prod-card { display: block; }
.prod-img {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--fp-border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s, transform 0.3s;
}
.prod-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s; }
.prod-card:hover .prod-img { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); transform: translateY(-3px); }
.prod-card:hover .prod-img img { transform: scale(1.04); }
.prod-card h2, .prod-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--fp-heading); margin: 12px 0 4px; line-height: 1.35; }
.prod-card:hover h2, .prod-card:hover h3 { color: var(--fp-primary); }
.prod-link { font-size: 0.8rem; color: var(--fp-primary); font-weight: 500; }
.no-photo { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #aab0b8; }
.no-photo i { font-size: 3rem; }
.no-photo small { font-size: 0.75rem; }

.cat-card {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--fp-border); border-radius: var(--fp-radius-card); overflow: hidden; background: #fff;
  transition: box-shadow 0.3s, transform 0.3s;
}
.cat-card:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1); transform: translateY(-4px); }
.cat-card-img { aspect-ratio: 16 / 10; background: #f3f4f6; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cat-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform 0.4s; }
.cat-card:hover .cat-card-img img { transform: scale(1.05); }
.cat-card-img i { font-size: 3rem; color: var(--fp-muted); }
.cat-card-body { padding: 18px 20px 20px; }
.cat-card-body h3 { font-size: 1.05rem; font-weight: 600; color: var(--fp-heading); margin-bottom: 8px; }
.cat-card-body h3 i { color: var(--fp-primary); margin-right: 4px; }
.cat-card-body p { color: var(--fp-muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 10px; }
.cat-card:hover h3 { color: var(--fp-primary); }

.product-search {
  display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 0 auto 2.5rem;
  border: 1px solid var(--fp-border); border-radius: var(--fp-radius); padding: 6px 6px 6px 18px; background: #fff;
}
.product-search:focus-within { border-color: var(--fp-primary); box-shadow: 0 0 0 0.2rem rgba(203, 0, 0, 0.12); }
.product-search i { color: var(--fp-muted); }
.product-search input { flex: 1; border: 0; outline: none; background: transparent; font-size: 0.95rem; min-width: 0; }
.search-results { margin-bottom: 3rem; }

.pd-main {
  aspect-ratio: 1 / 1; border: 1px solid var(--fp-border); border-radius: var(--fp-radius-card); background: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pd-thumb { width: 72px; height: 72px; padding: 0; border: 2px solid var(--fp-border); border-radius: 6px; background: #fff; overflow: hidden; cursor: pointer; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb.active, .pd-thumb:hover { border-color: var(--fp-primary); }
.pd-cat { display: inline-block; font-size: 0.82rem; color: var(--fp-primary); font-weight: 500; margin-bottom: 8px; }
.pd-title { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; color: var(--fp-heading); margin-bottom: 12px; }
.pd-lead { color: var(--fp-muted); line-height: 1.75; margin-bottom: 1.2rem; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.9rem; }
.spec-table th, .spec-table td { padding: 10px 12px; border-bottom: 1px solid var(--fp-border); text-align: left; vertical-align: top; }
.spec-table th { width: 38%; font-weight: 500; color: var(--fp-muted); background: var(--fp-light); }
.pd-moq { font-size: 0.88rem; color: var(--fp-text); }
.pd-moq i { color: var(--fp-primary); margin-right: 4px; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2rem 0 0.8rem; align-items: center; }
.btn-outline-fp {
  display: inline-block; padding: 10px 24px; border: 1px solid var(--fp-primary); color: var(--fp-primary);
  border-radius: var(--fp-radius); font-size: 0.95rem; font-weight: 600; transition: all 0.2s;
}
.btn-outline-fp:hover { background: var(--fp-primary); color: #fff; }
.pd-note { font-size: 0.8rem; color: var(--fp-muted); }
.pd-about { margin-top: 3rem; max-width: 880px; }
.pd-about h2, .pd-related h2.group-title { font-size: 1.2rem; }
.pd-about p { color: var(--fp-muted); line-height: 1.75; }
/* the catalogue text: sub-headings, feature lists, tables and chart lists */
.pd-about h3 { font-size: 1rem; font-weight: 600; color: var(--fp-heading); margin: 1.6rem 0 0.6rem; }
.pd-about h4 { font-size: 0.92rem; font-weight: 600; color: var(--fp-text); margin: 1.2rem 0 0.5rem; }
.about-list { padding-left: 1.4rem; margin-bottom: 1rem; }
.about-list li { color: var(--fp-muted); line-height: 1.65; margin-bottom: 0.35rem; padding-left: 0.2rem; }
.about-list li::marker { color: var(--fp-primary); }
ol.about-list li::marker { font-size: 0.88em; font-weight: 600; }
.about-codes { list-style: none; padding: 0; margin-bottom: 1rem; }
.about-codes li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--fp-border); color: var(--fp-muted); line-height: 1.6; break-inside: avoid; }
.about-codes strong { color: var(--fp-text); font-weight: 600; }
.about-code { align-self: start; padding: 2px 6px; border-radius: var(--fp-radius); background: var(--fp-light); color: var(--fp-navy); font-size: 0.78rem; font-weight: 600; text-align: center; }
.about-table { font-size: 0.88rem; }
.about-table th { width: auto; }
.about-table thead th, .about-table thead td { background: #fff; color: var(--fp-heading); font-weight: 600; border-bottom: 2px solid var(--fp-border); }
@media (min-width: 768px) {
  /* long lists of short items read better in two columns; markers stay inside each column */
  .pd-about .cols-2 { columns: 2; column-gap: 2.5rem; padding-left: 0; }
  .pd-about .cols-2 li { break-inside: avoid; }
  .pd-about .about-list.cols-2 li { margin-left: 1.4rem; }
}
.pd-related { margin-top: 3.5rem; }

.enquiry-strip {
  margin-top: 3rem; padding: 22px 26px; border-radius: var(--fp-radius-card); background: var(--fp-light);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.enquiry-strip span { color: var(--fp-muted); font-size: 0.9rem; }

.facts-table { max-width: 760px; margin: 0 auto; background: #fff; }
.page-section.alt .spec-table th { background: #fff; }

/* Homepage slider tiles match the catalogue tiles */
.product-img { background: #fff; border: 1px solid var(--fp-border); }
.product-img img { object-fit: contain; }

/* Phones: category chips become one swipeable row instead of a tall stack */
@media (max-width: 767px) {
  .cat-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
  .cat-pills li { flex: 0 0 auto; }
  .cat-pills a { white-space: nowrap; }
}

.narrow { max-width: 640px; }
.not-found-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 600; line-height: 1; color: var(--fp-primary); margin: 3rem 0 1rem; letter-spacing: -0.03em; }

.map-link { text-decoration: none; transition: filter 0.2s; }
.map-link:hover { filter: brightness(1.1); }
.map-link i { font-size: 3rem; color: #fff; }
.map-link span { color: #fff; font-weight: 500; font-size: 0.95rem; }

/* =====================================================================
   Finishing touches: motion and polish
   Everything here is switched off for visitors who ask for reduced motion.
   ===================================================================== */

/* Smooth anchor scrolling + soft cross-fade between pages */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 0.18s ease both vt-out; }
  ::view-transition-new(root) { animation: 0.3s ease both vt-in; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* Clear keyboard focus */
a:focus-visible, button:focus-visible, select:focus-visible, textarea:focus-visible, .pd-thumb:focus-visible {
  outline: 2px solid var(--fp-primary);
  outline-offset: 3px;
}
.form-control:focus-visible, .header-search input:focus-visible, .product-search input:focus-visible { outline: none; }

/* ---------- Header: frosted glass, shrinks on scroll ---------- */
.site-header { transition: top 0.3s ease; }
.site-header .header-pill {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { top: 6px; }
.site-header.scrolled .header-pill {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  padding-top: 3px;
  padding-bottom: 3px;
}
.site-header.scrolled .brand-logo { height: 46px; }
@media (max-width: 991px) {
  .site-header .header-pill { background: rgba(255, 255, 255, 0.93); }
}
@media (max-width: 575.98px) {
  .brand-logo { height: 42px; }
  .site-header.scrolled .brand-logo { height: 38px; }
  .site-header .header-pill { padding-right: 8px; }
}

/* Translucent search pill */
.header-search {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--fp-radius);
  padding: 3px 3px 3px 14px;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.header-search input { border: 0; padding: 4px 6px; }
.header-search:focus-within {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--fp-primary);
  box-shadow: 0 0 0 3px rgba(203, 0, 0, 0.12);
}

/* Menu links: underline grows on hover (desktop) */
@media (min-width: 992px) {
  .site-header .nav-link::before {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0;
    height: 2px;
    background: var(--fp-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }
  /* one underline for both states: the current page keeps it, others grow it on hover */
  .site-header .nav-link:hover::before,
  .site-header .nav-link.active::before { transform: scaleX(1); }
}

/* Scroll progress bar + back-to-top */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--fp-primary);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 1100;
  pointer-events: none;
}
.to-top {
  position: fixed;
  right: 24px;
  bottom: 84px; /* above the WhatsApp button */
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--fp-primary);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.2s, bottom 0.3s ease;
  z-index: 1040;
  cursor: pointer;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--fp-primary-dark); transform: translateY(-3px); }
body.quote-bar-on .to-top { bottom: 142px; }

/* ---------- Hero: slow zoom, staged text entrance, marker underline ---------- */
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes marker { from { background-size: 0 0.14em; } to { background-size: 100% 0.14em; } }
.hero-swiper .swiper-slide-active .hero-img img { animation: kenburns 9s ease-out forwards; }
.hero-swiper .swiper-slide-active .hero-caption > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-swiper .swiper-slide-active .hero-caption > :nth-child(2) { animation-delay: 0.12s; }
.hero-swiper .swiper-slide-active .hero-caption > :nth-child(3) { animation-delay: 0.24s; }
.hero-swiper .swiper-slide-active .hero-caption > :nth-child(4) { animation-delay: 0.36s; }
.hl {
  background: linear-gradient(var(--fp-primary), var(--fp-primary)) 0 92% / 100% 0.14em no-repeat;
  padding-bottom: 0.02em;
}
.hero-swiper .swiper-slide-active .hl { animation: marker 0.9s 0.7s ease-out both; }

/* ---------- Buttons: soft shine and arrow nudge ---------- */
.btn-fp {
  position: relative;
  overflow: hidden;
  display: inline-block;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-fp::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-130%);
  pointer-events: none;
}
.btn-fp:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(203, 0, 0, 0.28); }
.btn-fp:hover::after { transform: translateX(130%); transition: transform 0.65s ease; }
.btn-fp i { display: inline-block; transition: transform 0.25s; }
.btn-fp:hover i { transform: translateX(3px); }
.btn-outline-fp { transition: all 0.2s, transform 0.2s; }
.btn-outline-fp:hover { transform: translateY(-1px); }

/* Category icons lift */
.category-list i { display: inline-block; transition: transform 0.25s, color 0.2s; }
.category-list a:hover i { transform: translateY(-4px) scale(1.12); }

/* ---------- Scroll reveals (classes are added by main.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease var(--d, 0ms), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }
.section-head.reveal .section-title::after {
  transform: scaleX(0);
  transition: transform 0.6s ease 0.25s;
}
.section-head.reveal.in .section-title::after { transform: scaleX(1); }
@media print { .reveal { opacity: 1; transform: none; } }

/* ---------- Images fade in instead of popping ---------- */
.prod-img img, .cat-card-img img, .product-img img, .news-img img, .pd-main img, .pd-thumb img, .photo-box img {
  transition: opacity 0.45s ease, transform 0.4s;
}
img.is-loading { opacity: 0; }
@keyframes shimmer { to { background-position: -200% 0; } }
.prod-img:has(img.is-loading), .cat-card-img:has(img.is-loading), .product-img:has(img.is-loading), .pd-main:has(img.is-loading) {
  background: linear-gradient(100deg, #f3f4f6 30%, #ffffff 50%, #f3f4f6 70%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

/* ---------- Product page: photo swap and hover zoom, sticky quote bar ---------- */
.pd-main img.is-fading { opacity: 0; }
.pd-main.zoomable { cursor: zoom-in; }
.pd-main.zoomable:hover img { transform: scale(1.9); transition: transform 0.25s ease-out; }
.sticky-quote {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1045;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.sticky-quote.show { transform: none; }
.sticky-quote span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fp-heading);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.sticky-quote .btn-fp { flex: none; white-space: nowrap; padding: 8px 18px; font-size: 0.85rem; }
body.has-quote-bar .footer-bottom { padding-bottom: 84px !important; }
@media (min-width: 768px) { .sticky-quote { display: none; } }

/* ---------- Reduced motion: everything calms down ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .pd-main.zoomable:hover img { transform: none; }
}

/* ---------- Consistency pass ---------- */
.header-search .btn-fp, .product-search .btn-fp { border-radius: 3px; }

/* Keyboard users: jump past the menu */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  background: #fff;
  color: var(--fp-heading);
  font-weight: 600;
  border-radius: var(--fp-radius);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* Phones: footer links are easier to tap */
@media (max-width: 991.98px) {
  .site-footer li { margin-bottom: 0; }
  .site-footer li a, .site-footer a[href^="tel:"], .site-footer a[href^="mailto:"] { display: inline-block; padding: 6px 0; }
}
