/* ===========================================
 * AC Medics Timeline — Stylesheet
 * Matches PDF layout for past-performance page
 * =========================================== */

/* ---------- HERO ---------- */
.acmt-hero {
    position: relative;
    background: linear-gradient(135deg, #0a2540 0%, #103a66 100%);
    color: #fff;
    padding: 80px 40px;
    overflow: hidden;
}

.acmt-hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 100px;
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #fff;
}

.acmt-hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    margin: 0 0 18px;
    letter-spacing: -1px;
}

.acmt-hero-highlight { color: #5fbef7; }

.acmt-hero-desc {
    max-width: 680px;
    font-size: 15px;
    line-height: 1.6;
    color: #c5d3e0;
    margin: 0 0 36px;
}

.acmt-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.acmt-stat {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 22px 20px;
    backdrop-filter: blur(6px);
}

.acmt-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #5fbef7;
    margin-bottom: 6px;
    line-height: 1.2;
}

.acmt-stat-label {
    font-size: 11px;
    letter-spacing: 1.2px;
    color: #9bb1c5;
    font-weight: 600;
}

/* ---------- PROJECT (TIMELINE ITEM) ---------- */
.acmt-project {
    position: relative;
    background: #f3f7fb;
    padding: 40px 20px;
}

.acmt-top-media {
    margin-bottom: 24px;
    text-align: center;
}
.acmt-top-media img,
.acmt-top-media video,
.acmt-top-media iframe { max-width: 100%; display: inline-block; }
.acmt-top-media i { color: #1c8ad6; }

.acmt-project-head {
    margin-bottom: 24px;
    padding: 0 20px;
}

.acmt-project-num {
    font-size: 11px;
    letter-spacing: 2px;
    color: #1c8ad6;
    font-weight: 700;
    margin-bottom: 8px;
}

.acmt-project-title {
    font-size: 32px;
    font-weight: 800;
    color: #0a2540;
    margin: 0 0 6px;
    line-height: 1.2;
}

.acmt-project-sub {
    font-size: 14px;
    color: #5a6b7c;
}

.acmt-project-grid {
    display: grid;
    gap: 40px;
    align-items: start;
    padding: 0 20px;
}

/* Left side info rows */
.acmt-info-row {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.acmt-info-icon {
    flex: 0 0 auto;
    width: 22px;
    text-align: center;
    padding-top: 2px;
}
.acmt-info-icon i,
.acmt-info-icon svg { color: #1c8ad6; font-size: 14px; width: 14px; height: 14px; }

.acmt-info-text { flex: 1; min-width: 0; }

.acmt-info-label {
    font-size: 11px;
    letter-spacing: 1px;
    color: #8a9bab;
    font-weight: 600;
    margin-bottom: 4px;
}

.acmt-info-value {
    font-size: 14px;
    color: #0a2540;
    line-height: 1.5;
    font-weight: 500;
}

/* Center line */
.acmt-line-col {
    position: relative;
    align-self: stretch;
    display: flex;
    justify-content: center;
}

.acmt-line-wrapper {
    position: relative;
    width: 12px;
    height: 100%;
    min-height: 100%;
    display: flex;
    justify-content: center;
}

.acmt-line-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: #cfd9e3;
    border-radius: 2px;
}

.acmt-line-fill {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0;
    background: #1c8ad6;
    border-radius: 2px;
    transition: height 0.1s linear;
    will-change: height;
}

.acmt-line-dot {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1c8ad6;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(28,138,214,0.15);
}

/* Right side card */
.acmt-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(10,37,64,0.05);
}

.acmt-card-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #1c8ad6;
    font-weight: 700;
    margin-bottom: 12px;
}

.acmt-card-heading-2 { margin-top: 22px; }

.acmt-card-heading i,
.acmt-card-heading svg { color: #1c8ad6; font-size: 14px; }

.acmt-card-body {
    font-size: 14px;
    line-height: 1.65;
    color: #3a4a5a;
    margin-bottom: 6px;
}
.acmt-card-body p { margin: 0 0 10px; }
.acmt-card-body p:last-child { margin-bottom: 0; }

.acmt-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.acmt-bullets li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #3a4a5a;
}

.acmt-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1c8ad6;
}

