/* =========================================================
   AL AMAL FACTORY FOR RAW MATERIALS INDUSTRY
   Wilshire build · Visual template T04 — Angular Cut
   Palette derived from the client logo (navy #00167A).
   ========================================================= */

:root {
  /* Brand colours (from logo) */
  --primary-color: #00167A;
  --primary-light: #2A3F99;
  --secondary-color: #0A1033;
  --secondary-light: #1C2552;
  --accent-color: #1E4FE0;
  --accent-dark: #1840B8;

  /* Neutrals */
  --text-dark: #141832;
  --text-muted: #5B6178;
  --light-bg: #F6F6F8;
  --line: #E6E7EE;
  --white: #FFFFFF;
  --footer-bg: #070A1F;

  /* Template tokens — T04 Angular Cut */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container-max: 1200px;
  --section-pad: 95px;
  --section-pad-sm: 64px;
  --grid-gap: 1.5rem;
  --h1-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.5rem);
  --h2-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.4rem);
  --body-size: 0.95rem;
  --body-lh: 1.75;
  --radius: 4px;
  --btn-radius: 0;
  --clip: 14px;
  --card-clip: 22px;
  --card-clip-hover: 40px;
  --card-pad: 2.25rem 1.75rem 1.9rem;
  --shadow: 0 10px 30px rgba(10, 16, 51, 0.08);
  --shadow-hover: 0 18px 40px rgba(10, 16, 51, 0.14);
  --nav-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-color); text-decoration: none; transition: color .25s var(--ease), background-color .25s var(--ease); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; color: var(--secondary-color); line-height: 1.2; }
p { color: var(--text-muted); }
.container { max-width: var(--container-max); }

:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--accent-color); color: var(--white); padding: 10px 18px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

.section-padding { padding: var(--section-pad) 0; }
.bg-light-soft { background-color: var(--light-bg); }

/* Diagonal section transition (T04: one per page) */
.diagonal-top {
  clip-path: polygon(0 70px, 100% 0, 100% 100%, 0 100%);
  margin-top: -70px;
  padding-top: calc(var(--section-pad) + 70px);
  position: relative;
}

/* Section tag — D6: small icon + text, accent */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  color: var(--accent-color);
  font-weight: 600; font-size: 0.82rem;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-tag i { font-size: 1rem; }
.section-title { font-size: var(--h2-size); margin-bottom: 1.1rem; letter-spacing: -0.01em; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head p { margin-bottom: 0; }

/* ---------- Buttons: clipped bottom-left corner ---------- */
.btn-brand, .btn-brand-outline, .btn-brand-secondary {
  --bs-btn-padding-x: 30px; --bs-btn-padding-y: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: .02em;
  border-radius: var(--btn-radius);
  padding: 14px 30px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--clip) 100%, 0 calc(100% - var(--clip)));
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
  min-height: 48px;
}
.btn-brand .bi-arrow-up-right, .btn-brand-outline .bi-arrow-up-right, .btn-brand-secondary .bi-arrow-up-right { transition: transform .25s var(--ease); }
.btn-brand:hover .bi-arrow-up-right, .btn-brand-outline:hover .bi-arrow-up-right, .btn-brand-secondary:hover .bi-arrow-up-right { transform: translate(3px, -3px); }
.btn-brand { background: var(--accent-color); color: var(--white); border: 0; }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--primary-color); color: var(--white); }
.btn-brand-outline { background: transparent; color: var(--white); border: 0; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.btn-brand-outline:hover, .btn-brand-outline:focus-visible { background: var(--white); color: var(--primary-color); }
.btn-brand-secondary { background: var(--primary-color); color: var(--white); border: 0; }
.btn-brand-secondary:hover, .btn-brand-secondary:focus-visible { background: var(--accent-color); color: var(--white); }
.btn-lg { font-size: 1rem; padding: 15px 32px; }

/* =========================================================
   TOP BAR — white with hairline
   ========================================================= */
.top-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
  padding: 9px 0;
  color: var(--text-muted);
}
.top-bar a { color: var(--text-muted); }
.top-bar a:hover { color: var(--accent-color); }
.top-bar i { color: var(--accent-color); margin-right: 8px; }

