/* Styles for the About, New Machines and Used Machines pages.
   Their original CSS lived in the Astra theme's "Additional CSS" and was
   lost when the site moved to Storefront, so the pages rendered unstyled. */

/* ── shared ── */
.entry-content .mi-eyebrow,
.entry-content .mi-section-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #ff7a2b;
}
.entry-content .mi-accent { color: #ff7a2b; }
.entry-content .mi-section-head { text-align: center; margin-bottom: 24px; }
.entry-content .mi-section-head h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: #0d1f3c;
}
.entry-content .mi-btn,
.entry-content .mi-btn-primary,
.entry-content .mi-btn-secondary {
    display: inline-block;
    padding: 13px 26px;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: none !important;
}
.entry-content .mi-btn-primary { background: #ff7a2b; color: #fff !important; }
.entry-content .mi-btn-primary:hover { background: #e9651a; }
.entry-content .mi-btn-secondary { background: #25d366; color: #fff !important; }
.entry-content .mi-btn-secondary:hover { background: #1fb457; }

/* ── New / Used Machines catalogue ── */
.entry-content .mi-catalog-hero { padding: 8px 0 4px; }
.entry-content .mi-page-title {
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    color: #0d1f3c;
}
.entry-content .mi-catalog-hero p {
    max-width: 640px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
    color: #4a5b75;
}
.entry-content .mi-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 28px 0;
}
.entry-content a.mi-cat-card {
    position: relative;
    display: block;
    min-height: 170px;
    overflow: hidden;
    border-radius: 12px;
    background: #0d1f3c;
    text-decoration: none !important;
    box-shadow: 0 2px 10px rgba(13, 31, 60, .10) !important;
    transition: transform .2s, box-shadow .2s;
}
.entry-content a.mi-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(13, 31, 60, .20) !important;
}
.entry-content .mi-cat-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.entry-content .mi-cat-empty .mi-cat-img { background: linear-gradient(135deg, #0d1f3c, #1c3a66); }
.entry-content .mi-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 31, 60, .15) 0%, rgba(13, 31, 60, .90) 100%);
}
.entry-content .mi-cat-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 40px 16px 16px;
}
.entry-content .mi-cat-content h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}
.entry-content .mi-cat-count { font-size: 13px; font-weight: 600; color: #ffb37a; }
.entry-content .mi-cat-arrow {
    position: absolute;
    right: 16px;
    bottom: 16px;
    font-size: 18px;
    color: #fff;
}
.entry-content .mi-section-foot { margin: 8px 0 36px; text-align: center; }
.entry-content .mi-info-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 48px;
    padding: 22px;
    border: 1px solid #e2e8f3;
    border-radius: 12px;
    background: #f8fafc;
}
.entry-content .mi-info-item { text-align: center; }
.entry-content .mi-info-label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    color: #6b7c93;
}
.entry-content .mi-info-item strong { font-size: 15px; color: #0d1f3c; }

/* ── About ── */
.entry-content .mi-about-page { padding-bottom: 48px; }
.entry-content .mi-about-hero { padding: 8px 0 28px; text-align: center; }
.entry-content .mi-about-h1 {
    margin: 0 0 16px;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.15;
    color: #0d1f3c;
}
.entry-content .mi-about-lead {
    max-width: 680px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.65;
    color: #4a5b75;
}
.entry-content .mi-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 8px 0 44px;
    padding: 26px 18px;
    border-radius: 14px;
    background: #0d1f3c;
}
.entry-content .mi-stat { text-align: center; }
.entry-content .mi-stat-num { font-size: 30px; font-weight: 800; line-height: 1.1; color: #ff7a2b; }
.entry-content .mi-stat-label { margin-top: 4px; font-size: 13px; color: #c8d4e6; }
.entry-content .mi-two-col {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 48px;
}
.entry-content .mi-story-text h2 {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: #0d1f3c;
}
.entry-content .mi-story-text p { line-height: 1.7; color: #3b4a63; }
.entry-content .mi-story-card {
    padding: 26px;
    border: 1px solid #e2e8f3;
    border-left: 4px solid #ff7a2b;
    border-radius: 12px;
    background: #f8fafc;
}
.entry-content .mi-story-card h3 { margin: 10px 0 8px; font-size: 18px; font-weight: 700; color: #0d1f3c; }
.entry-content .mi-story-card p { margin: 0 0 12px; font-style: italic; line-height: 1.65; color: #3b4a63; }
.entry-content .mi-signature { font-size: 14px; font-weight: 700; color: #0d1f3c; }
.entry-content .mi-values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}
.entry-content .mi-value-card {
    padding: 22px;
    border: 1px solid #e2e8f3;
    border-radius: 12px;
    background: #fff;
}
.entry-content .mi-value-num { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: #ff7a2b; }
.entry-content .mi-value-card h3 { margin: 6px 0 8px; font-size: 18px; font-weight: 700; color: #0d1f3c; }
.entry-content .mi-value-card p { margin: 0; line-height: 1.6; color: #4a5b75; }
.entry-content .mi-about-cta {
    padding: 38px 24px;
    border-radius: 14px;
    background: #0d1f3c;
    text-align: center;
}
.entry-content .mi-about-cta h2 { margin: 0 0 8px; font-size: 26px; font-weight: 800; color: #fff; }
.entry-content .mi-about-cta p { margin: 0 0 20px; color: #c8d4e6; }
.entry-content .mi-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

@media (max-width: 768px) {
    .entry-content .mi-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .entry-content .mi-info-band,
    .entry-content .mi-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .entry-content .mi-two-col,
    .entry-content .mi-values-grid { grid-template-columns: 1fr; }
    .entry-content .mi-about-h1,
    .entry-content .mi-page-title { font-size: 28px; }
    .entry-content .mi-section-head h2,
    .entry-content .mi-story-text h2 { font-size: 24px; }
}
@media (max-width: 420px) {
    .entry-content .mi-cat-grid { grid-template-columns: 1fr; }
    .entry-content a.mi-cat-card { min-height: 130px; }
}
