/**
 * Remodel North Texas homepage hero.
 * Magazine-style mobile-first hero.
 */

.rntx-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #ffffff;
}

.rntx-hero--magazine {
    min-height: 628px;
    padding: 0 0 18px;
}

.rntx-hero__photo {
    position: absolute;
    inset: 0 0 auto;
    z-index: -3;
    height: 472px;
    overflow: hidden;
    background: #ffffff;
}

.rntx-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.02)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(7, 27, 70, 0.12)),
        var(--rntx-hero-slide-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.025);
    animation: rntxHeroSlideFade 24s infinite ease-in-out;
    will-change: opacity, transform;
}

.rntx-hero__slide:nth-child(1) {
    animation-delay: 0s;
}

.rntx-hero__slide:nth-child(2) {
    animation-delay: 6s;
}

.rntx-hero__slide:nth-child(3) {
    animation-delay: 12s;
}

.rntx-hero__slide:nth-child(4) {
    animation-delay: 18s;
}

@keyframes rntxHeroSlideFade {
    0% {
        opacity: 1;
        transform: scale(1.025);
    }

    22% {
        opacity: 1;
        transform: scale(1.045);
    }

    30% {
        opacity: 0;
        transform: scale(1.055);
    }

    100% {
        opacity: 0;
        transform: scale(1.055);
    }
}

.rntx-hero__wash {
    position: absolute;
    inset: 0 0 auto;
    z-index: -2;
    height: 472px;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.94) 0%,
            rgba(255, 255, 255, 0.82) 34%,
            rgba(255, 255, 255, 0.42) 66%,
            rgba(255, 255, 255, 0.18) 100%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.26) 0%,
            rgba(255, 255, 255, 0.42) 54%,
            rgba(255, 255, 255, 1) 100%
        );
}

.rntx-hero__shell {
    position: relative;
    display: grid;
}

.rntx-hero__content {
    min-width: 0;
    padding-top: 34px;
}

