/* Homepage composition. Copy and links remain in Gutenberg shortcodes. */
body.home {
  --home-space: 4rem;
  --home-gap: 2.5rem;
}

/* Preserve the hero geometry; a wider image window crops the lower portrait. */
body.home .home-hero__attorney {
  width: 25rem;
  object-fit: cover;
  object-position: center top;
}

/* Zehl's open four-reason composition, using Berke's own facts and intake. */
body.home .why-us { background: #fff; }
body.home .why-us__layout {
  grid-template-columns: minmax(0, 1fr) 23.5rem;
  gap: var(--home-gap);
  align-items: start;
}
body.home .why-us__reasons > h2 { margin: 0 0 2rem; text-align: center; }
body.home .why-us__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
body.home .why-us__item {
  display: block;
  padding: 0;
  border: 0;
  text-align: center;
  align-items: start;
}
body.home .why-us__item .berke-why-icon {
  grid-column: auto;
  grid-row: auto;
  justify-self: center;
  margin: 0 auto -.5rem;
  transform: scale(.75);
  transform-origin: top center;
}
body.home .why-us__item h3 {
  grid-column: auto;
  grid-row: auto;
  align-self: start;
  margin: 0 0 .75rem;
  min-height: 0;

  text-wrap: balance;
}
body.home .why-us__item p {
  grid-column: auto;
  grid-row: auto;
  margin: 0;
  text-wrap: pretty;
}
body.home .why-us .recognition {
  margin: 2.25rem 0 0;
  padding: 0;
  background: transparent;
}
body.home .why-us .recognition h2 {
  margin: 0 0 1rem;

  text-align: center;
}
body.home .why-us .recognition__badges {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
body.home .why-us .recognition__badges img {
  display: block;
  width: 100%;
  max-width: 15rem;
  aspect-ratio: 2 / 1;
  height: auto;
  object-fit: contain;
}
body.home .why-us .case-review { padding: 1.75rem 1.5rem; }
body.home .why-us .case-review h2 {  margin-bottom: 1rem; text-align: center; }
body.home .why-us .case-review > p { text-align: center; }

/* Zehl: centered editorial titles and two reading columns. */
body.home .attorney-profile--color .attorney-profile__copy { column-gap: 3rem; }
body.home .attorney-profile--color .attorney-profile__copy > h2 {
  text-align: center; max-width: 34ch; margin: 0 auto 2rem;
}
body.home .berke-credentials { background: #fff; }
body.home .berke-credentials__heading { margin-bottom: 2rem; }
body.home .berke-credentials__heading h2 { text-align: center; }
body.home .berke-credentials__footer { align-items: center; }
body.home .testimonials { background: var(--gray); }
body.home .testimonials h2 { text-align: center; }

/* Demas: a dark process band with four openly arranged stages. */
body.home .case-process__layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
body.home .case-process__intro { max-width: 65ch; margin-inline: auto; text-align: center; }
body.home .case-process__intro h2 { text-align: center; }
body.home .case-process__intro > p { margin-bottom: 0; }
body.home .case-process__stages { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
body.home .case-process__stage {
  border: 0; padding: 0; min-width: 0;
}
body.home .case-process__stage h3 { margin: 0 0 .75rem; min-height: 0; }
body.home .case-process__stage p:last-child { margin-bottom: 0; }

/* Full-width section titles and bounded prose keep the educational copy aligned. */
body.home .case-worth__content h2 {
  text-align: center; max-width: 34ch; margin: 0 auto 2rem;
}
body.home .case-worth__content > p { max-width: 80ch; margin-inline: auto; }
body.home .case-worth__content ul { max-width: 60rem; margin: 1.5rem auto; gap: .75rem 3rem; }

/* The claim explanation uses a solid surface; the hero owns the city/portrait. */
body.home .california-laws { background: #fff; color: var(--text); }
body.home .california-laws::before { display: none; }
body.home .california-laws__background,
body.home .california-laws__portrait { display: none; }
body.home .california-laws__layout { grid-template-columns: minmax(0, 1fr); }
body.home .california-laws__content { max-width: 52.5rem; width: 100%; margin-inline: auto; }
body.home .california-laws__content h2 {
  color: var(--secondary); max-width: none; text-align: center; margin: 0 0 2rem;
}
body.home .california-laws__lead { border: 0; padding: 0; }
body.home .california-laws__rules { margin-block: 1.25rem 1.5rem; }
body.home .california-laws__content .btn { display: table; margin: 1.5rem auto 0; }

body.home .protect-claim__intro { max-width: 52rem; margin-inline: auto; text-align: center; }
body.home .protect-claim__intro h2 { text-align: center; }
body.home .home-faq .container { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
body.home .home-faq__heading h2 { text-align: center; }
body.home .home-faq__list { width: 100%; max-width: 65rem; margin-inline: auto; }
body.home .office-location__heading h2 { text-align: center; }
body.home .office-location__intro { max-width: 65rem; text-align: center; margin-inline: auto; }

@media (min-width: 48rem) and (max-width: 75rem) {
  body.home .home-hero__attorney { width: 23rem; max-width: 42%; }
}
@media (max-width: 74.99rem) {
  body.home .why-us__layout { grid-template-columns: minmax(0, 1fr) 22rem; gap: 2rem; }
  body.home .why-us__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  body.home .case-process__stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 63.99rem) {
  body.home .why-us__layout { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  body.home .why-us .case-review { width: 100%; max-width: none; }
}
@media (max-width: 47.99rem) {
  body.home .home-hero__attorney { width: 17.5rem; max-width: 86%; }
  body.home .why-us__reasons > h2 { margin-bottom: 1.75rem; }
  body.home .why-us__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  body.home .why-us .recognition { padding: 0; }
  body.home .why-us .recognition__badges { gap: .5rem; }
  body.home .attorney-profile--color .attorney-profile__copy > h2 { max-width: none; }
  body.home .berke-credentials__layout { grid-template-columns: minmax(0, 1fr); }
  body.home .berke-credentials__portrait { grid-column: 1; grid-row: auto; justify-self: center; }
  body.home .berke-credentials__column { grid-column: 1; }
  body.home .case-process__stages { grid-template-columns: minmax(0, 1fr); }
  body.home .case-process__stage { padding: 0; }
  body.home .case-worth__content ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 22rem) {
  body.home .why-us__grid { grid-template-columns: minmax(0, 1fr); }
  body.home .why-us__item h3 { min-height: 0; }
}
body.home .why-us__item .berke-why-icon { transform: none; margin: 0 auto 1rem; }
body.home .why-us__item p { text-wrap: initial; }
body.home .testimonials .container { padding-block: 3rem; }
body.home .testimonials .trustindex-reviews { width: 100%; }
body.home .case-process { background: var(--secondary); color: #fff; }
body.home .case-process h2,
body.home .case-process h3 { color: #fff; }
body.home .case-process__stages { gap: 2rem; }
body.home .case-process__icon { margin-bottom: 1.5rem; }
body.home .case-process__stage + .case-process__stage { border-left: 1px solid rgb(255 255 255 / 25%); padding-left: 2rem; }
body.home .case-process__stage p { color: #fff; }
body.home .attorney-profile--color { background: var(--gray); }
body.home .case-worth { background: var(--gray); }
body.home .home-faq__list { max-width: 65rem; }
@media(min-width:64.001rem) {
  body.home :is(.attorney-profile__copy,.case-worth__content,.california-laws__content) > h2,body.home :is(.home-faq__heading,.office-location__heading) h2 {
    max-width: none;
  }
}
@media(max-width:64rem) {
  body.home .case-process__stage + .case-process__stage { border-left: 0; padding-left: 0; }
  body.home .case-process__stage { border-top: 1px solid rgb(255 255 255 / 25%); padding-top: 1.5rem; }
}
@media(max-width:47.99rem) {
  body.home .why-us__item .berke-why-icon { transform: scale(.8); transform-origin: center top; margin-bottom: 0; }
  body.home .why-us .recognition h2 { max-width: 22ch; margin-inline: auto; }
}

/* Berke practice component: exact container, four/two/one cards and reveal. */
body.home .pas { background: #f4f4f4; }
body.home main#main .pas > .container {
  max-width: 90rem; width: 100%; padding: 4rem 2rem;
  display: flex; flex-direction: column; align-items: center;
}
body.home main#main .pas > .container > h2 {
  width: auto; max-width: none; text-align: center; margin: 0 0 20px;
}
body.home main#main .pas > .container > p {
  text-align: center; max-width: none; margin: 0 0 20px;
}
body.home main#main .pas > .container > p:first-of-type { width: calc((100% - 50px) / 2); }
body.home main#main .pas > .container > .practice-slider__more { width: auto; margin: 24px 0; }
body.home main#main .pas > .container > .btn { margin: 0; }
body.home .pas .practice-slider { margin-top: 24px; }
body.home .pas .practice-slider .slider-arrows { justify-content: center; margin: 32px 0 0; }
body.home .pas .practice-card {
  align-items: end; min-height: 26rem; height: 100%; aspect-ratio: auto;
  border: 3px solid var(--primary);
  border-image: linear-gradient(145deg,var(--primary),color-mix(in srgb,var(--primary) 25%,transparent) 50%,var(--primary)) 1;
  text-align: left;
}
body.home .pas .practice-card::before {
  background: linear-gradient(180deg,transparent 20%,rgb(11 45 71 / 45%) 50%,#071d30 100%);
}
body.home .pas .practice-card__content { padding: 24px; border: 0; }
body.home main#main .pas .practice-card__title {
  color: #fff; text-align: left; margin: 0;
}
body.home .pas .practice-card__reveal { grid-template-rows: 0fr; opacity: 0; }
body.home main#main .pas .practice-card__description { margin: 0; padding-top: 1rem; color: #fff; }
body.home .pas .practice-card:is(:hover,:focus-visible) .practice-card__reveal { grid-template-rows: 1fr; opacity: 1; }
body.home .pas .practice-card:is(:hover,:focus-visible)::before { background-color: rgb(11 45 71 / 55%); }
@media(max-width:64rem) {
  body.home main#main .pas > .container > p:first-of-type { width: 100%; }
}
@media(max-width:47.99rem) {
  body.home main#main .pas > .container { padding: 4rem 1rem; }
  /* Shared fade grounds the portrait in the hero; copy and action are centered. */
  body.home .home-hero { --mobile-hero-art: clamp(22.5rem,108vw,29.375rem); padding-top: calc(var(--mobile-hero-art) - 1rem); }
  body.home .home-hero__visual,
  body.home .home-hero__background,
  body.home .home-hero__background img { height: var(--mobile-hero-art); }
  body.home .home-hero__background { overflow: hidden; }
  body.home .home-hero__background img { transform: scale(1.5); transform-origin: center top; }
  body.home .home-hero__visual {
    mask-image: none;
    -webkit-mask-image: none;
    mask-size: 100% 100%; -webkit-mask-size: 100% 100%;
    mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
  }
  body.home .home-hero__visual::after {
    display: block; z-index: 3;
    background: linear-gradient(to bottom,transparent 38%,rgb(11 45 71 / 10%) 48%,rgb(11 45 71 / 30%) 57%,rgb(11 45 71 / 58%) 66%,rgb(11 45 71 / 82%) 74%,rgb(11 45 71 / 96%) 82%,var(--secondary) 90%);
  }
  body.home .home-hero__attorney {
    height: var(--mobile-hero-art); width: 18rem; max-width: 86%;
    top: 0; bottom: auto; left: 50%; right: auto; transform: translateX(-50%);
    object-fit: cover; object-position: center top;
    mask-image: none;
    -webkit-mask-image: none;
  }
  body.home .home-hero__inner { padding-top: 0; }
  body.home .home-hero__content { text-align: center; margin-inline: auto; }
  body.home .home-hero__content > p { margin-inline: auto; }
  body.home .home-hero__content .btn { margin-inline: auto; }
}

/* Kramer CTA component geometry and interaction in Berke's brand palette. */
body.home main#main a.btn {
  position: relative; display: flex; justify-content: center; align-items: center;
  gap: 10px; width: fit-content; overflow: hidden; isolation: isolate;
  padding: 14px 24px; min-height: 0; border: 0; 
  background: var(--primary); color: var(--secondary); box-shadow: 0 4px 9px rgb(0 0 0 / 18%);
}
body.home main#main a.btn::before {
  content: ""; position: absolute; top: 0; left: -150%; z-index: -1;
  width: 75%; height: 100%; pointer-events: none;
  background: linear-gradient(115deg,transparent 0%,rgb(255 255 255 / 55%) 50%,transparent 100%);
  transform: skewX(-20deg); transition: left .7s ease;
}
body.home main#main a.btn:is(:hover,:focus-visible)::before { left: 150%; }
body.home main#main .case-review :is(.gform_button,button.btn) {
  padding: 16px 24px; min-height: 54px; width: 100%; border: 0; box-shadow: none;
}
body.home main#main .case-review :is(.gform_button,button.btn):hover { background: #fff; color: #000; }
@media(max-width:767px) {
  body.home main#main .home-hero__content .btn { width: 100%; }
}

/* Mobile description type remains readable when the card is hovered or focused. */
@media (max-width: 47.99rem), (hover: none), (pointer: coarse) {
  body.home main#main .pas .practice-card__description {
    padding-top: 12px;
    color: #fff;
    text-wrap: pretty;
  }
}

/* Zehl case-introduction composition, with Berke's editable copy and type scale. */
body.home main#main .attorney-profile--color { background: #fff; }
body.home main#main .attorney-profile--color > .attorney-profile__layout {
  max-width: 90rem; padding: 30px 32px; display: block;
}
body.home main#main .attorney-profile--color .attorney-profile__copy {
  display: block; columns: auto; max-width: none; text-align: center;
}
body.home main#main .attorney-profile--color .attorney-profile__copy > h2 {
  display: flex; align-items: center; gap: 20px; width: 100%; max-width: none;
  margin: 0 0 32px; text-align: center; 
}
body.home main#main .attorney-profile--color .attorney-profile__copy > h2::before,
body.home main#main .attorney-profile--color .attorney-profile__copy > h2::after {
  content: ""; flex: 1; min-width: 24px; border-top: 1px solid #c4c4c4;
}
body.home main#main .attorney-profile--color .attorney-profile__copy > p {
  width: 100%; max-width: none; margin: 0 0 20px;
  text-align: center; 
}
body.home main#main .attorney-profile--color .attorney-profile__copy > p:last-child { margin-bottom: 0; }
body.home main#main .attorney-profile--color .attorney-profile__copy p a {
  color: var(--secondary); text-decoration: underline; text-underline-offset: 3px;
}
@media(max-width:767px) {
  body.home main#main .attorney-profile--color > .attorney-profile__layout { padding: 30px 16px; }
  body.home main#main .attorney-profile--color .attorney-profile__copy > h2 { gap: 12px; }
  body.home main#main .attorney-profile--color .attorney-profile__copy > h2::before,
  body.home main#main .attorney-profile--color .attorney-profile__copy > h2::after { min-width: 16px; }
}

