/* MT - Interior Hero */

/* Elementor containers size widgets by a computed width; take the full width so the container fits the content */
.elementor-widget-mtfe-interior-hero {
    width: 100%;
}
.mtfe-ih {
    --ih-fade: #F6F4F1;
    --ih-fade-stop: 30%;
    --ih-fade-end: 68%;
    --ih-eyebrow: #8C1C3A;
    --ih-title: #121417;
    --ih-text: #2B2D33;
    --ih-btn: #8C1C3A;
    --ih-btn-text: #FFFFFF;
    --ih-btn-hover: #121417;
    --ih-seal: #121417;
    --ih-seal-text: #D4B26A;
    --ih-star: #B8862B;
    --ih-title-size: 78px;
    --ih-focus-x: 50%;
    --ih-media-h: 380px;
    position: relative;
    display: flex;
    min-height: 86vh;
    overflow: hidden;
    border-radius: 24px;
    background: var(--ih-fade);
    isolation: isolate;
}

/* photo variants, stacked and cross-faded */
.mtfe-ih__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.mtfe-ih .mtfe-ih__media .mtfe-ih__img {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: var(--ih-focus-x) center;
    opacity: 0;
    transition: opacity .9s ease;
}
.mtfe-ih .mtfe-ih__media .mtfe-ih__img.is-active {
    opacity: 1;
}
.mtfe-ih--zoom .mtfe-ih__media {
    animation: mtfe-ih-zoom 22s ease-in-out infinite alternate;
    transform-origin: 70% 60%;
}
@keyframes mtfe-ih-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.07); }
}

.mtfe-ih__fade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: linear-gradient(90deg, var(--ih-fade) var(--ih-fade-stop), transparent var(--ih-fade-end));
}

/* copy */
.mtfe-ih__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 150px 80px 90px;
}
.mtfe-ih__content {
    width: 54%;
}
.mtfe-ih__eyebrow {
    margin: 0 0 18px;
    color: var(--ih-eyebrow);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}
body .mtfe-ih .mtfe-ih__title {
    margin: 0 0 22px;
    color: var(--ih-title);
    font-size: var(--ih-title-size) !important;
    line-height: 1.04;
    letter-spacing: -0.02em;
}
.mtfe-ih__line {
    display: block;
    overflow: hidden;
    padding-bottom: .06em;
}
.mtfe-ih__line > span {
    display: inline-block;
}
/* the theme sizes every "h1 span" (with !important on tablets and phones) */
body .mtfe-ih .mtfe-ih__title .mtfe-ih__line,
body .mtfe-ih .mtfe-ih__title .mtfe-ih__line > span {
    font-size: inherit !important;
    line-height: inherit;
}
.mtfe-ih__desc {
    max-width: 500px;
    margin: 0 0 30px;
    color: var(--ih-text);
    font-size: 18px;
    line-height: 1.6;
}
.mtfe-ih__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
}
.mtfe-ih__btn,
.mtfe-ih__btn:visited {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 19px 34px;
    border-radius: 5px;
    background: var(--ih-btn);
    color: var(--ih-btn-text);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .3s ease, transform .3s ease;
}
.mtfe-ih__btn:hover,
.mtfe-ih__btn:focus-visible {
    background: var(--ih-btn-hover);
    color: var(--ih-btn-text);
}
.mtfe-ih__btn svg {
    width: 18px;
    height: 18px;
    transition: transform .3s ease;
}
.mtfe-ih__btn:hover svg {
    transform: translateX(4px);
}

/* colour picker */
.mtfe-ih__picker {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 6px 14px;
}
.mtfe-ih__picker-head {
    display: flex;
    flex-direction: column;
    grid-row: span 2;
    line-height: 1.2;
}
.mtfe-ih__picker-label {
    color: var(--ih-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.mtfe-ih__picker-current {
    color: var(--ih-title);
    font-size: 15px;
    font-weight: 700;
}
.mtfe-ih__swatches {
    display: flex;
    gap: 10px;
}
.mtfe-ih__swatch {
    position: relative;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: border-color .25s ease, transform .25s ease;
}
.mtfe-ih__swatch > span {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--ih-swatch, #8C1C3A);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), inset 0 6px 10px rgba(255, 255, 255, .22);
}
.mtfe-ih__swatch:hover {
    transform: translateY(-2px);
}
.mtfe-ih__swatch.is-active {
    border-color: var(--ih-title);
}
.mtfe-ih__swatch:focus-visible {
    outline: 2px solid var(--ih-btn);
    outline-offset: 2px;
}
.mtfe-ih__picker-note {
    color: var(--ih-text);
    font-size: 13px;
}

/* rotating seal */
.mtfe-ih__seal {
    position: absolute;
    z-index: 3;
    top: 64%;
    left: 44%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--ih-seal);
    color: var(--ih-seal-text);
    box-shadow: 0 18px 40px rgba(18, 20, 23, .28);
    transform: translate(-50%, -50%);
}
.mtfe-ih__seal-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: mtfe-ih-spin 26s linear infinite;
}
.mtfe-ih__seal-ring text {
    fill: currentColor;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
}
.mtfe-ih__seal-core {
    position: absolute;
    inset: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
}
.mtfe-ih__paw {
    width: 52%;
    height: 52%;
}
@keyframes mtfe-ih-spin {
    to { transform: rotate(360deg); }
}

