/* ------------------------------

   Nelson James Law

   ------------------------------ */

:root {

  --navy: #102934;

  --navy-deep: #0a2028;

  --ink: #172126;

  --muted: #667177;

  --paper: #f7f5f0;

  --white: #fffefa;

  --stone: #ebe7df;

  --line: #d9d4ca;

  --brass: #9b7a43;

  --brass-light: #c2a978;

  --serif: "Source Serif 4", Georgia, serif;

  --sans: "Libre Franklin", Arial, sans-serif;

  --page: min(1180px, calc(100% - 48px));

}

/* Base */

* {

  box-sizing: border-box;

}

html {

  scroll-behavior: smooth;

}

body {

  margin: 0;

  color: var(--ink);

  background: var(--white);

  font-family: var(--sans);

  font-size: 16px;

  line-height: 1.65;

}

a {

  color: inherit;

  text-decoration: none;

}

a:focus-visible {

  outline: 2px solid var(--brass);

  outline-offset: 5px;

}

section {

  scroll-margin-top: 80px;

}

/* Header */

.site-header {

  position: sticky;

  top: 0;

  z-index: 1000;

  width: 100%;

  min-height: 64px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 32px;

  padding-left: max(24px, calc((100vw - var(--page)) / 2));

  padding-right: max(24px, calc((100vw - var(--page)) / 2));

  background: var(--navy);

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  transition:

    min-height 0.25s ease,

    box-shadow 0.25s ease;

}

.site-header.is-scrolled {

  min-height: 56px;

  box-shadow:

    0 4px 16px rgba(10, 32, 40, 0.14);

}

/* Brand */

.brand {

  display: inline-flex;

  align-items: baseline;

  gap: 7px;

  color: var(--white);

  white-space: nowrap;

}

.brand-name {

  font-family: var(--serif);

  font-size: 1.55rem;

  font-weight: 500;

  line-height: 1;

  letter-spacing: -0.025em;

}

.brand-law {

  color: var(--brass-light);

  font-size: 0.62rem;

  font-weight: 600;

  letter-spacing: 0.16em;

  text-transform: uppercase;

}

/* Navigation */

.site-nav {

  display: flex;

  align-items: center;

  gap: 30px;

  font-size: 0.84rem;

  font-weight: 500;

}

.site-nav a {

  position: relative;

  color: rgba(255, 254, 250, 0.9);

  transition: color 160ms ease;

}

.site-nav a:hover {

  color: var(--white);

}

.site-nav a::after {

  content: "";

  position: absolute;

  left: 0;

  right: 100%;

  bottom: -7px;

  height: 1px;

  background: var(--brass-light);

  transition: right 160ms ease;

}

.site-nav a:hover::after {

  right: 0;

}

.site-header a:focus-visible {

  outline-color: var(--brass-light);

}

/* Hero */

.hero {

  position: relative;

  isolation: isolate;

  overflow: hidden;

  width: var(--page);

  margin: 0 auto;

  display: block;

}

.hero::after {

  content: "NJ";

  position: absolute;

  left: 80%;

  top: 50%;

  transform: translate(-50%, -50%);

  font-family: var(--serif);

  font-size: clamp(14rem, 23vw, 25rem);

  font-weight: 500;

  line-height: 0.8;

  letter-spacing: -0.08em;

  white-space: nowrap;

  color: var(--navy);

  opacity: 0.015;

  pointer-events: none;

  user-select: none;

  z-index: 0;

}

.hero-inner {

  position: relative;

  z-index: 1;

  max-width: 960px;

  padding: 52px 0 56px;

}

.eyebrow {

  margin: 0 0 18px;

  color: var(--brass);

  font-size: 0.72rem;

  font-weight: 600;

  letter-spacing: 0.18em;

  text-transform: uppercase;

}

.hero h1,

.contact-section h2 {

  font-family: var(--serif);

  font-weight: 500;

  letter-spacing: -0.035em;

}