/* Keep practice-area photography still in every interaction state. */
body.home .pas .practice-card__image,
body.home .pas .practice-card:is(:hover,:focus-visible) .practice-card__image {
  transform: none;
  transition: none;
}

/* Alternating light homepage surfaces; preserve the approved white Zehl intro. */
body.home main#main :is(.why-us,.pas,.berke-credentials,.case-worth,.protect-claim,.office-location) {
  background: #f4f4f4;
  color: #000;
}
body.home main#main p { color: #000; }
body.home main#main :is(.case-worth__content,.california-laws__content) li { color: #000; }
body.home main#main .trustindex-reviews .ti-review-content { color: #000; }
body.home main#main :is(.case-process,.office-location) :is(h2,h3),body.home main#main .berke-credentials__label { color: var(--secondary); }
body.home main#main .case-process__stage { border-color: rgb(11 45 71 / 20%); }
body.home main#main .office-location__heading::before,
body.home main#main .office-location__heading::after { background: #c4c4c4; }
body.home main#main .office-location a:not(.btn) { color: var(--secondary); }
body.home main#main .office-location a:not(.btn):hover { color: #000; }
/* Photo cards, portrait captions and consultation panels remain dark surfaces. */
body.home main#main :is(.home-hero,.case-review,.practice-card) p,body.home main#main .berke-credentials__portrait figcaption p { color: #fff; }
body.home main#main .home-hero__content > p:first-child { color: var(--accent); }

