/*
 * Homepage V2 additions for Newman Law Group, LLP.
 * Load after /css/pages/main-page.css. Existing site files are not replaced.
 */

/*
 * Preserve the original composite homepage artwork without allowing the new
 * SEO sections to change its scale. JavaScript in main-pageV2.php calculates
 * the height of the original legacy sections only and assigns that value here.
 */
#PanelGroupV7 {
  background-color: #fff !important;
  background-image: none !important;
}

#PanelGroupV7 > picture.img-bg {
  display: block !important;
  height: var(--nlg-legacy-home-background-height, 100%) !important;
}

#PanelGroupV7 > picture.img-bg img {
  object-fit: cover !important;
}

.nlg-home-v2-section {
  position: relative;
  padding: clamp(4rem, 7vw, 7rem) 1.5rem;
  overflow: hidden;
}

.nlg-home-v2-section .main {
  width: 100%;
  max-width: var(--main-width, 90rem);
  margin: 0 auto;
}

.nlg-home-v2-section-header {
  max-width: 58rem;
  margin: 0 auto clamp(2.25rem, 4vw, 3.75rem);
}

.nlg-home-v2-section-header h2,
.nlg-home-v2-guidance h2,
.nlg-home-v2-authority h2 {
  margin: .4rem 0 .8rem;
  color: var(--primary-dark, #114470);
  font-family: var(--title-font, "EB Garamond", Georgia, serif);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  text-transform: none;
}

.nlg-home-v2-section-header > p {
  max-width: 52rem;
  margin: 1.2rem auto 0;
  font-size: 1.075rem;
  line-height: 1.75;
}

.nlg-home-v2-eyebrow {
  display: inline-block;
  color: var(--buttons, #c19650);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.35;
  text-transform: uppercase;
}

/* The legacy theme applies special typography to direct children of headers.
   These selectors keep the V2 section hierarchy intentional. */
.nlg-home-v2-section .nlg-home-v2-section-header > .nlg-home-v2-eyebrow {
  color: var(--buttons, #c19650) !important;
  font-family: var(--body-font, "Roboto", Arial, sans-serif) !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  letter-spacing: .13em !important;
  line-height: 1.35 !important;
  text-transform: uppercase !important;
}

.nlg-home-v2-section .nlg-home-v2-section-header > h2 {
  margin: .4rem 0 .8rem !important;
  color: var(--primary-dark, #114470) !important;
  font-family: var(--title-font, "EB Garamond", Georgia, serif) !important;
  font-size: clamp(2rem, 3.4vw, 3.25rem) !important;
  font-weight: 600 !important;
  line-height: 1.08 !important;
  text-transform: none !important;
}

.nlg-home-v2-overview {
  background:
    radial-gradient(circle at 4% 6%, rgba(193, 150, 80, .13), transparent 22rem),
    linear-gradient(180deg, #fff 0%, #f7f4ee 100%);
}

.nlg-home-v2-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.nlg-home-v2-card {
  position: relative;
  min-width: 0;
  padding: clamp(1.5rem, 2.5vw, 2.15rem);
  border: 1px solid rgba(20, 56, 89, .13);
  border-top: 4px solid var(--buttons, #c19650);
  border-radius: .75rem;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1rem 2.5rem rgba(20, 56, 89, .08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.nlg-home-v2-card:hover {
  transform: translateY(-4px);
  border-color: rgba(193, 150, 80, .45);
  box-shadow: 0 1.35rem 3rem rgba(20, 56, 89, .13);
}

.nlg-home-v2-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(193, 150, 80, .35);
  border-radius: 50%;
  color: var(--buttons, #c19650);
  background: #f8f3e9;
}

.nlg-home-v2-card-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.nlg-home-v2-card h3 {
  margin: 0 0 .7rem;
  font-family: var(--title-font, "EB Garamond", Georgia, serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.18;
  text-transform: none;
}

.nlg-home-v2-card h3 a {
  color: var(--primary-dark, #114470);
  text-decoration: none;
}

.nlg-home-v2-card h3 a:hover,
.nlg-home-v2-card h3 a:focus {
  color: var(--buttons, #c19650);
}

.nlg-home-v2-card p {
  margin: 0;
  color: #263746;
  font-size: .98rem;
  line-height: 1.68;
}

.nlg-home-v2-guidance {
  background: #f5f3ee;
}

.nlg-home-v2-split-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}

.nlg-home-v2-guidance-panel {
  min-width: 0;
  padding: clamp(1.65rem, 3vw, 2.75rem);
  border: 1px solid rgba(20, 56, 89, .12);
  border-top: 4px solid var(--buttons, #c19650);
  border-radius: .8rem;
  background: #fff;
  box-shadow: 0 1rem 2.75rem rgba(20, 56, 89, .08);
}

.nlg-home-v2-guidance-panel > p {
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
  line-height: 1.72;
}

.nlg-home-v2-check-list,
.nlg-home-v2-authority-list {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.nlg-home-v2-check-list li,
.nlg-home-v2-authority-list li {
  position: relative;
  margin: 0;
  padding: .65rem 0 .65rem 2rem;
  line-height: 1.55;
}

.nlg-home-v2-check-list li::before,
.nlg-home-v2-authority-list li::before {
  content: "✓";
  position: absolute;
  top: .68rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  color: #fff;
  background: var(--buttons, #c19650);
  font-size: .75rem;
  font-weight: 700;
}

.nlg-home-v2-text-link {
  margin-top: .35rem;
}

.nlg-home-v2-step-list {
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.nlg-home-v2-step-list li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  margin: 0 0 1.15rem;
}

.nlg-home-v2-step-list li > span {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(193, 150, 80, .45);
  border-radius: 50%;
  color: #fff;
  background: var(--primary-dark, #114470);
  font-family: var(--title-font, "EB Garamond", Georgia, serif);
  font-size: 1.2rem;
  font-weight: 700;
}

.nlg-home-v2-step-list strong {
  display: block;
  color: var(--primary-dark, #114470);
  font-size: 1.03rem;
  line-height: 1.4;
}

.nlg-home-v2-step-list p {
  margin: .25rem 0 0;
  color: #344657;
  font-size: .94rem;
  line-height: 1.55;
}

.nlg-home-v2-callout {
  margin-top: 1.75rem;
  padding: 1.4rem 1.5rem;
  border-left: 4px solid var(--buttons, #c19650);
  border-radius: 0 .55rem .55rem 0;
  background: #f7f3ec;
}

.nlg-home-v2-callout strong {
  color: var(--primary-dark, #114470);
  font-family: var(--title-font, "EB Garamond", Georgia, serif);
  font-size: 1.35rem;
}

.nlg-home-v2-callout p {
  margin: .3rem 0 0;
}

.nlg-home-v2-authority {
  color: #fff;
  background:
    linear-gradient(120deg, rgba(17, 68, 112, .98), rgba(20, 56, 89, .99)),
    var(--dark, #143859);
}

.nlg-home-v2-authority::after {
  content: "";
  position: absolute;
  right: -9rem;
  bottom: -11rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(193, 150, 80, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(193, 150, 80, .045), 0 0 0 8rem rgba(193, 150, 80, .025);
  pointer-events: none;
}

.nlg-home-v2-authority-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.nlg-home-v2-authority h2 {
  color: #fff;
}

.nlg-home-v2-authority p {
  color: rgba(255, 255, 255, .9);
  line-height: 1.72;
}

.nlg-home-v2-authority-list li {
  color: rgba(255, 255, 255, .94);
}

.nlg-home-v2-authority-list li::before {
  color: var(--primary-dark, #114470);
  background: #fff;
}

.nlg-home-v2-local-card {
  padding: clamp(1.65rem, 3.5vw, 2.75rem);
  border: 1px solid rgba(255, 255, 255, .2);
  border-top: 4px solid var(--buttons, #c19650);
  border-radius: .85rem;
  background: rgba(255, 255, 255, .09);
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, .18);
  backdrop-filter: blur(4px);
}

.nlg-home-v2-location-list {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1.5rem 0;
}

.nlg-home-v2-location-list span,
.nlg-home-v2-location-list a {
  display: inline-flex;
  padding: .5rem .75rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font-size: .88rem;
  line-height: 1.2;
  text-decoration: none;
}

.nlg-home-v2-location-list a:hover,
.nlg-home-v2-location-list a:focus {
  border-color: var(--buttons, #c19650);
  color: #fff;
  background: rgba(193, 150, 80, .25);
}

.nlg-home-v2-local-note {
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .95rem;
}

.nlg-home-v2-faq {
  background:
    linear-gradient(rgba(255, 255, 255, .96), rgba(255, 255, 255, .96)),
    #fff;
}

.nlg-home-v2-faq-list {
  max-width: 64rem;
  margin: 0 auto;
  border-top: 1px solid rgba(20, 56, 89, .16);
}

.nlg-home-v2-faq-list details {
  border-bottom: 1px solid rgba(20, 56, 89, .16);
  background: #fff;
}

.nlg-home-v2-faq-list summary {
  position: relative;
  padding: 1.35rem 3.5rem 1.35rem .15rem;
  color: var(--primary-dark, #114470);
  font-family: var(--title-font, "EB Garamond", Georgia, serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.nlg-home-v2-faq-list summary::-webkit-details-marker {
  display: none;
}

.nlg-home-v2-faq-list summary::before,
.nlg-home-v2-faq-list summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: .5rem;
  width: 1.25rem;
  height: 2px;
  background: var(--buttons, #c19650);
  transform: translateY(-50%);
  transition: transform .2s ease;
}

.nlg-home-v2-faq-list summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.nlg-home-v2-faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(0deg);
}

.nlg-home-v2-faq-list summary:focus-visible {
  outline: 2px solid var(--buttons, #c19650);
  outline-offset: 4px;
}

.nlg-home-v2-faq-list details > div {
  padding: 0 3.5rem 1.4rem .15rem;
}

.nlg-home-v2-faq-list details p {
  margin: 0;
  color: #2e4050;
  line-height: 1.72;
}

.nlg-home-v2-faq-footer {
  margin-top: 2.5rem;
}

.nlg-home-v2-blog-intro {
  max-width: 48rem;
  margin: .7rem auto 0;
  text-align: center;
}

@media screen and (max-width: 1024px) {
  .nlg-home-v2-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nlg-home-v2-authority-grid {
    grid-template-columns: 1fr;
  }

  .nlg-home-v2-local-card {
    max-width: 48rem;
  }
}

@media screen and (max-width: 800px) {
  .nlg-home-v2-section {
    padding: 4rem 1.1rem;
  }

  .nlg-home-v2-split-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

}

@media screen and (max-width: 600px) {
  .nlg-home-v2-card-grid {
    grid-template-columns: 1fr;
  }

  .nlg-home-v2-card,
  .nlg-home-v2-guidance-panel {
    padding: 1.45rem;
  }

  .nlg-home-v2-step-list li {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: .75rem;
  }

  .nlg-home-v2-step-list li > span {
    width: 2.2rem;
    height: 2.2rem;
  }

  .nlg-home-v2-faq-list summary {
    padding-right: 2.75rem;
  }

  .nlg-home-v2-faq-list details > div {
    padding-right: .25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nlg-home-v2-card,
  .nlg-home-v2-faq-list summary::before,
  .nlg-home-v2-faq-list summary::after {
    transition: none;
  }
}

html.high-contrast .nlg-home-v2-section,
html.high-contrast .nlg-home-v2-card,
html.high-contrast .nlg-home-v2-guidance,
html.high-contrast .nlg-home-v2-faq,
html.high-contrast .nlg-home-v2-faq-list details {
  background: #000 !important;
  color: #fff !important;
}

html.high-contrast .nlg-home-v2-card p,
html.high-contrast .nlg-home-v2-step-list p,
html.high-contrast .nlg-home-v2-faq-list details p {
  color: #fff !important;
}