.hero h1 {

  margin: 0;

  color: var(--navy);

  font-size: clamp(2.6rem, 4.8vw, 4rem);

  line-height: 1.06;

}

.intro {

  max-width: 620px;

  margin: 22px 0 14px;

  color: #49565c;

  font-size: clamp(1.05rem, 1.5vw, 1.25rem);

  line-height: 1.6;

}

/* Tight hero spacing for secondary copy and contact information */
.hero-inner > p:not(.intro):not(.eyebrow) {
  margin-top: 0;
  margin-bottom: 14px;
}

.hero .contact-details {
  margin: 14px 0 0;
  gap: 8px 24px;
}

.text-link {

  display: inline-block;

  padding-bottom: 4px;

  border-bottom: 1px solid var(--brass);

  color: var(--ink);

  font-size: 0.9rem;

  font-weight: 600;

  transition:

    color 160ms ease,

    border-color 160ms ease;

}

.text-link:hover {

  color: var(--brass);

}

.text-link span {

  margin-left: 6px;

}

/* Keep any decorative divider in the hero understated. */
.hero-inner hr {
  width: 150px;
  max-width: 100%;
  margin: 18px 0 12px;
  border: 0;
  border-top: 1px solid var(--line);
}

/* Shared sections */

.section {

  width: var(--page);

  margin: 0 auto;

  padding: 84px 0;

  display: grid;

  grid-template-columns: 170px minmax(0, 1fr);

  gap: 60px;

  border-top:none;

}

.section-label {

  padding-top: 6px;

  color: var(--brass);

  font-size: 0.72rem;

  font-weight: 600;

  letter-spacing: 0.16em;

  text-transform: uppercase;

}

.section-content {

  max-width: 850px;

}

/* Full-width soft section */

.section-soft {

  background: var(--paper);

  box-shadow:

    0 0 0 100vmax var(--paper);

  clip-path:

    inset(0 -100vmax);

}

/* Services */

#services {

  padding-top: 54px;

  padding-bottom: 56px;

  column-gap: 52px;

}

.services-list {

  max-width: 760px;

  margin: 0;

  padding: 0;

  list-style: none;

}

.services-list li {

  position: relative;

  padding: 6px 0 6px 20px;

  color: var(--ink);

  font-size: 1.02rem;

  line-height: 1.55;

}

.services-list li::before {

  content: "•";

  position: absolute;

  left: 0;

  top: 6px;

  color: var(--brass);

}

/* About */

#about {

  position: relative;

}

.about-copy {

  max-width: 720px;

}

.about-copy p {

  margin: 0 0 16px;

}

.about-copy p:last-child {

  margin-bottom: 0;

}

/* Contact */

.contact-section {

  padding:

    36px

    max(24px, calc((100vw - 1180px) / 2));

  display: grid;

  grid-template-columns: 1.5fr 0.7fr;

  gap: 60px;

  align-items: end;

  background: var(--navy);

  color: var(--white);

}

.eyebrow.light {

  color: var(--brass-light);

}

.contact-section h2 {

  max-width: 760px;

  margin: 0;

  font-size: clamp(1.8rem, 3vw, 2.8rem);

  line-height: 1.03;

}

.contact-details p {

  margin: 0 0 24px;

  color: #b7c2c6;

}

.contact-button {

  display: inline-flex;

  align-items: center;

  gap: 10px;

  padding: 12px 18px;

  border: 1px solid var(--brass-light);

  color: var(--white);

  font-size: 0.86rem;

  font-weight: 600;

  transition:

    background 160ms ease,

    color 160ms ease,

    border-color 160ms ease;

}

.contact-button:hover {

  background: var(--brass-light);

  color: var(--navy);

}

.contact-button span {

  transition: transform 160ms ease;

}

.contact-button:hover span {

  transform: translateX(3px);

}

/* Footer */

.site-footer {

  width: var(--page);

  min-height: 92px;

  margin: 0 auto;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 24px;

  color: var(--muted);

  font-size: 0.74rem;

}

