/* Homepage Services section extracted from service-page.css */
/* =========================================
   HOMEPAGE SERVICES SECTION
   Premium cards aligned with Home Projects and Home Blog
========================================= */
.home-services {
    padding: 65px 5%;
    background: #f7f6f3;
    color: #222;
}
.home-services-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.home-services-heading {
    margin-bottom: 30px;
}
.home-services-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #76551f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.home-services-heading h2 {
    margin: 10px 0 12px;
    color: #17243a;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.3;
}
.home-services-heading p {
    max-width: 650px;
    margin: 0;
    color: #626b78;
    font-size: 15px;
    line-height: 1.8;
}
.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}
.home-service-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(23, 36, 58, .07);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(23, 36, 58, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.home-service-card[hidden] {
    display: none !important;
}
.home-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(23, 36, 58, .14);
}
.home-service-card > img {
    display: block;
    order: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    background: #eee;
}
.home-service-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    box-sizing: border-box;
}
.home-service-card h3 {
    margin: 0 0 12px;
    color: #17243a;
    font-size: 20px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.home-service-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;
}
.home-service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: auto;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #d8bd69;
    border-radius: 22px;
    background: #fff;
    color: #17243a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.home-service-link:hover {
    transform: translateY(-1px);
    border-color: #17243a;
    background: #17243a;
    color: #fff;
}
.home-services-footer {
    margin-top: 32px;
    text-align: center;
}
.home-services-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 24px;
    border: 1px solid #17243a;
    border-radius: 26px;
    background: #17243a;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(23, 36, 58, .14);
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.home-services-toggle:hover {
    transform: translateY(-2px);
    border-color: #9b7b3e;
    background: #9b7b3e;
    color: #fff;
    box-shadow: 0 8px 18px rgba(23, 36, 58, .16);
}
.home-services-toggle:focus-visible,
.home-service-link:focus-visible {
    outline: 3px solid #c7a65b;
    outline-offset: 3px;
}
.home-services-empty {
    color: #666;
    line-height: 1.7;
}
@media (max-width: 900px) {
    .home-services { padding: 55px 4%; }
    .home-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
    .home-service-card-content { padding: 20px; }
}
@media (max-width: 600px) {
    .home-services { padding: 45px 18px; }
    .home-services-grid { grid-template-columns: 1fr; gap: 22px; }
    .home-service-card { width: 100%; }
    .home-service-card > img { aspect-ratio: 4 / 3; }
    .home-service-card-content { padding: 18px; }
    .home-service-card h3 { font-size: 19px; }
    .home-services-footer { margin-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-service-card, .home-services-toggle, .home-service-link { transition: none; }
    .home-service-card:hover, .home-services-toggle:hover, .home-service-link:hover { transform: none; }
}


/* Center align Homepage Services heading */
.home-services-heading {
    text-align: center;
}

.home-services-heading p {
    margin-left: auto;
    margin-right: auto;
}