/* Marzzacco's measured circle-and-copy composition, in the established Berke theme. */
body.home main#main .berke-attorney-circle {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: 730px; padding: 0; isolation: isolate; background: var(--secondary); color: #fff;
}
body.home main#main .berke-attorney-circle > .berke-attorney-circle__inner {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: nowrap; gap: 48px; width: 100%; min-width: 0; max-width: var(--container-width); margin-inline: auto; padding: 0 32px;
}
body.home .berke-attorney-circle__visual { position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
body.home .berke-attorney-circle__shape { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 1391px; height: 835px; max-width: none; pointer-events: none; z-index: -1; }
body.home .berke-attorney-circle__ring {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 600px; height: 600px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(180deg,rgb(11 45 71 / 0%) 11.81%,rgb(11 45 71 / 36%) 85.5%),var(--gray);
}
body.home .berke-attorney-circle__portrait { width: 500px; height: 500px; margin: 0; overflow: hidden; border-radius: 50%; background: var(--secondary); }
body.home .berke-attorney-circle__image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
body.home .berke-attorney-circle__copy { position: relative; flex: 1; min-width: 0; max-width: 664px; }
body.home main#main .berke-attorney-circle__eyebrow { display: flex; align-items: center; gap: 20px; margin: 0 0 30px; color: #fff;   }
body.home .berke-attorney-circle__eyebrow > span { width: 80px; height: 2px; background: var(--primary); flex-shrink: 0; }
body.home main#main .berke-attorney-circle__copy > h2 { margin: 0 0 40px; text-align: left; color: #fff; }
body.home main#main .berke-attorney-circle__text > p { margin: 0 0 25px; color: #fff; }
body.home main#main .berke-attorney-circle__text > p:last-child { margin-bottom: 0; }
body.home main#main .berke-attorney-circle__copy > .btn { margin-top: 28px; }
@media(max-width:1600px) {
  body.home main#main .berke-attorney-circle { min-height: 730px; }
  body.home main#main .berke-attorney-circle > .berke-attorney-circle__inner { gap: 40px; }
  body.home .berke-attorney-circle__shape { width: 1180px; height: 708px; }
  body.home .berke-attorney-circle__ring { width: 600px; height: 600px; }
  body.home .berke-attorney-circle__portrait { width: 500px; height: 500px; }
  body.home main#main .berke-attorney-circle__copy > h2 { margin-bottom: 25px; }
  body.home main#main .berke-attorney-circle__text > p { margin-bottom: 20px; }
}
@media(max-width:1440px) {
  body.home main#main .berke-attorney-circle { min-height: 650px; }
  body.home main#main .berke-attorney-circle > .berke-attorney-circle__inner { gap: 30px; }
  body.home .berke-attorney-circle__shape { width: 1070px; height: 642px; }
  body.home .berke-attorney-circle__ring { width: 520px; height: 520px; }
  body.home .berke-attorney-circle__portrait { width: 430px; height: 430px; }
  body.home main#main .berke-attorney-circle__eyebrow { margin-bottom: 18px; }
  body.home .berke-attorney-circle__eyebrow > span { width: 60px; }
  body.home main#main .berke-attorney-circle__copy > h2 { margin-bottom: 20px; }
  body.home main#main .berke-attorney-circle__text > p { margin-bottom: 16px; }
  body.home main#main .berke-attorney-circle__text > p:last-child { margin-top: 32px; margin-bottom: 0; }
}
@media(max-width:1200px) {
  body.home main#main .berke-attorney-circle { min-height: 0; padding: 50px 0 70px; }
  body.home main#main .berke-attorney-circle > .berke-attorney-circle__inner { flex-direction: column; gap: 45px; }
  body.home .berke-attorney-circle__shape { display: none; }
  body.home .berke-attorney-circle__ring { width: 480px; height: 480px; }
  body.home .berke-attorney-circle__portrait { width: 400px; height: 400px; }
  body.home .berke-attorney-circle__copy { width: 100%; max-width: 800px; }
}
@media(max-width:767px) {
  body.home main#main .berke-attorney-circle { padding: 50px 0 60px; }
  body.home main#main .berke-attorney-circle > .berke-attorney-circle__inner { padding-inline: 16px; gap: 40px; }
  body.home .berke-attorney-circle__ring { width: 322px; height: 322px; max-width: 100%; border: 12px solid var(--line); background: var(--secondary); }
  body.home .berke-attorney-circle__portrait { width: 100%; height: 100%; }
  body.home main#main .berke-attorney-circle__eyebrow { gap: 12px; margin-bottom: 15px;  }
  body.home .berke-attorney-circle__eyebrow > span { width: 40px; height: 1px; }
}
@media(max-width:360px) {
  body.home .berke-attorney-circle__ring { width: 280px; height: 280px; }
}

/* Reference arc geometry in the Berke theme palette. */
body.home .berke-attorney-circle__shape stop { stop-color: var(--deep); }
body.home .berke-attorney-circle__shape stop:last-child { stop-opacity: 1; }

/* Omega Law reference: centered introduction and square, equal-height process cards.
 * Berke palette, Kramer type sizes, existing four editable process steps.
 */
body.home main#main .case-process { padding: 64px 0; text-align: center; }
body.home main#main .case-process__layout {
  width: 100%; min-width: 0; max-width: var(--container-width); margin-inline: auto; padding: 0 32px;
  display: block;
}
body.home main#main .case-process__intro {
  position: static; max-width: 1080px; margin: 0 auto 32px;
}
body.home main#main .case-process__intro h2 { margin: 0 0 24px; }
body.home main#main .case-process__intro .case-process__subheading {
  margin: 0 0 24px; color: var(--secondary);
}
body.home main#main .case-process__intro > p { margin: 0; color: #000; }
body.home main#main .case-process__stages {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
  align-items: stretch; gap: 20px; margin: 0; padding: 0;
  list-style: none;
}
body.home main#main .case-process__stages .case-process__stage {
  min-width: 0; margin: 0; padding: 20px; border: 0; border-radius: 0;
  background: var(--secondary); color: #fff; text-align: center;
}
body.home main#main .case-process__stage .case-process__icon {
  display: block; width: 80px; height: 80px; object-fit: contain;
  margin: 0 auto 20px; transform: none;
}
body.home main#main .case-process__stage h3 {
  min-height: 0; margin: 10px 0 0; color: #fff; 
}
body.home main#main .case-process__stage h3::after {
  content: ''; display: block; width: 150px; max-width: 100%; height: 2px;
  margin: 16px auto; background: var(--accent);
}
body.home main#main .case-process__stage p { margin: 0; color: #fff; }
body.home main#main .case-process__stage .case-process__when { margin: 0 0 12px; }
@media (max-width: 992px) {
  body.home main#main .case-process__stages { grid-template-columns: minmax(0,1fr); margin: 0; gap: 30px; }
}

