/*
  International buyers - minimal house style (LCS "01-minimal").
  Warm off-white, one teal, tight Inter headlines, generous whitespace.
  Used by includes/intl-buyers.php (product pages) and export-market.php.
  Every selector is prefixed .mx- so nothing leaks into the main theme.
*/
:root {
    --mx-ink: #0e1417;
    --mx-ink2: #5d676c;
    --mx-ink3: #8b9498;
    --mx-teal: #0f7c70;
    --mx-teal-600: #0b6359;
    --mx-teal-50: #e8f2f0;
    --mx-paper: #f4f5f2;
    --mx-line: rgba(14, 20, 23, .09);
    --mx-card: #ffffff;
    --mx-shadow: 0 30px 60px -30px rgba(18, 38, 38, .22), 0 0 0 1px rgba(14, 20, 23, .05);
    --mx-radius: 20px;
}

.mx {
    font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif;
    color: var(--mx-ink);
    background: radial-gradient(120% 85% at 50% 30%, #ffffff 0%, #f5f6f3 55%, #eceee9 100%);
    -webkit-font-smoothing: antialiased;
}
.mx *, .mx *::before, .mx *::after { box-sizing: border-box; }
.mx-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mx-section { padding: 112px 0; }
.mx-section + .mx-section { padding-top: 0; }
.mx-section--flush { background: transparent; }

/* ---------- Type ---------- */
.mx-eyebrow {
    display: inline-block;
    font-size: .78rem; font-weight: 600;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--mx-teal);
    margin: 0 0 22px;
}
.mx-h1, .mx-h2, .mx-h3 {
    font-weight: 650;
    letter-spacing: -.035em;
    line-height: 1.02;
    color: var(--mx-ink);
    margin: 0;
}
.mx-h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); }
.mx-h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.mx-h3 { font-size: 1.28rem; letter-spacing: -.02em; line-height: 1.2; }
.mx-accent { color: var(--mx-teal); }
.mx-lede {
    font-size: clamp(1.08rem, 1.5vw, 1.3rem);
    line-height: 1.55;
    color: var(--mx-ink2);
    max-width: 38em;
    margin: 26px 0 0;
}
.mx p { color: var(--mx-ink2); line-height: 1.65; }
.mx a { color: inherit; }

/* ---------- Actions ---------- */
.mx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 40px; }
.mx-btn {
    display: inline-flex; align-items: center; gap: .6em;
    padding: 1em 1.6em;
    border-radius: 999px;
    background: var(--mx-teal);
    color: #fff !important;
    font-weight: 600; font-size: 1rem; letter-spacing: -.01em;
    text-decoration: none;
    box-shadow: 0 18px 36px -16px rgba(15, 124, 112, .55);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.mx-btn:hover { background: var(--mx-teal-600); transform: translateY(-1px); box-shadow: 0 22px 40px -16px rgba(15, 124, 112, .6); }
.mx-btn svg { width: 1em; height: 1em; transition: transform .2s ease; }
.mx-btn:hover svg { transform: translateX(3px); }
.mx-link {
    display: inline-flex; align-items: center; gap: .5em;
    font-weight: 500; color: var(--mx-ink) !important;
    text-decoration: none;
    border-bottom: 1px solid var(--mx-line);
    padding-bottom: 2px;
    transition: border-color .2s ease, color .2s ease;
}
.mx-link:hover { border-color: var(--mx-teal); color: var(--mx-teal) !important; }
.mx-link .mx-dot { width: .55em; height: .55em; border-radius: 50%; background: #2e9d5b; box-shadow: 0 0 0 3px rgba(46, 157, 91, .18); }

/* ---------- Pills / quiet facts ---------- */
.mx-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px; padding: 0; list-style: none; }
.mx-pill {
    display: inline-flex; align-items: center; gap: .55em;
    padding: .62em 1.1em;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 14px 30px -16px rgba(18, 38, 38, .25), 0 0 0 1px rgba(14, 20, 23, .06);
    font-size: .92rem; font-weight: 500; color: var(--mx-ink);
}
.mx-pill b { font-weight: 600; color: var(--mx-teal); }

/* ---------- Two-column split ---------- */
.mx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: start; }

