/*
 * Scoped HomelyTainment remodel header and footer classes.
 * These rules are inert until .ht-homepage-remodel, body.ht-remodel-page,
 * .ht-header, or .ht-footer classes are assigned in approved staging markup.
 */

.ht-homepage-remodel .ht-header,
body.ht-remodel-page .ht-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--ht-color-line);
    backdrop-filter: blur(14px);
}

.ht-homepage-remodel .ht-header__inner,
body.ht-remodel-page .ht-header__inner {
    width: min(var(--ht-width-content), calc(100% - 40px));
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0 auto;
}

.ht-homepage-remodel .ht-header__logo,
body.ht-remodel-page .ht-header__logo {
    flex: 0 0 auto;
    color: var(--ht-color-primary);
    text-decoration: none;
}

.ht-homepage-remodel .ht-header__logo img,
body.ht-remodel-page .ht-header__logo img {
    width: auto;
    max-width: 132px;
    max-height: 68px;
    object-fit: contain;
}

.ht-homepage-remodel .ht-header__search,
body.ht-remodel-page .ht-header__search {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: var(--ht-space-xs);
    border: 1px solid var(--ht-color-line);
    border-radius: var(--ht-radius-md);
    padding: 0.55rem 0.85rem;
    color: var(--ht-color-muted);
    background: var(--ht-color-soft);
    font-size: var(--ht-font-size-sm);
}

.ht-homepage-remodel .ht-header__search input,
body.ht-remodel-page .ht-header__search input {
    min-width: 12rem;
    border: 0;
    background: transparent;
    color: var(--ht-color-text);
    font: inherit;
}

.ht-homepage-remodel .ht-header__search button,
body.ht-remodel-page .ht-header__search button {
    min-width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: var(--ht-radius-sm);
    color: var(--ht-color-white);
    background: var(--ht-color-accent);
    font-weight: var(--ht-font-weight-bold);
}

.ht-homepage-remodel .ht-nav,
body.ht-remodel-page .ht-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.ht-homepage-remodel .ht-nav__link,
body.ht-remodel-page .ht-nav__link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    padding: 0.6rem 0.2rem;
    color: var(--ht-color-text);
    font-size: var(--ht-font-size-sm);
    font-weight: var(--ht-font-weight-bold);
    text-decoration: none;
    white-space: nowrap;
}

.ht-homepage-remodel .ht-nav__link:hover,
.ht-homepage-remodel .ht-nav__link[aria-current="page"],
body.ht-remodel-page .ht-nav__link:hover,
body.ht-remodel-page .ht-nav__link[aria-current="page"] {
    color: var(--ht-color-accent);
    border-color: var(--ht-color-accent);
}

.ht-homepage-remodel .ht-mobile-nav,
body.ht-remodel-page .ht-mobile-nav {
    display: none;
    margin-left: auto;
}

.ht-homepage-remodel .ht-mobile-nav summary,
body.ht-remodel-page .ht-mobile-nav summary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--ht-color-line);
    border-radius: var(--ht-radius-md);
    padding: 0.55rem 0.8rem;
    color: var(--ht-color-primary);
    cursor: pointer;
    font-weight: var(--ht-font-weight-black);
    list-style: none;
}

.ht-homepage-remodel .ht-mobile-nav summary::-webkit-details-marker,
body.ht-remodel-page .ht-mobile-nav summary::-webkit-details-marker {
    display: none;
}

.ht-homepage-remodel .ht-mobile-nav nav,
body.ht-remodel-page .ht-mobile-nav nav {
    position: absolute;
    top: 78px;
    right: 20px;
    left: 20px;
    display: grid;
    gap: var(--ht-space-xs);
    border: 1px solid var(--ht-color-line);
    border-radius: var(--ht-radius-md);
    padding: var(--ht-space-md);
    background: var(--ht-color-white);
    box-shadow: var(--ht-shadow-md);
}

.ht-homepage-remodel .ht-mobile-nav .ht-nav__link,
body.ht-remodel-page .ht-mobile-nav .ht-nav__link {
    width: 100%;
    border-bottom: 0;
    border-radius: var(--ht-radius-sm);
    padding: 0.75rem;
}

