/* Styles for the refreshed header, comparison heroes, and animated toolkit. */
:root {
    --ef-paper: #f3f7fa;
    --ef-porcelain: #ffffff;
    --ef-ink: var(--ef-brand-navy, #07182f);
    --ef-secondary-ink: #47586a;
    --ef-rule: #dce5ed;
    --ef-brass: var(--ef-brand-gold, #d8a84f);
    --ef-deep-teal: #08786e;
    --ef-corner: 18px;
    --ef-shadow: 0 16px 40px rgba(18, 35, 56, .08);
}

body .ef-header-section {
    background: var(--ef-navy, var(--ef-ink));
    border-bottom-color: rgba(255, 255, 255, .12);
}

body .ef-header-section .ef-header-inner {
    min-height: 74px;
    width: min(1320px, calc(100% - 64px));
}

body .ef-header-section .ef-desktop-nav { gap: clamp(6px, 1.2vw, 18px); }

body .ef-header-section :is(.ef-nav-link, .ef-tools-toggle) {
    min-height: 42px;
    padding: 10px 13px;
    border-radius: 8px;
    background: transparent;
    color: #e4ebf0;
}

body .ef-header-section :is(.ef-nav-link, .ef-tools-toggle)::after { content: none; }

body .ef-header-section :is(.ef-nav-link, .ef-tools-toggle):is(:hover, :focus-visible),
body .ef-header-section .ef-tools-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, .09);
    color: #fff;
}

