/* ================================================================
   TMG Software Landing Page — The Mantua Group Pty Ltd
   Scoped to .tmg-sw — theme-safe, responsive
================================================================ */

.tmg-sw, .tmg-sw * { box-sizing: border-box; }

.tmg-sw {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #111;
    line-height: 1.55;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- HERO ---------- */
.tmg-sw-hero {
    background: #111;
    color: #fff;
    padding: 56px 44px 48px;
    border-radius: 3px;
    margin-bottom: 36px;
    position: relative;
}
.tmg-sw-hero-eyebrow {
    font-size: 12px;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: #bbb;
    font-weight: 700;
    margin-bottom: 14px;
}
.tmg-sw-hero-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.05;
    margin: 0 0 18px;
    letter-spacing: -1px;
    color: #fff;
}
.tmg-sw-hero-lede {
    font-size: 17px;
    color: #ddd;
    max-width: 820px;
    margin: 0 0 32px;
    font-weight: 300;
}
.tmg-sw-hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid #333;
}
.tmg-sw-stat-n {
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}
.tmg-sw-stat-l {
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
}

/* ---------- JUMP NAV ---------- */
.tmg-sw-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 44px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}
.tmg-sw-jump-link {
    display: inline-block;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #444;
    background: #f3f3f3;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.15s ease;
}
.tmg-sw-jump-link:hover {
    background: #111;
    color: #fff;
}

/* ---------- GROUPS ---------- */
.tmg-sw-group {
    margin-bottom: 56px;
    scroll-margin-top: 80px;
}
.tmg-sw-group-head {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #111;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.tmg-sw-group-title {
    font-size: 26px;
    font-weight: 900;
    margin: 0;
    color: #111;
    letter-spacing: -0.3px;
}
.tmg-sw-group-tag {
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
}

/* ---------- GRID ---------- */
.tmg-sw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 900px) {
    .tmg-sw-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .tmg-sw-grid { grid-template-columns: 1fr; }
}

/* ---------- CARDS ---------- */
.tmg-sw-card {
    display: flex;
    flex-direction: column;
    padding: 22px 22px 18px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    text-decoration: none;
    color: #111;
    transition: all 0.18s ease;
    min-height: 158px;
    position: relative;
}
.tmg-sw-card:hover {
    border-color: #111;
    background: #111;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}
.tmg-sw-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: inherit;
}
.tmg-sw-card-desc {
    font-size: 13.5px;
    font-weight: 300;
    line-height: 1.45;
    color: #555;
    flex-grow: 1;
    margin-bottom: 14px;
}
.tmg-sw-card:hover .tmg-sw-card-desc { color: #ccc; }
.tmg-sw-card-cta {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #111;
    margin-top: auto;
}
.tmg-sw-card:hover .tmg-sw-card-cta { color: #fff; }
.tmg-sw-arrow {
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.18s ease;
}
.tmg-sw-card:hover .tmg-sw-arrow { transform: translateX(4px); }

/* ---------- CTA BAND ---------- */
.tmg-sw-cta {
    background: #f5f5f5;
    border-left: 4px solid #111;
    padding: 32px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin: 56px 0 36px;
}
.tmg-sw-cta h3 {
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 8px;
    color: #111;
}
.tmg-sw-cta p {
    margin: 0;
    color: #444;
    font-size: 14.5px;
    max-width: 620px;
    font-weight: 300;
}
.tmg-sw-cta-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.tmg-sw-cta-btn {
    display: inline-block;
    padding: 13px 26px;
    background: #111;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-radius: 2px;
    transition: background 0.15s ease;
}
.tmg-sw-cta-btn:hover { background: #444; }
.tmg-sw-cta-phone {
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

/* ---------- FOOTER ---------- */
.tmg-sw-footer {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e5e5e5;
    font-size: 12px;
    color: #777;
    line-height: 1.7;
    text-align: center;
}

/* ---------- MOBILE HERO ---------- */
@media (max-width: 640px) {
    .tmg-sw-hero { padding: 36px 24px 30px; }
    .tmg-sw-hero-title { font-size: 38px; }
    .tmg-sw-hero-lede { font-size: 15px; }
    .tmg-sw-hero-stats { gap: 28px; }
    .tmg-sw-stat-n { font-size: 30px; }
    .tmg-sw-group-title { font-size: 22px; }
    .tmg-sw-cta { padding: 24px; }
    .tmg-sw-cta-right { align-items: flex-start; }
}