/* =========================================================
   NAVBAR
   ========================================================= */
.main-navbar {
  background: var(--white);
  min-height: var(--nav-h);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line);
  transition: padding .3s var(--ease), box-shadow .3s var(--ease);
  z-index: 1030;
}
.main-navbar.scrolled { padding: 6px 0; box-shadow: 0 8px 24px rgba(10,16,51,.08); }
.main-navbar .navbar-brand { padding: 0; margin-right: 1.5rem; }
.main-navbar .navbar-brand img { height: 54px; width: auto; transition: height .3s var(--ease); }
.main-navbar.scrolled .navbar-brand img { height: 46px; }

.main-navbar .nav-link {
  font-family: var(--font-display);
  color: var(--secondary-color);
  font-weight: 500; font-size: 1rem;
  margin: 0 14px;
  padding: 8px 0 !important;
  position: relative;
}
.main-navbar .nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 2px;
  width: 100%; height: 3px; background: var(--accent-color);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}
.main-navbar .nav-link:hover, .main-navbar .nav-link.active { color: var(--accent-color); }
.main-navbar .nav-link:hover::after, .main-navbar .nav-link.active::after { transform: scaleX(1); }

/* Navbar CTA — G3: slanted parallelogram with circular icon chip */
.main-navbar .btn-brand.nav-cta {
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  padding: 8px 28px 8px 18px;
  font-size: 0.86rem; white-space: nowrap; min-height: 46px; gap: 10px;
}
.nav-cta .chip {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--white); color: var(--accent-color);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}
.main-navbar .btn-brand.nav-cta:hover .chip { color: var(--primary-color); }

.navbar-toggler {
  border: 0; padding: 10px; width: 48px; height: 48px;
  background: var(--light-bg); border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(30,79,224,.35); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2300167A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Products dropdown */
.main-navbar .dropdown-menu {
  border: 0; border-radius: 0;
  border-top: 3px solid var(--accent-color);
  box-shadow: 0 18px 40px rgba(10,16,51,.16);
  padding: 10px; margin-top: 0; min-width: 260px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.main-navbar .dropdown-item {
  font-family: var(--font-display);
  color: var(--secondary-color); font-weight: 500;
  padding: 11px 16px; border-radius: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.main-navbar .dropdown-item::after { content: '\F138'; font-family: 'bootstrap-icons'; font-size: .8rem; opacity: 0; transform: translateX(-4px); transition: all .25s var(--ease); }
.main-navbar .dropdown-item:hover, .main-navbar .dropdown-item:focus, .main-navbar .dropdown-item.active {
  background: var(--light-bg); color: var(--accent-color);
}
.main-navbar .dropdown-item:hover::after, .main-navbar .dropdown-item.active::after { opacity: 1; transform: none; }
.mobile-nav-contact { display: none; }

@media (min-width: 992px) {
  .main-navbar .dropdown-menu { display: none; animation: dropIn .22s var(--ease) both; }
  .main-navbar .dropdown-menu.show { display: block; }
  #productsDropdown { padding-right: 18px !important; }
  #productsDropdown::before {
    content: '\F282'; font-family: 'bootstrap-icons'; font-size: .7rem;
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  }
}
@keyframes dropIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* =========================================================
   HERO SLIDER — C1 left block, A1 vertical dots, B4 accent squares
   ========================================================= */
.hero-slider { position: relative; background: var(--secondary-color); }
.hero-slide {
  height: 70vh; min-height: 540px; max-height: 820px;
  background-size: cover; background-position: center;
  position: relative; display: flex; align-items: center;
}
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,10,31,.82) 0%, rgba(7,10,31,.62) 45%, rgba(7,10,31,.30) 100%);
}
.hero-slide::after { /* clipped accent wedge, bottom-left */
  content: ''; position: absolute; left: 0; bottom: 0; width: 180px; height: 10px;
  background: var(--accent-color);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
}
.hero-slide .container { position: relative; z-index: 2; }
.hero-content { max-width: 640px; }
.hero-slide .hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--white);
  margin-bottom: 18px;
}
.hero-slide .hero-tag i {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-color); font-size: 1rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}
.hero-slide h1, .hero-slide .h1 {
  color: var(--white); font-size: var(--h1-size); font-weight: 700;
  line-height: 1.12; letter-spacing: -0.015em; margin-bottom: 18px;
}
.hero-slide p { color: rgba(255,255,255,.86); font-size: clamp(1rem, .95rem + .3vw, 1.12rem); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Indicators — right-edge vertical stack, active ringed */
.hero-slider .carousel-indicators {
  left: auto; right: 34px; top: 50%; bottom: auto; transform: translateY(-50%);
  flex-direction: column; margin: 0; gap: 14px; z-index: 3;
}
.hero-slider .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%; margin: 0;
  background: rgba(255,255,255,.55); border: 0; opacity: 1; position: relative;
  transition: background .3s var(--ease);
}
.hero-slider .carousel-indicators [data-bs-target]::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--white); transform: scale(.4); opacity: 0; transition: all .3s var(--ease);
}
.hero-slider .carousel-indicators .active { background: var(--white); }
.hero-slider .carousel-indicators .active::after { transform: scale(1); opacity: 1; }

