/* =====================================================
   FreightRun - Modern Pages Stylesheet
   File: Content/modern/pages/freightrun-pages.css

   Fonts: add this link tag once in your page <head>:
   <link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700&family=Figtree:wght@400;500;600&display=swap" rel="stylesheet">

   HOW TO USE:
   Wrap any page body content with <div class="frpage">
   to opt that page into these styles. Other pages are
   completely unaffected. Upgrade one page at a time.

   For page-specific tweaks add a second class:
     <div class="frpage frpage-about">
     <div class="frpage frpage-services">
   Then add .frpage-about rules at the bottom of this file.
   ===================================================== */

/* ---- Brand tokens (match freightrun-blog.css exactly) ---- */

.frpage {
    --fr-navy: #0D2137;
    --fr-blue: #1565C0;
    --fr-blue-dark: #0e4a8e;
    --fr-bg-soft: #f7f9fc;
    --fr-border: #dde3ec;
    --fr-text: #1a2332;
    --fr-text-mid: #3d4f63;
    --fr-text-muted: #5e7082;
}

/* =====================================================
   SHARED STYLES
   ===================================================== */

/* ---- Base ---- */

.frpage {
    font-family: 'Figtree', -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #1a2332;
}

    /* Override site global paragraph/span rules */
    .frpage p,
    .frpage span,
    .frpage label,
    .frpage li {
        font-family: 'Figtree', -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif !important;
        color: #1a2332 !important;
        font-size: 17px !important;
        line-height: 1.8 !important;
    }

    .frpage p {
        margin-bottom: 1.25rem !important;
    }

    /* ---- Headings ---- */

    .frpage h1,
    .frpage h2,
    .frpage h3,
    .frpage .fr-page-h1,
    .frpage .fr-page-h2 {
        font-family: 'Barlow Condensed', 'Figtree', sans-serif !important;
        color: #0D2137 !important;
        letter-spacing: -0.01em;
        text-transform: none !important;
    }

    .frpage h1,
    .frpage .fr-page-h1 {
        font-size: 2.6rem !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
        margin-top: 1.5rem !important;
        margin-bottom: 1.25rem !important;
    }

    .frpage h2,
    .frpage .fr-page-h2 {
        font-size: 1.75rem !important;
        font-weight: 700 !important;
        margin-top: 2.75rem !important;
        margin-bottom: 1rem !important;
        padding-bottom: 0.5rem;
        position: relative;
        display: block !important;
        border-bottom: none !important;
    }

        /* Blue accent bar under h2 - matches blog */
        .frpage h2::after,
        .frpage .fr-page-h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 2.25rem;
            height: 3px;
            background: #1565C0;
            border-radius: 2px;
        }

    .frpage h3 {
        font-family: 'Figtree', sans-serif !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        color: #5e7082 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.07em !important;
        margin-top: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }

/* ---- CTA Button ---- */

.frpage-cta {
    display: inline-block;
    background-color: #1565C0 !important;
    color: #ffffff !important;
    font-family: 'Figtree', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 0.7rem 1.6rem;
    border-radius: 6px;
    text-decoration: none !important;
    margin: 0.5rem 0;
    letter-spacing: 0.01em;
    text-transform: none !important;
    transition: background-color 0.2s ease;
}

    .frpage-cta strong,
    .frpage-cta span {
        color: #ffffff !important;
        font-size: inherit !important;
        line-height: inherit !important;
        font-family: inherit !important;
        text-transform: none !important;
    }

    .frpage-cta:hover {
        background-color: #0e4a8e !important;
        color: #fff !important;
        text-decoration: none !important;
    }

/* ---- Intro layout: text left, video right ---- */
/* Uses flexbox via inline style on the wrapper div in HTML
   so the site grid system cannot override it */

.frpage-intro-left {
    flex: 1;
    min-width: 0;
}

.frpage-intro-right {
    flex: 0 0 340px;
    width: 340px;
}

    .frpage-intro-right iframe {
        width: 100%;
        height: 200px;
        border-radius: 8px;
        border: 1px solid #dde3ec;
        display: block;
    }

/* ---- Feature Cards ---- */

.frpage-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

    .frpage-features .fr-page-text,
    .frpage-features p {
        background: #f7f9fc !important;
        border: 1px solid #dde3ec !important;
        border-top: 3px solid #1565C0 !important;
        border-radius: 0 0 8px 8px !important;
        padding: 1.1rem 1.25rem !important;
        margin-bottom: 0 !important;
        font-size: 16px !important;
    }

        .frpage-features .fr-page-text strong,
        .frpage-features p strong {
            display: block;
            font-family: 'Barlow Condensed', sans-serif !important;
            font-size: 1.25rem !important;
            font-weight: 700 !important;
            color: #0D2137 !important;
            margin-bottom: 0.35rem;
            letter-spacing: 0.01em;
            text-transform: none !important;
        }

/* ---- Tables ---- */

