
/* ==========================================
   HOMEPAGE - CATEGORIES
========================================== */

.home-categories {
    padding: 0 0 22px;
}

.home-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home-categories__card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #d3c4b3;
    isolation: isolate;
}

.home-categories__link {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    min-height: 540px;
    padding: 32px 24px;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}

.home-categories__link::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 35%,
        rgba(0, 0, 0, 0.15) 58%,
        rgba(0, 0, 0, 0.65) 100%
    );
    transition: background 0.4s ease, opacity 0.4s ease;
}

.home-categories__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.home-categories__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-categories__title {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(20px, 1.6vw, 26px);
    font-weight: 600;
    line-height: 1.2;
}

.home-categories__description {
    max-width: 280px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.5;
}

.home-categories__button {
    margin-top: 0;
}

.home-categories__link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -5px;
}


/* ==========================================
   HOMEPAGE - FEATURE SECTIONS
========================================== */

.home-features {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.home-feature {
    display: grid;
    grid-template-columns: 38% 62%;
    min-height: 380px;
    overflow: hidden;
    background: #f5f3f1;
}

.home-feature--beds {
    width: 100%;
    max-width: none;
    grid-template-columns: 62% 38%;
    background: #b8b29f;
}

.home-feature__content {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 55px clamp(30px, 4vw, 70px);
}

.home-feature__title {
    max-width: 420px;
    margin: 0 0 24px;
    color: #292929;
    font-size: clamp(30px, 2.7vw, 46px);
    font-weight: 600;
    line-height: 1.17;
    letter-spacing: -0.025em;
}

.home-feature__description {
    max-width: 365px;
    margin-bottom: 24px;
    color: #444;
    font-size: 14px;
    line-height: 1.65;
}

.home-feature__description p {
    margin: 0 0 12px;
}

.home-feature__description p:last-child {
    margin-bottom: 0;
}

.home-feature__button {
    flex-shrink: 0;
}

.home-feature__media {
    grid-area: 1 / 2;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.home-feature__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s cubic-bezier(.2, .7, .2, 1);
}

/* Second section: image left, content right */

.home-feature--beds {
    grid-template-columns: 62% 38%;
    background: #b8b29f;
}

.home-feature--beds .home-feature__media {
    grid-area: 1 / 1;
}

.home-feature--beds .home-feature__content {
    grid-area: 1 / 2;
}


/* ==========================================
   CONTACT STRIP
========================================== */

.contact-strip {
    padding: 45px 0;
}

.contact-strip__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: stretch;
}

.contact-strip__intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 35px;
}

.contact-strip__title {
    margin: 0 0 8px;
    font-size: clamp(25px, 2.4vw, 38px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.contact-strip__description {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.contact-strip__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 20px;
    border-left: 1px solid rgba(35, 35, 35, 0.6);
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-strip__icon {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
}

.contact-strip__item:hover {
    color: #9b8265;
}

/* ==========================================
   FOOTER
========================================== */

.site-footer {
    background: #292929;
    color: #fff;
    padding: 65px 0 80px;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    column-gap: 40px;
    align-items: start;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
}

.site-footer__brand-link {
    display: inline-block;
}

.site-footer__logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 303px;
    max-height: 75px;
    object-fit: contain;
}

.site-footer__brand-name {
    font-size: 28px;
    font-weight: 600;
}

.site-footer__contacts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 30px;
}

.site-footer__contacts a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
	display: flex;
    gap: 10px;
}

.site-footer__contacts a:hover {
    color: #fff;
}

.site-footer__nav {
    min-width: 0;
}

.site-footer__menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__menu li {
    margin: 0;
    padding: 0;
}

.site-footer__menu a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.site-footer__menu a:hover {
    color: #fff;
    transform: translateX(5px);
}

.site-footer__menu .current-menu-item > a {
    color: #fff;
}


/* Hover */

@media (hover: hover) {
    .home-categories__card:hover .home-categories__image {
        transform: scale(1.065);
    }

    .home-categories__card:hover .home-categories__link::after {
        opacity: 1;
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.03) 25%,
            rgba(0, 0, 0, 0.22) 55%,
            rgba(0, 0, 0, 0.78) 100%
        );
    }
	 .home-feature__media:hover .home-feature__image {
        transform: scale(1.045);
    }
}