/* ============================================================
   Manufacturing Factory PP — "Industrial Steel & Amber" public theme.
   Brand: Meghna Knit Composite / মেঘনা নিট কম্পোজিট (Gazipur, est. 2009).
   Graphite + safety-amber (fills only, dark ink on top) + steel, hard 90deg
   corners, hairline rules, blueprint/hazard-stripe motif. Archivo display +
   Inter body + Hind Siliguri (:lang(bn)). Light-first; dark via theme-dark.css.
   ============================================================ */

:root {
    /* Core palette */
    --graphite: #1F2933;
    --graphite-2: #1C2128;
    --ink: #14171C;          /* dark ink that sits on top of amber fills */
    --amber: #F5A623;        /* safety amber — FILLS ONLY */
    --amber-ink: #9A6200;    /* darker amber for text/links on white (WCAG-AA) */
    --amber-soft: #FCEBCB;   /* soft amber wash for chips/icons */
    --steel: #5B636E;
    --steel-2: #79828D;
    --bg: #F4F5F6;           /* cool off-white page bg */
    --surface: #FFFFFF;
    --line: #D7DBDF;         /* hairline rule */
    --line-strong: #BFC5CB;
    --text: #20262E;
    --text-muted: #5B636E;

    /* SiteSettings overrides land here (see _Layout inline style). */
    --primary: var(--graphite);
    --accent: var(--amber);
    --dark: var(--ink);

    --maxw: 1200px;
    --radius: 0;             /* hard industrial corners everywhere */
    --shadow-sm: 0 2px 8px rgba(20,23,28,.06);
    --shadow: 0 14px 40px rgba(20,23,28,.10);

    --font-display: 'Archivo', 'Inter', system-ui, "Segoe UI", sans-serif;
    --font-body: 'Inter', system-ui, "Segoe UI", Roboto, sans-serif;
    --font-bn: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: clip; /* §12.1 mobile safety-net */
}
:lang(bn), :lang(bn) body, [lang="bn"] body { font-family: var(--font-bn); }

img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--amber-ink); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--ink); }

h1, h2, h3, h4, h5, h6, .display-head {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.12;
    color: var(--graphite);
    text-transform: none;
}
:lang(bn) h1, :lang(bn) h2, :lang(bn) h3, :lang(bn) h4, :lang(bn) h5, :lang(bn) h6 { font-family: var(--font-bn); letter-spacing: 0; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1rem; }
.lead-text { font-size: 1.12rem; color: var(--text-muted); }
.text-muted, .text-muted * { color: var(--text-muted) !important; }

/* Industrial eyebrow + display heading helper */
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-display);
    font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--amber-ink);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--amber); display: inline-block; }

.container { max-width: var(--maxw); }

/* ---- Buttons ---- */
.btn { border-radius: var(--radius); font-weight: 700; font-family: var(--font-display); letter-spacing: .01em; padding: .68rem 1.5rem; transition: filter .15s ease, background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; }
:lang(bn) .btn { font-family: var(--font-bn); font-weight: 600; }
.btn:active { transform: translateY(1px); }

.btn-cta {
    background: var(--amber);
    color: var(--ink) !important;   /* dark ink on amber fill */
    border: 1px solid var(--amber);
}
.btn-cta:hover { filter: brightness(1.05); color: var(--ink) !important; }