/* ---------- QUOTE ---------- */
.acmt-quote {
    background: #dbeaf6;
    padding: 60px 30px;
    text-align: center;
}

.acmt-quote-eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    color: #1c8ad6;
    font-weight: 700;
    margin-bottom: 18px;
}

.acmt-quote-text {
    font-size: 28px;
    font-weight: 800;
    color: #0a2540;
    line-height: 1.35;
    max-width: 800px;
    margin: 0 auto 18px;
}

.acmt-quote-caption {
    font-size: 13px;
    color: #3a4a5a;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 24px;
}

.acmt-quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: #1c8ad6;
    color: #fff;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.2s;
}
.acmt-quote-btn:hover { opacity: 0.92; color: #fff; }

/* ---------- CTA ---------- */
.acmt-cta {
    background: #061425;
    padding: 50px 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.acmt-cta-eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    color: #5fbef7;
    font-weight: 700;
    margin-bottom: 10px;
}

.acmt-cta-heading {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.25;
    max-width: 520px;
}

.acmt-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.acmt-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.acmt-cta-btn-primary { background: #1c8ad6; color: #fff; }
.acmt-cta-btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}
.acmt-cta-btn:hover { opacity: 0.92; }

/* =========================================================
 * RESPONSIVE — Mobile-first refinements
 * ========================================================= */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .acmt-hero { padding: 64px 32px; }
    .acmt-hero-title { font-size: 44px; }
    .acmt-hero-desc { font-size: 14px; }
    .acmt-project-title { font-size: 28px; }
    .acmt-stat-value { font-size: 20px; }
    .acmt-cta-heading { font-size: 24px; }
}

