/* Photography-led home refresh, scoped to the three home pages. */
.ej-visual-home { --ej-soft: #f4f6f9; --ej-edge: #e0e6ed; }
.ej-visual-home .section { padding-block: 88px; }
.ej-visual-home :is(.section[id], .contact-section[id], .route-panel[id], #hero-name) { scroll-margin-top: 12px; }
.ej-visual-home .section-header { gap: 48px; align-items: end; margin-bottom: 38px; }
.ej-visual-home .section-title { font-weight: 760; letter-spacing: -.045em; }
.ej-visual-home .section-tag { color: #526174; letter-spacing: .16em; }
.ej-visual-home .hero { padding-block: 58px; background-position: center 65%; }
.ej-visual-home .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(380px, 1fr); gap: 76px; align-items: center; }
.ej-visual-home .hero-copy { padding-block: 22px; }
.ej-visual-home .hero-title { font-size: clamp(52px, 5.6vw, 82px); font-weight: 800; line-height: 1.03; }
.ej-visual-home .hero-title em { display: inline; }
.ej-visual-home .hero-lead { max-width: 560px; line-height: 1.7; }
.ej-visual-home .hero-form { background: #fff; color: #101f35; border: 1px solid #ffffffa0; border-radius: 18px; padding: 28px; box-shadow: 0 20px 60px #03122438; }
.ej-visual-home .hero-form h2 { color: #101f35; font-size: 29px; }
.ej-visual-home .hero-form :is(label, .form-note a) { color: #263b52; }
.ej-visual-home .hero-form :is(.form-intro, .form-note, .form-field-hint) { color: #536174; }
.ej-visual-home .hero-form .form-control { background: #f8f9fb; border-color: #ccd5df; border-radius: 7px; }
.ej-visual-home .hero-form :is(input,select) { min-height: 44px; height: 44px; }
.ej-visual-home .hero-form .form-group { margin-bottom: 13px; }
.ej-visual-home .ej-contact-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ej-visual-home .ej-contact-pair > div { min-width: 0; }
.ej-visual-home .hero-form .form-field-hint { font-size: 11px; line-height: 1.45; }
.ej-visual-home .hero-form .form-control.form-file { height: auto; min-height: 44px; }
.ej-visual-home .hero-form .form-status { color: #263b52; }
.ej-visual-home .btn { border-radius: 7px; }
.ej-visual-home :is(input, textarea, select):focus-visible { outline: 2px solid #173854; outline-offset: 2px; }
.ej-visual-home .trust-strip { background: #fff; border-bottom: 1px solid var(--ej-edge); }
.ej-visual-home .trust-grid { padding-block: 5px; }
.ej-visual-home #services { background: var(--ej-soft); }
.ej-visual-home .services-grid { gap: 22px; }
.ej-visual-home .services-grid .service-card { padding: 0 26px 24px; overflow: hidden; border-radius: 14px; border-color: #e1e6ed; box-shadow: 0 3px 12px #101f3503; }
.ej-visual-home .service-photo { display: block; width: calc(100% + 52px); max-width: none; height: 148px; object-fit: cover; margin: 0 -26px 23px; }
.ej-visual-home .services-grid .service-top { margin-bottom: 19px; }
.ej-visual-home .services-grid .service-title { font-size: 22px; font-weight: 730; }
.ej-visual-home .services-grid .service-desc { line-height: 1.7; }
.ej-visual-home .services-grid .service-number:first-child { width: 36px; height: 36px; flex-basis: 36px; border-radius: 9px; font-size: 13px; background: #eef2f6; color: #283d54; }
.ej-visual-home .services-grid .law-tag { max-width: calc(100% - 48px); }
.ej-visual-home .services-grid .service-card:last-child:nth-child(3n+1) { grid-column: 1 / -1; display: grid; grid-template-columns: 210px 1fr 1fr; column-gap: 28px; align-items: start; padding: 26px; }
.ej-visual-home .services-grid .service-card:last-child:nth-child(3n+1) .service-photo { grid-row: 1 / 4; width: 210px; height: 100%; min-height: 170px; margin: 0; border-radius: 8px; }
.ej-visual-home .services-grid .service-card:last-child:nth-child(3n+1) .service-top { grid-column: 2; }
.ej-visual-home .services-grid .service-card:last-child:nth-child(3n+1) .service-title { grid-column: 2; }
.ej-visual-home .services-grid .service-card:last-child:nth-child(3n+1) .service-desc { grid-column: 3; grid-row: 1 / 3; }
.ej-visual-home .services-grid .service-card:last-child:nth-child(3n+1) .service-bottom { grid-column: 3; grid-row: 3; width: 100%; }
.ej-visual-home .route-section { background: #fff; }
.ej-visual-home .route-panel { border-radius: 16px; overflow: hidden; box-shadow: 0 8px 32px #101f3506; }
.ej-visual-home .pricing-section { background: #f4f6f9; }
.ej-visual-home #cases { background: #fff; }
.ej-visual-home .case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.ej-visual-home .case-card { padding: 0; border: 1px solid #e0e6ed; border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; box-shadow: 0 5px 20px #122f4d05; }
.ej-visual-home .case-photo { position: relative; margin: 0; overflow: hidden; background: #e7edf3; }
.ej-visual-home .case-photo img { width: 100%; height: 256px; object-fit: cover; display: block; transition: transform .4s ease; }
.ej-visual-home .case-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #07172938, transparent 50%, #07172925); pointer-events: none; }
.ej-visual-home .case-photo figcaption { position: absolute; z-index: 1; bottom: 14px; right: 18px; padding: 3px 8px; border-radius: 4px; font-size: 10px; line-height: 1.7; color: #fff; background: #0c1c30d9; }
.ej-visual-home .case-heading { position: absolute; z-index: 2; inset: 18px 20px auto; display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: 11px; color: #fff; }
.ej-visual-home .case-heading span { padding: 5px 10px; border-radius: 5px; color: #fff; background: #101f35eb; }
.ej-visual-home .case-heading span:first-child { background: #ffe24a; color: #101f35; font-weight: 700; }
.ej-visual-home .case-content { padding: 26px 30px 30px; display: flex; flex: 1; flex-direction: column; }
.ej-visual-home .case-visual { order: 2; background: #f2f5f8; border: 0; border-left: 3px solid #ffe24a; border-radius: 7px; padding: 16px 18px; min-height: 76px; gap: 15px; margin: 0 0 19px; flex-wrap: wrap; color: #2c435b; font-size: 12px; }
.ej-visual-home .case-visual strong { color: #101f35; font-size: 21px; letter-spacing: -.04em; font-weight: 600; }
.ej-visual-home .case-visual small { font-size: 10px; color: #536174; }
.ej-visual-home .case-card h3 { order: 1; max-width: none; margin: 0 0 20px; color: #13273e; font-weight: 740; font-size: 26px; line-height: 1.23; letter-spacing: -.035em; text-wrap: pretty; }
.ej-visual-home .case-card p { order: 3; max-width: none; font-size: 15px; line-height: 1.75; color: #536174; margin: 0 0 24px; }
.ej-visual-home .case-content > .law-tag { order: 4; align-self: start; margin-top: auto; min-height: 38px; display: inline-flex; align-items: center; font-size: 11px; line-height: 1.6; border: 0; border-radius: 0; border-bottom: 1px solid #c7d2df; padding: 3px 0; color: #294763; background: transparent; }
.ej-visual-home .evidence-bar { height: 3px; margin-top: 3px; }
.ej-visual-home .case-card:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: .95fr 1.05fr; }
.ej-visual-home .case-card:last-child:nth-child(odd) .case-photo { height: 100%; min-height: 360px; }
.ej-visual-home .case-card:last-child:nth-child(odd) .case-photo img { position: absolute; height: 100%; }
.ej-visual-home .case-card:last-child:nth-child(odd) .case-content { padding: 36px; }
.ej-visual-home .contact-section { background: #eef3f8; border: 0; }
.ej-visual-home .contact-section .contact-form { border: 1px solid #dce3ec; border-radius: 16px; box-shadow: 0 6px 28px #101f3505; }
.ej-visual-home .contact-section .form-control { border-radius: 6px; }
.ej-visual-home .contact-visual { border-radius: 12px; overflow: hidden; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .ej-visual-home .case-card:hover .case-photo img { transform: scale(1.025); } }
@media (max-width: 1100px) {
  .ej-visual-home .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 36px; }
  .ej-visual-home .hero-title { font-size: 62px; }
  .ej-visual-home .case-content { padding: 24px; }
  .ej-visual-home .case-card h3 { font-size: 24px; }
}
@media (max-width: 900px) {
  .ej-visual-home .hero-grid { grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
  .ej-visual-home .hero-title { font-size: 50px; }
  .ej-visual-home .hero-form { padding: 22px; }
  .ej-visual-home .ej-contact-pair { grid-template-columns: 1fr; }
  .ej-visual-home .services-grid .service-card:last-child:nth-child(3n+1) { display: flex; grid-column: auto; padding: 0 26px 24px; }
  .ej-visual-home .services-grid .service-card:last-child:nth-child(3n+1) .service-photo { width: calc(100% + 52px); height: 148px; min-height: 0; border-radius: 0; margin: 0 -26px 23px; }
  .ej-visual-home .case-grid { gap: 20px; }
  .ej-visual-home .case-photo img { height: 215px; }
  .ej-visual-home .case-heading { inset: 14px 14px auto; font-size: 10px; }
}
@media (max-width: 700px) {
  .ej-visual-home .section { padding-block: 58px; }
  .ej-visual-home .section-header { gap: 20px; margin-bottom: 28px; }
  .ej-visual-home .section-title { font-size: 34px; }
  .ej-visual-home .hero { padding-block: 34px; }
  .ej-visual-home .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .ej-visual-home .hero-copy { padding: 4px 0 0; }
  .ej-visual-home .hero-title { font-size: clamp(42px, 10.8vw, 68px); }
  .ej-visual-home .hero-title em { display: inline; }
  .ej-visual-home .hero-form { padding: 24px; border-radius: 14px; }
  .ej-visual-home .ej-contact-pair { grid-template-columns: 1fr 1fr; }
  .ej-visual-home .hero-badge { line-height: 1.7; }
  .ej-visual-home .hero-lead { font-size: 16px; }
  .ej-visual-home .case-grid { grid-template-columns: 1fr; gap: 24px; }
  .ej-visual-home .case-card { border-radius: 13px; }
  .ej-visual-home .case-photo img { height: 224px; }
  .ej-visual-home .case-content { padding: 24px; }
  .ej-visual-home .case-card h3 { font-size: 25px; margin-bottom: 18px; }
  .ej-visual-home .case-visual { padding: 15px; font-size: 11px; gap: 10px; }
  .ej-visual-home .case-card:last-child:nth-child(odd) { display: flex; grid-column: auto; }
  .ej-visual-home .case-card:last-child:nth-child(odd) .case-photo { min-height: 0; height: auto; }
  .ej-visual-home .case-card:last-child:nth-child(odd) .case-photo img { position: static; height: 224px; }
  .ej-visual-home .case-card:last-child:nth-child(odd) .case-content { padding: 24px; }
}
@media (max-width: 380px) {
  .ej-visual-home .hero-form, .ej-visual-home .case-content, .ej-visual-home .case-card:last-child:nth-child(odd) .case-content { padding: 20px; }
  .ej-visual-home .ej-contact-pair { grid-template-columns: 1fr; }
  .ej-visual-home .case-photo img, .ej-visual-home .case-card:last-child:nth-child(odd) .case-photo img { height: 200px; }
  .ej-visual-home .case-card h3 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .ej-visual-home .case-photo img { transition: none; } }