/* Arrows — solid accent squares stacked at the right edge */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 52px; height: 52px; top: auto; left: auto; right: 0; opacity: 1;
  background: var(--accent-color); z-index: 3; transition: background .25s var(--ease);
}
.hero-slider .carousel-control-next { bottom: 0; }
.hero-slider .carousel-control-prev { bottom: 52px; background: var(--primary-color); }
.hero-slider .carousel-control-prev:hover, .hero-slider .carousel-control-next:hover { background: var(--secondary-color); }
.hero-slider .carousel-control-prev-icon, .hero-slider .carousel-control-next-icon { width: 1.1rem; height: 1.1rem; }

/* Subtle entrance for active slide content */
.carousel-item.active .hero-content > * { animation: heroUp .8s var(--ease) both; }
.carousel-item.active .hero-content > *:nth-child(2) { animation-delay: .08s; }
.carousel-item.active .hero-content > *:nth-child(3) { animation-delay: .16s; }
.carousel-item.active .hero-content > *:nth-child(4) { animation-delay: .24s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* =========================================================
   PAGE HERO — 300px, 55% overlay, left, clipped wedge
   ========================================================= */
.page-hero {
  min-height: 300px; padding: 70px 0;
  background-size: cover; background-position: center;
  position: relative; display: flex; align-items: center;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,10,31,.78) 0%, rgba(7,10,31,.55) 100%); }
.page-hero::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 34%; max-width: 420px; height: 64px;
  background: var(--accent-color);
  clip-path: polygon(64px 0, 100% 0, 100% 100%, 0 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 10px; }