.btn-ghost {
    background: transparent;
    color: var(--graphite);
    border: 1.5px solid var(--graphite);
}
.btn-ghost:hover { background: var(--graphite); color: #fff; }

.btn-ghost-light {
    background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.65);
}
.btn-ghost-light:hover { background: #fff; color: var(--graphite); }

.btn-dark { background: var(--graphite); color: #fff; border: 1px solid var(--graphite); }
.btn-dark:hover { background: var(--ink); color: #fff; }

.btn-outline-primary { color: var(--graphite); border-color: var(--graphite); }
.btn-outline-primary:hover { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.btn-primary { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }

/* ---- Sections ---- */
.section { padding: 104px 0; }
.section--surface { background: var(--surface); }
.section--bg { background: var(--bg); }
.section--graphite { background: var(--graphite); color: #E6E9ED; }
.section--graphite h1, .section--graphite h2, .section--graphite h3 { color: #fff; }
.section--graphite .lead-text, .section--graphite .text-muted { color: #AEB6BF !important; }
.section-head { margin-bottom: 3rem; }
.section-head h2 { margin: .35rem 0 .6rem; }

/* Hazard-stripe / amber rule motif */
.mfp-rule { display: block; height: 4px; width: 64px; background: var(--amber); margin: 0 0 1.25rem; }
.mfp-rule--center { margin-left: auto; margin-right: auto; }
.hazard-stripe {
    height: 8px;
    background: repeating-linear-gradient(135deg, var(--amber) 0 14px, var(--ink) 14px 28px);
}

/* ---- Riveted-panel card (NO height:100% on the base class) ---- */
.mfp-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.mfp-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
/* corner rivets */
.mfp-card--riveted::before,
.mfp-card--riveted::after {
    content: ""; position: absolute; top: 8px; width: 5px; height: 5px;
    border-radius: 50%; background: var(--steel-2); opacity: .5;
}
.mfp-card--riveted::before { left: 8px; }
.mfp-card--riveted::after { right: 8px; }
.mfp-card__body { padding: 1.5rem; }
.mfp-card .card-top-accent { height: 4px; background: var(--amber); }

/* Chip / tag */
.mfp-chip {
    display: inline-block; padding: .2rem .6rem; font-size: .72rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-display);
    background: var(--amber-soft); color: var(--amber-ink); border: 1px solid #F0D9A8;
}
.mfp-chip--steel { background: #EAECEF; color: var(--steel); border-color: var(--line); }
.mfp-chip--new { background: var(--amber); color: var(--ink); border-color: var(--amber); }

/* ============================================================
   Header / navbar
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(140%) blur(6px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease, background .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 22px rgba(20,23,28,.08); }
.site-header .navbar { padding: .55rem 0; }
.navbar-brand { display: flex; align-items: center; gap: .65rem; min-width: 0; padding: 0; }
.brand-logo { height: 46px; width: auto; }
.brand-mark {
    width: 42px; height: 42px; display: grid; place-items: center;
    background: var(--graphite); color: var(--amber); font-size: 1.35rem; flex: 0 0 auto;
}
.brand-name {
    font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--graphite);
    line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 440px;
}
:lang(bn) .brand-name { font-family: var(--font-bn); }

.navbar-nav .nav-link {
    font-family: var(--font-display); font-weight: 600; font-size: .92rem;
    color: var(--graphite); padding: .5rem .65rem; position: relative; white-space: nowrap;
}
/* Keep the expanded bar on one row from 1200px up; tighten links in the xl band so nothing overlaps the brand (§9.31). */
@media (min-width: 1200px) {
    .site-header .navbar-nav { flex-wrap: nowrap; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar-nav .nav-link { padding: .5rem .5rem; font-size: .88rem; }
    .lang-toggle { font-size: .82rem; }
}
:lang(bn) .navbar-nav .nav-link { font-family: var(--font-bn); }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--amber-ink); }
.navbar-nav .nav-link.active::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem; height: 2px; background: var(--amber);
}
.navbar-nav .dropdown-menu {
    border-radius: 0; border: 1px solid var(--line); box-shadow: var(--shadow); margin-top: .35rem; padding: .35rem 0;
}
.navbar-nav .dropdown-item { font-size: .92rem; padding: .5rem 1.1rem; color: var(--graphite); }
.navbar-nav .dropdown-item:hover, .navbar-nav .dropdown-item:focus { background: var(--amber-soft); color: var(--amber-ink); }
.navbar-nav .dropdown-toggle.no-href { cursor: pointer; }

.header-search .form-control {
    border-radius: 0; border: 1px solid var(--line); background: var(--bg);
    min-width: 180px; font-size: .9rem;
}
.header-search .form-control:focus { border-color: var(--amber); box-shadow: none; }

.theme-toggle, .lang-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); background: var(--surface); color: var(--graphite);
    height: 40px; min-width: 40px; padding: 0 .7rem; border-radius: 0;
    font-family: var(--font-display); font-weight: 600; font-size: .85rem; cursor: pointer;
}
.theme-toggle:hover, .lang-toggle:hover { border-color: var(--amber); color: var(--amber-ink); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--graphite); }
.hero-slider { position: relative; }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
    background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; position: relative; }
.hero-slide:not(.active) { pointer-events: none; }
.hero-track { min-height: clamp(520px, 78vh, 760px); display: grid; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,23,28,.86) 0%, rgba(20,23,28,.55) 45%, rgba(20,23,28,.15) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 720px; color: #fff; }
.hero-content h1 { color: #fff; }
.hero-content .eyebrow { color: var(--amber); }
.hero-content .lead-text { color: #D5DAE0; }
.hero-dots { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; justify-content: center; gap: .55rem; z-index: 3; }
.hero-dot { width: 30px; height: 4px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.hero-dot.active { background: var(--amber); }

/* Stats band */
.stat-item { text-align: center; padding: 1rem .5rem; }
.stat-item .stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: var(--amber); line-height: 1; }
.section--graphite .stat-item .stat-num { color: var(--amber); }
.stat-item .stat-label { color: var(--steel); font-weight: 600; margin-top: .4rem; }
.section--graphite .stat-item .stat-label { color: #AEB6BF; }
.stat-item .stat-icon { font-size: 1.6rem; color: var(--amber); margin-bottom: .4rem; }

/* Cards: products / processes / certs / facilities / cases / services */
.product-card figure, .case-card figure, .service-card figure, .process-card figure, .facility-card figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: #EAECEF; }
.product-card figure img, .case-card figure img, .service-card figure img, .facility-card figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card .mfp-card__body, .service-card .mfp-card__body { padding: 1.15rem; }
.product-card h3, .case-card h3, .service-card h3 { font-size: 1.1rem; margin: .25rem 0 .4rem; }
.spec-list { list-style: none; padding: 0; margin: .5rem 0 0; font-size: .85rem; color: var(--text-muted); }
.spec-list li { display: flex; justify-content: space-between; gap: .5rem; padding: .25rem 0; border-bottom: 1px dashed var(--line); }
.spec-list li:last-child { border-bottom: 0; }
.spec-list .spec-k { color: var(--steel); font-weight: 600; }
.spec-list .spec-v { color: var(--graphite); font-weight: 600; }

/* Process step / capability */
.process-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; }
.process-card .proc-icon { flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber-ink); font-size: 1.5rem; }
.process-card .proc-num { font-family: var(--font-display); font-weight: 800; color: var(--line-strong); font-size: 1.4rem; }

/* Certifications strip */
.cert-strip { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: center; }
.cert-card { background: var(--surface); border: 1px solid var(--line); padding: 1rem 1.25rem; display: flex; align-items: center; gap: .75rem; min-width: 180px; }
.cert-card img { height: 46px; width: auto; object-fit: contain; }
.cert-card .cert-name { font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--graphite); }
.cert-card .cert-issuer { font-size: .76rem; color: var(--steel); }

/* Buyers / logo grid */
.buyer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.buyer-card { background: var(--surface); display: grid; place-items: center; padding: 1.5rem 1rem; min-height: 110px; }
.buyer-card img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .25s ease, opacity .25s ease; }
.buyer-card:hover img { filter: grayscale(0); opacity: 1; }
.buyer-card .buyer-name { font-family: var(--font-display); font-weight: 700; color: var(--steel); }