body .ef-header-section .ef-tools-wrap .ef-tools-menu {
    top: calc(100% + 9px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 370px;
    padding: 10px;
    border: 1px solid var(--ef-rule);
    border-radius: 14px;
    background: var(--ef-porcelain);
    box-shadow: 0 20px 45px rgba(7, 24, 47, .2);
    visibility: hidden;
    opacity: 0;
}

body .ef-header-section .ef-tools-wrap.ef-dropdown-open .ef-tools-menu {
    visibility: visible;
    opacity: 1;
}

body .ef-header-section .ef-tools-menu-link { color: var(--ef-ink); }
body .ef-header-section .ef-tools-menu-link:is(:hover, :focus-visible) {
    background: #e9f5f4;
    color: var(--ef-ink);
}

body .ef-header-section :is(.ef-start-button, .ef-mobile-start) {
    background: var(--ef-brass);
    color: #162338;
    box-shadow: none;
}

body .ef-header-section :is(.ef-start-button, .ef-mobile-start):is(:hover, :focus-visible) {
    background: #f3d39a;
    color: #162338;
}

body .ef-header-section :is(.ef-menu-button, .ef-mobile-tools-toggle):is(:hover, :focus-visible) {
    background-color: rgba(255, 255, 255, .09);
}

.ef-design-kicker {
    display: inline-block;
    margin: 0;
    color: var(--ef-deep-teal);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.5;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ef-toolkit .ef-toolkit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 19px;
    border: 1px solid var(--ef-ink);
    border-radius: 9px;
    background: var(--ef-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
}

.ef-toolkit .ef-toolkit-link:is(:hover, :focus-visible) { background: var(--ef-deep-teal); border-color: var(--ef-deep-teal); color: #fff; }

.ef-toolkit { background: var(--ef-paper); color: var(--ef-ink); font: 15px/1.65 Inter, Arial, sans-serif; }
.ef-toolkit-inner { width: min(1160px, calc(100% - 64px)); padding: clamp(54px, 7vw, 100px) 0; margin: auto; }
.ef-toolkit-heading { max-width: 680px; margin: 0 auto 26px; text-align: center; }
.ef-toolkit .ef-tools-heading { margin: 9px 0 11px; font: 700 clamp(31px, 4vw, 51px)/1.12 "Libre Baskerville", Georgia, serif; letter-spacing: -.045em; color: var(--ef-ink); text-wrap: balance; }
.ef-toolkit .ef-tools-intro { margin: 0; color: var(--ef-secondary-ink); }
.ef-toolkit-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 22px; }
.ef-toolkit-tabs[hidden], .ef-toolkit-panel[hidden] { display: none; }

.ef-toolkit .ef-toolkit-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    min-height: 43px;
    border: 1px solid var(--ef-rule);
    border-radius: 99px;
    background: var(--ef-porcelain);
    color: var(--ef-ink);
    font: 700 13px/1.25 Inter, Arial, sans-serif;
    cursor: pointer;
}

.ef-toolkit .ef-toolkit-tabs button:hover { background: #e9f5f4; color: var(--ef-ink); }
.ef-toolkit .ef-toolkit-tabs button[aria-selected="true"] { border-color: var(--ef-ink); background: var(--ef-ink); color: #fff; }
.ef-toolkit-tabs svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ef-toolkit-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); overflow: hidden; margin: 0 0 12px; border: 1px solid var(--ef-rule); border-radius: var(--ef-corner); background: var(--ef-porcelain); box-shadow: var(--ef-shadow); }
.ef-toolkit-media { position: relative; aspect-ratio: 8 / 5; min-height: 100%; background: #e7eef4; }
.ef-toolkit-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.ef-toolkit-copy { align-self: center; padding: clamp(23px, 4vw, 52px); }
.ef-toolkit-copy h3 { margin: 8px 0 12px; color: var(--ef-ink); font: 700 clamp(23px, 3vw, 37px)/1.16 "Libre Baskerville", Georgia, serif; letter-spacing: -.04em; }
.ef-toolkit-copy p { margin: 0 0 21px; color: var(--ef-secondary-ink); }
.ef-toolkit-more { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 19px; margin: 22px 0 0; font-size: 13px; }
.ef-toolkit-more a { color: var(--ef-deep-teal); text-underline-offset: 4px; }

.ef-icon {
    display: inline-block;
    flex: 0 0 1em;
    width: 1em;
    height: 1em;
    background: currentColor;
    mask: var(--ef-icon) center / contain no-repeat;
}

.ef-icon--house { --ef-icon: url("icons/house.svg"); }
.ef-icon--building { --ef-icon: url("icons/building-2.svg"); }
.ef-icon--eraser { --ef-icon: url("icons/eraser.svg"); }
.ef-icon--map { --ef-icon: url("icons/map.svg"); }
.ef-icon--pen { --ef-icon: url("icons/pen-tool.svg"); }
.ef-icon--video { --ef-icon: url("icons/video.svg"); }
.ef-icon--upload { --ef-icon: url("icons/upload.svg"); }
.ef-icon--pencil { --ef-icon: url("icons/pencil.svg"); }
.ef-icon--sparkles { --ef-icon: url("icons/sparkles.svg"); }
.ef-icon--compare { --ef-icon: url("icons/move-horizontal.svg"); }
.ef-icon--arrow { --ef-icon: url("icons/arrow-right.svg"); }
.ef-icon--replay { --ef-icon: url("icons/rotate-ccw.svg"); }

body .ef-toolkit .ef-toolkit-tabs .ef-icon { font-size: 16px; }
body .ef-toolkit .ef-toolkit-tabs button[aria-selected="true"] { background: var(--ef-ink); box-shadow: inset 0 -2px var(--ef-brand-teal, #16c8b7); }
body .ef-toolkit .ef-toolkit-tabs button[aria-selected="true"] .ef-icon { color: #9dece2; }
body .ef-toolkit .ef-toolkit-media > .ef-toolkit-media-label { z-index: 2; }
.ef-toolkit-media .ef-toolkit-original { clip-path: inset(0 100% 0 0); }
.ef-toolkit-media.is-previewing .ef-toolkit-original { animation: ef-toolkit-reveal 2.65s ease-in-out both; }
.ef-toolkit-media.is-previewing .ef-toolkit-preview-motion { animation: ef-toolkit-push 2.65s ease-in-out both; }

@keyframes ef-toolkit-reveal {
    0%, 26% { clip-path: inset(0 0 0 0); }
    83%, 100% { clip-path: inset(0 100% 0 0); }
}

@keyframes ef-toolkit-push {
    from { transform: scale(1.04); }
    to { transform: scale(1.12); }
}

.ef-toolkit .ef-toolkit-replay {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    min-height: 38px;
    border: 1px solid #ffffff40;
    border-radius: 99px;
    background: #07182fe8;
    color: #fff;
    font: 650 12px/1 Inter, Arial, sans-serif;
    cursor: pointer;
}

.ef-toolkit .ef-toolkit-replay:hover { background: #07182f; color: #fff; }
.ef-toolkit .ef-toolkit-replay[hidden] { display: none; }

@media (max-width: 1023px) {
    body .ef-header-section .ef-mobile-menu.ef-mobile-menu-open {
        max-height: calc(100svh - 74px);
        overflow: auto;
        overscroll-behavior: contain;
    }
}

body :is(.ef-header-section, .ef-toolkit) :focus-visible {
    outline: 2px solid var(--ef-brand-gold, #d8a84f);
    outline-offset: 3px;
}

body .ef-hero-section .ef-hybrid-visual {
    min-width: 0;
    margin: 0;
    padding: 0;
}

body .ef-hybrid-visual :is(.ef-comparison, .ef-tp-compare) {
    aspect-ratio: 3 / 2;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 20px 48px #0004;
}

body .ef-hybrid-visual :is(.ef-comparison, .ef-tp-compare):focus-within {
    outline: none;
}

body .ef-hybrid-visual :is(.ef-comparison, .ef-tp-compare):has(input:focus-visible) :is(.ef-slider-handle, .ef-tp-divider i) {
    outline: 2px solid #07182f;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
    .ef-comparison[data-intro-preview] .ef-after-layer {
        transition: clip-path 600ms cubic-bezier(.4, 0, .2, 1);
    }

    .ef-comparison[data-intro-preview] .ef-slider-divider {
        transition: left 600ms cubic-bezier(.4, 0, .2, 1);
    }
}

.ef-hybrid-visual .ef-comparison picture { display: block; position: absolute; inset: 0; }
.ef-hybrid-visual .ef-comparison img { display: block; width: 100%; height: 100%; object-fit: cover; }
body .ef-hybrid-visual .ef-after-layer { clip-path: inset(0 0 0 var(--ef-position)); }
body .ef-hybrid-visual .ef-tp-compare-media--after { clip-path: inset(0 0 0 var(--ef-compare-position)); }

body .ef-hybrid-visual :is(.ef-image-label, .ef-tp-compare-label) {
    border-radius: 999px;
    background: #07182fdf;
    color: #fff;
    font-style: normal;
    text-transform: none;
    letter-spacing: normal;
}

body .ef-hybrid-visual :is(.ef-slider-handle, .ef-tp-divider i) {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--ef-ink);
    font-size: 21px;
}
body .ef-hybrid-visual :is(.ef-slider-handle, .ef-tp-divider i)::before,
body .ef-hybrid-visual :is(.ef-slider-handle, .ef-tp-divider i)::after { content: none; }

.ef-hybrid-visual .ef-hero-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 13px 0 0;
    padding: 10px 12px;
    border: 1px solid #a6c2dc32;
    border-radius: 12px;
    background: #ffffff08;
    color: #eef5fc;
    font: normal 12px/1.35 Inter, Arial, sans-serif;
}
.ef-hero-steps > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ef-hero-steps .ef-icon { color: var(--ef-brand-teal, #16c8b7); font-size: 17px; }
.ef-hero-steps strong, .ef-hero-steps small { display: block; }
.ef-hero-steps small { margin-top: 2px; color: #c3d2df; font-size: 11px; }

body .estateframe-tool-page .ef-tp-hero {
    padding: clamp(45px, 6vw, 88px) 0;
    background: radial-gradient(ellipse at 80% 5%, var(--ef-brand-panel, #0d2743), transparent 68%),
        var(--ef-brand-dark, #041426);
}
body .estateframe-tool-page .ef-tp-hero-layout {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
    gap: clamp(32px, 5vw, 72px);
    width: min(1320px, calc(100% - 64px));
    margin: 0 auto;
}
body .estateframe-tool-page .ef-tp-hero-layout > .ef-tp-container { width: 100%; min-width: 0; }
body .estateframe-tool-page .ef-tp-hero-copy { text-align: left; }
body .estateframe-tool-page .ef-tp-hero-copy h1 {
    margin-inline: 0;
    color: #fff;
    font-size: clamp(36px, 4vw, 56px);
    text-wrap: balance;
}
body .estateframe-tool-page .ef-tp-hero-copy > p { margin-inline: 0; color: #c3d2df; }
body .estateframe-tool-page .ef-tp-eyebrow { color: var(--ef-brass); }
body .estateframe-tool-page .ef-tp-actions { justify-content: flex-start; margin-bottom: 0; }
body .estateframe-tool-page .ef-tp-hero .ef-tp-button--primary {
    background: var(--ef-brass);
    color: #07182f;
    box-shadow: none;
}
body .estateframe-tool-page .ef-tp-hero .ef-tp-button--primary:hover { background: #f0ca86; }
body .estateframe-tool-page .ef-tp-hero .ef-tp-button--secondary {
    background: #ffffff0a;
    border-color: #9ab4cd62;
    color: #fff;
}
body .estateframe-tool-page .ef-tp-hero .ef-tp-button--secondary:hover { background: #ffffff1f; }

#estateframe-tools { scroll-margin-top: 24px; }

@media (max-width: 860px) {
    body .estateframe-tool-page .ef-tp-hero-layout {
        grid-template-columns: 1fr;
        width: min(680px, calc(100% - 40px));
    }
}
@media (max-width: 640px) {
    body .ef-header-section .ef-header-inner { min-height: 64px; width: calc(100% - 32px); }
    .ef-toolkit-inner { width: calc(100% - 36px); }
    .ef-toolkit-panel { grid-template-columns: 1fr; }
    .ef-toolkit .ef-toolkit-tabs button { padding-inline: 10px; }
    .ef-hero-steps small { display: none; }
    .ef-hero-steps .ef-icon { font-size: 14px; }
    .ef-hero-steps > div { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
    body .ef-header-section .ef-tools-menu { transition: none; }
    .ef-toolkit-media.is-previewing :is(.ef-toolkit-original, .ef-toolkit-preview-motion) { animation: none; }
    .ef-toolkit .ef-toolkit-replay { display: none; }
}

.ef-toolkit .ef-toolkit-media-label {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #07182fdf;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}