/* Tablet portrait (820px and below) — switch to 2-col stats, keep timeline */
@media (max-width: 820px) {
    .acmt-stats-grid { grid-template-columns: 1fr 1fr; }
    .acmt-quote-text { font-size: 24px; }
    .acmt-cta {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .acmt-cta-actions { width: 100%; }
    .acmt-cta-btn { flex: 1; justify-content: center; min-width: 0; }
}

/* MOBILE (767px and below) — timeline becomes LEFT-aligned vertical line */
@media (max-width: 767px) {
    .acmt-hero {
        padding: 44px 18px;
    }
    .acmt-hero-badge {
        font-size: 10px;
        padding: 5px 11px;
        letter-spacing: 1.2px;
    }
    .acmt-hero-title {
        font-size: 30px;
        line-height: 1.1;
        letter-spacing: -0.5px;
    }
    .acmt-hero-desc {
        font-size: 13px;
        line-height: 1.55;
        margin-bottom: 26px;
    }

    /* Stats: vertical card list on phones */
    .acmt-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .acmt-stat {
        padding: 16px 16px;
    }
    .acmt-stat-value { font-size: 18px; }
    .acmt-stat-label { font-size: 10px; letter-spacing: 1px; }

    /* PROJECT — convert to LEFT-side timeline (line stays visible on mobile) */
    .acmt-project {
        padding: 26px 16px 26px 16px;
    }
    .acmt-project-head {
        padding: 0 0 0 28px;
        margin-bottom: 18px;
    }
    .acmt-project-num { font-size: 10px; letter-spacing: 1.6px; margin-bottom: 6px; }
    .acmt-project-title {
        font-size: 22px;
        line-height: 1.2;
        letter-spacing: -0.3px;
    }
    .acmt-project-sub { font-size: 13px; }

    /* Stack columns. Line stays visible on the LEFT, content flows beside it. */
    .acmt-project-grid {
        grid-template-columns: 28px 1fr !important;
        gap: 16px !important;
        padding: 0;
        position: relative;
    }

    /* When line is OFF, fall back to full-width single column */
    .acmt-project:not(.has-line) .acmt-project-grid {
        grid-template-columns: 1fr !important;
        padding: 0 4px;
    }

    /* The line column spans BOTH stacked rows on mobile */
    .acmt-project.has-line.has-left.has-right .acmt-line-col {
        grid-row: 1 / span 2;
        grid-column: 1;
    }
    .acmt-project.has-line .acmt-line-col {
        display: flex;
    }
    .acmt-line-wrapper { width: 14px; }

    /* Left section sits in column 2, row 1 */
    .acmt-left {
        grid-column: 2;
    }

    /* Right section sits in column 2, row 2 */
    .acmt-right {
        grid-column: 2;
        margin-top: 4px;
    }

    /* If only ONE side is enabled, line stays at column 1, content at column 2 */
    .acmt-project.has-line.has-left:not(.has-right) .acmt-left,
    .acmt-project.has-line:not(.has-left).has-right .acmt-right {
        grid-column: 2;
    }

    /* Info rows tighter on mobile */
    .acmt-info-row {
        margin-bottom: 14px;
        gap: 10px;
    }
    .acmt-info-icon { width: 18px; }
    .acmt-info-icon i,
    .acmt-info-icon svg { font-size: 13px; width: 13px; height: 13px; }
    .acmt-info-label { font-size: 10px; letter-spacing: 0.8px; }
    .acmt-info-value { font-size: 13px; line-height: 1.45; }

    /* Card */
    .acmt-card {
        padding: 16px 14px;
        border-radius: 10px;
    }
    .acmt-card-heading {
        font-size: 11px;
        letter-spacing: 1.2px;
        margin-bottom: 10px;
    }
    .acmt-card-heading-2 { margin-top: 16px; }
    .acmt-card-body {
        font-size: 13px;
        line-height: 1.6;
    }
    .acmt-bullets li {
        font-size: 13px;
        line-height: 1.55;
        padding-left: 14px;
        margin-bottom: 8px;
    }
    .acmt-bullets li::before {
        top: 8px;
        width: 4px;
        height: 4px;
    }

    /* Top media smaller on mobile */
    .acmt-top-media { margin-bottom: 18px; }

    /* QUOTE */
    .acmt-quote {
        padding: 36px 18px;
    }
    .acmt-quote-eyebrow {
        font-size: 10px;
        letter-spacing: 1.6px;
        margin-bottom: 14px;
    }
    .acmt-quote-text {
        font-size: 19px;
        line-height: 1.4;
        margin-bottom: 14px;
    }
    .acmt-quote-caption {
        font-size: 12px;
        line-height: 1.55;
        margin-bottom: 20px;
    }
    .acmt-quote-btn {
        padding: 11px 18px;
        font-size: 13px;
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* CTA */
    .acmt-cta {
        padding: 32px 20px;
        gap: 18px;
    }
    .acmt-cta-eyebrow { font-size: 10px; letter-spacing: 1.6px; }
    .acmt-cta-heading {
        font-size: 20px;
        line-height: 1.25;
    }
    .acmt-cta-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .acmt-cta-btn {
        width: 100%;
        padding: 13px 20px;
        font-size: 13px;
        justify-content: center;
    }
}

/* SMALL MOBILE (480px and below) — extra tight */
@media (max-width: 480px) {
    .acmt-hero {
        padding: 36px 14px;
    }
    .acmt-hero-title { font-size: 26px; }
    .acmt-hero-desc { font-size: 12.5px; }

    .acmt-project { padding: 22px 12px; }
    .acmt-project-head { padding-left: 24px; }
    .acmt-project-title { font-size: 19px; }
    .acmt-project-sub { font-size: 12px; }

    .acmt-project-grid {
        grid-template-columns: 22px 1fr !important;
        gap: 12px !important;
    }

    .acmt-card { padding: 14px 12px; }
    .acmt-card-body, .acmt-bullets li { font-size: 12.5px; }

    .acmt-quote-text { font-size: 17px; }
    .acmt-cta-heading { font-size: 18px; }

    .acmt-stat-value { font-size: 17px; }
}

/* TINY SCREENS (360px and below) */
@media (max-width: 360px) {
    .acmt-hero-title { font-size: 23px; }
    .acmt-project-title { font-size: 18px; }
    .acmt-quote-text { font-size: 16px; }
    .acmt-cta-heading { font-size: 17px; }
}

/* Landscape phones — make sure long titles don't break layout */
@media (max-width: 767px) and (orientation: landscape) {
    .acmt-hero-title { font-size: 32px; }
    .acmt-stats-grid { grid-template-columns: 1fr 1fr; }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
    .acmt-quote-btn,
    .acmt-cta-btn {
        min-height: 44px;
    }
}
