/* Home Projects — premium buttons with distinct visual hierarchy
   Card dimensions, grid, images and responsive layout are preserved.
*/

.home-projects {
    padding: 70px 0;
    background: #f8f9fb;
    color: #222;
}

.home-projects-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.home-projects-heading {
    margin-bottom: 35px;
    text-align: center;
}

.home-projects-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #76551f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.home-projects-heading h2 {
    margin: 0 0 12px;
    color: #17243a;
    font-size: 36px;
    line-height: 1.3;
}

.home-projects-heading p {
    max-width: 600px;
    margin: 0 auto;
    color: #626b78;
    font-size: 16px;
    line-height: 1.8;
}

/* Projects grid */
.home-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

/* Project card */
.home-project-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(23, 36, 58, .06);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(23, 36, 58, .09);
    box-sizing: border-box;
    transition: box-shadow .25s ease, transform .25s ease;
}

.home-project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(23, 36, 58, .14);
}

/* Project image */
.home-project-image-link {
    display: block;
    flex-shrink: 0;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: #eee;
}

.home-project-image-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.home-project-card:hover .home-project-image-link img {
    transform: scale(1.035);
}

/* Card content */
.home-project-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    box-sizing: border-box;
}

.home-project-category {
    display: inline-block;
    margin-bottom: 10px;
    color: #76551f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.home-project-card h3 {
    margin: 0 0 10px;
    color: #17243a;
    font-size: 20px;
    line-height: 1.45;
}

/* Description preview: up to three lines */
.home-project-card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    margin: 0 0 20px;
    color: #626262;
    font-size: 14px;
    line-height: 1.75;
}

/* Individual View Project button: compact, light style */
.home-project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    min-height: 40px;
    padding: 9px 17px;
    border: 1px solid #d8c18a;
    border-radius: 6px;
    background: #fff;
    color: #17243a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(23, 36, 58, .06);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.home-project-link:hover {
    transform: translateY(-2px);
    border-color: #17243a;
    background: #17243a;
    color: #fff;
    box-shadow: 0 5px 12px rgba(23, 36, 58, .15);
}

.home-project-link:focus-visible {
    outline: 3px solid #c7a65b;
    outline-offset: 3px;
}

/* Empty projects message */
.home-projects-empty {
    padding: 25px;
    color: #666;
    text-align: center;
}

/* Main CTA: Explore All Projects */
.home-projects-footer {
    margin-top: 35px;
    text-align: center;
}

.home-projects-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 30px;
    border: 1px solid #17243a;
    border-radius: 30px;
    background: #17243a;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(23, 36, 58, .16);
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.home-projects-button:hover {
    transform: translateY(-2px);
    border-color: #76551f;
    background: #9b7b3e;
    color: #fff;
    box-shadow: 0 8px 20px rgba(23, 36, 58, .2);
}

.home-projects-button:focus-visible {
    outline: 3px solid #c7a65b;
    outline-offset: 3px;
}

/* Tablet */
@media (max-width: 900px) {
    .home-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .home-projects {
        padding: 45px 0;
    }

    .home-projects-container {
        padding: 0 16px;
    }

    .home-projects-heading {
        margin-bottom: 25px;
    }

    .home-projects-heading h2 {
        font-size: 28px;
    }

    .home-projects-heading p {
        font-size: 14px;
    }

    .home-projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-project-card-content {
        padding: 18px;
    }

    .home-project-card h3 {
        font-size: 19px;
    }

    .home-project-card p {
        margin-bottom: 18px;
    }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
    .home-project-card,
    .home-project-image-link img,
    .home-project-link,
    .home-projects-button {
        transition: none;
    }

    .home-project-card:hover,
    .home-project-card:hover .home-project-image-link img,
    .home-project-link:hover,
    .home-projects-button:hover {
        transform: none;
    }
}
