/* ==========================================================================
   Hy-Tech Site Features — front-end styles
   Brand: deep red (#820008) + black + white. Inherits site font.
   ========================================================================== */

:root {
    --hts-red:    #820008;
    --hts-red-d:  #5C0006;
    --hts-ink:    #111;
    --hts-ink-2:  #333;
    --hts-muted:  #666;
    --hts-line:   #e6e6e6;
    --hts-bg:     #f7f7f7;
    --hts-radius: 6px;
}

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

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

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

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

.hts-projects__grid {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.hts-projects__card {
    background: #fff;
    border: 1px solid var(--hts-line);
    border-radius: var(--hts-radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}
.hts-projects__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.07);
}
.hts-projects__thumb img { display: block; width: 100%; height: auto; }
.hts-projects__body { padding: 16px 18px 18px; display:flex; flex-direction:column; gap:6px; }
.hts-projects__type {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--hts-red);
    padding: 4px 8px;
    border-radius: 3px;
    align-self: flex-start;
}
.hts-projects__title {
    margin: 4px 0 4px;
    font-size: 1.05em;
    line-height: 1.3;
    color: var(--hts-ink);
}
.hts-projects__meta { font-size: 0.92em; color: var(--hts-ink-2); }
.hts-projects__meta strong { color: var(--hts-ink); }
.hts-projects__excerpt { margin-top: 6px; color: var(--hts-muted); font-size: 0.94em; }

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

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

/* ---------- Clients marquee ---------- */
.hts-clients {
    width: 100%;
    padding: 36px 0;
    background: #f7f7f7;
    border-top: 1px solid var(--hts-line);
    border-bottom: 1px solid var(--hts-line);
}
.hts-clients__title {
    text-align: center;
    margin: 0 0 22px;
    font-size: 1.4em;
    color: var(--hts-ink);
    letter-spacing: 0.02em;
}
.hts-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);
}
.hts-clients__track {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: hts-marquee var(--hts-marquee-speed, 40s) linear infinite;
}
.hts-clients:hover .hts-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. */
.hts-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(--hts-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;
}
.hts-clients__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.hts-clients__logo {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.hts-clients__item--text {
    padding: 0;
    width: auto;
    background: transparent;
    border: none;
    box-shadow: none;
}
.hts-clients__pill {
    display: inline-block;
    padding: 8px 16px;
    background: var(--hts-bg);
    border: 1px solid var(--hts-line);
    border-radius: 999px;
    font-weight: 600;
    color: var(--hts-ink-2);
    white-space: nowrap;
}
@media (max-width: 720px) {
    .hts-clients__item { height: 90px; width: 150px; padding: 10px 14px; }
    .hts-clients__track { gap: 18px; }
}
@keyframes hts-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .hts-clients__track { animation: none; }
    .hts-clients__viewport { overflow-x: auto; }
}

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

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

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

/* ============================================================
   Project Category Archive
   ============================================================ */