/* Remove the white canvas from the original two-color Why Us sprite. */
body.home .why-us__item .berke-why-icon {
  background-color: transparent;
  mix-blend-mode: multiply;
}

/* Marzzacco intro reference: centered title, editorial column and portrait panel.
 * Retain the homepage's alternating gray surface and Kramer typography.
 */
body.home main#main .case-worth--profile-panel { padding: 80px 0; }
body.home main#main .case-worth--profile-panel .case-worth__content {
  width: 100%; min-width: 0; max-width: var(--container-width); margin-inline: auto; padding: 0 32px;
}
body.home main#main .case-worth--profile-panel .case-worth__content > h2 {
  max-width: 34ch; margin: 0 auto 40px; text-align: center;
}
body.home main#main .case-worth__layout {
  display: grid; grid-template-columns: 450px minmax(0,1fr); gap: 40px; align-items: stretch;
}
body.home main#main .case-worth__copy { min-width: 0; text-align: left; }
body.home main#main .case-worth__copy p { margin: 0 0 24px; color: #000; }
body.home main#main .case-worth__copy ul {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px 28px; max-width: none; margin: 0 0 24px; padding-left: 20px;
}
body.home main#main .case-worth__copy li { margin: 0; padding-left: 2px; color: #000; }
body.home main#main .case-worth__copy .wp-block-buttons { margin: 8px 0 0; }
body.home main#main .case-worth__panel {
  container-type: inline-size; position: relative; isolation: isolate;
  min-width: 0; min-height: 567px; border-top: 20px solid var(--accent);
  background: var(--secondary); overflow: hidden; color: #fff;
}
body.home main#main .case-worth__panel::before {
  content: ''; position: absolute; z-index: -1; inset: 0 0 0 50%;
  border-radius: 0 0 0 100%; background: rgb(255 255 255 / 4%);
}
body.home main#main .case-worth__stat {
  width: 66%; height: auto; position: relative; z-index: 2; margin: 0; padding: 32px 0 0 40px;
}
body.home main#main .case-worth__panel .case-worth__year {
  position: static; width: 100%; margin: 8px 0 0; font-variant-numeric: tabular-nums;
  color: #fff; text-align: left;
}
body.home main#main .case-worth__panel .case-worth__stat-label {
  position: static; width: calc(50cqw - 40px); max-width: 100%; margin: 0; padding: 12px 0; background: var(--secondary);
  border-block: 3px solid transparent;
  border-image: linear-gradient(90deg,transparent 0%,var(--accent) 58.57%,transparent 100%) 1;
  color: #fff; text-align: left; 
}
body.home main#main .case-worth__callout {
  width: 60%; padding: 30px 20px 40px 40px; margin: 0; position: relative; z-index: 2;
}
body.home main#main .case-worth__callout p {
  color: #fff; margin: 0 0 24px;
}
body.home main#main .case-worth__callout .wp-block-buttons { margin: 0; }
body.home main#main .case-worth__callout a.btn {
  background: transparent; border: 2px solid var(--accent); color: #fff;
  box-shadow: none; padding: 18px 22px; white-space: normal;
}
body.home main#main .case-worth__callout a.btn:hover,
body.home main#main .case-worth__callout a.btn:focus-visible { background: var(--accent); color: var(--secondary); }
body.home main#main .case-worth__panel .case-worth__portrait {
  position: absolute; right: 0; bottom: 0; z-index: 1; display: block;
  width: 42%; height: 100%; max-width: none; margin: 0; object-fit: cover; object-position: center top;
}
@media (max-width:1750px) {
  body.home main#main .case-worth__layout { grid-template-columns: 450px minmax(0,1fr); gap: 20px; }
}
@media (max-width:1440px) {
  body.home main#main .case-worth__layout { grid-template-columns: 400px minmax(0,1fr); }
}
@media (max-width:1100px) {
  body.home main#main .case-worth--profile-panel { padding: 60px 0; }
  body.home main#main .case-worth__layout { grid-template-columns: minmax(0,1fr); gap: 40px; }
  body.home main#main .case-worth__copy { text-align: center; }
  body.home main#main .case-worth__copy ul { max-width: 720px; margin-inline: auto; text-align: left; }
  body.home main#main .case-worth__copy .wp-block-buttons { justify-content: center; }
  body.home main#main .case-worth__panel { min-height: 480px; }
}
@media (max-width:767px) {
  body.home main#main .case-worth--profile-panel { padding: 50px 0; }
  body.home main#main .case-worth__panel { min-height: 0; border-top-width: 10px; }
  body.home main#main .case-worth__stat { width: 68%; height: auto; padding: 20px 0 0 20px; }
  body.home main#main .case-worth__panel .case-worth__stat-label {
    width: calc(50cqw - 20px); padding: 10px 0;
  }
  body.home main#main .case-worth__callout { width: 60%; padding: 0 10px 24px 20px; }
  body.home main#main .case-worth__callout p { margin-bottom: 20px; }
  body.home main#main .case-worth__callout a.btn { padding: 12px 10px; }
  body.home main#main .case-worth__panel .case-worth__portrait { width: 44%; }
}
@media (max-width:480px) {
  body.home main#main .case-worth__copy ul { grid-template-columns: minmax(0,1fr); }
}

