/* ==========================================================================
   Mech-Fab Engineering Works — website styles (v2)
   Fonts, colours and shapes come from Admin › Settings › Theme & fonts as
   CSS variables (see front/layouts/app.blade.php).
   ========================================================================== */
:root {
    --mf-primary: #3b3d98;
    --mf-ink: #1b1c4b;
    --mf-accent: #f0a23a;
    --mf-steel: #eef0f5;
    --mf-font: "Manrope", system-ui, sans-serif;
    --mf-font-head: "Archivo", system-ui, sans-serif;
    --mf-head-stretch: 115%;
    --mf-head-weight: 800;
    --mf-base: 16px;
    --mf-radius: 12px;
    --mf-btn-radius: 999px;

    --mf-ink-2: color-mix(in srgb, var(--mf-ink) 88%, #fff);
    --mf-primary-600: color-mix(in srgb, var(--mf-primary) 85%, #000);
    --mf-primary-50: color-mix(in srgb, var(--mf-primary) 7%, #fff);
    --mf-primary-100: color-mix(in srgb, var(--mf-primary) 14%, #fff);
    --mf-text: #1f2235;
    --mf-plate: #5a5f73;
    --mf-line: #e2e5ee;
    --mf-white: #fff;
    --mf-accent-ink: #231500;
    --mf-header-h: 78px;
    --mf-shadow-sm: 0 1px 2px rgba(20, 22, 60, .05), 0 2px 8px rgba(20, 22, 60, .04);
    --mf-shadow: 0 10px 30px -12px rgba(20, 22, 60, .18);
    --mf-shadow-lg: 0 24px 60px -20px rgba(20, 22, 60, .32);
    --mf-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
html { font-size: var(--mf-base); scroll-behavior: smooth; scroll-padding-top: calc(var(--mf-header-h) + 16px); }
body { font-family: var(--mf-font); font-size: 1rem; line-height: 1.7; color: var(--mf-text); background: var(--mf-white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: var(--mf-primary); text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--mf-primary-600); }
:focus-visible { outline: 3px solid var(--mf-accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--mf-primary); color: #fff; }

h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display-head {
    font-family: var(--mf-font-head); font-stretch: var(--mf-head-stretch); font-weight: var(--mf-head-weight);
    line-height: 1.1; letter-spacing: -.02em; color: var(--mf-ink); text-wrap: balance;
}
h1, .h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
h2, .h2 { font-size: clamp(1.8rem, 3.3vw, 2.8rem); }
h3, .h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.25; letter-spacing: -.01em; }
h4, .h4 { font-size: 1.1rem; }
p { max-width: 70ch; text-wrap: pretty; }
.lead-text { font-size: 1.15rem; color: var(--mf-plate); line-height: 1.65; }
.container { --bs-gutter-x: 2rem; }
@media (min-width: 1400px) { .container { max-width: 1280px; } }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--mf-accent); color: var(--mf-accent-ink); padding: .5rem 1rem; z-index: 3000; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn-mf, .btn-mf-outline, .btn-mf-light {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-weight: 700; font-size: .98rem; line-height: 1.1; letter-spacing: -.005em;
    padding: .9rem 1.55rem; border-radius: var(--mf-btn-radius); border: 1.5px solid transparent;
    text-decoration: none; white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--mf-ease);
}
.btn-mf i, .btn-mf-outline i, .btn-mf-light i { transition: transform .2s var(--mf-ease); }
.btn-mf:hover i, .btn-mf-outline:hover i, .btn-mf-light:hover i { transform: translateX(3px); }
.btn-mf { background: var(--mf-accent); color: var(--mf-accent-ink); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--mf-accent) 70%, transparent); }
.btn-mf:hover { color: var(--mf-accent-ink); background: color-mix(in srgb, var(--mf-accent) 88%, #000); transform: translateY(-1px); box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--mf-accent) 80%, transparent); }
.btn-mf-outline { border-color: color-mix(in srgb, var(--mf-primary) 40%, transparent); color: var(--mf-primary); background: #fff; }
.btn-mf-outline:hover { background: var(--mf-primary); border-color: var(--mf-primary); color: #fff; }
.btn-mf-light { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
.btn-mf-light:hover { background: #fff; color: var(--mf-ink); border-color: #fff; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow i { transition: transform .2s var(--mf-ease); }
.link-arrow:hover i, a:hover .link-arrow i { transform: translateX(4px); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--mf-ink); color: rgba(255, 255, 255, .72); font-size: .84rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--mf-accent); }
.topbar .tb-item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar .tb-item i { color: var(--mf-accent); }
.topbar .cert { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.topbar .cert::before { content: "\F4B6"; font-family: "bootstrap-icons"; color: var(--mf-accent); }

.site-header { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(226, 229, 238, .8); z-index: 1020; transition: box-shadow .25s, background-color .25s; }
.site-header.is-sticky { position: sticky; top: 0; }
.site-header.scrolled { box-shadow: 0 8px 30px -12px rgba(20, 22, 60, .18); background: rgba(255, 255, 255, .95); }
.site-header .navbar { min-height: var(--mf-header-h); padding: 0; }
.brand-logo { height: 48px; width: auto; }
@media (max-width: 575.98px) { .brand-logo { height: 38px; } :root { --mf-header-h: 66px; } }

.main-nav { gap: .15rem; }
.main-nav .nav-link { color: var(--mf-ink); font-weight: 600; font-size: .95rem; padding: .55rem .85rem !important; border-radius: 999px; white-space: nowrap; transition: background-color .15s, color .15s; }
.main-nav .nav-link:hover { background: var(--mf-primary-50); color: var(--mf-primary); }
.main-nav .nav-link.active { background: var(--mf-primary-100); color: var(--mf-primary); }
/* Split parent items: link + submenu button share one pill */
.main-nav .nav-split { display: flex; align-items: center; flex-wrap: wrap; border-radius: 999px; transition: background-color .15s; }
.main-nav .nav-split > .nav-link { padding-right: .2rem !important; }
.main-nav .nav-split > .nav-link:hover, .main-nav .nav-split > .nav-link.active { background: transparent; }
.main-nav .nav-split:hover, .main-nav .nav-split.is-active { background: var(--mf-primary-50); }
.main-nav .nav-split.is-active { background: var(--mf-primary-100); }
.main-nav .nav-split:hover > .nav-link { color: var(--mf-primary); }
.nav-caret {
    display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: .35rem;
    border: 0; border-radius: 50%; background: transparent; color: var(--mf-ink); font-size: .72rem; padding: 0;
    transition: background-color .15s, color .15s;
}
.nav-caret i { transition: transform .2s; }
.nav-caret:hover, .nav-caret:focus-visible { background: rgba(255, 255, 255, .8); color: var(--mf-primary); }
.nav-caret[aria-expanded="true"] i { transform: rotate(180deg); }
.main-nav .nav-split:hover .nav-caret, .main-nav .nav-split.is-active .nav-caret { color: var(--mf-primary); }
.main-nav .dropdown-menu { border: 1px solid var(--mf-line); border-radius: calc(var(--mf-radius) + 2px); padding: .5rem; margin-top: .4rem; min-width: 270px; box-shadow: var(--mf-shadow-lg); animation: dropIn .18s var(--mf-ease); }
.main-nav .dropdown-item { padding: .55rem .8rem; font-weight: 500; font-size: .93rem; border-radius: calc(var(--mf-radius) - 2px); color: var(--mf-text); }
.main-nav .dropdown-item:hover, .main-nav .dropdown-item.active { background: var(--mf-primary-50); color: var(--mf-primary); }
@keyframes dropIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (min-width: 1200px) {
    .main-nav .dropdown:hover > .dropdown-menu { display: block; }
    .main-nav .dropdown > .dropdown-menu { top: 100%; }
    .main-nav .dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .5rem; }
}
@media (max-width: 1199.98px) {
    .site-header .navbar-collapse { max-height: calc(100vh - var(--mf-header-h)); overflow-y: auto; }
    .main-nav { padding: .75rem 0 1rem; border-top: 1px solid var(--mf-line); }
    .main-nav .nav-link { padding: .8rem 1rem !important; border-radius: var(--mf-radius); }
    .main-nav .nav-split { border-radius: var(--mf-radius); }
    .main-nav .nav-split > .nav-link { flex: 1; }
    .main-nav .nav-split .nav-caret { width: 40px; height: 40px; border-radius: var(--mf-radius); background: var(--mf-steel); font-size: .85rem; }
    .main-nav .nav-split > .dropdown-menu { flex-basis: 100%; }
    .main-nav .dropdown-menu { border: 0; box-shadow: none; padding: 0 0 .5rem 1rem; margin: 0; animation: none; background: transparent; }
    .site-header .btn-mf { width: 100%; }
}
.navbar-toggler { border: 1px solid var(--mf-line); padding: .45rem .6rem; border-radius: 12px; color: var(--mf-ink); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--mf-primary-100); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }
.section.bg-steel { background: linear-gradient(180deg, var(--mf-steel), color-mix(in srgb, var(--mf-steel) 60%, #fff)); }
.section.bg-ink { background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--mf-primary) 35%, transparent), transparent 60%), var(--mf-ink); color: rgba(255, 255, 255, .78); }
.section.bg-ink h2, .section.bg-ink h3, .section.bg-ink h4 { color: #fff; }
.section.bg-ink .lead-text { color: rgba(255, 255, 255, .7); }
.section.bg-white + .section.bg-white, .section.bg-steel + .section.bg-steel { padding-top: 0; }

.sec-head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 760px; }
.sec-head.with-action { max-width: none; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-end; justify-content: space-between; }
.sec-head.with-action > div { max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .9rem; color: var(--mf-primary); font-weight: 700; font-size: .85rem; letter-spacing: .01em; background: var(--mf-primary-50); border: 1px solid var(--mf-primary-100); padding: .3rem .8rem; border-radius: 999px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mf-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mf-accent) 25%, transparent); }
.bg-ink .eyebrow { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
.sec-head h2 { margin-bottom: .9rem; }
.sec-head p { margin-bottom: 0; }

/* ---------- Nameplate (signature element) ---------- */
.plate {
    --rivet: radial-gradient(circle at 35% 35%, #fdfdff 0 18%, #a7abbd 45%, #6d7186 75%, transparent 78%);
    position: relative; color: var(--mf-ink); border-radius: var(--mf-radius); padding: 1.75rem 1.75rem 1.4rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, .65), rgba(255, 255, 255, 0) 45%), repeating-linear-gradient(90deg, #eceef4 0 2px, #e6e8ef 2px 3px, #eff1f6 3px 5px);
    border: 1px solid #c4c8d6; box-shadow: inset 0 1px 0 #fff, 0 12px 30px -16px rgba(20, 22, 60, .3);
}
.plate::before, .plate::after, .plate > .rivets::before, .plate > .rivets::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--rivet); }
.plate::before { top: 9px; left: 9px; }
.plate::after { top: 9px; right: 9px; }
.plate > .rivets::before { bottom: 9px; left: 9px; }
.plate > .rivets::after { bottom: 9px; right: 9px; }
.plate-title { display: flex; align-items: center; gap: .6rem; background: var(--mf-ink); color: #fff; margin: -.4rem -.4rem 1rem; padding: .65rem .95rem; border-radius: calc(var(--mf-radius) - 4px); font-family: var(--mf-font-head); font-stretch: var(--mf-head-stretch); font-weight: 700; font-size: .98rem; }
.plate-title img { height: 22px; width: 22px; }
.plate-rows { margin: 0; display: grid; grid-template-columns: minmax(110px, 40%) 1fr; }
.plate-rows dt, .plate-rows dd { padding: .62rem 0; border-bottom: 1px dashed #b9bdcc; margin: 0; font-size: .94rem; }
.plate-rows dt { color: var(--mf-plate); font-weight: 500; padding-right: 1rem; }
.plate-rows dd { font-weight: 700; color: var(--mf-ink); }
.plate-rows dt:nth-last-child(2), .plate-rows dd:last-child { border-bottom: 0; }
.plate-foot { margin-top: .9rem; font-size: .8rem; color: var(--mf-plate); display: flex; justify-content: space-between; gap: 1rem; }
.plate.plate-dark { background: linear-gradient(160deg, var(--mf-ink-2), var(--mf-ink)); border-color: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.plate.plate-dark .plate-title { background: rgba(255, 255, 255, .08); }
.plate.plate-dark .plate-rows dt { color: rgba(255, 255, 255, .6); }
.plate.plate-dark .plate-rows dd { color: #fff; }
.plate.plate-dark .plate-rows dt, .plate.plate-dark .plate-rows dd { border-bottom-color: rgba(255, 255, 255, .14); }
@media (max-width: 575.98px) {
    .plate { padding: 1.4rem 1.1rem 1rem; }
    .plate-rows { grid-template-columns: 1fr; }
    .plate-rows dt { padding-bottom: 0; border-bottom: 0; font-size: .82rem; }
    .plate-rows dd { padding-top: .1rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--mf-ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero .swiper-slide { position: relative; min-height: clamp(600px, 88vh, 820px); display: flex; align-items: center; overflow: hidden; }
.hero .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.hero .hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(100deg, color-mix(in srgb, var(--mf-ink) 96%, transparent) 0%, color-mix(in srgb, var(--mf-ink) 82%, transparent) 40%, color-mix(in srgb, var(--mf-ink) 30%, transparent) 78%, color-mix(in srgb, var(--mf-ink) 20%, transparent) 100%),
        linear-gradient(0deg, color-mix(in srgb, var(--mf-ink) 70%, transparent), transparent 35%);
}
.hero .hero-content { position: relative; z-index: 2; padding: 6rem calc(var(--bs-gutter-x) * .5) 8rem; width: 100%; }
.hero .hero-kicker { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.25rem; font-weight: 600; font-size: .92rem; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); padding: .4rem .95rem; border-radius: 999px; backdrop-filter: blur(8px); }
.hero .hero-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mf-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mf-accent) 30%, transparent); }
.hero h1, .hero .h1 { color: #fff; font-weight: 900; max-width: 15ch; margin-bottom: 1.25rem; letter-spacing: -.03em; }
.hero p { color: rgba(255, 255, 255, .8); font-size: 1.18rem; max-width: 52ch; margin-bottom: 2rem; }
.hero-chips { list-style: none; padding: 0; margin: 2.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.hero-chips li { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.hero-chips i { color: var(--mf-accent); }
.hero .hero-plate { position: absolute; right: max(1rem, calc((100vw - 1280px) / 2 + 1rem)); bottom: 5rem; z-index: 5; width: 370px; }
.hero .hero-plate .plate { box-shadow: var(--mf-shadow-lg); }
.hero .swiper-pagination { position: absolute; left: max(1rem, calc((100vw - 1280px) / 2 + 1rem)) !important; bottom: 2.4rem !important; width: auto !important; z-index: 6; display: flex; gap: .4rem; }
.hero .swiper-pagination-bullet { width: 28px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); opacity: 1; margin: 0 !important; transition: width .3s, background-color .3s; }
.hero .swiper-pagination-bullet-active { background: var(--mf-accent); width: 46px; }
.hero .hero-nav { position: absolute; z-index: 6; bottom: 1.7rem; left: max(13rem, calc((100vw - 1280px) / 2 + 13rem)); display: flex; gap: .5rem; }
.hero .hero-nav button { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff; border-radius: 50%; backdrop-filter: blur(6px); transition: background-color .2s, color .2s; }
.hero .hero-nav button:hover { background: #fff; color: var(--mf-ink); }
.hero-scroll { position: absolute; left: 50%; bottom: 1.6rem; z-index: 6; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 14px; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; }
@media (max-width: 1199.98px) { .hero .hero-plate { display: none; } }
@media (max-width: 767.98px) { .hero-scroll { display: none; } }
@media (max-width: 575.98px) { .hero .hero-content { padding-top: 4rem; padding-bottom: 6.5rem; } .hero p { font-size: 1.05rem; } .hero .hero-nav { display: none; } }

@media (prefers-reduced-motion: no-preference) {
    .hero .swiper-slide-active .hero-bg { animation: kenBurns 9s ease-out both; }
    .hero .swiper-slide-active .hero-kicker, .hero .swiper-slide-active h1, .hero .swiper-slide-active .h1, .hero .swiper-slide-active p, .hero .swiper-slide-active .hero-actions, .hero .swiper-slide-active .hero-chips { animation: heroIn .85s var(--mf-ease) both; }
    .hero .swiper-slide-active h1, .hero .swiper-slide-active .h1 { animation-delay: .08s; }
    .hero .swiper-slide-active p { animation-delay: .16s; }
    .hero .swiper-slide-active .hero-actions { animation-delay: .24s; }
    .hero .swiper-slide-active .hero-chips { animation-delay: .32s; }
    .hero .hero-plate { animation: plateIn 1s .4s var(--mf-ease) both; }
    .hero-scroll span { animation: scrollCue 1.8s ease-in-out infinite; }
}
@keyframes kenBurns { from { transform: scale(1.12); } to { transform: scale(1.02); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes plateIn { from { opacity: 0; transform: translateY(26px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes scrollCue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Page banner ---------- */
.page-banner { position: relative; background: var(--mf-ink) center/cover no-repeat; color: #fff; padding: clamp(4rem, 9vw, 6.75rem) 0 clamp(3.25rem, 6vw, 4.75rem); overflow: hidden; isolation: isolate; }
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, color-mix(in srgb, var(--mf-ink) 96%, transparent), color-mix(in srgb, var(--mf-ink) 70%, transparent)); }
.page-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg, transparent 30%, #000); }
.page-banner > .container { position: relative; }
.page-banner h1 { color: #fff; max-width: 20ch; margin-bottom: .8rem; letter-spacing: -.03em; }
.page-banner p { color: rgba(255, 255, 255, .78); font-size: 1.15rem; margin: 0; }
.page-banner .breadcrumb { display: inline-flex; margin-bottom: 1.25rem; font-size: .88rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); padding: .35rem .9rem; border-radius: 999px; backdrop-filter: blur(6px); --bs-breadcrumb-divider-color: rgba(255, 255, 255, .45); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .75); }
.page-banner .breadcrumb a { color: #fff; text-decoration: none; }
.page-banner .breadcrumb a:hover { color: var(--mf-accent); }

/* ---------- About intro ---------- */
.about-media { position: relative; isolation: isolate; }
.about-media img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: calc(var(--mf-radius) * 1.5); box-shadow: var(--mf-shadow-lg); }
.about-media::before { content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border-radius: calc(var(--mf-radius) * 1.5); background: repeating-linear-gradient(45deg, var(--mf-primary-100) 0 2px, transparent 2px 12px); z-index: -1; }
.flex-lg-row-reverse .about-media::before { inset: 1.25rem 1.25rem -1.25rem -1.25rem; }
.stamp { position: absolute; left: -1.25rem; bottom: -1.25rem; width: 146px; height: 146px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--mf-primary) 80%, #fff), var(--mf-primary)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 6px solid #fff; box-shadow: var(--mf-shadow-lg); }
.stamp strong { font-family: var(--mf-font-head); font-size: 2.2rem; font-stretch: var(--mf-head-stretch); font-weight: 900; line-height: 1; }
.stamp span { font-size: .82rem; margin-top: .25rem; opacity: .9; }
@media (max-width: 575.98px) { .stamp { width: 112px; height: 112px; left: .75rem; bottom: -1.5rem; } .stamp strong { font-size: 1.7rem; } .about-media::before { display: none; } }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--mf-primary-100); color: var(--mf-primary); font-size: 1rem; margin-top: .1rem; }
@media (min-width: 768px) { .check-list.two-col { grid-template-columns: 1fr 1fr; } }
.rich-text > *:last-child { margin-bottom: 0; }
.rich-text h2, .rich-text h3 { margin: 1.75rem 0 .75rem; }
.rich-text ul { padding-left: 1.2rem; }
.rich-text li { margin-bottom: .35rem; }
.rich-text li::marker { color: var(--mf-primary); }
.rich-text img { border-radius: var(--mf-radius); }
.rich-text table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.rich-text td, .rich-text th { border: 1px solid var(--mf-line); padding: .6rem .8rem; }

/* ---------- Capacity strip ---------- */
.capacity { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.capacity .cap { padding: 1.5rem; border-radius: var(--mf-radius); position: relative; overflow: hidden; background: #fff; border: 1px solid var(--mf-line); box-shadow: var(--mf-shadow-sm); }
.capacity .cap i { width: 46px; height: 46px; border-radius: calc(var(--mf-radius) - 2px); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--mf-primary); background: var(--mf-primary-50); margin-bottom: 1rem; }
.capacity .cap strong { display: block; font-family: var(--mf-font-head); font-size: clamp(1.6rem, 2.4vw, 2.05rem); font-stretch: var(--mf-head-stretch); font-weight: var(--mf-head-weight); color: var(--mf-ink); line-height: 1.05; letter-spacing: -.02em; }
.capacity .cap span { color: var(--mf-plate); font-size: .93rem; }
.bg-ink .capacity .cap { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); box-shadow: none; backdrop-filter: blur(6px); }
.bg-ink .capacity .cap strong { color: #fff; }
.bg-ink .capacity .cap span { color: rgba(255, 255, 255, .65); }
.bg-ink .capacity .cap i { color: var(--mf-accent); background: rgba(255, 255, 255, .08); }
@media (max-width: 575.98px) { .capacity { grid-template-columns: 1fr 1fr; gap: .6rem; } .capacity .cap { padding: 1.1rem; } }

/* ---------- Cards: shared hover lift ---------- */
.feature, .product-card, .facility-card, .cert-card, .team-card, .cat-card { transition: transform .3s var(--mf-ease), box-shadow .3s var(--mf-ease), border-color .3s; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .feature:hover, .product-card:hover, .facility-card:hover, .cert-card:hover, .team-card:hover { transform: translateY(-4px); box-shadow: var(--mf-shadow); }
    .cat-card:hover { transform: translateY(-4px); box-shadow: var(--mf-shadow-lg); }
}

/* Feature cards */
.feature { padding: 1.75rem; height: 100%; background: #fff; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); box-shadow: var(--mf-shadow-sm); }
.feature i { width: 50px; height: 50px; border-radius: calc(var(--mf-radius) - 2px); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--mf-primary), color-mix(in srgb, var(--mf-primary) 60%, var(--mf-ink))); margin-bottom: 1.15rem; box-shadow: 0 10px 20px -10px var(--mf-primary); }
.feature h3 { margin-bottom: .55rem; }
.feature p { color: var(--mf-plate); margin: 0; font-size: .98rem; }
.feature:hover { border-color: var(--mf-primary-100); }
.bg-ink .feature { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.bg-ink .feature p { color: rgba(255, 255, 255, .68); }
.bg-ink .feature i { background: var(--mf-accent); color: var(--mf-accent-ink); box-shadow: none; }

/* Category cards */
.cat-card { position: relative; display: block; border-radius: calc(var(--mf-radius) * 1.4); overflow: hidden; color: #fff; text-decoration: none; min-height: 400px; background: var(--mf-ink); isolation: isolate; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--mf-ease); z-index: -2; }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--mf-ink) 5%, transparent) 25%, color-mix(in srgb, var(--mf-ink) 95%, transparent) 100%); }
.cat-card .cat-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.75rem; }
.cat-card .cat-body h3 { color: #fff; margin-bottom: .5rem; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.cat-card .cat-body p { color: rgba(255, 255, 255, .78); font-size: .96rem; margin-bottom: 1rem; }
.cat-card .cat-body .link-arrow { color: var(--mf-ink); background: #fff; padding: .55rem 1rem; border-radius: var(--mf-btn-radius); font-size: .9rem; }
.cat-card:hover .cat-body .link-arrow { background: var(--mf-accent); color: var(--mf-accent-ink); }
.cat-card .cat-count { position: absolute; top: 1.1rem; left: 1.1rem; background: rgba(255, 255, 255, .15); color: #fff; border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px); font-weight: 700; font-size: .8rem; padding: .35rem .8rem; border-radius: 999px; }
.cat-card:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .cat-card img { transition: none; } .cat-card:hover img { transform: none; } }

/* Product cards */
.product-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--mf-shadow-sm); }
.product-card .pc-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mf-steel); position: relative; }
.product-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--mf-ease); }
.product-card:hover .pc-media img { transform: scale(1.05); }
.product-card .pc-body { padding: 1.3rem 1.4rem 1.45rem; display: flex; flex-direction: column; flex: 1; }
.product-card .pc-cat { font-size: .8rem; color: var(--mf-primary); font-weight: 700; margin-bottom: .55rem; align-self: flex-start; background: var(--mf-primary-50); padding: .2rem .65rem; border-radius: 999px; }
.product-card h3 { font-size: 1.18rem; margin-bottom: .5rem; transition: color .2s; }
.product-card p { color: var(--mf-plate); font-size: .95rem; margin-bottom: 1.1rem; }
.product-card .link-arrow { margin-top: auto; font-size: .93rem; }
.product-card:hover { border-color: var(--mf-primary-100); color: inherit; }
.product-card:hover h3 { color: var(--mf-primary); }

/* Facility cards */
.facility-card { display: block; text-decoration: none; color: inherit; height: 100%; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); background: #fff; box-shadow: var(--mf-shadow-sm); }
.facility-card .fc-media { aspect-ratio: 16 / 10; background: var(--mf-steel); position: relative; border-radius: var(--mf-radius) var(--mf-radius) 0 0; }
.facility-card .fc-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--mf-radius) var(--mf-radius) 0 0; }
.facility-card .fc-icon { position: absolute; left: 1.1rem; bottom: -1.35rem; width: 50px; height: 50px; border-radius: calc(var(--mf-radius) - 2px); background: linear-gradient(135deg, var(--mf-primary), color-mix(in srgb, var(--mf-primary) 60%, var(--mf-ink))); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; border: 3px solid #fff; box-shadow: var(--mf-shadow-sm); }
.facility-card .fc-body { padding: 2.1rem 1.35rem 1.4rem; }
.facility-card h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.facility-card p { color: var(--mf-plate); font-size: .94rem; margin: 0; }
.facility-card:hover { border-color: var(--mf-primary-100); color: inherit; }

.facility-row { padding: 3rem 0; border-top: 1px solid var(--mf-line); }
.facility-row:first-child { border-top: 0; padding-top: 0; }
.facility-row .fr-index { display: inline-flex; font-weight: 700; color: var(--mf-primary); font-size: .85rem; background: var(--mf-primary-50); padding: .25rem .7rem; border-radius: 999px; }
.facility-row .fr-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--mf-radius); box-shadow: var(--mf-shadow); }
.facility-row .fr-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .5rem; }
.facility-row .fr-thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--mf-radius) - 4px); box-shadow: none; }

