/*
 * Eisenberg Law Group homepage styles
 *
 * Keep homepage-only additions and modifications in this file and scope them
 * beneath `.elg-home-page`. Shared design-system, header, navigation, and
 * footer rules belong in `styles.css`.
 */

/*
 * Hero first-paint stability:
 * keep the authored final geometry visible before and after the deferred
 * reveal initializer runs so the heading, portrait, and intake panel never
 * flash through translated, clipped, blurred, or scaled loading states.
 */
.elg-home-page .elg-hero .elg-reveal {
    --elg-reveal-x: 0;
    --elg-reveal-y: 0;
    --elg-reveal-scale: 1;
    --elg-reveal-rotate-x: 0deg;
    --elg-reveal-rotate: 0deg;
    --elg-reveal-blur: 0px;
    --elg-reveal-clip: inset(0 0 0 0);
}

.elg-has-js .elg-home-page .elg-hero .elg-reveal {
    opacity: 1;
    clip-path: none;
    filter: none;
    transition: none !important;
    will-change: auto;
}

/* Subtle first-paint hero motion with no delayed class or layout movement. */
.elg-home-page .elg-hero__heading-group {
    animation: elg-home-hero-copy-in 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.elg-home-page .elg-hero__action-group {
    animation: elg-home-hero-copy-in 760ms cubic-bezier(0.22, 1, 0.36, 1) 70ms both;
}

.elg-home-page .elg-hero__stats {
    animation: elg-home-hero-copy-in 800ms cubic-bezier(0.22, 1, 0.36, 1) 140ms both;
}

.elg-home-page .elg-hero__portrait {
    animation: elg-home-hero-portrait-in 880ms cubic-bezier(0.22, 1, 0.36, 1) 60ms both;
}

@keyframes elg-home-hero-copy-in {
    from {
        opacity: 0.86;
        transform: translate3d(-12px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes elg-home-hero-portrait-in {
    from {
        opacity: 0.9;
        transform: translate3d(14px, 0, 0) scale(0.995);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .elg-home-page .elg-hero__heading-group,
    .elg-home-page .elg-hero__action-group,
    .elg-home-page .elg-hero__stats,
    .elg-home-page .elg-hero__portrait {
        animation: none !important;
    }
}

/* Client Stories: Figma 3203:4813 / 3205:11919 background and glow. */
.elg-home-page .elg-client-stories {
    background: #0e2131;
}

.elg-home-page .elg-client-stories__glow {
    top: -31px;
}

/* Keep homepage backgrounds and decorative layers static. */
.elg-home-page .elg-section,
.elg-home-page .elg-section::before,
.elg-home-page .elg-section::after,
.elg-home-page .elg-hero__art,
.elg-home-page .elg-hero__backdrop,
.elg-home-page .elg-hero__shade,
.elg-home-page .elg-hero__grid,
.elg-home-page .elg-hero__glow,
.elg-home-page .elg-record__glow,
.elg-home-page .elg-lead-attorney__glow,
.elg-home-page .elg-lead-attorney__media-shade,
.elg-home-page .elg-lead-attorney__corner,
.elg-home-page .elg-client-stories__glow,
.elg-home-page .elg-counter__media,
.elg-home-page .elg-counter__team,
.elg-home-page .elg-counter__grid,
.elg-home-page .elg-counter__overlay,
.elg-home-page .elg-testimonials__glow,
.elg-home-page .elg-recognition__glow,
.elg-home-page .elg-next-move__glow,
.elg-home-page .elg-site-footer,
.elg-home-page .elg-site-footer::before,
.elg-home-page .elg-site-footer::after {
    animation: none !important;
    transition: none !important;
    will-change: auto;
}

/* Show background-bearing wrappers at their authored Figma state immediately. */
.elg-has-js .elg-home-page .elg-section.elg-reveal,
.elg-has-js .elg-home-page .elg-lead-attorney__media-column.elg-reveal,
.elg-has-js .elg-home-page .elg-counter__team.elg-reveal {
    opacity: 1;
    clip-path: none;
    filter: none;
    transform: none;
    transition: none !important;
    will-change: auto;
}

/*
 * Keep the 3:2 team photograph full-bleed without cropping anyone. Matching
 * the media stage to the source aspect ratio avoids the mobile letterboxing
 * that made the actual photograph much narrower than its container.
 */
.elg-home-page .elg-counter__media {
    aspect-ratio: 3 / 2;
    height: auto;
}

.elg-home-page .elg-counter__team {
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    clip-path: none;
    object-fit: contain;
    object-position: center;
}

@media (min-width: 1025px) {
    .elg-home-page .elg-counter,
    .elg-home-page .elg-counter__column {
        min-height: max(735px, min(66.6666667vw, 1666.666667px));
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .elg-home-page .elg-counter,
    .elg-home-page .elg-counter__column {
        min-height: max(650px, 66.6666667vw);
    }
}

/* Keep the Figma footer legal row visible at the page's maximum scroll position. */
.elg-has-js .elg-home-page .elg-site-footer__bottom.elg-reveal {
    opacity: 1;
    clip-path: none;
    filter: none;
    transform: none;
    transition: none !important;
    will-change: auto;
}

.elg-nav__item > a, .elg-nav__dropdown-toggle {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
}

.elg-utility__inner {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1;
}

.elg-nav {
    height: 100%;
    margin-left: 60px;
}

.elg-utility__track {
    min-width: 0;
    justify-content: center;
    padding-left: 25px;
}

.elg-featured {
    position: relative;
    z-index: 2;
    padding: 390px 0 90px;
    background: url(../assets/shapes/evaluation-background-glow.svg) calc(50% - 635.92px) -578px / 1176.04px 1117.16px no-repeat, linear-gradient(180deg, #0c1721 0%, #112d45 100%) center -1192px / 100% 7772px no-repeat;
    margin-top: -315px;
}

.elg-home-page .elg-featured__logos-viewport {
    width: calc(100% - 60px);
    max-width: 1140px;
}

.elg-hero {
    background: #07101900;
}

/*
 * Keep the desktop evaluation card in the hero's document flow. The approved
 * English layout retains its 59px gap, while longer localized copy can grow
 * without being covered by the card's former fixed top position.
 */
@media (min-width: 1025px) {
    .elg-home-page .elg-case-evaluation {
        position: relative;
        top: auto;
        left: auto;
        margin-top: 59px;
    }
}

.elg-home-page .elg-lead-attorney__media-frame {
    border: 0.5px solid transparent;
    border-image: linear-gradient(180deg, #E0BD79 0%, #0B1B2A 100%) 1;
}

.elg-home-page .elg-testimonials {
    overflow: visible;
    background: linear-gradient(180deg, #0C1721 0%, rgba(16, 37, 57, 0) 100%), #2463a333;
}

.elg-home-page .elg-recognition {
    overflow: visible;
    background: #2463a333;
}

.elg-testimonials__glow--left {
    top: -200px;
}

.elg-testimonials__glow--right {
    top: -180px;
}

.elg-case-evaluation__submit {
    width: 100%;
    margin-top: 15px;
}

.elg-case-evaluation__submit {
    width: 100%;
    margin-top: 15px;
}

.elg-record__cta {
    color: #CAA15A;
}

strong.elg-result-card__value {
    padding-top: 20px;
}

.elg-client-stories__rating span {
    position: relative;
    top: 8px;
    left: 5px;
}

.elg-testimonials__quote {
    font-size: 28px;
    line-height: 40px;
}

a.elg-next-move__phone span, 
a.elg-next-move__phone strong {
	transition: color 180ms ease;
}

a.elg-next-move__phone:hover span, a.elg-next-move__phone:hover strong {
    color: var(--elg-gold-bright);
}
.elg-recognition {
    padding: 80px 0 120px;
}



@media (min-width: 1025px) {
    .elg-home-page .elg-testimonials__glow--left {
        left: calc(50% - 1081px);
    }

    .elg-home-page .elg-testimonials__glow--right {
        left: calc(50% - 29px);
    }
}

@media (min-width: 1500px) {

}


@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
    .elg-result-card:hover, .elg-result-card:focus-visible {
        bottom: 0;
    }
}
@media (hover: hover) and (pointer: fine) {
    .elg-client-story:hover, .elg-client-story:focus-visible {
        border-color: var(--elg-gold-bright);
        background: #0d2335;
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
        transform: translateY(-3px);
    }
}

.elg-home-page .elg-record__results .elg-result-card {
    background: transparent;
}

.elg-home-page .elg-record__results .elg-result-card::after {
    opacity: 0;
    transition: opacity 320ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .elg-home-page .elg-record__results .elg-result-card {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        box-shadow: 0 -4px 40px rgba(11, 65, 115, 0);
        transform: translate3d(0, 0, 0) scale(1);
        transform-origin: center center;
    }

    .elg-home-page .elg-record__results .elg-result-card:hover,
    .elg-home-page .elg-record__results .elg-result-card:focus-visible {
        border-color: var(--elg-gold-bright);
        background-color: #0c1721;
        box-shadow: 0 -4px 40px rgba(11, 65, 115, 0.2);
        transform: translate3d(0, 0, 0) scale(1.07);
    }

    .elg-home-page .elg-record__results .elg-result-card:hover::after,
    .elg-home-page .elg-record__results .elg-result-card:focus-visible::after {
        opacity: 1;
    }
}


@media (min-width: 1201px) and (max-width: 1500px) {
.elg-result-card__value {
    font-size: 45px;
    letter-spacing: -1px;
    line-height: 45px;
}
}

@media (min-width: 1301px) and (max-width: 1500px) {
.elg-nav__item > a, .elg-nav__dropdown-toggle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
}
.elg-nav__list {
    gap: 18px;
}
.elg-nav__item > a, .elg-nav__dropdown-toggle {
    font-size: 14px;
    font-weight: 600;
}
.elg-header__phone {
    position: absolute;
    top: 0;
    right: 20px;
    width: 230px;
    height: 80px;
    gap: 10px;
}
.elg-header__phone-number {
    font-size: 18px;
}
.elg-header__phone-label {
    font-size: 15px;
}
.elg-header__phone img {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    flex: 0 0 30px;
}
.elg-nav {
    margin-left: 60px;
}
.elg-utility__track {
    min-width: 0;
    justify-content: center;
    padding-left: 0px;
}
.elg-utility__inner {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1;
}
}

@media (min-width: 1201px) and (max-width: 1300px) {
.elg-nav__item > a, .elg-nav__dropdown-toggle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
}
.elg-nav__list {
    gap: 15px;
}
.elg-nav__item > a, .elg-nav__dropdown-toggle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
}
.elg-header__phone {
    position: absolute;
    top: 0;
    right: 20px;
    width: 220px;
    height: 80px;
    gap: 10px;
}
.elg-header__phone-number {
    font-size: 18px;
}
.elg-header__phone-label {
    font-size: 12px;
}
.elg-header__phone img {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    flex: 0 0 30px;
}
.elg-nav {
    margin-left: 35px;
}
.elg-nav__dropdown-toggle {
    gap: 5px;
}
.elg-utility__track {
    min-width: 0;
    justify-content: center;
    padding-left: 0px;
}
.elg-utility__inner {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1;
}
	.elg-testimonials__thumbnail-play {
		width: 80px;
		height: 80px;
	}
}

@media (min-width: 1025px) and (max-width: 1200px) {
	.elg-testimonials__thumbnail-play {
		width: 80px;
		height: 80px;
	}
}

@media (min-width: 1025px) and (max-width: 1100px) {
	.elg-testimonials__quote {
        font-size: 22px !important;
        line-height: 28px !important;
    }
	.elg-testimonials__settlement {
		font-size: 14px;
	}
	.elg-testimonials__thumbnail-play {
		width: 80px;
		height: 80px;
	}
}

@media (max-width: 1500px) {
.elg-hero h1 {
    width: 640px;
    max-width: 640px;
    font-size: 80px;
    letter-spacing: -1.8px;
    line-height: 72px;
}
.elg-eyebrow {
    gap: 15px;
    font-size: 14px;
    letter-spacing: 2px;
    line-height: 18px;
}
.elg-record__title,
.elg-lead-attorney__title,
.elg-client-stories__title,
.elg-testimonials__title,
.elg-recognition__title,
.elg-recognition__title,
.elg-next-move__title {
    font-size: 60px;
    letter-spacing: -1.4px;
    line-height: 60px;
}
.elg-testimonials__quote {
    font-size: 26px;
    line-height: 38px;
}
}

@media (max-width: 1200px) {
    .elg-hero h1 {
        width: 580px;
        max-width: 580px;
        font-size: 72px;
        letter-spacing: -1.8px;
        line-height: 65px;
    }
.elg-utility__inner {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1;
}
.elg-menu-toggle img {
    width: 30px;
    height: 20px;
}
.elg-hero__stats dt {
    font-size: 45px;
    line-height: 45px;
}
.elg-record__title,
.elg-lead-attorney__title,
.elg-client-stories__title,
.elg-testimonials__title,
.elg-recognition__title,
.elg-recognition__title,
.elg-next-move__title {
    font-size: 52px;
    letter-spacing: -1.4px;
    line-height: 52px;
}
}

@media (max-width: 1024px) {
.elg-utility__inner {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1;
}
.elg-menu-toggle img {
    width: 30px;
    height: 20px;
}
.elg-utility__inner {
    gap: 12px;
}
.elg-language-list {
    gap: 5px;
}
	.elg-featured {
		position: relative;
		z-index: 2;
		padding: 450px 0 70px;
		background: linear-gradient(180deg, #071019 0%, #0e2235 40%);
		margin-top: -400px;
	}
	.elg-result-card__value {
		font-size: 45px;
		line-height: 45px;
	}
    .elg-record__title, .elg-lead-attorney__title, 
	.elg-client-stories__title, .elg-testimonials__title,
	.elg-recognition__title, .elg-recognition__title,
	.elg-next-move__title {
        font-size: 48px;
        letter-spacing: -1px;
        line-height: 48px;
    }
	.elg-testimonials__featured-play {
		width: 100px;
		height: 100px;
	}
}

@media (max-width: 767px) {
	.elg-hero__shell {
        padding-top: 50px;
    }
	.elg-site-footer__logo {
        width: 125px;
        height: auto;
    }
    .elg-utility__title {
        display: block;
        flex: 0 0 60px;
    }
	.elg-language-list {
        gap: 3px;
    }
	.elg-utility__inner {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 1px;
        line-height: 1;
    }
	.elg-menu-toggle img {
        width: 20px;
        height: 18px;
    }
	.elg-utility__track {
		min-width: 0;
		justify-content: center;
		padding-left: 12px;
	}
    .elg-site-footer__heading, .elg-site-footer__nav-link {
        font-size: 12px;
        line-height: 18px;
		letter-spacing: 1.5px;
    }
	.elg-row.elg-site-footer__links-row .elg-col-6.elg-reveal--up {
		flex: 0 0 60%;
		max-width: 60%;
	}
	.elg-row.elg-site-footer__links-row .elg-col-6.elg-reveal--flip {
		flex: 0 0 40%;
		max-width: 40%;
	}
	.elg-site-footer__card-copy {
        font-size: 15px;
		line-height: 22px;
    }
	.elg-site-footer__language-list li {
		gap: 3px;
	}
	.elg-site-footer__bottom-row {
        padding-top: 20px;
    }
	.elg-site-footer {
        padding: 60px 0 20px;
    }
    .elg-eyebrow {
        gap: 10px;
        font-size: 12px;
        letter-spacing: 1px;
        line-height: 15px;
    }
    .elg-hero h1 {
        width: 100%;
        max-width: 100%;
        font-size: 60px;
        letter-spacing: -1px;
        line-height: 55px;
    }	
	.elg-hero__stats dt {
        font-size: 30px;
        line-height: 30px;
    }
	.elg-hero__stats dd {
        font-size: 12px;
        letter-spacing: 1px;
        line-height: 15px;
    }
	.elg-hero__stats > div {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}
	.elg-case-evaluation {
        min-height: 0;
        margin-top: -95px;
        padding: 20px;
    }
	.elg-home-page .elg-featured__logos-viewport {
		width: calc(100% - 40px);
		max-width: none;
	}
	.elg-featured {
		position: relative;
		z-index: 2;
		padding: 450px 0 70px;
		background: linear-gradient(180deg, #071019 0%, #0e2235 40%);
		margin-top: -400px;
	}
	.elg-case-evaluation__eyebrow {
        font-size: 12px;
        line-height: 14px;
        letter-spacing: 1.5px;
    }
	.elg-record__title,
	.elg-lead-attorney__title,
	.elg-client-stories__title,
	.elg-testimonials__title,
	.elg-recognition__title,
	.elg-recognition__title,
	.elg-next-move__title	{
		font-size: 40px;
		letter-spacing: -0.8px;
		line-height: 45px;
	}
	.elg-result-card--featured {
        left: 0px;
        width: calc(100% + 0px);
    }
	.elg-lead-attorney__cta {
        min-height: 50px;
        gap: 10px;
        font-size: 13px;
    }
	.elg-client-story {
        padding: 25px 20px;
    }
    .elg-client-stories__slide {
        flex-basis: 320px;
        width: 320px;
        height: 340px;
    }
	.elg-lead-attorney__eyebrow img,
	.elg-client-stories__eyebrow img,
	.elg-testimonials__eyebrow img,
	.elg-recognition__eyebrow img,
	.elg-next-move__eyebrow img	{
		flex: 0 0 30px;
		width: 30px;
	}
	.elg-record__eyebrow,
	.elg-lead-attorney__eyebrow,
	.elg-client-stories__eyebrow,
	.elg-testimonials__eyebrow,
	.elg-recognition__eyebrow,
	.elg-next-move__eyebrow	{
		gap: 12px;
	}
	.elg-testimonials__quote {
        font-size: 24px;
        line-height: 35px;
    }
	.elg-testimonials__featured-play {
		width: 70px;
		height: 70px;
	}
	.elg-testimonials__heading-group,
	.elg-client-stories__heading-group,
	.elg-recognition__header,
	.elg-next-move__message	{
        gap: 15px;
    }
	.elg-recognition {
		padding: 40px 0 60px;
	}
}

@media (max-width: 430px) {
    .elg-site-footer__bottom {
        flex-direction: row;
        gap: 15px;
    }
	.elg-site-footer__legal, .elg-site-footer__legal li {
		gap: 5px;
	}
	.elg-site-footer__language-title, .elg-site-footer__language-list li {
        font-size: 11px;
        letter-spacing: 1.5px;
    }
	.elg-site-footer__card-copy {
        font-size: 14px;
		line-height: 22px;
    }
}

@media (max-width: 390px) {
    .elg-utility__title {
        display: block;
        flex: 0 0 50px;
    }
	.elg-utility__inner {
        font-size: 9px;
        font-weight: 600;
        letter-spacing: 1px;
        line-height: 1;
    }
	.elg-utility__track {
		min-width: 0;
		justify-content: center;
		padding-left: 0px;
	}
	.elg-site-footer__heading, .elg-site-footer__nav-link {
        font-size: 11px;
        line-height: 18px;
        letter-spacing: 1px;
    }
	.elg-site-footer__copyright, .elg-site-footer__legal-link {
        font-size: 10px;
        line-height: 8px;
    }
	.elg-site-footer__legal, .elg-site-footer__legal li {
        gap: 3px;
    }
    .elg-site-footer__language-title, .elg-site-footer__language-list li {
        font-size: 10px;
        letter-spacing: 1px;
    }
	.elg-site-footer__language-list li {
        gap: 3px;
    }
	.elg-site-footer__card-copy {
        font-size: 13px;
        line-height: 22px;
    }
	.elg-site-footer__description {
        font-size: 15px;
        line-height: 25px;
    }
	.elg-hero h1 {
        width: 100%;
        max-width: 100%;
        font-size: 50px;
        letter-spacing: -1px;
        line-height: 45px;
    }
	.elg-hero__stats dd {
        font-size: 11px;
        letter-spacing: 0.8px;
        line-height: 15px;
    }
	.elg-eyebrow {
        gap: 8px;
        font-size: 10px;
        letter-spacing: 1px;
        line-height: 15px;
    }
	.elg-eyebrow picture, .elg-eyebrow img {
        width: 25px;
        flex-basis: 25px;
    }
	.elg-case-evaluation h2 {
        font-size: 25px;
        line-height: 25px;
    }
	.elg-case-evaluation__eyebrow {
        font-size: 11px;
        line-height: 14px;
        letter-spacing: 1px;
    }
	.elg-case-evaluation__form {
        min-height: auto;
        padding: 22px 15px;
    }
	.elg-client-story {
        padding: 25px 20px;
    }
    .elg-client-stories__slide {
        flex-basis: 290px;
        width: 290px;
        height: 340px;
    }
	.elg-client-stories__track {
		gap: 20px;
	}
	.elg-counter__value {
        font-size: 36px;
        letter-spacing: -0.8px;
        line-height: 42px;
    }
	.elg-testimonials__quote {
        font-size: 20px;
        line-height: 30px;
    }
	.elg-recognition__title, .elg-recognition__title, .elg-next-move__title {
        font-size: 36px;
        letter-spacing: -0.8px;
        line-height: 42px;
    }
}

/* Featured media: seamless, continuously measured logo loop. */
.elg-home-page .elg-featured__logos-viewport[data-featured-logos-ready="true"] .elg-featured__logos-track {
    --elg-featured-logo-gap: 47px;
    --elg-featured-logo-distance: 1046px;
    --elg-featured-logo-offset: 0px;
    --elg-featured-logo-duration: 26.15s;
    display: flex;
    width: max-content;
    align-items: center;
    gap: var(--elg-featured-logo-gap);
    animation: elg-featured-logo-loop var(--elg-featured-logo-duration) linear infinite;
    will-change: transform;
}

.elg-home-page .elg-featured__logos-viewport[data-featured-logos-ready="true"] .elg-featured__logos {
    position: static;
    left: auto;
    flex: 0 0 auto;
    margin: 0;
    transform: none;
}

@keyframes elg-featured-logo-loop {
    from {
        transform: translate3d(var(--elg-featured-logo-offset), 0, 0);
    }

    to {
        transform: translate3d(
            calc(var(--elg-featured-logo-offset) - var(--elg-featured-logo-distance)),
            0,
            0
        );
    }
}

@media (prefers-reduced-motion: reduce) {
    .elg-home-page .elg-featured__logos-viewport[data-featured-logos-ready="true"] .elg-featured__logos-track {
        animation: none;
        transform: translate3d(var(--elg-featured-logo-offset), 0, 0);
        will-change: auto;
    }
}