.rntx-hero__content::before {
    content: "NORTH TEXAS' TRUSTED REMODELING EXPERTS";
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-height: 28px;
    margin-bottom: 18px;
    padding: 0 12px;
    border: 1px solid rgba(7, 94, 234, 0.08);
    border-radius: 999px;
    color: var(--rntx-blue);
    background: rgba(7, 94, 234, 0.08);
    box-shadow: 0 10px 22px rgba(7, 27, 70, 0.04);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.rntx-hero__title {
    max-width: 340px;
    margin: 0;
    color: var(--rntx-navy);
    font-size: clamp(2.42rem, 10.2vw, 3.55rem);
    line-height: 1.04;
    letter-spacing: -0.032em;
    font-weight: 900;
}

.rntx-hero__title span {
    color: var(--rntx-blue);
}

.rntx-hero__copy {
    max-width: 310px;
    margin: 14px 0 0;
    color: rgba(17, 35, 66, 0.74);
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 600;
}

.rntx-hero__actions {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.rntx-hero__primary,
.rntx-hero__secondary {
    width: 100%;
    min-height: 58px;
    border-radius: 8px;
    font-size: 0.94rem;
}

.rntx-hero__primary {
    box-shadow:
        0 16px 28px rgba(7, 94, 234, 0.27),
        0 2px 0 rgba(255, 255, 255, 0.2) inset;
}

.rntx-btn--white {
    color: var(--rntx-navy);
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(7, 27, 70, 0.11);
    box-shadow:
        0 12px 30px rgba(7, 27, 70, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.rntx-hero__button-icon {
    position: relative;
    width: 17px;
    height: 17px;
    display: inline-block;
    color: var(--rntx-blue);
}

.rntx-hero__button-icon::before {
    content: "";
    position: absolute;
    inset: 2px;
    border: 2px solid currentColor;
    border-radius: 5px;
}

.rntx-hero__button-icon::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 0;
    width: 7px;
    height: 7px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

/* Project inspiration card */

.rntx-project-card {
    position: relative;
    min-width: 0;
    max-width: 100%;
    margin-top: 26px;
    padding: 18px 16px 17px;
    border: 1px solid rgba(7, 27, 70, 0.1);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 18px 42px rgba(7, 27, 70, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
}

.rntx-project-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    margin-bottom: 14px;
}

.rntx-project-card__head h2 {
    margin: 0;
    color: var(--rntx-navy);
    font-size: 1.15rem;
    line-height: 1;
    letter-spacing: -0.035em;
    font-weight: 900;
}

.rntx-project-card__head p {
    max-width: 430px;
    margin: 7px 0 0;
    color: rgba(17, 35, 66, 0.62);
    font-size: 0.82rem;
    line-height: 1.38;
    font-weight: 700;
}

.rntx-project-card__head span {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 0 8px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rntx-blue), var(--rntx-blue-2));
    font-size: 0.7rem;
    font-weight: 900;
    white-space: nowrap;
}

.rntx-project-search {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.rntx-project-search__grid {
    display: grid;
    min-width: 0;
    max-width: 100%;
    gap: 10px;
}

.rntx-project-field {
    position: relative;
    display: grid;
    min-width: 0;
    align-items: center;
}

.rntx-project-field__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    z-index: 2;
    width: 17px;
    height: 17px;
    color: var(--rntx-blue);
    transform: translateY(-50%);
    pointer-events: none;
}

.rntx-project-field__icon::before,
.rntx-project-field__icon::after {
    content: "";
    position: absolute;
    border-color: currentColor;
}

.rntx-project-field__icon--goal::before {
    inset: 2px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.rntx-project-field__icon--goal::after {
    left: 7px;
    top: 5px;
    width: 4px;
    height: 4px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.rntx-project-field__icon--type::before {
    left: 2px;
    right: 2px;
    bottom: 2px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.rntx-project-field__icon--type::after {
    left: 5px;
    top: 0;
    width: 7px;
    height: 7px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
}

.rntx-project-search__input,
.rntx-project-search__select {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 50px;
    padding: 0 14px 0 42px;
    border: 1px solid rgba(7, 27, 70, 0.13);
    border-radius: 8px;
    outline: 0;
    color: var(--rntx-text);
    background: #ffffff;
    font-size: 0.95rem;
    box-shadow: inset 0 1px 0 rgba(7, 27, 70, 0.03);
    box-sizing: border-box;
}

.rntx-project-search__select {
    appearance: none;
    padding-right: 36px;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(7, 27, 70, 0.85) 50%),
        linear-gradient(135deg, rgba(7, 27, 70, 0.85) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.rntx-project-search__input::placeholder {
    color: rgba(17, 35, 66, 0.48);
}

.rntx-project-search__button {
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rntx-blue), var(--rntx-blue-2));
    box-shadow: 0 12px 24px rgba(7, 94, 234, 0.23);
    font-weight: 900;
    box-sizing: border-box;
}

.rntx-project-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    color: rgba(17, 35, 66, 0.68);
    font-size: 0.8rem;
    font-weight: 800;
}

.rntx-project-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.rntx-project-trust-icon {
    position: relative;
    width: 15px;
    height: 15px;
    color: var(--rntx-blue);
}

.rntx-project-trust-icon::before,
.rntx-project-trust-icon::after {
    content: "";
    position: absolute;
    border-color: currentColor;
}

.rntx-project-trust-icon--estimate::before {
    inset: 2px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.rntx-project-trust-icon--estimate::after {
    left: 6px;
    top: 3px;
    width: 3px;
    height: 5px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.rntx-project-trust-icon--check::before {
    left: 3px;
    top: 2px;
    width: 9px;
    height: 6px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.rntx-project-trust-icon--local::before {
    inset: 1px 3px 5px;
    border: 2px solid currentColor;
    border-radius: 999px 999px 999px 0;
    transform: rotate(-45deg);
}

.rntx-project-trust-icon--local::after {
    left: 7px;
    top: 5px;
    width: 3px;
    height: 3px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

/* Hide legacy hero elements if older markup remains somewhere */

.rntx-discovery-card,
.rntx-category-row,
.rntx-filter-row,
.rntx-quick-card,
.rntx-project-card__chips,
.rntx-project-search__label,
.rntx-project-search__control {
    display: none;
}