/* ---------- Gallery ---------- */
.gallery-filter { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 2rem; padding: .35rem; background: var(--mf-steel); border-radius: 999px; width: fit-content; max-width: 100%; }
.gallery-filter button { border: 0; background: transparent; color: var(--mf-ink); font-weight: 600; padding: .5rem 1.1rem; border-radius: 999px; font-size: .92rem; transition: background-color .2s, color .2s; }
.gallery-filter button:hover { background: #fff; }
.gallery-filter button.active { background: var(--mf-primary); color: #fff; box-shadow: 0 6px 16px -8px var(--mf-primary); }
@media (max-width: 767.98px) { .gallery-filter { border-radius: var(--mf-radius); } }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .85rem; }
.gallery-grid a { display: block; position: relative; overflow: hidden; border-radius: var(--mf-radius); aspect-ratio: 4 / 3; background: var(--mf-steel); }
.gallery-grid a img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--mf-ease); }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .8rem; color: #fff; font-weight: 600; font-size: .92rem; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--mf-ink) 90%, transparent)); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.gallery-grid a::after { content: "\F52A"; font-family: "bootstrap-icons"; position: absolute; top: .8rem; right: .8rem; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--mf-ink); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s; }
.gallery-grid a:hover figcaption, .gallery-grid a:focus figcaption { opacity: 1; transform: none; }
.gallery-grid a:hover::after, .gallery-grid a:focus::after { opacity: 1; transform: none; }
.gallery-grid a.is-hidden { display: none; }
@media (hover: none) { .gallery-grid a figcaption { opacity: 1; transform: none; } }