/* Keep the mobile year unobscured and the phone number on one line. */
body.home main#main .case-worth__panel > p:empty { display: none; }
body.home main#main .case-worth__callout .case-worth__phone-number { display: inline-block; white-space: nowrap; }
@media (max-width:767px) {
  body.home main#main .case-worth__callout a.btn { padding-inline: 6px; }
}

body.home main#main .case-worth__callout a.btn { display: block; text-align: center; }
@media (max-width:767px) {
  body.home main#main .case-worth__callout :is(.wp-block-buttons,.wp-block-button) { display: block; width: 100%; max-width: 100%; min-width: 0; }
}

/* Omega's editorial / numbered Why Us composition, with verified Berke copy. */
body.home main#main .california-laws--why-us { padding: 64px 0; background: #fff; }
body.home main#main .california-laws--why-us .california-laws__layout {
  width: 100%; min-width: 0; max-width: var(--container-width); margin-inline: auto; padding: 0 32px;
  display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 24px;
  align-items: center;
}
body.home main#main .california-laws--why-us .california-laws__content {
  width: 100%; max-width: none; margin: 0; min-width: 0;
}
body.home main#main .california-laws--why-us .california-laws__content h2 {
  color: var(--secondary); max-width: none; margin: 0 0 24px; text-align: left;
}
body.home main#main .california-laws--why-us .california-laws__content p {
  color: #000; margin: 0 0 24px; border: 0; padding: 0;
}
body.home main#main .california-laws--why-us .california-laws__rules {
  display: grid; gap: 24px; margin: 0 0 24px; padding: 0; list-style: none;
}
body.home main#main .california-laws--why-us .california-laws__rules li { color: #000; margin: 0; padding: 0; }
body.home main#main .california-laws--why-us .california-laws__content .btn { margin: 30px 0 0; }
body.home main#main .california-laws--why-us .california-laws__content > p:empty { display: none; }
body.home main#main .claim-why {
  min-width: 0; min-height: 700px; display: flex; align-items: center; justify-content: center;
  background: var(--secondary); color: #fff; padding: 0 30px;
}
body.home main#main .claim-why__inner { width: 100%; max-width: 600px; padding: 51px 0; }
body.home main#main .claim-why__inner > p:empty { display: none; }
body.home main#main .claim-why .claim-why__heading {
  margin: 0; color: #fff; text-align: left;
}
body.home main#main .claim-why__heading::after {
  content: ''; display: block; width: 50%; height: 1px; background: var(--accent); margin: 24px 0 30px;
}
body.home main#main .claim-why__points { counter-reset: berke-reason; margin: 0; }
body.home main#main .claim-why__point {
  position: relative; counter-increment: berke-reason; padding: 0 0 0 72px; margin: 0 0 30px;
}
body.home main#main .claim-why__point:last-child { margin-bottom: 0; }
body.home main#main .claim-why__point::before {
  content: counter(berke-reason) '.'; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  min-width: 52px; color: var(--accent); font-size: 54px; line-height: 1; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