.ht-homepage-remodel .ht-mobile-nav .ht-nav__link:hover,
.ht-homepage-remodel .ht-mobile-nav .ht-nav__link[aria-current="page"],
body.ht-remodel-page .ht-mobile-nav .ht-nav__link:hover,
body.ht-remodel-page .ht-mobile-nav .ht-nav__link[aria-current="page"] {
    background: var(--ht-color-soft);
}

.ht-homepage-remodel .ht-footer,
body.ht-remodel-page .ht-footer {
    padding: 54px 0 24px;
    color: var(--ht-color-white);
    background: var(--ht-color-primary);
}

.ht-homepage-remodel .ht-footer__inner,
body.ht-remodel-page .ht-footer__inner {
    width: min(var(--ht-width-content), calc(100% - 40px));
    display: grid;
    grid-template-columns: 1.7fr repeat(3, 1fr);
    gap: 28px;
    margin: 0 auto;
}

.ht-homepage-remodel .ht-footer__brand img,
body.ht-remodel-page .ht-footer__brand img {
    width: auto;
    max-width: 170px;
    max-height: 90px;
    object-fit: contain;
    border-radius: var(--ht-radius-md);
    padding: 6px;
    background: var(--ht-color-white);
}

.ht-homepage-remodel .ht-footer__brand p,
body.ht-remodel-page .ht-footer__brand p {
    max-width: 420px;
    color: #e8daed;
}

.ht-homepage-remodel .ht-footer__navigation,
.ht-homepage-remodel .ht-footer__legal,
body.ht-remodel-page .ht-footer__navigation,
body.ht-remodel-page .ht-footer__legal {
    display: grid;
    align-content: start;
    gap: var(--ht-space-xs);
}

.ht-homepage-remodel .ht-footer h2,
body.ht-remodel-page .ht-footer h2 {
    margin: 0 0 var(--ht-space-sm);
    color: #f2b8f8;
    font-size: var(--ht-font-size-sm);
    font-weight: var(--ht-font-weight-black);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ht-homepage-remodel .ht-footer a,
body.ht-remodel-page .ht-footer a {
    color: var(--ht-color-white);
    text-decoration: none;
    opacity: 0.88;
}

.ht-homepage-remodel .ht-footer a:hover,
body.ht-remodel-page .ht-footer a:hover {
    text-decoration: underline;
    opacity: 1;
}

.ht-homepage-remodel .ht-footer__legal,
body.ht-remodel-page .ht-footer__legal {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #e8daed;
    font-size: var(--ht-font-size-sm);
}

@media (max-width: 1080px) {
    .ht-homepage-remodel .ht-header__inner,
    body.ht-remodel-page .ht-header__inner {
        gap: 16px;
    }

    .ht-homepage-remodel .ht-nav,
    body.ht-remodel-page .ht-nav {
        gap: 12px;
    }

    .ht-homepage-remodel .ht-header__search input,
    body.ht-remodel-page .ht-header__search input {
        min-width: 8rem;
    }
}

@media (max-width: 820px) {
    .ht-homepage-remodel .ht-header__inner,
    body.ht-remodel-page .ht-header__inner {
        min-height: 72px;
    }

    .ht-homepage-remodel .ht-header__logo img,
    body.ht-remodel-page .ht-header__logo img {
        max-width: 118px;
    }

    .ht-homepage-remodel .ht-header > .ht-header__inner > .ht-nav,
    .ht-homepage-remodel .ht-header__search,
    body.ht-remodel-page .ht-header > .ht-header__inner > .ht-nav,
    body.ht-remodel-page .ht-header__search {
        display: none;
    }

    .ht-homepage-remodel .ht-mobile-nav,
    body.ht-remodel-page .ht-mobile-nav {
        display: block;
    }

    .ht-homepage-remodel .ht-footer__inner,
    body.ht-remodel-page .ht-footer__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .ht-homepage-remodel .ht-header__inner,
    .ht-homepage-remodel .ht-footer__inner,
    body.ht-remodel-page .ht-header__inner,
    body.ht-remodel-page .ht-footer__inner {
        width: min(100% - 28px, var(--ht-width-content));
    }

    .ht-homepage-remodel .ht-header__logo img,
    body.ht-remodel-page .ht-header__logo img {
        max-width: 108px;
    }
}
