/* ==========================================================================
   FKE Site Features — front-end styles
   Brand: red (#E10F0F-ish) + black + white. Inherits site font.
   ========================================================================== */

:root {
    --fke-red:    #E11B22;
    --fke-red-d:  #B40E14;
    --fke-ink:    #111;
    --fke-ink-2:  #333;
    --fke-muted:  #666;
    --fke-line:   #e6e6e6;
    --fke-bg:     #f7f7f7;
    --fke-radius: 6px;
}

/* ---------- Projects grid ---------- */
.fke-projects { width: 100%; }

.fke-projects__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    margin: 0 0 18px;
    padding: 16px;
    background: var(--fke-bg);
    border: 1px solid var(--fke-line);
    border-radius: var(--fke-radius);
}
.fke-projects__filters input[type="search"],
.fke-projects__filters select {
    font: inherit;
    padding: 10px 12px;
    border: 1px solid var(--fke-line);
    border-radius: var(--fke-radius);
    background: #fff;
    color: var(--fke-ink);
    min-height: 44px;
}
.fke-projects__search { flex: 2 1 280px; display: flex; }
.fke-projects__search input { width: 100%; }
.fke-projects__select { flex: 1 1 220px; display: flex; }
.fke-projects__select select { width: 100%; }

.fke-projects__submit,
.fke-projects__clear {
    font: inherit;
    padding: 10px 18px;
    border-radius: var(--fke-radius);
    cursor: pointer;
    min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none;
    border: 0;
}
.fke-projects__submit {
    background: var(--fke-red);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.fke-projects__submit:hover { background: var(--fke-red-d); }
.fke-projects__clear {
    background: #fff;
    color: var(--fke-ink-2);
    border: 1px solid var(--fke-line);
}

.fke-projects__count {
    margin: 4px 0 14px;
    color: var(--fke-muted);
    font-size: 0.95em;
}

.fke-projects__grid {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
@media (max-width: 1100px) { .fke-projects__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .fke-projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px)  { .fke-projects__grid { grid-template-columns: 1fr; } }

/* Hide WP/Divi page title on the projects shortcode page */
.fke-projects-page .entry-title,
.fke-projects-page h1.main_title,
.fke-projects-page .et_post_meta_wrapper > h1 {
    display: none !important;
}

/* Make the projects shortcode page full-width (Divi default .container is 1080px max) */
.fke-projects-page #main-content .container {
    width: 100% !important;
    max-width: 1600px !important;
    padding-left: 24px;
    padding-right: 24px;
}
.fke-projects-page #main-content .container:before {
    display: none !important;
}
.fke-projects-page #left-area {
    width: 100% !important;
    float: none !important;
}
/* Override Divi's et_pb_row max-width (1080px) on the projects page */
.fke-projects-page .et_pb_row {
    max-width: 1560px !important;
    width: 96% !important;
}
.fke-projects__card {
    background: #fff;
    border: 1px solid var(--fke-line);
    border-radius: var(--fke-radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}
.fke-projects__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.07);
}
.fke-projects__thumb img { display: block; width: 100%; height: auto; }
.fke-projects__body { padding: 16px 18px 18px; display:flex; flex-direction:column; gap:6px; }
.fke-projects__type {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--fke-red);
    padding: 4px 8px;
    border-radius: 3px;
    align-self: flex-start;
}
.fke-projects__title {
    margin: 4px 0 4px;
    font-size: 1.05em;
    line-height: 1.3;
    color: var(--fke-ink);
}
.fke-projects__meta { font-size: 0.92em; color: var(--fke-ink-2); }
.fke-projects__meta strong { color: var(--fke-ink); }
.fke-projects__excerpt { margin-top: 6px; color: var(--fke-muted); font-size: 0.94em; }

/* ---------- Additional projects (title-only list) ---------- */
.fke-projects__additional {
    margin: 36px 0 0;
    padding: 24px;
    background: var(--fke-bg);
    border: 1px solid var(--fke-line);
    border-radius: var(--fke-radius);
}
.fke-projects__additional-title {
    margin: 0 0 14px;
    font-size: 1.15em;
    color: var(--fke-ink);
    border-bottom: 2px solid var(--fke-red);
    padding-bottom: 8px;
    display: inline-block;
}
.fke-projects__list {
    list-style: none;
    margin: 0;
    padding: 0;
    column-count: 3;
    column-gap: 24px;
}
.fke-projects__list li {
    margin: 0 0 6px;
    padding: 4px 0;
    color: var(--fke-ink-2);
    font-size: 0.95em;
    break-inside: avoid;
    border-bottom: 1px dotted var(--fke-line);
}
@media (max-width: 900px) { .fke-projects__list { column-count: 2; } }
@media (max-width: 560px) { .fke-projects__list { column-count: 1; } }

.fke-projects__pagination {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin: 22px 0 0;
    justify-content: center;
}
.fke-projects__page {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 10px;
    border-radius: var(--fke-radius);
    background: #fff;
    border: 1px solid var(--fke-line);
    color: var(--fke-ink-2);
    text-decoration: none;
    font-weight: 600;
}
.fke-projects__page.is-active {
    background: var(--fke-red);
    border-color: var(--fke-red);
    color: #fff;
}