body.home main#main .claim-why__point h3 {
  color: #fff; margin: 0 0 6px; 
}
body.home main#main .claim-why__point p { color: #fff; margin: 0; }
@media (max-width:1200px) {
  body.home main#main .california-laws--why-us .california-laws__layout { grid-template-columns: minmax(0,1fr); gap: 40px; }
  body.home main#main .california-laws--why-us .california-laws__content h2,
  body.home main#main .california-laws--why-us .california-laws__content :is(p,li) { text-align: center; }
  body.home main#main .california-laws--why-us .california-laws__content .btn { margin-inline: auto; }
  body.home main#main .claim-why { min-height: 0; padding: 30px; }
  body.home main#main .claim-why__inner { max-width: 780px; padding: 20px 0; }
}
@media (max-width:767px) {
  body.home main#main .california-laws--why-us { padding: 50px 0; }
  body.home main#main .california-laws--why-us .california-laws__layout { padding-inline: 16px; }
  body.home main#main .claim-why { padding: 30px 20px; }
  body.home main#main .claim-why__inner { padding: 0; }
  body.home main#main .claim-why .claim-why__heading { text-align: center; }
  body.home main#main .claim-why__heading::after { margin-inline: auto; }
  body.home main#main .claim-why__point { padding-left: 60px; }
  body.home main#main .claim-why__point::before { font-size: 50px; min-width: 40px; }
}