/* Case study */
.case-card .mfp-card__body { padding: 1.25rem; }
.case-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: var(--steel); margin-top: .6rem; }
.case-meta b { color: var(--graphite); font-family: var(--font-display); }

/* Testimonials */
.testi-card { padding: 1.75rem; }
.testi-card .testi-quote { font-size: 1.05rem; color: var(--graphite); font-style: normal; }
.testi-card .testi-quote::before { content: "\201C"; color: var(--amber); font-size: 2.4rem; font-family: var(--font-display); line-height: 0; vertical-align: -.4rem; margin-right: .15rem; }
.testi-author { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.testi-author img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.testi-author .ta-name { font-family: var(--font-display); font-weight: 700; color: var(--graphite); }
.testi-author .ta-role { font-size: .82rem; color: var(--steel); }
.testi-stars { color: var(--amber); font-size: .85rem; }

/* Milestones timeline */
.milestone-item { display: flex; gap: 1.25rem; padding-bottom: 1.5rem; position: relative; }
.milestone-item .ms-year { font-family: var(--font-display); font-weight: 800; color: var(--amber-ink); font-size: 1.2rem; flex: 0 0 70px; }
.milestone-item .ms-body { border-left: 2px solid var(--line); padding-left: 1.25rem; position: relative; }
.milestone-item .ms-body::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; background: var(--amber); }