/* ---------- Clients marquee ---------- */
.fke-clients {
    width: 100%;
    padding: 36px 0;
    background: #f7f7f7;
    border-top: 1px solid var(--fke-line);
    border-bottom: 1px solid var(--fke-line);
}
.fke-clients__title {
    text-align: center;
    margin: 0 0 22px;
    font-size: 1.4em;
    color: var(--fke-ink);
    letter-spacing: 0.02em;
}
.fke-clients__viewport {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.fke-clients__track {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: fke-marquee var(--fke-marquee-speed, 40s) linear infinite;
}
.fke-clients:hover .fke-clients__track { animation-play-state: paused; }

/* Each logo lives in a fixed-height, white-background tile so mixed
   aspect ratios (square seals, wide wordmarks, white-only logos) all look
   uniform and consistent in the marquee. */
.fke-clients__item {
    flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    height: 110px;
    width: 180px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid var(--fke-line);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: transform .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
}
.fke-clients__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.fke-clients__logo {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.fke-clients__item--text {
    padding: 0;
    width: auto;
    background: transparent;
    border: none;
    box-shadow: none;
}
.fke-clients__pill {
    display: inline-block;
    padding: 8px 16px;
    background: var(--fke-bg);
    border: 1px solid var(--fke-line);
    border-radius: 999px;
    font-weight: 600;
    color: var(--fke-ink-2);
    white-space: nowrap;
}
@media (max-width: 720px) {
    .fke-clients__item { height: 90px; width: 150px; padding: 10px 14px; }
    .fke-clients__track { gap: 18px; }
}
@keyframes fke-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .fke-clients__track { animation: none; }
    .fke-clients__viewport { overflow-x: auto; }
}

/* ---------- Capability statement ---------- */
.fke-cap {
    width: 100%;
    padding: 40px 0;
}
.fke-cap__header { max-width: 920px; margin: 0 auto 24px; padding: 0 16px; text-align: center; }
.fke-cap__title {
    margin: 0 0 12px;
    font-size: 1.9em;
    color: var(--fke-red);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
.fke-cap__lede { margin: 0; color: var(--fke-ink-2); font-size: 1.05em; line-height: 1.55; }
.fke-cap__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}
.fke-cap__grid--secondary { margin-top: 24px; }
.fke-cap__heading {
    margin: 0 0 12px;
    font-size: 1.15em;
    color: #fff;
    background: var(--fke-red);
    padding: 8px 14px;
    border-radius: var(--fke-radius);
    letter-spacing: 0.02em;
}
.fke-cap__list {
    list-style: disc;
    padding-left: 22px;
    margin: 0;
    color: var(--fke-ink-2);
}
.fke-cap__list li { margin: 6px 0; line-height: 1.5; }
.fke-cap__list strong { color: var(--fke-ink); }
.fke-cap__list--compact li { margin: 4px 0; }
.fke-cap__identifiers {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 28px;
    padding: 18px 16px;
    background: var(--fke-ink);
    color: #fff;
}
.fke-cap__identifiers > div {
    display: inline-flex; gap: 8px; align-items: baseline;
    padding: 4px 14px;
}
.fke-cap__id-label {
    font-size: 0.75em;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f5a3a3;
}
.fke-cap__id-value { font-weight: 700; }

/* ---------- Quote form ---------- */
.fke-quote { max-width: 760px; margin: 0 auto; }
.fke-quote__hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px; height: 1px; overflow: hidden;
}
.fke-quote__notice {
    padding: 14px 16px;
    margin: 0 0 18px;
    border-radius: var(--fke-radius);
    font-weight: 600;
}
.fke-quote__notice--ok { background: #e8f8ee; color: #145c2e; border: 1px solid #b9e8c8; }
.fke-quote__notice--err { background: #fdecec; color: #8a1a1a; border: 1px solid #f4b9b9; }

.fke-quote__form {
    background: #fff;
    border: 1px solid var(--fke-line);
    border-radius: var(--fke-radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.fke-quote__row { display: grid; gap: 14px; }
.fke-quote__row--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) {
    .fke-quote__row--2 { grid-template-columns: 1fr; }
}
.fke-quote__field { display: flex; flex-direction: column; gap: 6px; }
.fke-quote__label { font-weight: 600; color: var(--fke-ink); font-size: 0.95em; }
.fke-quote__req { color: var(--fke-red); }
.fke-quote__field input[type="text"],
.fke-quote__field input[type="email"],
.fke-quote__field input[type="tel"],
.fke-quote__field input[type="file"],
.fke-quote__field textarea {
    font: inherit;
    padding: 11px 12px;
    border: 1px solid var(--fke-line);
    border-radius: var(--fke-radius);
    background: #fff;
    color: var(--fke-ink);
}
.fke-quote__field textarea { resize: vertical; min-height: 140px; }
.fke-quote__hint { font-size: 0.85em; color: var(--fke-muted); }
.fke-quote__submit {
    align-self: flex-start;
    background: var(--fke-red);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 26px;
    border: 0;
    border-radius: var(--fke-radius);
    cursor: pointer;
}
.fke-quote__submit:hover { background: var(--fke-red-d); }

/* ============================================================
   Project Category Archive
   ============================================================ */
.fke-cat-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}
.fke-cat-archive__hero {
    text-align: center;
    padding: 60px 20px 40px;
    border-bottom: 1px solid #e7e7e7;
    margin-bottom: 40px;
}
.fke-cat-archive__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    color: #c8102e;
    margin: 0 0 8px;
    font-weight: 600;
}
.fke-cat-archive__title {
    font-size: 42px;
    line-height: 1.15;
    margin: 0 0 16px;
    color: #111;
    font-weight: 700;
}
.fke-cat-archive__intro {
    max-width: 720px;
    margin: 0 auto 16px;
    color: #444;
    font-size: 17px;
    line-height: 1.6;
}
.fke-cat-archive__intro p { margin: 0 0 12px; }
.fke-cat-archive__count {
    color: #888;
    font-size: 14px;
    margin: 0;
    letter-spacing: 0.04em;
}
@media (max-width: 720px) {
    .fke-cat-archive__title { font-size: 30px; }
    .fke-cat-archive__hero { padding: 40px 12px 28px; }
}