/* ---------- Fact list (numbered, hairlines) ---------- */
.mx-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mx-line); }
.mx-fact {
    display: grid; grid-template-columns: 56px 1fr; gap: 0 12px;
    padding: 26px 0;
    border-bottom: 1px solid var(--mx-line);
}
.mx-fact-n { font-size: .82rem; font-weight: 600; letter-spacing: .12em; color: var(--mx-ink3); padding-top: .3em; }
.mx-fact h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.015em; margin: 0 0 6px; color: var(--mx-ink); }
.mx-fact p { margin: 0; font-size: .98rem; }

/* ---------- Cards ---------- */
.mx-card {
    background: var(--mx-card);
    border-radius: var(--mx-radius);
    box-shadow: var(--mx-shadow);
    padding: 36px;
}
.mx-grid { display: grid; gap: 20px; }
.mx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Product tiles */
.mx-tile {
    position: relative;
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 180px;
    padding: 28px 28px 26px;
    border-radius: var(--mx-radius);
    background: var(--mx-card);
    box-shadow: 0 0 0 1px rgba(14, 20, 23, .06);
    text-decoration: none;
    transition: box-shadow .25s ease, transform .25s ease;
}
.mx-tile:hover { transform: translateY(-3px); box-shadow: var(--mx-shadow); }
.mx-tile h3 { font-size: 1.14rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin: 0 0 8px; color: var(--mx-ink); }
.mx-tile p { margin: 0; font-size: .93rem; line-height: 1.5; }
.mx-tile-go {
    align-self: flex-end;
    width: 38px; height: 38px; margin-top: 22px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--mx-teal-50); color: var(--mx-teal);
    transition: background .25s ease, color .25s ease;
}
.mx-tile:hover .mx-tile-go { background: var(--mx-teal); color: #fff; }
.mx-tile-go svg { width: 16px; height: 16px; }

/* Steps */
.mx-steps { counter-reset: mxstep; list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mx-step { position: relative; padding: 30px 26px 28px; border-radius: var(--mx-radius); background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(14, 20, 23, .06); }
.mx-step::before {
    counter-increment: mxstep; content: counter(mxstep, decimal-leading-zero);
    display: block; margin-bottom: 30px;
    font-size: 2.6rem; font-weight: 300; letter-spacing: -.05em; line-height: .9;
    color: var(--mx-teal);
}
.mx-step h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -.015em; margin: 0 0 8px; }
.mx-step p { margin: 0; font-size: .95rem; }

/* Regions */
.mx-regions { display: flex; flex-wrap: wrap; gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
.mx-region {
    padding: .9em 1.35em; border-radius: 999px;
    background: var(--mx-card); box-shadow: 0 0 0 1px rgba(14, 20, 23, .07);
    font-weight: 500; font-size: 1.02rem; letter-spacing: -.01em;
}

/* FAQ */
.mx-faq { margin: 48px 0 0; border-top: 1px solid var(--mx-line); }
.mx-faq details { border-bottom: 1px solid var(--mx-line); }
.mx-faq summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    padding: 26px 0;
    font-size: 1.12rem; font-weight: 600; letter-spacing: -.015em; color: var(--mx-ink);
}
.mx-faq summary::-webkit-details-marker { display: none; }
.mx-faq summary::after {
    content: ''; flex: none; width: 12px; height: 12px;
    border-right: 1.5px solid var(--mx-ink3); border-bottom: 1.5px solid var(--mx-ink3);
    transform: rotate(45deg) translateY(-3px); transition: transform .25s ease;
}
.mx-faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.mx-faq details p { margin: -6px 0 26px; max-width: 46em; }
.mx-faq a { color: var(--mx-teal); text-decoration: underline; text-underline-offset: 3px; }

/* Closing band */
.mx-close { text-align: center; }
.mx-close .mx-lede { margin-left: auto; margin-right: auto; }
.mx-close .mx-actions { justify-content: center; }

/* Breadcrumb */
.mx-crumb { font-size: .88rem; color: var(--mx-ink3); margin: 0 0 56px; }
.mx-crumb a { color: var(--mx-ink2); text-decoration: none; }
.mx-crumb a:hover { color: var(--mx-teal); }
.mx-crumb span { margin: 0 .5em; }

/* Reveal (progressive: content is visible without JS) */
@media (prefers-reduced-motion: no-preference) {
    .mx-js .mx-rise { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
    .mx-js .mx-rise.is-in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .mx-split { grid-template-columns: 1fr; gap: 48px; }
    .mx-grid--4, .mx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mx-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .mx-wrap { padding: 0 16px; }
    .mx-section { padding: 72px 0; }
    .mx-grid--4, .mx-grid--3, .mx-steps { grid-template-columns: 1fr; }
    .mx-card { padding: 26px; }
    .mx-fact { grid-template-columns: 40px 1fr; }
    .mx-actions { gap: 16px 22px; }
    .mx-btn { width: 100%; justify-content: center; }
    .mx-crumb { margin-bottom: 36px; }
}

/* ---------- Export page ---------- */
.mx-hero { padding: 72px 0 40px; overflow: hidden; }
.mx-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.mx-stage { position: relative; display: grid; place-items: center; min-height: 520px; }
.mx-halo { position: absolute; inset: 6% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(15, 124, 112, .16), rgba(15, 124, 112, 0)); }
.mx-floor { position: absolute; left: 22%; right: 22%; bottom: 26px; height: 34px; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 35, 35, .26), rgba(20, 35, 35, 0)); }
.mx-stage img { position: relative; width: min(100%, 380px); height: auto; mix-blend-mode: multiply; }
.mx-float {
    position: absolute; right: 0; bottom: 70px;
    display: flex; align-items: center; gap: .6em;
    padding: .75em 1.2em .75em 1em; border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 40px -12px rgba(18, 38, 38, .25), 0 0 0 1px rgba(14, 20, 23, .06);
    font-weight: 500; font-size: .98rem; white-space: nowrap;
}
.mx-float .mx-dot { width: .6em; height: .6em; border-radius: 50%; background: #2e9d5b; box-shadow: 0 0 0 4px rgba(46, 157, 91, .18); }
.mx-float span.mx-muted { color: var(--mx-ink3); }
.mx-new { display: inline-flex; align-items: center; gap: .7em; margin-bottom: 30px; padding: .45em .95em .45em .45em; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(14, 20, 23, .07); font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--mx-ink) !important; }
.mx-new b { padding: .3em .7em; border-radius: 999px; background: var(--mx-teal); color: #fff; font-size: .72rem; letter-spacing: .12em; }
.mx-new:hover { box-shadow: 0 0 0 1px rgba(15, 124, 112, .4); }
.mx-head { max-width: 760px; }
.mx-tile-img { height: 132px; display: grid; place-items: center; margin: 0 0 22px; }
.mx-tile-img img { max-width: 72%; max-height: 118px; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.mx-note { margin-top: 28px; font-size: .95rem; color: var(--mx-ink3); }
.mx-note a { color: var(--mx-teal); text-decoration: underline; text-underline-offset: 3px; }
.mx-band { border-radius: 28px; background: var(--mx-card); box-shadow: var(--mx-shadow); padding: 64px; display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 40px; align-items: center; }
@media (max-width: 1024px) {
    .mx-hero-grid { grid-template-columns: 1fr; }
    .mx-stage { min-height: 420px; }
    .mx-band { grid-template-columns: 1fr; padding: 44px; }
}
@media (max-width: 640px) {
    .mx-hero { padding: 40px 0 72px; }
    .mx-stage { min-height: 340px; }
    .mx-stage img { width: min(78%, 300px); }
    .mx-float { right: 50%; transform: translateX(50%); bottom: 18px; font-size: .9rem; }
    .mx-band { padding: 30px 24px; }
}
/* Phones: product tiles become compact rows (thumbnail + text) */
@media (max-width: 640px) {
    .mx-grid { gap: 12px; }
    .mx-tile { flex-direction: row; align-items: center; min-height: 0; padding: 14px 16px; }
    .mx-tile > div { display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; align-items: center; }
    .mx-tile-img { grid-row: 1 / 3; height: 64px; margin: 0; }
    .mx-tile-img img { max-width: 100%; max-height: 60px; }
    .mx-tile h3 { font-size: 1rem; margin: 0 0 2px; align-self: end; }
    .mx-tile p { font-size: .86rem; align-self: start; }
    .mx-tile-go { display: none; }
}