/* RFQ CTA band */
.rfq-cta { background: var(--graphite); color: #fff; position: relative; overflow: hidden; }
.rfq-cta::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(245,166,35,.05) 0 18px, transparent 18px 36px); }
.rfq-cta h2 { color: #fff; }
.rfq-cta p { color: #C7CDD4; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--graphite-2); color: #AEB6BF; position: relative; }
.footer-accent { height: 4px; background: repeating-linear-gradient(135deg, var(--amber) 0 18px, var(--ink) 18px 36px); }
.site-footer .container { padding-top: 64px; padding-bottom: 28px; }
.site-footer h5 { color: #fff; font-family: var(--font-display); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: #fff; }
.footer-logo { height: 50px; width: auto; }
.footer-about { color: #98A1AB; font-size: .92rem; margin-top: .9rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #AEB6BF; font-size: .92rem; }
.footer-links a:hover { color: var(--amber); }
.footer-contact li { display: flex; gap: .6rem; margin-bottom: .7rem; font-size: .92rem; color: #AEB6BF; }
.footer-contact i { color: var(--amber); margin-top: .15rem; }
.footer-contact a { color: #AEB6BF; }
.footer-contact a:hover { color: var(--amber); }
.footer-social { display: flex; gap: .55rem; margin-top: 1.1rem; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); color: #C7CDD4; }
.footer-social a:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.newsletter-form { display: flex; gap: .5rem; margin-top: .9rem; }
.newsletter-form .form-control { border-radius: 0; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: #fff; }
.newsletter-form .form-control::placeholder { color: #79828D; }
.newsletter-form .form-control:focus { border-color: var(--amber); box-shadow: none; background: rgba(255,255,255,.08); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; font-size: .85rem; color: #79828D; }
.footer-bottom .admin-link a, .footer-bottom .copyright { color: #79828D; }
.footer-bottom .admin-link a:hover { color: var(--amber); }
.dev-credit { display: inline-flex; align-items: center; gap: .4rem; }
.dev-credit__pill { display: inline-flex; align-items: center; gap: .35rem; background: rgba(245,166,35,.12); border: 1px solid rgba(245,166,35,.35); color: var(--amber); padding: .2rem .6rem; font-weight: 700; }
.dev-credit__pill:hover { background: var(--amber); color: var(--ink); }
.dev-credit__heart { font-size: .8rem; }

/* ============================================================
   Floating actions + back-to-top
   ============================================================ */
.float-actions { position: fixed; right: 18px; bottom: 18px; z-index: 1040; display: flex; flex-direction: column; gap: .6rem; }
.float-actions a { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 1.4rem; box-shadow: 0 8px 22px rgba(20,23,28,.28); transition: transform .15s ease; }
.float-actions a:hover { transform: translateY(-3px); color: #fff; }
.fa-whatsapp { background: #25D366; }
.fa-call { background: var(--graphite); }
.fa-quote { background: var(--amber); color: var(--ink) !important; }
.back-to-top { position: fixed; right: 18px; bottom: 84px; z-index: 1040; width: 46px; height: 46px; border: 0; background: var(--graphite); color: #fff; display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--amber); color: var(--ink); }

/* Notice bar */
.notice-bar { font-size: .88rem; text-align: center; padding: .5rem 1rem; }
.notice-bar a { color: inherit; text-decoration: underline; }

/* Page header (interior pages) */
.page-hero { background: var(--graphite); color: #fff; padding: 64px 0; position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: repeating-linear-gradient(135deg, var(--amber) 0 14px, var(--ink) 14px 28px); }
.page-hero h1 { color: #fff; }
.breadcrumb { --bs-breadcrumb-divider-color: #79828D; margin: 0; }
.breadcrumb a { color: #AEB6BF; }
.breadcrumb .active { color: var(--amber); }

/* Forms */
.form-control, .form-select { border-radius: 0; border: 1px solid var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--amber); box-shadow: 0 0 0 .15rem rgba(245,166,35,.18); }

/* ============================================================
   §12.1 Mobile safety-net + responsive breakpoints
   ============================================================ */
/* flex-child min-width:0 so long text never forces horizontal scroll */
.navbar-nav, .footer-contact li, .testi-author, .process-card { min-width: 0; }
.row.g-5 { --bs-gutter-x: 2.5rem; }

@media (max-width: 991.98px) {
    .section { padding: 72px 0; }
    .site-header .navbar { padding: .5rem 0; }
    .navbar-collapse { background: var(--surface); border: 1px solid var(--line); margin-top: .6rem; padding: .75rem; }
    .navbar-nav .nav-link.active::after { display: none; }
    .header-search .form-control { min-width: 0; width: 100%; }
    .buyer-grid { grid-template-columns: repeat(3, 1fr); }
    .row.g-5 { --bs-gutter-x: 1.5rem; }
    .hero-track { min-height: 460px; }
}

@media (max-width: 767.98px) {
    .section { padding: 56px 0; }
    h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
    .section-head { margin-bottom: 2rem; }
    .footer-bottom { justify-content: center; text-align: center; }
    .float-actions a { width: 46px; height: 46px; font-size: 1.2rem; }
    .cert-card { min-width: 0; flex: 1 1 100%; }
}

@media (max-width: 480px) {
    .section { padding: 44px 0; }
    .brand-name { font-size: 1rem; }
    .buyer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content .lead-text { font-size: 1rem; }
    .newsletter-form { flex-direction: column; }
}

@media print {
    .site-header, .site-footer, .float-actions, .back-to-top, .notice-bar, .navbar-toggler { display: none !important; }
    body { background: #fff; color: #000; }
    .section { padding: 16px 0; }
    a { color: #000; }
}