body.home main#main .claim-why :is(h2,h3) { text-wrap: balance; }

/* Restore the local Berke FAQ component, retaining Berke typography and palette. */
body.home main#main .home-faq { padding: 0; background: #fff; }
body.home main#main .home-faq > .container {
  display: block; width: 100%; max-width: 1440px; margin-inline: auto; padding: 64px 32px;
}
body.home main#main .home-faq__heading {
  display: flex; align-items: center; gap: 24px; margin: 0 0 40px;
}
body.home main#main .home-faq__heading::before,
body.home main#main .home-faq__heading::after {
  display: block; content: ''; flex: 1; height: 1px; background: rgb(11 45 71 / 20%);
}
body.home main#main .home-faq__heading h2 { margin: 0; text-align: center; text-wrap: balance; }
body.home main#main .home-faq__list { width: 100%; max-width: 1216px; margin-inline: auto; }
body.home main#main .home-faq__item { background: #fff; border: 0; border-radius: 6px; }
body.home main#main .home-faq__item[open] { box-shadow: 0 6px 16px rgb(11 45 71 / 8%); }
body.home main#main .home-faq__item + .home-faq__item { margin-top: 12px; }
body.home main#main .home-faq__question {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 80px; padding: 20px 28px; background: var(--secondary); color: #fff;
  border-radius: 5px; list-style: none;
}
body.home main#main .home-faq__item[open] .home-faq__question { border-radius: 5px 5px 0 0; }
body.home main#main .home-faq__question h3 {
  margin: 0; color: #fff;
}
body.home main#main .home-faq__question:focus-visible { outline: 3px solid var(--accent); outline-offset: -5px; }
body.home main#main .home-faq__icon { flex: 0 0 36px; width: 36px; height: 36px; color: #fff; }
body.home main#main .home-faq__answer {
  max-width: none; padding: 24px 28px; background: #fff; border-radius: 0 0 5px 5px;
}
body.home main#main .home-faq__answer p {
  max-width: 1024px; margin: 0; color: #000;
}
@media (max-width:750px) {
  body.home main#main .home-faq > .container { padding-inline: 16px; }
  body.home main#main .home-faq__heading { gap: 16px; margin-bottom: 32px; }
  body.home main#main .home-faq__question { gap: 16px; padding: 18px; }
  body.home main#main .home-faq__answer { padding: 20px 18px; }
}