.frpage table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0.75rem 0 1.75rem !important;
    border: 1px solid #dde3ec !important;
    border-radius: 8px !important;
    overflow: hidden;
    font-family: 'Figtree', sans-serif !important;
}

    .frpage table tr:first-child {
        background-color: #0D2137 !important;
    }

        .frpage table tr:first-child td,
        .frpage table tr:first-child td p,
        .frpage table tr:first-child td span {
            color: #ffffff !important;
            font-weight: 600 !important;
            font-size: 0.8rem !important;
            text-transform: uppercase !important;
            letter-spacing: 0.1em !important;
        }

    .frpage table tr:nth-child(even) {
        background-color: #f7f9fc;
    }

    .frpage table tr:not(:first-child):hover {
        background-color: #eef4fc !important;
    }

    .frpage table td {
        padding: 0.8rem 1rem !important;
        border-bottom: 1px solid #dde3ec !important;
        font-size: 15px !important;
        line-height: 1.65 !important;
        vertical-align: middle !important;
        color: #1a2332 !important;
    }

        .frpage table td p,
        .frpage table td span {
            margin: 0 !important;
            font-size: 15px !important;
            line-height: 1.65 !important;
            color: inherit !important;
        }

        .frpage table td:first-child {
            font-weight: 600 !important;
            color: #0D2137 !important;
            width: 34%;
        }

    .frpage table tr:last-child td {
        border-bottom: none !important;
    }

/* ---- Lists ---- */

.frpage ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0.5rem 0 1.5rem !important;
}

    .frpage ul li {
        position: relative;
        padding: 0.35rem 0 0.35rem 1.5rem !important;
        line-height: 1.65 !important;
        font-size: 16px !important;
    }

        .frpage ul li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.85rem;
            width: 7px;
            height: 7px;
            background-color: #1565C0;
            border-radius: 50%;
        }

        .frpage ul li p {
            margin: 0 !important;
            display: inline;
        }

/* ---- Pill List ---- */

.frpage-pills {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.75rem !important;
    padding: 0 4px 0 0 !important;
    overflow: visible !important;
}

    .frpage-pills li {
        background: #f7f9fc;
        border: 1px solid #dde3ec;
        border-left: 3px solid #1565C0;
        border-radius: 0 6px 6px 0;
        padding: 0.4rem 1.1rem !important;
        font-size: 14.5px !important;
        font-weight: 500 !important;
        color: #0D2137 !important;
        line-height: 1.4 !important;
        white-space: nowrap;
    }

        .frpage-pills li::before {
            display: none;
        }

        .frpage-pills li p {
            font-weight: 500 !important;
            color: #0D2137 !important;
        }

/* ---- Images ---- */

.frpage img {
    max-width: 100%;
    height: auto;
}

    .frpage img.frpage-img {
        display: block;
        max-width: 600px;
        max-height: 420px;
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
        border: 1px solid #dde3ec;
        margin: 1.25rem auto 1.75rem;
    }

/* ---- Callout block ---- */

.frpage-callout {
    background: #f7f9fc;
    border-left: 3px solid #1565C0;
    border-radius: 0 6px 6px 0;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.25rem;
}

    .frpage-callout p,
    .frpage-callout span {
        margin: 0 !important;
        line-height: 1.7 !important;
        font-size: 15px !important;
        color: #1a2332 !important;
    }

/* ---- Trust badge ---- */

.frpage-trust {
    display: inline-flex;
    align-items: center;
    background: #f7f9fc;
    border: 1px solid #dde3ec;
    border-left: 3px solid #1565C0;
    border-radius: 0 6px 6px 0;
    padding: 0.65rem 1.1rem;
    margin: 1rem 0;
}

    .frpage-trust p,
    .frpage-trust span {
        margin: 0 !important;
        color: #1a2332 !important;
        font-size: 15px !important;
        font-weight: 500 !important;
    }

    .frpage-trust a {
        color: #1565C0 !important;
        text-decoration: underline;
    }

/* ---- Lead paragraph ---- */

.frpage-lead {
    font-size: 1.08rem !important;
    color: #3d4f63 !important;
    line-height: 1.85 !important;
    margin-bottom: 1.25rem !important;
}

/* ---- Responsive ---- */

@media (max-width: 860px) {
    .frpage-intro-right {
        flex: none !important;
        width: 100% !important;
    }

    .frpage-features {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .frpage h1,
    .frpage .fr-page-h1 {
        font-size: 1.75rem !important;
    }

    .frpage h2,
    .frpage .fr-page-h2 {
        font-size: 1.35rem !important;
    }

    .frpage p,
    .frpage li,
    .frpage span {
        font-size: 16px !important;
    }

    .frpage-features {
        grid-template-columns: 1fr;
    }
    /* Tables scroll horizontally on small screens */
    .frpage table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

        .frpage table td:first-child {
            width: auto;
            min-width: 120px;
        }

        .frpage table td {
            font-size: 14px !important;
            padding: 0.65rem 0.75rem !important;
        }
    /* Pills wrap to multiple rows cleanly */
    .frpage-pills {
        gap: 0.4rem !important;
    }

        .frpage-pills li {
            font-size: 13.5px !important;
        }
    /* CTA button full width on mobile */
    .frpage-cta {
        display: block !important;
        text-align: center;
        width: 100%;
    }
    /* Images full width on mobile */
    .frpage img.frpage-img {
        max-width: 100%;
        max-height: none;
    }
}

/* =====================================================
   GLOBAL SITE FIXES
   (not scoped to .frpage - fix site-wide issues)
   ===================================================== */
 



/* =====================================================
   PAGE-SPECIFIC OVERRIDES
   ===================================================== */

/* ---- About page ---- */
/* <div class="frpage frpage-about"> */

/* none needed yet */

/* ---- Services page (future) ---- */
/* .frpage-services h1 { } */