.page-hero .breadcrumb-custom { color: rgba(255,255,255,.75); font-size: .92rem; font-weight: 500; }
.page-hero .breadcrumb-custom a { color: var(--white); }
.page-hero .breadcrumb-custom a:hover { color: #9fb6ff; }

/* =========================================================
   ABOUT — clipped-corner image (F5 style, 6:5)
   ========================================================= */
.about-img-wrap { position: relative; padding: 0 0 26px 26px; }
.about-img-wrap::before { /* accent block behind clipped corner */
  content: ''; position: absolute; left: 0; bottom: 0; width: 46%; height: 52%;
  background: var(--accent-color);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}
.about-img-wrap img {
  position: relative; width: 100%; aspect-ratio: 6 / 5; object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 56px, 100% 100%, 0 100%);
}
.about-img-wrap .badge-float {
  position: absolute; right: -14px; bottom: 54px;
  background: var(--secondary-color); color: var(--white);
  padding: 18px 26px; text-align: left; font-family: var(--font-display); font-size: .9rem; line-height: 1.3;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  box-shadow: var(--shadow);
}
.about-img-wrap .badge-float .num { display: block; font-size: 2rem; font-weight: 700; color: #8EA8FF; line-height: 1.1; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--text-dark); font-weight: 500; }
.check-list li::before {
  content: '\F26E'; font-family: 'bootstrap-icons';
  position: absolute; left: 0; top: 1px; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-color); color: var(--white); font-size: .85rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

/* =========================================================
   WHY CHOOSE US — J1 white card + E5 badge overlapping top-left
   ========================================================= */
.feature-grid { row-gap: 3.25rem !important; padding-top: 22px; }
.feature-card {
  position: relative; height: 100%;
  background: var(--white); border-radius: var(--radius);
  padding: var(--card-pad); padding-top: 3rem;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature-card::after { /* clipped corner notch */
  content: ''; position: absolute; right: 0; bottom: 0; width: 0; height: 0;
  border-style: solid; border-width: 0 0 22px 22px;
  border-color: transparent transparent var(--light-bg) transparent;
  transition: border-width .3s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-card:hover::after { border-width: 0 0 34px 34px; border-bottom-color: var(--accent-color); }
.feature-card .icon-wrap {
  position: absolute; top: -26px; left: 24px;
  width: 58px; height: 62px;
  background: var(--accent-color); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
  padding-bottom: 8px;
}
.feature-card:nth-child(n) .icon-wrap { background: var(--accent-color); }
.feature-card h5 { color: var(--accent-color); font-size: 1.16rem; margin-bottom: 10px; }
.feature-card p { font-size: .93rem; margin-bottom: 0; }

/* =========================================================
   CTA — H7: greyscale image + full-colour accent button
   ========================================================= */
.cta-section {
  position: relative; overflow: hidden; color: var(--white);
  background-color: var(--secondary-color);
  background-size: 0; /* image painted by ::before so it can be greyscale */
  isolation: isolate;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image: inherit; background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.05);
}
.cta-section::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7,10,31,.86) 0%, rgba(7,10,31,.66) 100%);
}
.cta-section .container { position: relative; }
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-section h2 { color: var(--white); font-size: var(--h2-size); margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,.8); font-size: 1.05rem; }
.cta-section .cta-wedge {
  position: absolute; left: 0; top: 0; width: 120px; height: 120px; background: var(--accent-color);
  clip-path: polygon(0 0, 100% 0, 0 100%); z-index: 0;
}

/* =========================================================
   PRODUCT / CATEGORY / ITEM CARDS — 6:5, clipped corner
   ========================================================= */
.category-card-link { display: block; color: inherit; height: 100%; }
.category-card-link:hover { color: inherit; }
.product-card, .item-card {
  position: relative; height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--card-clip)), calc(100% - var(--card-clip)) 100%, 0 100%);
  transition: clip-path .35s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.product-card:hover, .item-card:hover, .category-card-link:focus-visible .product-card {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--card-clip-hover)), calc(100% - var(--card-clip-hover)) 100%, 0 100%);
  border-color: var(--accent-color);
}
.product-img, .item-img { position: relative; aspect-ratio: 6 / 5; overflow: hidden; background: var(--light-bg); }
.product-img img, .item-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body, .item-body {
  padding: 18px 22px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: relative;
}
.product-body::before, .item-body::before {
  content: ''; position: absolute; left: 22px; top: 0; width: 36px; height: 3px; background: var(--accent-color);
  transition: width .35s var(--ease);
}
.product-card:hover .product-body::before, .item-card:hover .item-body::before { width: 72px; }
.product-body h5, .item-body h5 { font-size: 1.08rem; margin: 0; color: var(--secondary-color); transition: color .25s var(--ease); }
.category-card-link:hover h5 { color: var(--accent-color); }
.product-body .go {
  flex-shrink: 0; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--light-bg); color: var(--accent-color);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  transition: background .25s var(--ease), color .25s var(--ease);
}
.category-card-link:hover .go { background: var(--accent-color); color: var(--white); }