/* ---------- Certificates ---------- */
.cert-card { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.6rem; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); background: #fff; height: 100%; box-shadow: var(--mf-shadow-sm); }
.cert-card .cert-ico { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--mf-primary-50); color: var(--mf-primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: inset 0 0 0 1px var(--mf-primary-100); }
.cert-card img.cert-img { width: 72px; height: 72px; object-fit: contain; flex: none; }
.cert-card h3 { font-size: 1.12rem; margin-bottom: .2rem; }
.cert-card .cert-sub { color: var(--mf-primary); font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }
.cert-card p { color: var(--mf-plate); font-size: .94rem; margin: 0; }
.bg-ink .cert-card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.bg-ink .cert-card .cert-ico { background: rgba(255, 255, 255, .08); color: var(--mf-accent); box-shadow: none; }
.bg-ink .cert-card .cert-sub { color: color-mix(in srgb, var(--mf-primary) 40%, #fff); }
.bg-ink .cert-card p { color: rgba(255, 255, 255, .68); }

/* ---------- Compliance list ---------- */
.code-list { list-style: none; counter-reset: code; padding: 0; margin: 0; display: grid; gap: .65rem; }
.code-list li { counter-increment: code; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); transition: border-color .2s, box-shadow .2s; }
.code-list li:hover { border-color: var(--mf-primary-100); box-shadow: var(--mf-shadow-sm); }
.code-list li::before { content: counter(code, decimal-leading-zero); width: 3rem; height: 3rem; border-radius: calc(var(--mf-radius) - 2px); display: flex; align-items: center; justify-content: center; font-family: var(--mf-font-head); font-weight: 800; font-stretch: var(--mf-head-stretch); color: var(--mf-primary); background: var(--mf-primary-50); font-size: 1.05rem; }
.code-list h3 { font-size: 1.04rem; margin: 0 0 .25rem; line-height: 1.4; }
.code-list p { color: var(--mf-plate); margin: 0; font-size: .95rem; }
.bg-steel .code-list li { border-color: transparent; }
.bg-ink .code-list li { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.bg-ink .code-list li::before { color: var(--mf-accent-ink); background: var(--mf-accent); }
.bg-ink .code-list p { color: rgba(255, 255, 255, .68); }
.sticky-media { position: sticky; top: calc(var(--mf-header-h) + 1.5rem); }
.sticky-media img { width: 100%; border-radius: calc(var(--mf-radius) * 1.4); aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--mf-shadow-lg); }

/* ---------- Team ---------- */
.team-card { display: flex; gap: 1.25rem; align-items: center; padding: 1.5rem; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); background: #fff; height: 100%; box-shadow: var(--mf-shadow-sm); }
.team-card .tc-photo { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex: none; background: var(--mf-steel); }
.team-card .tc-initial { width: 92px; height: 92px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--mf-primary), color-mix(in srgb, var(--mf-primary) 55%, var(--mf-ink))); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mf-font-head); font-size: 1.9rem; font-weight: 800; font-stretch: var(--mf-head-stretch); box-shadow: 0 0 0 5px var(--mf-primary-50); }
.team-card h3 { font-size: 1.18rem; margin-bottom: .15rem; }
.team-card .tc-role { color: var(--mf-primary); font-weight: 600; margin-bottom: .1rem; }
.team-card .tc-qual { color: var(--mf-plate); font-size: .9rem; margin-bottom: .5rem; }
.team-card .tc-contact { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .92rem; }
.team-card .tc-contact a { text-decoration: none; font-weight: 600; background: var(--mf-steel); padding: .3rem .75rem; border-radius: 999px; color: var(--mf-ink); }
.team-card .tc-contact a:hover { background: var(--mf-primary); color: #fff; }
@media (max-width: 479.98px) { .team-card { flex-direction: column; text-align: center; } .team-card .tc-contact { justify-content: center; } }

/* ---------- CTA ---------- */
.cta-section { padding: clamp(1rem, 3vw, 2rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.cta-band { position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: calc(var(--mf-radius) * 2); padding: clamp(2.25rem, 5vw, 3.75rem) clamp(1.5rem, 5vw, 3.75rem); background: var(--cta-image, none) center/cover no-repeat, var(--mf-primary); box-shadow: var(--mf-shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--mf-accent) 28%, transparent), transparent 55%), linear-gradient(100deg, color-mix(in srgb, var(--mf-primary) 97%, transparent) 0%, color-mix(in srgb, var(--mf-primary) 90%, var(--mf-ink)) 55%, color-mix(in srgb, var(--mf-primary) 70%, transparent) 100%); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent 45%, #000); }
.cta-band h2 { color: #fff; margin-bottom: .75rem; max-width: 22ch; }
.cta-band p { color: rgba(255, 255, 255, .82); font-size: 1.1rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-card { display: flex; gap: 1rem; padding: 1.1rem 1.15rem; margin-bottom: .65rem; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); background: #fff; transition: border-color .2s, box-shadow .2s; }
.contact-card:hover { border-color: var(--mf-primary-100); box-shadow: var(--mf-shadow-sm); }
.contact-card i { width: 46px; height: 46px; flex: none; border-radius: calc(var(--mf-radius) - 2px); background: var(--mf-primary-50); color: var(--mf-primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.contact-card h3 { font-family: var(--mf-font); font-size: .85rem; margin: 0 0 .2rem; font-stretch: 100%; font-weight: 600; color: var(--mf-plate); letter-spacing: 0; }
.contact-card a, .contact-card div.cc-val { color: var(--mf-ink); font-weight: 700; text-decoration: none; display: block; }
.contact-card a:hover { color: var(--mf-primary); }
.form-panel { background: #fff; border: 1px solid var(--mf-line); border-radius: calc(var(--mf-radius) * 1.4); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--mf-shadow); }
.form-panel h3 { margin-bottom: 1.25rem; }
.form-panel .form-label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--mf-ink); }
.form-panel .form-control, .form-panel .form-select { border: 1.5px solid var(--mf-line); border-radius: calc(var(--mf-radius) - 2px); padding: .8rem .95rem; background: var(--mf-steel); font-size: .98rem; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.form-panel .form-control:hover { border-color: color-mix(in srgb, var(--mf-primary) 25%, var(--mf-line)); }
.form-panel .form-control:focus, .form-panel .form-select:focus { border-color: var(--mf-primary); background: #fff; box-shadow: 0 0 0 4px var(--mf-primary-100); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.map-embed { border: 0; width: 100%; height: 420px; display: block; filter: grayscale(.2) contrast(1.05); }

/* ---------- Product & facility detail ---------- */
.detail-gallery .main-img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: calc(var(--mf-radius) * 1.4); background: var(--mf-steel); box-shadow: var(--mf-shadow); }
.detail-gallery .thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .55rem; margin-top: .7rem; }
.detail-gallery .thumbs a { display: block; aspect-ratio: 1; border-radius: calc(var(--mf-radius) - 4px); overflow: hidden; border: 2px solid transparent; transition: border-color .2s, transform .2s; }
.detail-gallery .thumbs a:hover, .detail-gallery .thumbs a:focus { border-color: var(--mf-primary); transform: translateY(-2px); }
.detail-gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.detail-meta .tag { background: var(--mf-primary-50); color: var(--mf-primary); font-weight: 700; font-size: .84rem; padding: .35rem .85rem; border-radius: 999px; text-decoration: none; border: 1px solid var(--mf-primary-100); }
.side-nav { border: 1px solid var(--mf-line); border-radius: var(--mf-radius); background: #fff; overflow: hidden; box-shadow: var(--mf-shadow-sm); }
.side-nav h3 { font-size: 1.02rem; padding: 1rem 1.2rem; margin: 0; border-bottom: 1px solid var(--mf-line); background: var(--mf-steel); }
.side-nav a { display: flex; justify-content: space-between; align-items: center; padding: .78rem 1.2rem; text-decoration: none; color: var(--mf-ink); font-weight: 500; border-bottom: 1px solid var(--mf-steel); transition: background-color .15s, color .15s, padding-left .2s; }
.side-nav a:last-child { border-bottom: 0; }
.side-nav a:hover { background: var(--mf-primary-50); color: var(--mf-primary); padding-left: 1.4rem; }
.side-nav a.active { background: var(--mf-primary-50); color: var(--mf-primary); box-shadow: inset 3px 0 0 var(--mf-primary); font-weight: 700; }
.side-nav .count { font-size: .76rem; color: var(--mf-plate); background: var(--mf-steel); padding: .1rem .5rem; border-radius: 999px; }
.help-box { position: relative; overflow: hidden; isolation: isolate; background: var(--mf-ink); color: rgba(255, 255, 255, .75); border-radius: var(--mf-radius); padding: 1.6rem; }
.help-box::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 90% at 100% 0%, color-mix(in srgb, var(--mf-primary) 55%, transparent), transparent 60%); }
.help-box h3 { color: #fff; font-size: 1.2rem; }
.help-box a.phone { color: #fff; font-family: var(--mf-font-head); font-size: 1.3rem; font-weight: 800; font-stretch: var(--mf-head-stretch); text-decoration: none; display: block; }

/* ---------- Footer ---------- */
.footer-cta { position: relative; z-index: 2; margin-bottom: -3.5rem; }
.footer-cta > .container { background: #fff; border: 1px solid var(--mf-line); border-radius: calc(var(--mf-radius) * 1.5); padding: 1.75rem 2rem; box-shadow: var(--mf-shadow-lg); }
.footer-cta h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 0 0 .25rem; }
.footer-cta p { margin: 0; color: var(--mf-plate); }
@media (max-width: 575.98px) { .footer-cta > .container { width: calc(100% - 2rem); padding: 1.4rem; } }
.site-footer { position: relative; overflow: hidden; isolation: isolate; background: var(--mf-ink); color: rgba(255, 255, 255, .68); padding: 7rem 0 0; font-size: .96rem; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, var(--mf-primary) 45%, transparent), transparent 60%), radial-gradient(40% 60% at 100% 0%, color-mix(in srgb, var(--mf-primary) 30%, transparent), transparent 60%); }
.site-footer .f-logo { height: 52px; width: auto; margin-bottom: 1.25rem; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 1.15rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--mf-accent); }
.site-footer .f-contact li { display: flex; gap: .7rem; }
.site-footer .f-contact i { color: var(--mf-accent); margin-top: .2rem; }
.site-footer .f-certs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.site-footer .f-certs span { display: inline-flex; align-items: center; gap: .35rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-weight: 600; font-size: .8rem; padding: .35rem .75rem; border-radius: 999px; }
.site-footer .f-certs span::before { content: "\F4B6"; font-family: "bootstrap-icons"; color: var(--mf-accent); }
.social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.social a:hover { background: var(--mf-accent); border-color: var(--mf-accent); color: var(--mf-accent-ink); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 3.5rem; padding: 1.4rem 0; font-size: .86rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom li { margin: 0; }

.float-actions { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 1030; display: flex; flex-direction: column; gap: .6rem; }
.float-actions a, .float-actions button { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; border: 0; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35); text-decoration: none; transition: transform .2s var(--mf-ease), opacity .2s; }
.float-actions a:hover, .float-actions button:hover { transform: translateY(-2px); color: #fff; }
.float-actions .wa { background: #1fa855; }
.float-actions .to-top { background: var(--mf-primary); font-size: 1.2rem; opacity: 0; pointer-events: none; }
.float-actions .to-top.show { opacity: 1; pointer-events: auto; }

.alert-mf { border-radius: var(--mf-radius); border: 0; border-left: 4px solid var(--mf-primary); background: var(--mf-primary-50); color: var(--mf-ink); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--mf-plate); border: 1.5px dashed var(--mf-line); border-radius: var(--mf-radius); background: var(--mf-steel); }

/* ---------- 404 ---------- */
.err-page { min-height: 60vh; display: flex; align-items: center; padding: 5rem 0; }
.err-page .err-code { font-family: var(--mf-font-head); font-size: clamp(5rem, 14vw, 9rem); font-weight: 900; font-stretch: var(--mf-head-stretch); line-height: 1; background: linear-gradient(135deg, var(--mf-primary), var(--mf-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Scroll reveal (only when enabled in settings and motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .has-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--mf-ease), transform .7s var(--mf-ease); transition-delay: var(--reveal-delay, 0s); }
    .has-reveal .reveal.is-visible { opacity: 1; transform: none; }
}

@media print {
    .topbar, .site-header, .footer-cta, .float-actions, .site-footer, .hero-scroll { display: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Compact header & banners
   ========================================================================== */
:root { --mf-header-h: 64px; }
.topbar { font-size: .8rem; }
.topbar.py-2 { padding-top: .35rem !important; padding-bottom: .35rem !important; }
.brand-logo { height: 40px; }
.site-header .navbar-brand { padding-top: .35rem !important; padding-bottom: .35rem !important; }
.main-nav .nav-link { font-size: .9rem; padding: .45rem .75rem !important; }
.main-nav .nav-split > .nav-link { padding-right: .15rem !important; }
.nav-caret { width: 24px; height: 24px; margin-right: .3rem; font-size: .65rem; }
.site-header .btn-mf { padding: .62rem 1.1rem; font-size: .9rem; box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--mf-accent) 70%, transparent); }
@media (max-width: 575.98px) { :root { --mf-header-h: 58px; } .brand-logo { height: 34px; } }

/* Desktop menu on one line: the submenu arrow never wraps under its label (wrapping is only for the mobile menu) */
@media (min-width: 1200px) {
    .main-nav { flex-wrap: nowrap; }
    .main-nav > .nav-item { flex-shrink: 0; }
    .main-nav .nav-split { flex-wrap: nowrap; }
}
/* Laptop widths (1200–1399px, or larger screens zoomed in): tighter spacing so logo, menu and button fit */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .site-header .navbar-brand { margin-right: .75rem !important; }
    .brand-logo { height: 36px; }
    .main-nav { gap: 0; }
    .main-nav .nav-link { font-size: .86rem; padding: .45rem .5rem !important; }
    .main-nav .nav-split > .nav-link { padding-right: .05rem !important; }
    .nav-caret { width: 20px; margin-right: .15rem; }
    .site-header .btn-mf { padding: .55rem .9rem; font-size: .86rem; }
}

/* Home hero: shorter, medium heading */
.hero .swiper-slide { min-height: clamp(460px, 70vh, 620px); }
.hero .hero-content { padding-top: 4rem; padding-bottom: 5.5rem; }
.hero .hero-kicker { font-size: .82rem; padding: .3rem .8rem; margin-bottom: 1rem; }
.hero h1, .hero .h1 { font-size: clamp(1.9rem, 3.3vw, 3rem); font-weight: var(--mf-head-weight); line-height: 1.12; letter-spacing: -.02em; max-width: 19ch; margin-bottom: 1rem; }
.hero p { font-size: 1.05rem; max-width: 54ch; margin-bottom: 1.6rem; }
.hero .btn-mf, .hero .btn-mf-light { padding: .75rem 1.3rem; font-size: .93rem; }
.hero-chips { margin-top: 1.6rem; }
.hero-chips li { font-size: .82rem; }
.hero .hero-plate { width: 320px; bottom: 3.75rem; }
.hero .hero-plate .plate { padding: 1.35rem 1.35rem 1.1rem; }
.hero .hero-plate .plate-title { font-size: .88rem; padding: .5rem .8rem; margin-bottom: .6rem; }
.hero .hero-plate .plate-rows dt, .hero .hero-plate .plate-rows dd { font-size: .84rem; padding: .45rem 0; }
.hero .swiper-pagination { bottom: 1.9rem !important; }
.hero .hero-nav { bottom: 1.3rem; }
.hero .hero-nav button { width: 38px; height: 38px; }
.hero-scroll { bottom: 1.2rem; transform: scale(.85); }
@media (max-width: 575.98px) { .hero .hero-content { padding-top: 3rem; padding-bottom: 5rem; } .hero h1, .hero .h1 { font-size: 1.85rem; } .hero p { font-size: .98rem; } }

/* Only the active slide shows its text, so headings never overlap during the fade */
.hero .swiper-slide:not(.swiper-slide-active) .hero-content { visibility: hidden; }

/* Inner page banners: compact too */
.page-banner { padding: clamp(2.75rem, 5.5vw, 4.25rem) 0 clamp(2.25rem, 4.5vw, 3.25rem); }
.page-banner h1 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.15; margin-bottom: .6rem; }
.page-banner p { font-size: 1rem; }
.page-banner .breadcrumb { margin-bottom: .9rem; font-size: .82rem; padding: .3rem .8rem; }
/* All slides share the tallest slide's height, so the photo always fills the banner */
.hero .swiper-wrapper { align-items: stretch; }
.hero .swiper-slide { height: auto; }

/* ---------- Navigation active / hover state: text colour + underline, no pill ---------- */
.main-nav .nav-link,
.main-nav .nav-link:hover,
.main-nav .nav-link.active,
.main-nav .nav-split,
.main-nav .nav-split:hover,
.main-nav .nav-split.is-active { background: transparent !important; }
.main-nav .nav-link { position: relative; color: var(--mf-ink); }
.main-nav .nav-link::after {
    content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .2rem; height: 2.5px; border-radius: 3px;
    background: var(--mf-accent); transform: scaleX(0); transform-origin: left center; transition: transform .25s var(--mf-ease);
}
.main-nav .nav-split > .nav-link::after { right: .15rem; }
.main-nav .nav-link:hover, .main-nav .nav-split:hover > .nav-link { color: var(--mf-primary); }
.main-nav .nav-link:hover::after, .main-nav .nav-split:hover > .nav-link::after { transform: scaleX(1); }
.main-nav .nav-link.active, .main-nav .nav-split.is-active > .nav-link { color: var(--mf-primary); font-weight: 700; }
.main-nav .nav-link.active::after, .main-nav .nav-split.is-active > .nav-link::after { transform: scaleX(1); }
.main-nav .nav-split .nav-caret:hover { background: var(--mf-primary-50); }
.main-nav .nav-split.is-active .nav-caret, .main-nav .nav-split:hover .nav-caret { color: var(--mf-primary); }

@media (max-width: 1199.98px) {
    .main-nav .nav-link::after { display: none; }
    .main-nav .nav-link.active, .main-nav .nav-split.is-active { background: var(--mf-primary-50) !important; box-shadow: inset 3px 0 0 var(--mf-accent); }
    .main-nav .nav-split.is-active > .nav-link { background: transparent !important; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .main-nav .nav-link::after { transition: none; } }

/* ---------- Infrastructure: compact facility rows ---------- */
.facility-row { padding: 1.75rem 0; }
.facility-row:first-child { padding-top: 0; }
.facility-row > .row { --bs-gutter-y: 1.25rem; align-items: center; }
.facility-row .fr-index { font-size: .78rem; padding: .2rem .6rem; }
.facility-row h3.h2 { font-size: clamp(1.3rem, 2vw, 1.65rem); margin: .55rem 0 .5rem !important; }
.facility-row .lead-text { font-size: .98rem; margin-bottom: 0; }
.facility-row .fr-media img { aspect-ratio: 16 / 10; border-radius: var(--mf-radius); box-shadow: var(--mf-shadow-sm); }
.facility-row .fr-thumbs { grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-top: .4rem; }
.facility-row .fr-thumbs img { aspect-ratio: 4 / 3; }
.facility-row .plate { margin-top: 1rem !important; padding: 1.15rem 1.25rem .9rem; }
.facility-row .plate-rows dt, .facility-row .plate-rows dd { font-size: .86rem; padding: .42rem 0; }
.facility-row .link-arrow { margin-top: .85rem !important; font-size: .9rem; }
/* Two label/value pairs per line on wide screens halves the plate height */
@media (min-width: 992px) {
    .facility-row .plate-rows { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 1rem; }
    .facility-row .plate-rows dt, .facility-row .plate-rows dd { overflow-wrap: anywhere; }
    .facility-row .plate-rows dt { padding-right: .5rem; }
    /* restore the divider on every cell, then drop it from the cells in the last line */
    .facility-row .plate-rows dt:nth-last-child(2), .facility-row .plate-rows dd:last-child { border-bottom: 1px dashed #b9bdcc; }
    .facility-row .plate-rows dt:nth-child(4n+1):nth-last-child(4),
    .facility-row .plate-rows dt:nth-child(4n+1):nth-last-child(4) + dd,
    .facility-row .plate-rows dt:nth-last-child(2), .facility-row .plate-rows dd:last-child { border-bottom: 0; }
}


/* ---------- Products page ---------- */
.is-hidden { display: none !important; }

/* Category filter tabs (products grid) */
.filter-tabs { display: flex; flex-wrap: wrap; gap: .35rem; padding: .35rem; margin-bottom: 1.75rem; background: #fff; border: 1px solid var(--mf-line); border-radius: 999px; width: fit-content; max-width: 100%; box-shadow: var(--mf-shadow-sm); }
.bg-steel .filter-tabs { background: #fff; }
.filter-tabs button { display: inline-flex; align-items: center; gap: .45rem; border: 0; background: transparent; color: var(--mf-ink); font-weight: 600; font-size: .9rem; padding: .5rem 1rem; border-radius: 999px; transition: background-color .2s, color .2s; }
.filter-tabs button span { font-size: .72rem; font-weight: 700; min-width: 1.5rem; padding: .1rem .45rem; border-radius: 999px; background: var(--mf-steel); color: var(--mf-plate); }
.filter-tabs button:hover { background: var(--mf-primary-50); color: var(--mf-primary); }
.filter-tabs button.active { background: var(--mf-primary); color: #fff; box-shadow: 0 6px 16px -8px var(--mf-primary); }
.filter-tabs button.active span { background: rgba(255, 255, 255, .2); color: #fff; }
@media (max-width: 767.98px) {
    .filter-tabs { border-radius: var(--mf-radius); flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
    .filter-tabs::-webkit-scrollbar { display: none; }
    .filter-tabs button { flex: none; }
}

/* Product card v2 */
.product-card .pc-media { aspect-ratio: 4 / 3; }
.product-card .pc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--mf-ink) 55%, transparent)); opacity: 0; transition: opacity .3s; }
.product-card .pc-badge { position: absolute; top: .75rem; left: .75rem; z-index: 2; background: rgba(255, 255, 255, .92); color: var(--mf-primary); font-size: .74rem; font-weight: 700; padding: .28rem .65rem; border-radius: 999px; backdrop-filter: blur(6px); box-shadow: var(--mf-shadow-sm); max-width: calc(100% - 1.5rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card .pc-cta { position: absolute; left: 50%; bottom: .9rem; z-index: 2; transform: translate(-50%, 10px); opacity: 0; display: inline-flex; align-items: center; gap: .4rem; background: var(--mf-accent); color: var(--mf-accent-ink); font-weight: 700; font-size: .85rem; padding: .5rem 1rem; border-radius: var(--mf-btn-radius); white-space: nowrap; transition: opacity .25s, transform .25s var(--mf-ease); }
.product-card:hover .pc-media::after, .product-card:focus-visible .pc-media::after { opacity: 1; }
.product-card:hover .pc-cta, .product-card:focus-visible .pc-cta { opacity: 1; transform: translate(-50%, 0); }
.product-card .pc-cat { display: none; }
.product-card .pc-body { padding: 1.1rem 1.2rem 1.25rem; }
.product-card h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.product-card p { font-size: .9rem; margin-bottom: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-specs { display: grid; gap: .35rem; margin: 0 0 1rem; }
.pc-specs > div { display: flex; justify-content: space-between; gap: .75rem; padding: .4rem .6rem; background: var(--mf-steel); border-radius: calc(var(--mf-radius) - 4px); font-size: .8rem; }
.pc-specs dt { font-weight: 500; color: var(--mf-plate); white-space: nowrap; }
.pc-specs dd { margin: 0; font-weight: 700; color: var(--mf-ink); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card .link-arrow { font-size: .88rem; padding-top: .85rem; border-top: 1px solid var(--mf-line); width: 100%; justify-content: space-between; }
@media (hover: none) { .product-card .pc-cta { display: none; } }

/* Category cards: compact portrait variant and corner arrow */
.cat-card .cat-arrow { position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); color: #fff; backdrop-filter: blur(8px); transition: background-color .25s, color .25s, transform .25s var(--mf-ease); }
.cat-card:hover .cat-arrow { background: var(--mf-accent); border-color: var(--mf-accent); color: var(--mf-accent-ink); transform: rotate(45deg); }
.cat-card-compact { min-height: 0; aspect-ratio: 3 / 4; }
.cat-card-compact .cat-body { padding: 1.25rem; }
.cat-card-compact .cat-body h3 { font-size: 1.18rem; }
.cat-card-compact .cat-body p { font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cat-card-compact .cat-body .link-arrow { padding: .45rem .85rem; font-size: .84rem; }
@media (max-width: 575.98px) { .cat-card-compact { aspect-ratio: 4 / 3.4; } }
/* Spec rows: let long values shrink and end in "…" instead of overflowing the card */
.pc-specs { min-width: 0; }
.pc-specs > div { min-width: 0; align-items: baseline; }
.pc-specs dt { flex: none; }
.pc-specs dd { flex: 1 1 auto; min-width: 0; }
.product-card .pc-body { min-width: 0; }
.product-card .link-arrow { margin-top: auto; }

/* ---------- Services ---------- */
.service-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--mf-shadow-sm); transition: transform .3s var(--mf-ease), box-shadow .3s var(--mf-ease), border-color .3s; }
.service-card .sv-media { position: relative; aspect-ratio: 16 / 10; background: var(--mf-steel); }
.service-card .sv-media img { width: 100%; height: 100%; object-fit: cover; }
.service-card .sv-icon { position: absolute; left: 1.1rem; bottom: -1.4rem; width: 52px; height: 52px; border-radius: calc(var(--mf-radius) - 2px); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; color: #fff; background: linear-gradient(135deg, var(--mf-primary), color-mix(in srgb, var(--mf-primary) 60%, var(--mf-ink))); border: 3px solid #fff; box-shadow: var(--mf-shadow-sm); }
.service-card .sv-body { padding: 2.1rem 1.35rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 1.15rem; margin-bottom: .45rem; transition: color .2s; }
.service-card p { color: var(--mf-plate); font-size: .92rem; margin-bottom: .8rem; }
.sv-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .35rem; }
.sv-list li { position: relative; padding-left: 1.2rem; font-size: .86rem; color: var(--mf-text); line-height: 1.45; }
.sv-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 2px; background: var(--mf-accent); }
.service-card .link-arrow { margin-top: auto; font-size: .9rem; padding-top: .8rem; border-top: 1px solid var(--mf-line); justify-content: space-between; }
.service-card:hover { border-color: var(--mf-primary-100); color: inherit; }
.service-card:hover h3 { color: var(--mf-primary); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .service-card:hover { transform: translateY(-4px); box-shadow: var(--mf-shadow); } }
.bg-ink .service-card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.bg-ink .service-card h3 { color: #fff; }
.bg-ink .service-card p, .bg-ink .service-card .sv-list li { color: rgba(255, 255, 255, .7); }
.bg-ink .service-card .link-arrow { color: var(--mf-accent); border-top-color: rgba(255, 255, 255, .12); }
.service-hero-img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: calc(var(--mf-radius) * 1.4); box-shadow: var(--mf-shadow); }

/* ---------- Projects ---------- */
.project-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); overflow: hidden; box-shadow: var(--mf-shadow-sm); transition: transform .3s var(--mf-ease), box-shadow .3s var(--mf-ease), border-color .3s; }
.project-card .pj-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mf-steel); }
.project-card .pj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--mf-ease); }
.project-card .pj-media:hover img { transform: scale(1.05); }
.project-card .pj-body { padding: 1.15rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pj-client { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; font-size: .78rem; font-weight: 700; color: var(--mf-primary); background: var(--mf-primary-50); border: 1px solid var(--mf-primary-100); padding: .22rem .65rem; border-radius: 999px; margin-bottom: .6rem; }
.project-card h3 { font-size: 1.05rem; line-height: 1.35; margin-bottom: .45rem; }
.project-card p { font-size: .9rem; color: var(--mf-plate); margin-bottom: .85rem; }
.pj-meta { display: grid; gap: .3rem; margin: 0 0 .85rem; }
.pj-meta > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .5rem; font-size: .8rem; padding: .35rem .55rem; background: var(--mf-steel); border-radius: calc(var(--mf-radius) - 4px); }
.pj-meta dt { font-weight: 500; color: var(--mf-plate); }
.pj-meta dd { margin: 0; font-weight: 600; color: var(--mf-ink); min-width: 0; overflow-wrap: anywhere; }
.pj-location { margin-top: auto; display: flex; align-items: center; gap: .4rem; font-size: .84rem; font-weight: 600; color: var(--mf-ink); padding-top: .75rem; border-top: 1px solid var(--mf-line); }
.pj-location i { color: var(--mf-accent); }
.project-card:hover { border-color: var(--mf-primary-100); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .project-card:hover { transform: translateY(-4px); box-shadow: var(--mf-shadow); } }

/* ---------- Client logos ---------- */
.client-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.client-grid li > a, .client-grid li > span { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; padding: .75rem; background: #fff; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); transition: border-color .25s, box-shadow .25s, transform .25s var(--mf-ease); }
.client-grid img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.client-grid li > *:hover { border-color: var(--mf-primary-100); box-shadow: var(--mf-shadow-sm); transform: translateY(-2px); }
.client-grid li > *:hover img { filter: none; opacity: 1; }
@media (hover: none) { .client-grid img { filter: none; opacity: 1; } }
@media (max-width: 575.98px) { .client-grid { grid-template-columns: repeat(3, 1fr); gap: .5rem; } .client-grid li > a, .client-grid li > span { padding: .45rem; } }

/* Contact & footer units */
.contact-card .cc-map { display: inline-flex; align-items: center; gap: .3rem; margin-top: .35rem; font-size: .84rem; font-weight: 700; color: var(--mf-primary); }
.site-footer .f-unit { color: #fff; font-weight: 700; margin-right: .2rem; }

/* Slide background video (sits over the image, under the dark overlay text) */
.hero .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero .hero-video + .hero-content, .hero .hero-content { z-index: 2; }
.hero .swiper-slide:has(.hero-video) .hero-bg::after { z-index: 1; }
.hero .swiper-slide:has(.hero-video)::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(100deg, color-mix(in srgb, var(--mf-ink) 92%, transparent) 0%, color-mix(in srgb, var(--mf-ink) 70%, transparent) 45%, color-mix(in srgb, var(--mf-ink) 25%, transparent) 100%); }
@media (prefers-reduced-motion: reduce) { .hero .hero-video { display: none; } }

/* ---------- Card images: fixed frame, image fills it (natural image height can no longer stretch a card) ---------- */
.service-card .sv-media, .product-card .pc-media, .project-card .pj-media, .facility-card .fc-media { position: relative; flex: none; height: auto; min-height: 0; aspect-ratio: 16 / 10; }
.product-card .pc-media { aspect-ratio: 4 / 3; }
.service-card .sv-media > img, .product-card .pc-media > img, .project-card .pj-media > img, .facility-card .fc-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-card .sv-media > img { border-radius: var(--mf-radius) var(--mf-radius) 0 0; }
.service-card .sv-icon, .facility-card .fc-icon { z-index: 2; }
.product-card .pc-badge, .product-card .pc-cta, .project-card .pc-badge { z-index: 2; }

/* ---------- Company profile download ---------- */
.section.profile-section { padding: clamp(2rem, 4vw, 3rem) 0; }
.section.profile-section + .section, .section.profile-section.bg-steel + .section.bg-steel, .section.profile-section.bg-white + .section.bg-white { padding-top: clamp(2.5rem, 5vw, 4rem); }
#vision-mission.section { padding-top: clamp(3rem, 6vw, 4.5rem); }
.profile-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem 1.5rem; padding: clamp(1rem, 2vw, 1.4rem) clamp(1.25rem, 2.5vw, 1.75rem); background: #fff; border: 1px solid var(--mf-line); border-radius: calc(var(--mf-radius) * 1.5); box-shadow: var(--mf-shadow); position: relative; overflow: hidden; }
.profile-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, var(--mf-primary), var(--mf-accent)); }
.profile-doc { position: relative; width: 64px; height: 78px; border-radius: 10px; background: var(--mf-primary-50); border: 1px solid var(--mf-primary-100); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; color: #dc2626; }
.profile-doc i { font-size: 2rem; line-height: 1; }
.profile-doc span { font-size: .72rem; font-weight: 800; letter-spacing: .06em; color: var(--mf-ink); }
.profile-body .eyebrow { margin-bottom: .35rem; }
.profile-body h2 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); margin-bottom: .25rem; }
.profile-body p { color: var(--mf-plate); margin-bottom: .35rem; font-size: .95rem; line-height: 1.55; }
.profile-meta { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--mf-plate); }
.profile-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }
.bg-ink .profile-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); box-shadow: none; }
@media (max-width: 991.98px) { .profile-card { grid-template-columns: auto 1fr; } .profile-actions { grid-column: 1 / -1; justify-content: flex-start; } }
@media (max-width: 575.98px) { .profile-card { grid-template-columns: 1fr; } .profile-doc { width: 54px; height: 66px; } .profile-actions .btn-mf, .profile-actions .btn-mf-outline { flex: 1 1 100%; } }
.topbar .tb-profile { font-weight: 600; }
.topbar .tb-profile i { color: var(--mf-accent); }
.site-footer .f-profile { display: inline-flex; align-items: center; gap: .75rem; margin-top: 1rem; padding: .55rem .6rem .55rem .65rem; max-width: 100%; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; }
.site-footer .f-profile-icon { flex: none; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: #fff; color: #dc2626; font-size: 1.25rem; }
.site-footer .f-profile-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; margin-right: .5rem; }
.site-footer .f-profile-text strong { color: #fff; font-size: .9rem; font-weight: 700; }
.site-footer .f-profile-text small { color: rgba(255, 255, 255, .6); font-size: .75rem; }
.site-footer .f-profile-btn { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, .25); transition: background .2s, border-color .2s, color .2s; }
.site-footer .f-profile-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.site-footer .f-profile-btn.is-primary { background: var(--mf-accent); border-color: var(--mf-accent); color: var(--mf-ink); }
.site-footer .f-profile-btn.is-primary:hover { filter: brightness(1.08); color: var(--mf-ink); }
.cert-card .cert-pdf { display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem; font-size: .85rem; font-weight: 700; color: var(--mf-primary); }
.cert-card .cert-pdf i { color: #dc2626; }
.cert-card .cert-pdf:hover { color: var(--mf-accent); }
.bg-ink .cert-card .cert-pdf { color: #fff; }
.site-footer .f-certs a { display: inline-flex; align-items: center; gap: .35rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-weight: 600; font-size: .8rem; padding: .35rem .75rem; border-radius: 999px; transition: border-color .2s, background .2s; }
.site-footer .f-certs a::before { content: "\F4B6"; font-family: "bootstrap-icons"; color: var(--mf-accent); }
.site-footer .f-certs a::after { content: "\F1C5"; font-family: "bootstrap-icons"; font-size: .7rem; opacity: .6; }
.site-footer .f-certs a:hover { border-color: var(--mf-accent); background: rgba(255, 255, 255, .1); color: #fff; }
/* ---------- Team departments ---------- */
.team-dept { display: flex; align-items: center; gap: .75rem; font-size: 1.15rem; margin: 0 0 1.25rem; }
.team-dept span { white-space: nowrap; }
.team-dept small { font-family: var(--mf-font-body); font-size: .78rem; font-weight: 600; color: var(--mf-plate); background: var(--mf-steel); padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; }
.team-dept::after { content: ""; flex: 1; height: 1px; background: var(--mf-line); }
.bg-ink .team-dept small { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); }
.bg-ink .team-dept::after { background: rgba(255, 255, 255, .14); }