.footer-links {

  display: flex;

  gap: 24px;

}

/* --------------------------------

   Contact page

   -------------------------------- */

.contact-page {

  width: var(--page);

  max-width: 920px;

  margin: 0 auto;

  padding: 90px 0 110px;

}

.contact-form-intro {

  max-width: 650px;

  margin-bottom: 52px;

}

.contact-form-intro h1 {

  margin: 0 0 24px;

  color: var(--navy);

  font-family: var(--serif);

  font-size: clamp(2.6rem, 5vw, 4rem);

  font-weight: 500;

  line-height: 1.05;

  letter-spacing: -0.035em;

}

.contact-form-intro p:last-child {

  max-width: 580px;

  margin: 0;

  color: var(--muted);

  font-size: 1.05rem;

}

.contact-form {

  max-width: 650px;

}

.form-field {

  margin-bottom: 24px;

}

.form-field label {

  display: block;

  margin-bottom: 8px;

  color: var(--ink);

  font-size: 0.82rem;

  font-weight: 600;

}

.form-field label span {

  color: var(--muted);

  font-weight: 400;

}

.form-field input,

.form-field textarea {

  width: 100%;

  padding: 13px 14px;

  border: 1px solid var(--line);

  border-radius: 0;

  background: var(--white);

  color: var(--ink);

  font: inherit;

  outline: none;

  transition: border-color 160ms ease;

}

.form-field input:focus,

.form-field textarea:focus {

  border-color: var(--brass);

}

.form-field textarea {

  resize: vertical;

}

.form-submit {

  padding: 13px 20px;

  border: 1px solid var(--navy);

  background: var(--navy);

  color: var(--white);

  font-family: var(--sans);

  font-size: 0.86rem;

  font-weight: 600;

  cursor: pointer;

  transition:

    background 160ms ease,

    color 160ms ease;

}

.form-submit:hover {

  background: transparent;

  color: var(--navy);

}

/* Fees */

.fees-section {
  padding-top: 62px;
  padding-bottom: 62px;
}

.fees-copy { max-width: 720px; }

.fees-statement {
  margin: 0 0 24px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.fees-copy p:not(.fees-statement) {
  max-width: 670px;
  margin: 0 0 18px;
}

.fees-closing {
  margin-top: 28px !important;
  color: var(--ink);
  font-weight: 600;
}

/* Contact details */

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 24px 0 32px;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.contact-details a,
.contact-details a:visited {
  color: var(--ink);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-us-button,
.contact-us-button:visited,
.contact-us-button:hover {
  color: #ffffff;
}

/* Responsive */

@media (max-width: 900px) {
  :root { --page: calc(100% - 32px); }

  .site-header {
    min-height: 60px;
    padding-left: 16px;
    padding-right: 16px;
    gap: 24px;
  }
  .site-header.is-scrolled { min-height: 54px; }
  .brand-name { font-size: 1.35rem; }
  .brand-law { font-size: 0.58rem; }
  .site-nav { gap: 20px; font-size: 0.76rem; }

  .hero::after {
    left: 82%;
    font-size: clamp(11rem, 26vw, 18rem);
    opacity: 0.025;
  }
  .hero-inner { padding: 46px 0 50px; }

  .section {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 42px;
    padding: 68px 0;
  }
  #services { padding-top: 52px; padding-bottom: 54px; }
  .principles { gap: 20px; }
  .principles h3 { font-size: 1.3rem; }
  .contact-section { padding-top: 66px; padding-bottom: 66px; }
}

@media (max-width: 680px) {
  section { scroll-margin-top: 75px; }
  .site-header { min-height: 58px; gap: 14px; }
  .site-header.is-scrolled { min-height: 54px; }
  .brand { gap: 5px; }
  .brand-name { font-size: 1.2rem; }
  .brand-law { font-size: 0.52rem; letter-spacing: 0.12em; }
  .site-nav { margin-left: auto; gap: 12px; font-size: 0.68rem; }

  .hero::after { left: 84%; font-size: clamp(9rem, 30vw, 13rem); opacity: 0.018; }
  .hero-inner { padding: 46px 0 50px; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.5rem); }
  .eyebrow { margin-bottom: 18px; }
  .intro { margin-top: 24px; margin-bottom: 14px; }

  .section { grid-template-columns: 1fr; gap: 22px; padding: 54px 0; }
  .section-label { padding-top: 0; }
  #services { padding-top: 46px; padding-bottom: 48px; }
  .principles { grid-template-columns: 1fr; gap: 32px; }
  .principles > div { padding-top: 16px; }
  .number { margin-bottom: 14px; }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 52px;
    padding-bottom: 52px;
  }
  .site-footer { padding: 24px 0; flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 18px; }
  .fees-section, #fees { padding-top: 42px; padding-bottom: 42px; }
  .fees-statement { margin-bottom: 18px; }
  .fees-closing { margin-top: 22px !important; }
  .fees-copy p { margin-bottom: 14px; }
}