/* Category switcher (category pages) */
.cat-switch { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2.5rem; }
.cat-switch a {
  font-family: var(--font-display); font-weight: 500; font-size: .92rem;
  padding: 10px 20px; color: var(--secondary-color); background: var(--light-bg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.cat-switch a:hover { color: var(--accent-color); }
.cat-switch a.active { background: var(--accent-color); color: var(--white); }

/* =========================================================
   MISSION / VISION / VALUES
   ========================================================= */
.mv-card {
  position: relative; height: 100%; background: var(--white);
  padding: 2.5rem 2.25rem; box-shadow: var(--shadow); border-left: 4px solid var(--accent-color);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}
.mv-card i {
  width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-color); color: var(--white); font-size: 1.5rem; margin-bottom: 18px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.mv-card h4 { font-size: 1.4rem; margin-bottom: 12px; }
.mv-card p { margin: 0; }
.mv-card.dark { background: var(--secondary-color); border-left-color: #8EA8FF; }
.mv-card.dark h4 { color: var(--white); }
.mv-card.dark p { color: rgba(255,255,255,.78); }
.mv-card.dark i { background: var(--white); color: var(--accent-color); }

.values-grid { row-gap: 2.75rem !important; padding-top: 20px; }
.value-pill {
  position: relative; height: 100%; background: var(--white);
  padding: 2.4rem 1.4rem 1.6rem; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.value-pill:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.value-pill i {
  position: absolute; top: -22px; left: 20px; width: 48px; height: 52px;
  display: flex; align-items: center; justify-content: center; padding-bottom: 6px;
  background: var(--accent-color); color: var(--white); font-size: 1.25rem;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
}
.value-pill h6 { font-size: 1.08rem; color: var(--accent-color); margin-bottom: 8px; }
.value-pill p { font-size: .9rem; margin: 0; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-info-card {
  height: 100%; background: var(--secondary-color); color: var(--white);
  padding: 2.75rem 2.25rem; position: relative; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 30px 100%, 0 calc(100% - 30px));
}
.contact-info-card::after {
  content: ''; position: absolute; right: 0; top: 0; width: 90px; height: 90px; background: var(--accent-color);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.contact-info-card h4 { color: var(--white); margin-bottom: 8px; }
.contact-info-card > p { color: rgba(255,255,255,.72); margin-bottom: 28px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); }
.contact-info-item .ci-icon {
  width: 46px; height: 46px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--accent-color); color: var(--white); font-size: 1.1rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.contact-info-item .ci-text small { display: block; color: #8EA8FF; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 600; margin-bottom: 4px; }
.contact-info-item .ci-text a, .contact-info-item .ci-text span { color: var(--white); font-weight: 500; word-break: break-word; }
.contact-info-item .ci-text a:hover { color: #8EA8FF; }

.contact-form-wrap { background: var(--white); padding: 2.75rem; box-shadow: var(--shadow); border-top: 4px solid var(--accent-color); height: 100%; }
.contact-form-wrap .form-label { font-family: var(--font-display); font-weight: 500; color: var(--secondary-color); margin-bottom: 6px; }
.contact-form-wrap .req { color: var(--accent-color); font-weight: 600; }
.contact-form-wrap .form-control {
  border: 1px solid #D9DCE6; border-radius: 0; padding: 13px 16px; font-size: 1rem; min-height: 50px;
  background: #FBFBFD; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.contact-form-wrap .form-control:focus { border-color: var(--accent-color); background: var(--white); box-shadow: 0 0 0 4px rgba(30,79,224,.12); }
.contact-form-wrap textarea.form-control { min-height: 150px; resize: vertical; }
.contact-form-wrap .btn-brand[disabled] { opacity: .75; }
.form-note { font-size: .82rem; color: var(--text-muted); margin: 0; }

/* =========================================================
   FOOTER — near-black, 4-column, chevron links, accent bar
   ========================================================= */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.66); position: relative; }
.site-footer::before {
  content: ''; position: absolute; left: 0; top: 0; width: 220px; height: 6px; background: var(--accent-color);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.site-footer .footer-top { padding: 80px 0 50px; }
.site-footer .footer-logo { display: inline-block; margin-bottom: 20px; }
.site-footer .footer-logo img { height: 58px; width: auto; }
.site-footer p { color: rgba(255,255,255,.62); font-size: .92rem; max-width: 380px; }
.site-footer h5 { color: var(--white); font-size: 1.05rem; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.site-footer h5::before { content: ''; width: 14px; height: 14px; background: var(--accent-color); clip-path: polygon(0 0, 100% 0, 100% 100%, 5px 100%, 0 calc(100% - 5px)); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 12px; font-size: .93rem; }
.site-footer .footer-links a { color: rgba(255,255,255,.7); display: inline-flex; align-items: center; gap: 8px; }
.site-footer .footer-links a::before { content: '\F285'; font-family: 'bootstrap-icons'; font-size: .7rem; color: #8EA8FF; transition: transform .25s var(--ease); }
.site-footer .footer-links a:hover { color: var(--white); }
.site-footer .footer-links a:hover::before { transform: translateX(3px); }
.site-footer .footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.site-footer .footer-contact i { color: #8EA8FF; margin-top: 2px; }
.site-footer .footer-contact a { color: rgba(255,255,255,.7); word-break: break-word; }
.site-footer .footer-contact a:hover { color: var(--white); }
.footer-bottom { background: var(--accent-color); color: var(--white); padding: 16px 0; font-size: .86rem; }
.footer-bottom a { color: var(--white); font-weight: 600; }

/* =========================================================
   BACK TO TOP + REVEAL
   ========================================================= */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 999;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-color); color: var(--white); font-size: 1.15rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background .25s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--primary-color); color: var(--white); }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1199.98px) {
  .main-navbar .nav-link { margin: 0 10px; }
  .main-navbar .navbar-brand img { height: 48px; }
}

@media (max-width: 991.98px) {
  :root { --section-pad: 76px; --nav-h: 72px; }
  .top-bar { display: none; }

  .main-navbar { padding: 10px 0; }
  .main-navbar .navbar-brand img, .main-navbar.scrolled .navbar-brand img { height: 44px; }
  .main-navbar .navbar-collapse { flex-basis: 100%; width: 100%; }
  .main-navbar .navbar-collapse.show,
  .main-navbar .navbar-collapse.collapsing {
    margin-top: 12px; padding: 6px 0 18px; border-top: 1px solid var(--line);
    max-height: calc(100vh - 90px); overflow-y: auto;
  }
  .main-navbar .navbar-nav { flex-direction: column; align-items: stretch !important; }
  .main-navbar .navbar-nav .nav-item { width: 100%; border-bottom: 1px solid var(--line); }
  .main-navbar .navbar-nav .nav-item:last-child { border-bottom: 0; }
  .main-navbar .navbar-nav .nav-link { margin: 0; padding: 14px 4px !important; font-size: 1.05rem; }
  .main-navbar .nav-link::after { display: none; }
  .main-navbar .nav-link.active { color: var(--accent-color); }
  .nav-products-row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .mobile-cat-toggle {
    background: var(--light-bg); border: 0; width: 44px; height: 44px;
    color: var(--primary-color); font-size: .95rem; cursor: pointer; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform .25s var(--ease), background .25s;
  }
  .mobile-cat-toggle.open { transform: rotate(180deg); background: var(--accent-color); color: var(--white); }
  .main-navbar .navbar-nav .dropdown-menu {
    position: static !important; box-shadow: none !important; border: 0 !important; clip-path: none;
    background: var(--light-bg) !important; padding: 6px 0 !important; margin: 0 0 12px !important;
    animation: none !important; display: none; transform: none !important;
  }
  .main-navbar .navbar-nav .dropdown-menu.show { display: block; }
  .main-navbar .dropdown-item { padding: 12px 18px; }
  .main-navbar .dropdown-item::after { opacity: .5; transform: none; }
  .main-navbar .nav-item.nav-cta-item { border-bottom: 0; padding-top: 14px; }
  .main-navbar .btn-brand.nav-cta { width: 100%; justify-content: center; min-height: 52px; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
  .mobile-nav-contact { display: block; padding: 16px 4px 0; font-size: .9rem; color: var(--text-muted); }
  .mobile-nav-contact div { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
  .mobile-nav-contact i { color: var(--accent-color); }
  .mobile-nav-contact a { color: var(--text-muted); }

  .hero-slide { height: 600px; min-height: 0; padding: 60px 0 80px; }
  .hero-slider .carousel-indicators { right: 18px; }
  .about-img-wrap { margin-bottom: 1rem; }
  .about-img-wrap .badge-float { right: 0; }
  .diagonal-top { clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%); margin-top: -40px; padding-top: calc(var(--section-pad) + 40px); }
  .contact-form-wrap { padding: 2.25rem; }
}

@media (max-width: 767.98px) {
  :root { --section-pad: var(--section-pad-sm); }
  body { font-size: .95rem; }
  .section-head { margin-bottom: 2.25rem; }
  .page-hero { min-height: 230px; padding: 56px 0 72px; }
  .page-hero::after { width: 46%; height: 34px; clip-path: polygon(34px 0, 100% 0, 100% 100%, 0 100%); }
  .cta-section .cta-wedge { width: 70px; height: 70px; }
  .site-footer .footer-top { padding: 60px 0 30px; }
  .footer-bottom { font-size: .8rem; }
}

@media (max-width: 575.98px) {
  .hero-slide { height: clamp(540px, 82svh, 660px); padding: 60px 0 96px; align-items: flex-end; }
  .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2.5rem; }
  .hero-slide::before { background: linear-gradient(180deg, rgba(7,10,31,.45) 0%, rgba(7,10,31,.88) 70%); }
  .hero-slide .hero-tag { font-size: .72rem; letter-spacing: .1em; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  /* Swipe replaces arrows on phones; dots move to a horizontal row */
  .hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { display: none; }
  .hero-slider .carousel-indicators { flex-direction: row; top: auto; bottom: 34px; right: auto; left: 0; transform: none; margin: 0; padding-left: 24px; gap: 18px; }
  .about-img-wrap { padding: 0 0 18px 18px; }
  .about-img-wrap .badge-float { bottom: 36px; padding: 14px 18px; }
  .about-img-wrap .badge-float .num { font-size: 1.6rem; }
  .feature-card { padding: 2.75rem 1.4rem 1.6rem; }
  .contact-info-card { padding: 2.25rem 1.5rem; }
  .contact-form-wrap { padding: 1.75rem 1.25rem; }
  .cta-section .btn { width: 100%; }
  .cat-switch { flex-wrap: nowrap; overflow-x: auto; margin-left: -12px; margin-right: -12px; padding: 0 12px 6px; scrollbar-width: none; }
  .cat-switch::-webkit-scrollbar { display: none; }
  .cat-switch a { white-space: nowrap; flex-shrink: 0; }
  .back-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
  /* Two-up catalogue grid on phones */
  .product-card, .item-card { --card-clip: 14px; --card-clip-hover: 24px; }
  .product-body, .item-body { padding: 14px 12px 16px; gap: 8px; }
  .product-body::before, .item-body::before { left: 12px; width: 26px; }
  .product-body h5, .item-body h5 { font-size: .9rem; line-height: 1.3; }
  .product-body .go { width: 30px; height: 30px; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
