:root {
  --ink: #17120e;
  --mahogany: #2b1712;
  --oxblood: #6b1f2a;
  --moss: #344739;
  --gold: #c79b52;
  --paper: #efe7d6;
  --parchment: #fbf6ea;
  --smoke: #6f665a;
  --line: #d8cbb7;
  --white: #ffffff;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--gold);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0;
  line-height: 0.96;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 42px);
  color: var(--parchment);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(251, 246, 234, 0.96);
  border-bottom: 1px solid rgba(23, 18, 14, 0.12);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: none;
}

.brand-text {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-text strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
}

.brand-text span,
.eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header.is-scrolled .brand-text span,
.site-header.is-open .brand-text span {
  color: var(--oxblood);
}

.nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 0.88rem;
  font-weight: 800;
}

.nav a {
  opacity: 0.86;
}

.nav a:hover {
  opacity: 1;
}

.nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 7px;
  padding: 10px 15px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 7px;
  background: rgba(23, 18, 14, 0.28);
  color: currentColor;
}

.site-header.is-scrolled .menu-button,
.site-header.is-open .menu-button {
  border-color: var(--line);
  background: var(--white);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--parchment);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 18, 14, 0.98) 0%, rgba(43, 23, 18, 0.9) 39%, rgba(43, 23, 18, 0.28) 70%, rgba(23, 18, 14, 0.14) 100%),
    url("assets/images/helmker-formal-law-portrait.png") center right / cover no-repeat;
  transform: scale(1.01);
}

.hero-mobile-portrait {
  display: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background: linear-gradient(0deg, var(--paper), rgba(239, 231, 214, 0));
}

.hero-panel {
  position: relative;
  z-index: 2;
  width: min(660px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding-top: 80px;
}

.hero h1 {
  max-width: 9.5ch;
  margin-top: 18px;
  font-size: clamp(4rem, 9vw, 8.25rem);
  font-weight: 700;
}

.hero-copy {
  max-width: 620px;
  margin-top: 24px;
  color: rgba(251, 246, 234, 0.82);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.hero-disclaimer {
  max-width: 560px;
  margin-top: 14px;
  color: rgba(251, 246, 234, 0.72);
  font-size: 0.88rem;
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 7px;
  padding: 13px 18px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  background: var(--gold);
  color: var(--ink);
}

.button-primary:hover {
  background: #dbb46e;
}

.button-ghost {
  border: 1px solid rgba(251, 246, 234, 0.42);
  color: var(--parchment);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  width: min(560px, 100%);
  margin-top: 44px;
  border: 1px solid rgba(251, 246, 234, 0.16);
  background: rgba(251, 246, 234, 0.12);
}

.hero-notes span {
  flex: 1 1 150px;
  padding: 15px 18px;
  background: rgba(23, 18, 14, 0.38);
  color: rgba(251, 246, 234, 0.86);
  font-weight: 800;
}

.intro,
.claims,
.approach,
.family,
.contact,
.site-footer {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: 54px;
  padding: 92px 0 76px;
}

.intro h2,
.section-heading h2,
.approach h2,
.family h2,
.contact h2 {
  margin-top: 12px;
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  font-weight: 700;
}

.intro > p,
.approach-copy p,
.family-columns p,
.contact-copy {
  color: var(--smoke);
  font-size: 1rem;
}

.claims {
  padding: 72px 0 92px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.claim-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.claim-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  background: var(--parchment);
}

.feature-card {
  background: var(--mahogany);
  color: var(--parchment);
}

.card-number {
  color: var(--oxblood);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.feature-card .card-number {
  color: var(--gold);
}

.claim-card h3 {
  margin-top: auto;
  font-size: 1.72rem;
}

.claim-card p {
  margin-top: 12px;
  color: var(--smoke);
}

.feature-card p {
  color: rgba(251, 246, 234, 0.72);
}

.approach {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.58fr);
  gap: 38px;
  align-items: stretch;
  padding: 88px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.approach-copy {
  padding-right: clamp(0px, 3vw, 38px);
}

.approach-copy p {
  margin-top: 22px;
}

.steps {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.step {
  display: grid;
  gap: 6px;
  padding: 25px;
  background: var(--moss);
  color: var(--parchment);
}

.step strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
}

.step span {
  color: rgba(251, 246, 234, 0.73);
}

.family {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.72fr);
  gap: 50px;
  align-items: start;
  padding: 94px 0;
}

.family-story {
  display: grid;
  gap: 24px;
}

.family-story img {
  width: 100%;
  display: block;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 32%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.family-columns {
  display: grid;
  gap: 22px;
  align-content: end;
}

.contact {
  padding: 0 0 80px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.72fr);
  gap: 44px;
  padding: clamp(28px, 5vw, 54px);
  background: var(--ink);
  color: var(--parchment);
  border-radius: 8px;
}

.contact-copy {
  margin-top: 18px;
  color: rgba(251, 246, 234, 0.72);
}

.intake-form {
  display: grid;
  gap: 14px;
}

.intake-form label {
  display: grid;
  gap: 7px;
  color: rgba(251, 246, 234, 0.78);
  font-size: 0.84rem;
  font-weight: 800;
}

.intake-form input,
.intake-form select,
.intake-form textarea {
  width: 100%;
  border: 1px solid rgba(251, 246, 234, 0.22);
  border-radius: 7px;
  background: rgba(251, 246, 234, 0.08);
  color: var(--parchment);
  padding: 13px 14px;
  outline: none;
}

.intake-form select option {
  color: var(--ink);
}

.intake-form textarea {
  resize: vertical;
}

.intake-form input:focus,
.intake-form select:focus,
.intake-form textarea:focus {
  border-color: var(--gold);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 38px;
  color: var(--smoke);
  font-size: 0.9rem;
}

.site-footer div {
  display: grid;
  gap: 3px;
}

.site-footer strong {
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
}

@media (max-width: 920px) {
  .menu-button {
    display: block;
  }

  .nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--parchment);
    color: var(--ink);
    box-shadow: 0 18px 45px rgba(23, 18, 14, 0.18);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav-cta {
    border: 0;
    border-radius: 0;
  }

  .hero {
    min-height: auto;
    display: grid;
    align-items: end;
    padding: 0 0 66px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(23, 18, 14, 0.18) 0%, rgba(23, 18, 14, 0.72) 45%, rgba(23, 18, 14, 0.98) 100%),
      linear-gradient(180deg, var(--mahogany), var(--ink));
  }

  .hero-mobile-portrait {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    margin: 0 0 28px;
    background: transparent;
    overflow: hidden;
  }

  .hero-mobile-portrait::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, var(--ink), rgba(23, 18, 14, 0));
    pointer-events: none;
  }

  .hero-mobile-portrait img {
    width: 100%;
    height: auto;
    display: block;
  }

  .hero-panel {
    width: calc(100% - 36px);
    margin: 0 auto;
    padding-top: 0;
  }

  .hero h1 {
    max-width: 10.5ch;
  }

  .intro,
  .approach,
  .family,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .claim-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 70px;
    padding: 12px 16px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-text strong {
    font-size: 1.1rem;
  }

  .brand-text span {
    font-size: 0.62rem;
  }

  .hero {
    padding-top: 0;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 18vw, 4.6rem);
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .hero-notes span {
    flex-basis: 100%;
  }

  .intro,
  .claims,
  .approach,
  .family {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .claim-grid {
    grid-template-columns: 1fr;
  }

  .claim-card {
    min-height: 220px;
  }

  .contact-card {
    padding: 26px 18px;
  }
}
