/*
 * MotorCarrierPros.com public/front-end stylesheet.
 * Partner/public ownership boundary: homepage hero, public resource components,
 * and future anonymous-visitor presentation belong here.
 * Protected application styling remains in public/css/style.css.
 */

.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #12335a;
    padding: 12px 16px 0;
}

.home-hero-photo {
    display: flex;
    justify-content: center;
    width: 100%;
}

.home-hero-photo picture {
    display: contents;
}

.home-hero-photo img {
    display: block;
    max-width: 100%;
    max-height: min(68vh, 700px);
    width: auto;
    height: auto;
}

.home-hero-scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 16px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    animation: home-hero-bounce 2s infinite;
}

.home-hero-scroll-arrow {
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 640px) {
    .home-hero {
        padding: 8px 12px 0;
    }

    .home-hero-photo img {
        max-height: min(52vh, 420px);
    }
}

@keyframes home-hero-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ============================================================
   Public resource page content components
   Added 2026-08-10: real content for CSA/SMS and DOT/MC Numbers
   pages, wired up through content/<slug>.php + pages/_resource-
   template.php. Purely additive — reuses existing color tokens
   (#12335a navy, #d8a31a gold, #d5dce8 border) and does not
   modify any rule above this comment block.
   ============================================================ */

.resource-section {
    margin-top: 28px;
}

.resource-section h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.resource-checklist {
    list-style: none;
    margin: 0;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #d5dce8;
    border-radius: 12px;
}

.resource-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.resource-checklist li:last-child {
    border-bottom: none;
}

.resource-checklist .check-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #dcfce7;
    color: #14532d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
}

.resource-table-wrap {
    overflow-x: auto;
    margin-top: 6px;
}

.resource-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #d5dce8;
    border-radius: 12px;
    overflow: hidden;
}

.resource-table th,
.resource-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.resource-table th {
    background: #12335a;
    color: #ffffff;
    font-weight: 700;
}

.resource-table tr:last-child td {
    border-bottom: none;
}

.resource-accordion {
    border: 1px solid #d5dce8;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    background: #ffffff;
}

.resource-accordion summary {
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 700;
    color: #12335a;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resource-accordion summary::-webkit-details-marker {
    display: none;
}

.resource-accordion summary::after {
    content: "+";
    color: #d8a31a;
    font-size: 18px;
}

.resource-accordion[open] summary::after {
    content: "\2212";
}

.resource-accordion .resource-accordion-body {
    padding: 0 16px 16px 16px;
    color: #475569;
    line-height: 1.55;
}

.resource-related {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.resource-related a {
    background: #eef2f7;
    border: 1px solid #d5dce8;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    text-decoration: none;
    color: #12335a;
    font-weight: 600;
}

.resource-related a:hover {
    background: #ffffff;
    border-color: #12335a;
}

.resource-disclaimer {
    margin-top: 24px;
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

.resource-external-link {
    font-size: 13px;
    margin-top: 4px;
}
/* ============================================================
   Free Resources link list (added 2026-08-10, later same day)
   ============================================================ */

.resource-free-links {
    margin-top: 24px;
}

.resource-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.resource-link-list li {
    background: #ffffff;
    border: 1px solid #d5dce8;
    border-radius: 12px;
    padding: 14px 16px;
}

.resource-link-list a {
    color: #12335a;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
}

.resource-link-list a:hover {
    text-decoration: underline;
}

.resource-link-source {
    display: inline-block;
    margin-left: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8a6410;
    background: #fdf3d9;
    border-radius: 999px;
    padding: 2px 8px;
    vertical-align: middle;
}

.resource-link-list p {
    margin: 6px 0 0 0;
    font-size: 13px;
    color: #64748b;
}