/* client note */
.mtfe-ih__note {
    position: absolute;
    z-index: 3;
    top: 30%;
    right: 5%;
    width: 270px;
    margin: 0;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 16px;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 44px rgba(18, 20, 23, .16);
    animation: mtfe-ih-float 6s ease-in-out infinite;
}
.mtfe-ih__note-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.mtfe-ih__stars {
    color: var(--ih-star);
    font-size: 14px;
    letter-spacing: 2px;
}
.mtfe-ih__score {
    color: var(--ih-title);
    font-size: 14px;
    font-weight: 800;
}
.mtfe-ih__note blockquote {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    color: var(--ih-title);
    font-size: 17px;
    font-style: normal;
    line-height: 1.35;
    quotes: none;
}
.mtfe-ih__note blockquote::before,
.mtfe-ih__note blockquote::after {
    display: none;
}
.mtfe-ih__note figcaption {
    display: flex;
    justify-content: flex-start;
    text-align: left;
    align-items: center;
    gap: 10px;
}
.mtfe-ih__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.mtfe-ih__avatar--initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ih-btn);
    color: var(--ih-btn-text);
    font-weight: 700;
}
.mtfe-ih__who {
    display: flex;
    flex-direction: column;
    color: var(--ih-title);
    font-size: 14px;
    line-height: 1.25;
}
.mtfe-ih__who small {
    color: var(--ih-text);
    font-size: 12px;
}
@keyframes mtfe-ih-float {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50%      { opacity: 1; transform: translateY(-8px); }
}

/* reveal on load */
.mtfe-ih--reveal .mtfe-ih__line > span {
    transform: translateY(105%);
    animation: mtfe-ih-line .9s cubic-bezier(.2, .7, .2, 1) forwards;
}
.mtfe-ih--reveal .mtfe-ih__line:nth-child(1) > span { animation-delay: .15s; }
.mtfe-ih--reveal .mtfe-ih__line:nth-child(2) > span { animation-delay: .32s; }
.mtfe-ih--reveal .mtfe-ih__line:nth-child(3) > span { animation-delay: .49s; }
.mtfe-ih--reveal .mtfe-ih__rise {
    opacity: 0;
    animation: mtfe-ih-rise .8s ease forwards;
}
.mtfe-ih--reveal .mtfe-ih__eyebrow { animation-delay: .05s; }
.mtfe-ih--reveal .mtfe-ih__desc    { animation-delay: .6s; }
.mtfe-ih--reveal .mtfe-ih__actions { animation-delay: .75s; }
.mtfe-ih--reveal .mtfe-ih__seal,
.mtfe-ih--reveal .mtfe-ih__note {
    opacity: 0;
    animation-name: mtfe-ih-pop, mtfe-ih-float;
    animation-duration: .8s, 6s;
    animation-delay: 1s, 1.8s;
    animation-timing-function: ease, ease-in-out;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: forwards, none;
}
.mtfe-ih--reveal .mtfe-ih__seal {
    animation-name: mtfe-ih-pop-seal;
    animation-duration: .8s;
    animation-delay: .9s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}
@keyframes mtfe-ih-line {
    to { transform: translateY(0); }
}
@keyframes mtfe-ih-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes mtfe-ih-pop {
    from { opacity: 0; transform: translateY(16px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes mtfe-ih-pop-seal {
    from { opacity: 0; transform: translate(-50%, -50%) scale(.7); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 1024px) {
    .mtfe-ih__note {
        width: 230px;
    }
}

/* phones: copy first, then the photo as its own block */
@media (max-width: 767px) {
    body .mtfe-ih {
        flex-direction: column;
        min-height: 0 !important;
    }
    .mtfe-ih__inner {
        order: 1;
    }
    .mtfe-ih__media {
        position: relative;
        inset: auto;
        order: 2;
        height: var(--ih-media-h);
        overflow: hidden;
    }
    .mtfe-ih__media::after {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        height: 34%;
        background-image: linear-gradient(180deg, var(--ih-fade), transparent);
    }
    .mtfe-ih .mtfe-ih__media .mtfe-ih__img {
        object-position: var(--ih-focus-x) 70%;
    }
    .mtfe-ih__fade {
        display: none;
    }
    body .mtfe-ih .mtfe-ih__title {
        line-height: 1.05;
    }
    .mtfe-ih__desc {
        font-size: 16px;
    }
    .mtfe-ih__actions {
        gap: 22px;
    }
    .mtfe-ih__note {
        display: none;
    }
    body .mtfe-ih .mtfe-ih__seal {
        top: auto !important;
        left: 18px !important;
        bottom: calc(var(--ih-media-h) - 118px);
        transform: none;
    }
    body .mtfe-ih--reveal .mtfe-ih__seal {
        animation-name: mtfe-ih-rise;
    }
    .mtfe-ih__seal-ring text {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mtfe-ih *,
    .mtfe-ih .mtfe-ih__media {
        animation: none !important;
        transition: none !important;
    }
    .mtfe-ih--reveal .mtfe-ih__line > span { transform: none; }
    .mtfe-ih--reveal .mtfe-ih__rise,
    .mtfe-ih--reveal .mtfe-ih__note,
    .mtfe-ih--reveal .mtfe-ih__seal { opacity: 1; }
}

/* primary button + secondary link */
.mtfe-ih__ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 30px;
}
.mtfe-ih .mtfe-ih__secondary,
.mtfe-ih .mtfe-ih__secondary:visited {
    color: var(--ih-title);
    font-size: 16px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--ih-eyebrow);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    transition: color .25s ease;
}
.mtfe-ih .mtfe-ih__secondary:hover,
.mtfe-ih .mtfe-ih__secondary:focus-visible {
    color: var(--ih-eyebrow);
}

/* detail line: location, hours, optional rating */
.mtfe-ih .mtfe-ih__details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mtfe-ih__details li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--ih-text);
    font-size: 14px;
    font-weight: 600;
}
.mtfe-ih__details svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    color: var(--ih-eyebrow);
}
.mtfe-ih__rating strong {
    color: var(--ih-title);
}
.mtfe-ih__verified {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(47, 93, 80, .12);
    color: #2F5D50;
    font-size: 12px;
}