/* Local Berke footer consultation layout, using Berke's established type and colors. */

/* Reference sections use the site's responsive 1440px grid, never viewport-wide content. */
@media (max-width:767px) {
  body.home main#main .case-process__layout,
  body.home main#main .case-worth--profile-panel .case-worth__content { padding-inline: 16px; }
}

/* Four claim elements: native Gutenberg copy on the standard Berke grid. */
body.home main#main .claim-elements { background: var(--white); color: #000; }
body.home main#main .claim-elements > .claim-elements__inner {
  width: 100%; min-width: 0; max-width: var(--container-width); margin-inline: auto; padding: 64px 32px;
}
body.home main#main .claim-elements__inner > h2 {
  color: var(--secondary); text-align: center; margin: 0 0 40px;
}
body.home main#main .claim-elements__grid {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 48px;
  margin: 0; padding: 0; counter-reset: claim-element;
}
body.home main#main .claim-elements__grid > .wp-block-group__inner-container { display: contents; }
body.home main#main .claim-elements__item {
  position: relative; min-width: 0; margin: 0; padding: 24px 0 0 72px;
  border-top: 1px solid var(--line); counter-increment: claim-element;
}
body.home main#main .claim-elements__item::before {
  content: counter(claim-element, decimal-leading-zero); position: absolute; top: 22px; left: 0;
  color: var(--accent); font-size: 44px; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums;
}
body.home main#main .claim-elements__item h3 {
  color: var(--secondary); margin: 0 0 16px; text-align: left; 
}
body.home main#main .claim-elements__item p {
  color: #000; margin: 0; padding: 0; border: 0; text-align: left;
}
body.home main#main .claim-elements__cta { display: flex; justify-content: center; margin: 40px 0 0; }
body.home main#main .claim-elements__inner > p:empty { display: none; }
@media(max-width:767px) {
  body.home main#main .claim-elements > .claim-elements__inner { padding: 48px 16px; }
  body.home main#main .claim-elements__inner > h2 { margin-bottom: 32px; }
  body.home main#main .claim-elements__grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  body.home main#main .claim-elements__item { padding: 20px 0 0 54px; }
  body.home main#main .claim-elements__item::before { font-size: 34px; top: 20px; }
  body.home main#main .claim-elements__item h3 { margin-bottom: 12px; }
  body.home main#main .claim-elements__cta { margin-top: 32px; }
}

/* Shared light section surfaces; footer geometry is owned by berke-layout.css. */
body.home main#main :is(.testimonials,.attorney-profile--color,.case-process,.california-laws,.home-faq) { background: #fff; color: #000; }
