/*! Place your custom styles here */

/* =========================================================
   SITE-WIDE STICKY NAVIGATION
========================================================= */
.nav-container {
    position: sticky !important;
    top: 0;
    z-index: 1050;
    width: 100%;
    background: #fff;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .08);
}
.nav-container nav,
.nav-container .bar {
    background-color: #fff;
}
.nav-container .bar--transparent {
    background-color: #fff !important;
}
.nav-container .bar--absolute {
    position: relative !important;
    top: auto !important;
}
html { scroll-padding-top: 95px; }

/* Homepage project gallery: image-first cards with title revealed on hover */
.project-gallery-item { margin-bottom: 28px; }
.project-gallery-image {
    display: block;
    position: relative;
    overflow: hidden;
    height: 255px;
    border-radius: 8px;
    background: #f3f5f6;
    box-shadow: 0 8px 28px rgba(0,0,0,.09);
    cursor: zoom-in;
}
.project-gallery-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0) 65%);
    opacity: 0;
    transition: opacity .25s ease;
}
.project-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.project-gallery-image:hover img,
.project-gallery-image:focus img { transform: scale(1.05); }
.project-gallery-image:hover::after,
.project-gallery-image:focus::after { opacity: 1; }
.project-gallery-title {
    position: absolute;
    z-index: 2;
    left: 20px;
    right: 20px;
    bottom: 18px;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease;
}
.project-gallery-image:hover .project-gallery-title,
.project-gallery-image:focus .project-gallery-title { opacity: 1; transform: translateY(0); }
.project-gallery-cta { background: #f6f8f7; }
@media (max-width: 767px) {
    .project-gallery-image { height: 210px; }
    /* Touch devices have no hover: keep the title visible. */
    .project-gallery-image::after { opacity: 1; }
    .project-gallery-title { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .project-gallery-image, .project-gallery-image img, .project-gallery-title,
    .project-gallery-image::after { transition: none !important; }
}


/* Project portfolio and detail pages */
.project-detail-hero {
    padding: 90px 0 75px;
    background: #f3f7f5;
}
.project-detail-hero h1 { margin: 8px 0 18px; }
.project-detail-hero .lead { max-width: 780px; margin-bottom: 0; }
.project-eyebrow {
    color: #16845b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.project-detail-section, .project-list-section { padding: 65px 0 85px; }
.project-detail-image {
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 48px;
    background: #f2f4f3;
    box-shadow: 0 12px 35px rgba(0,0,0,.09);
}
.project-detail-image img { width: 100%; max-height: 560px; object-fit: cover; display: block; }
.project-detail-copy h2 { margin-bottom: 18px; }
.project-detail-copy h3 { margin-top: 30px; margin-bottom: 10px; }
.project-detail-copy p { line-height: 1.8; color: #626b67; }
.project-detail-sidebar {
    padding: 28px;
    border-radius: 9px;
    background: #f4f7f5;
}
.project-detail-sidebar ul { padding-left: 20px; margin: 18px 0 25px; }
.project-detail-sidebar li { margin-bottom: 10px; }
.project-list-card {
    height: 100%;
    overflow: hidden;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
}
.project-list-card > a { display: block; height: 220px; overflow: hidden; }
.project-list-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.project-list-card:hover img { transform: scale(1.04); }
.project-list-content { padding: 22px; }
.project-list-content > span { color: #16845b; text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.project-list-content h3 { margin: 8px 0 10px; font-size: 21px; }
.project-list-content p { min-height: 90px; color: #666; line-height: 1.65; font-size: 14px; }
@media (max-width: 767px) {
    .project-detail-hero { padding: 55px 0 45px; }
    .project-detail-section, .project-list-section { padding: 40px 0 55px; }
    .project-detail-image { margin-bottom: 30px; }
    .project-list-content p { min-height: 0; }
}


/* Keep project category filters visible and selectable on desktop and touch devices.
   The theme's default masonry dropdown only expands on hover, which is unreliable on touch. */
.masonry-filter-container .masonry-filter-holder {
    height: auto !important;
    min-width: 0 !important;
    position: static !important;
    cursor: default !important;
}
.masonry-filter-container .masonry__filters {
    position: static !important;
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.masonry-filter-container .masonry__filters ul,
.masonry-filter-holder:not(.masonry-filters--horizontal):not(:hover) .masonry__filters ul {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 18px;
    max-height: none !important;
    overflow: visible !important;
}
.masonry-filter-container .masonry__filters ul li,
.masonry-filter-holder:not(.masonry-filters--horizontal):not(:hover) .masonry__filters ul li:not(.active) {
    display: inline-block !important;
    margin: 0 !important;
    padding: 9px 13px;
    border-radius: 20px;
    cursor: pointer !important;
    white-space: nowrap;
}
.masonry-filter-container .masonry__filters ul li.active {
    color: #fff !important;
    background: #16845b;
}
.masonry-filter-container .masonry__filters ul li.active:after { display: none !important; }
.masonry-filter-container .masonry__filters ul li:hover { color: #16845b; }
.masonry-filter-container .masonry__filters ul li.active:hover { color: #fff !important; }