@media (max-width: 480px) {
  section { scroll-margin-top: 118px; }
  .site-header {
    min-height: auto;
    padding-top: 13px;
    padding-bottom: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .site-header.is-scrolled { min-height: auto; }
  .site-nav { width: 100%; margin-left: 0; justify-content: flex-start; gap: 20px; font-size: 0.7rem; }
  .site-nav a::after { bottom: -4px; }
  .hero::after { display: none; }
  .hero-inner { padding: 44px 0 48px; }
  .hero h1 { font-size: clamp(2.45rem, 13vw, 3.2rem); }
  .section { padding: 50px 0; }
  #services { padding-top: 44px; padding-bottom: 46px; }
  .services-list li { padding-top: 5px; padding-bottom: 5px; font-size: 0.96rem; }
  .about-copy p { margin-bottom: 16px; }
  #fees { padding-top: 36px; padding-bottom: 36px; }
}


/* Hero contact card refinements */

.hero .njl-contact-card {
  width: fit-content;
  max-width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.hero .njl-contact-links {
  margin-bottom: 0;
}

.hero .njl-hero-cta {
  display: table;
  width: fit-content;
  margin-top: 16px;
}


/* Direct contact details on Contact page */

.contact-direct {
  margin: 0 0 40px;
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-direct p {
  margin: 0 0 8px;
}

.contact-direct strong {
  font-weight: 500;
}

.contact-direct span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.contact-direct a {
  color: var(--navy);
}

.contact-direct a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ====================================
   FEES AND FOOTER CORRECTION
   ==================================== */

/* 1. Restore previous Fees typography */

@media (min-width: 481px) {

  #fees .fees-copy {
    max-width: 850px;
  }

  #fees .fees-statement {
    margin: 0 0 18px;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: normal;
  }

  #fees .fees-copy p:not(.fees-statement) {
    max-width: none;
    margin: 0 0 18px;
  }

  #fees .fees-closing {
    margin-top: 0 !important;
    font-weight: 400;
  }
}

/* Restore original section padding */

@media (min-width: 901px) {
  #fees {
    padding-top: 84px;
    padding-bottom: 84px;
  }
}

@media (min-width: 681px) and (max-width: 900px) {
  #fees {
    padding-top: 68px;
    padding-bottom: 68px;
  }
}

@media (min-width: 481px) and (max-width: 680px) {
  #fees {
    padding-top: 54px;
    padding-bottom: 54px;
  }
}

/* 2. Fix bottom contact banner */


/* Bottom contact banner */

.contact-section {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 36px;
  align-items: center;
  padding-top: 42px;
  padding-bottom: 42px;
}

.contact-section .eyebrow {
  margin: 0 0 10px;
}

.contact-section .contact-button {
  justify-self: start;
  white-space: nowrap;
}

/* Mobile */

@media (max-width: 680px) {
  .contact-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
}
