/* TradeMaart — navy + steel teal B2B portal */
:root {
    --tm-navy: #0b1f33;
    --tm-ink: #122033;
    --tm-teal: #2a6f7a;
    --tm-steel: #4a7c8c;
    --tm-fog: #e8eef2;
    --tm-mist: #f2f6f8;
    --tm-card: #ffffff;
    --tm-line: #c5d4dc;
}
* { box-sizing: border-box; }
body.tm-body {
    margin: 0;
    color: var(--tm-ink);
    background:
        radial-gradient(1200px 480px at 10% -10%, rgba(42, 111, 122, 0.18), transparent 60%),
        linear-gradient(180deg, var(--tm-mist), #fff 42%);
    font-family: "DM Sans", "Segoe UI", sans-serif;
    line-height: 1.5;
}
.tm-wrap { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.tm-header {
    background: linear-gradient(110deg, var(--tm-navy), #14324a 55%, #1a4554);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
}
.tm-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
}
.tm-brand img { display: block; height: 48px; width: auto; }
.tm-nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.tm-nav a { color: #d7e6ee; text-decoration: none; font-weight: 600; font-size: 14px; }
.tm-nav-cta {
    background: var(--tm-teal);
    color: #fff !important;
    padding: 8px 12px;
    border-radius: 6px;
}
.tm-market {
    display: inline-flex;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    overflow: hidden;
}
.tm-market a {
    color: #d7e6ee;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
}
.tm-market a.is-active { background: rgba(255,255,255,.16); color: #fff; }
.tm-hero {
    position: relative;
    min-height: clamp(420px, 70vh, 620px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}
.tm-hero-plane {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(11, 31, 51, 0.92), rgba(42, 111, 122, 0.55)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cpath fill='none' stroke='%23ffffff22' stroke-width='1' d='M0 80h160M80 0v160'/%3E%3C/svg%3E"),
        linear-gradient(160deg, #0b1f33, #1f4d5c);
    transform: scale(1.02);
    animation: tm-drift 18s ease-in-out infinite alternate;
}
@keyframes tm-drift {
    from { transform: scale(1.02) translate3d(0,0,0); }
    to { transform: scale(1.06) translate3d(-1.5%, 1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .tm-hero-plane { animation: none; }
}
.tm-hero-copy {
    position: relative;
    z-index: 1;
    padding: 48px 0;
    max-width: 720px;
}
.tm-brand-mark {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.tm-hero h1 {
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    font-weight: 700;
    margin: 0 0 10px;
    max-width: 18ch;
}
.tm-hero-copy > p { margin: 0 0 18px; color: #dce9ef; max-width: 42ch; }
.tm-search {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.tm-search input {
    flex: 1 1 220px;
    border: 0;
    border-radius: 8px;
    padding: 12px 14px;
    font: inherit;
}
.tm-search button,
.tm-btn {
    border: 0;
    border-radius: 8px;
    padding: 11px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    background: #16324a;
    color: #fff;
}
.tm-btn-primary { background: var(--tm-teal); }
.tm-btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,.45);
}
.tm-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tm-section { padding: 48px 0; }
.tm-section-alt { background: rgba(42, 111, 122, 0.06); }
.tm-section h1, .tm-section h2 {
    font-family: "Source Serif 4", Georgia, serif;
    margin: 0 0 18px;
}
.tm-biz, .tm-biz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.tm-biz-card {
    background: var(--tm-card);
    border: 1px solid var(--tm-line);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.tm-biz-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(11, 31, 51, 0.1);
}
.tm-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background: #16324a;
}
.tm-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-card-media-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(42,111,122,.45), transparent 55%),
        repeating-linear-gradient(90deg, #16324a 0 16px, #1a3d58 16px 18px);
}
.tm-biz-card h3 { margin: 0; font-size: 1.05rem; }
.tm-biz-card h3 a { color: inherit; text-decoration: none; }
.tm-meta { color: #4d6472; font-size: 0.92rem; margin: 0; }
.tm-actions { display: flex; gap: 8px; margin-top: auto; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tm-chips a, .tm-chips span {
    background: #fff;
    border: 1px solid var(--tm-line);
    border-radius: 999px;
    padding: 8px 14px;
    text-decoration: none;
    color: var(--tm-ink);
    font-weight: 600;
    font-size: 14px;
}
.tm-footer {
    background: var(--tm-navy);
    color: #c9dae4;
    padding: 40px 0 20px;
    margin-top: 24px;
}
.tm-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
}
.tm-footer a { color: #e7f1f6; text-decoration: none; display: block; margin: 6px 0; }
.tm-footer-brand img { height: 40px; width: auto; }
.tm-footer h4 { color: #fff; margin: 0 0 8px; }
.tm-copy { text-align: center; opacity: .7; font-size: 13px; margin-top: 24px; }
.tm-form-wrap { max-width: 560px; }
.tm-form { display: grid; gap: 12px; }
.tm-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.tm-form input, .tm-form textarea, .tm-form select {
    font: inherit;
    padding: 10px 12px;
    border: 1px solid var(--tm-line);
    border-radius: 8px;
}
.tm-captcha { max-width: 180px; border-radius: 6px; }
.tm-flash {
    background: #e7f6ee;
    border: 1px solid #9dceb0;
    color: #1f5b38;
    padding: 10px 12px;
    border-radius: 8px;
}
.tm-flash-error { background: #fdeceb; border-color: #e8a9a3; color: #7a2e28; }
.tm-product-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tm-product-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--tm-line);
    border-radius: 8px;
    background: #fff;
}
.tm-product-list a { color: var(--tm-navy); font-weight: 700; text-decoration: none; }
.tm-empty { color: #607787; }
.tm-prose { margin: 16px 0; max-width: 62ch; }
.tm-pager { margin-top: 20px; }
body.tm-embed {
    background: #fff;
    min-height: 100%;
}
body.tm-embed main { min-height: auto; }
.tm-section-embed { padding: 18px 0 28px; }
.tm-section-embed .tm-wrap { width: min(560px, calc(100% - 28px)); }
.tm-section-embed h1 { font-size: 1.45rem; margin-top: 0; }
.fancybox__container { --fancybox-bg: rgba(11, 31, 51, 0.72); }
.fancybox__content { padding: 0; }
@media (max-width: 720px) {
    .tm-footer-grid { grid-template-columns: 1fr; }
    .tm-hero h1 { max-width: none; }
}
