/*
 * The Trench Flight Controllers
 * Front-end CSS exposed for easy theme/plugin overrides.
 * Shortcode example: [trench_flight_control_positions columns="3"]
 */

.trench-fc-grid{
    --tfc-columns:3;
    --tfc-grid-gap:20px;
    --tfc-card-bg:#304d5f;
    --tfc-card-bg-hover:#3a5d73;
    --tfc-card-border:rgba(79,166,224,.35);
    --tfc-card-border-hover:#c89b48;
    --tfc-card-text:#fff;
    --tfc-card-accent:#c89b48;

    display:grid;
    grid-template-columns:repeat(var(--tfc-columns),minmax(0,1fr));
    gap:var(--tfc-grid-gap);
    margin:30px 0;
}

.trench-fc-card{
    background:var(--tfc-card-bg);
    border:1px solid var(--tfc-card-border);
    border-radius:8px;
    padding:22px;
    min-height:140px;
    color:var(--tfc-card-text);
    text-decoration:none;
    display:flex;
    flex-direction:column;
    transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,background .22s ease;
    cursor:pointer;
    text-align:left;
    width:100%;
    font:inherit;
}

.trench-fc-card:hover,
.trench-fc-card:focus{
    transform:translateY(-4px);
    border-color:var(--tfc-card-border-hover);
    background:var(--tfc-card-bg-hover);
    box-shadow:0 8px 22px rgba(0,0,0,.28);
    outline:none;
}

.trench-fc-card-title{
    color:var(--tfc-card-text);
    font-family:'Bebas Neue','Open Sans',Arial,sans-serif;
    font-size:1.8rem;
    line-height:1;
    letter-spacing:.5px;
    text-transform:uppercase;
    margin-bottom:12px;
}

.trench-fc-card-call{
    color:var(--tfc-card-accent);
    font-family:'Bebas Neue','Open Sans',Arial,sans-serif;
    font-size:1.55rem;
    line-height:1;
    letter-spacing:.5px;
    text-transform:uppercase;
    margin-top:auto;
}

.trench-fc-card-programs{
    margin-top:12px;
    color:#c0c8cf;
    font-size:.85rem;
    line-height:1.3;
}

.trench-fc-hidden{
    display:none;
}

/* Modal */
.trench-fc-modal{
    position:fixed;
    inset:0;
    z-index:999999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:28px;
}

.trench-fc-modal.is-open{
    display:flex;
}

.trench-fc-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.78);
    backdrop-filter:blur(4px);
}

.trench-fc-modal-panel{
    position:relative;
    box-sizing:border-box;
    width:min(1200px,94vw);
    max-width:1200px;
    max-height:86vh;
    overflow:auto;
    margin:0 auto;
    background:#020f19;
    border:1px solid rgba(200,155,72,.58);
    box-shadow:0 25px 90px rgba(0,0,0,.75);
    border-radius:10px;
    color:#f6f0e6;
}

.trench-fc-modal-inner{
    box-sizing:border-box;
    width:100%;
    max-width:none;
    padding:0;
}

.trench-fc-modal-close{
    position:sticky;
    top:12px;
    float:right;
    z-index:5;
    margin:12px 12px 0 0;
    width:44px;
    height:44px;
    border-radius:999px;
    border:1px solid rgba(2,15,25,.4);
    background:#c89b48;
    color:#020f19;
    font-size:25px;
    line-height:1;
    cursor:pointer;
    box-shadow:0 4px 14px rgba(0,0,0,.35);
}

.trench-fc-modal-close:hover,
.trench-fc-modal-close:focus{
    background:#e0b661;
    outline:none;
}

body.trench-fc-modal-open{
    overflow:hidden;
}

/* Detail view, used inside shortcode and modal */
.trench-fc-detail{
    box-sizing:border-box;
    width:100%;
    max-width:none;
    background:#020f19;
    color:#f6f0e6;
    padding:34px 38px;
    border-radius:4px;
    font-size:18px;
    line-height:1.55;
}

.trench-fc-modal .trench-fc-detail{
    border-radius:0;
    background:#020f19;
    color:#f6f0e6;
}

.trench-fc-detail-head{
    margin:0 0 24px;
}

.trench-fc-detail h3{
    margin:0 52px 12px 0;
    color:#f6f0e6;
    font-size:2.35rem;
    line-height:1.05;
    font-weight:800;
}

.trench-fc-call{
    color:#2ea3f2;
    font-weight:900;
}

.trench-fc-programs{
    margin:8px 0 22px;
    color:#c89b48;
    font-size:15px;
    line-height:1.35;
}

.trench-fc-programs strong{
    color:#c89b48;
}

.trench-fc-description{
    color:#f6f0e6;
}

.trench-fc-description p{
    margin:0 0 1em;
}

.trench-fc-description a{
    color:#c89b48;
}

.trench-fc-description strong,
.trench-fc-mpsr strong{
    color:#f6f0e6;
}

.trench-fc-detail-logo{
    float:right;
    max-width:150px;
    height:auto;
    margin:0 0 22px 30px;
}

.trench-fc-mpsr{
    clear:both;
    margin-top:18px;
}

.trench-fc-mpsr h4{
    color:#c89b48;
    font-size:1.15rem;
    margin:16px 0 10px;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.trench-fc-mpsr ul{
    margin:0 0 0 1.2em;
    padding:0;
}

.trench-fc-mpsr li{
    margin-bottom:8px;
}

.trench-fc-mpsr li::marker{
    color:#2ea3f2;
}

@media(max-height:720px){
    .trench-fc-modal{
        align-items:flex-start;
    }
}

@media(max-width:980px){
    .trench-fc-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .trench-fc-detail h3{
        font-size:2rem;
    }
}

@media(max-width:700px){
    .trench-fc-grid{
        grid-template-columns:1fr;
    }

    .trench-fc-modal{
        padding:10px;
        align-items:flex-start;
    }

    .trench-fc-modal-panel{
        width:calc(100vw - 20px);
        max-height:calc(100vh - 20px);
    }

    .trench-fc-detail{
        padding:26px 22px;
        font-size:16px;
    }

    .trench-fc-detail h3{
        font-size:1.75rem;
    }

    .trench-fc-detail-logo{
        float:none;
        display:block;
        margin:12px 0 18px;
        max-width:120px;
    }
}
