/* ==========================================================================
   Levenson Law Group — stylesheet
   Tokens: navy #173B4E, navy-deep #102A38, cream #FAF6EE, cream-soft #F4EEE1,
           brass #BF8B3D, brick #B1543A, ink #24333D
   Type: 'Lora' (display/serif) + 'Karla' (body/humanist sans)
   ========================================================================== */

:root {
  --navy: #173B4E;
  --navy-deep: #0F2733;
  --navy-soft: #24506A;
  --cream: #FAF6EE;
  --cream-soft: #F4EEE1;
  --cream-line: #E4DAC6;
  --brass: #BF8B3D;
  --brass-light: #D9B876;
  --brick: #B1543A;
  --ink: #24333D;
  --ink-soft: #55636C;

  --font-display: 'Lora', 'Georgia', serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --radius: 3px;

  --shadow-soft: 0 12px 32px rgba(15, 39, 51, 0.10);
  --shadow-card: 0 2px 0 rgba(23, 59, 78, 0.06);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
}

p { margin: 0 0 1em; }

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

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

/* Visually hidden (skip link target labels, etc.) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brass);
  color: var(--navy-deep);
  padding: 12px 18px;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--brass);
  color: var(--navy-deep);
}
.btn-primary:hover { background: var(--brass-light); }

.btn-outline {
  background: transparent;
  border-color: rgba(250, 246, 238, 0.45);
  color: var(--cream);
}
.btn-outline:hover {
  border-color: var(--cream);
  background: rgba(250, 246, 238, 0.08);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--cream);
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(250, 246, 238, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.brand img {
  height: 34px;
  width: auto;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--cream-soft);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--cream-soft);
  font-size: 15px;
  font-weight: 600;
  opacity: 0.88;
  transition: opacity 0.2s ease;
  position: relative;
}
.nav-links a:hover { opacity: 1; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-phone {
  color: var(--brass-light);
  font-weight: 700;
  font-size: 15px;
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(250,246,238,0.35);
  border-radius: var(--radius);
  color: var(--cream);
  padding: 8px 10px;
  font-size: 20px;
  cursor: pointer;
}

@media (min-width: 860px) {
  .nav-phone { display: inline-block; }
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 18px;
    border-bottom: 1px solid rgba(250,246,238,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(250,246,238,0.08);
  }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta .btn-outline.header-cta { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  color: var(--cream-soft);
  position: relative;
  overflow: hidden;
}

.hero-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px 28px 96px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-tag {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 22px;
  display: block;
}

.hero h1 {
  color: var(--cream);
  font-size: clamp(40px, 5.4vw, 62px);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: normal;
  color: var(--brass-light);
}

.hero p.lede {
  font-size: 19px;
  color: rgba(250, 246, 238, 0.82);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 14px;
  color: rgba(250, 246, 238, 0.65);
}

.hero-trust li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-trust svg { flex-shrink: 0; }

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.scale-art {
  width: min(100%, 360px);
}

/* Balance-arm animation: settles from a slight tilt to level on load,
   echoing the wordmark and the "making complicated, simple" line. */
.scale-beam-group {
  transform-origin: 200px 92px;
  animation: settle 1.8s cubic-bezier(.22,1,.36,1) 0.2s both;
}

@keyframes settle {
  0%   { transform: rotate(-9deg); }
  55%  { transform: rotate(3deg); }
  100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .scale-beam-group { animation: none; }
}

/* ---------- Sections (generic) ---------- */

section { padding: 96px 0; }

.section-cream { background: var(--cream); }
.section-soft { background: var(--cream-soft); }
.section-navy { background: var(--navy); color: var(--cream-soft); }
.section-navy h2 { color: var(--cream); }

.section-head {
  max-width: 640px;
  margin: 0 0 52px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
}

.section-navy .section-head p { color: rgba(250,246,238,0.72); }

/* ---------- About / Intro ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-lead {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.5;
  color: var(--navy);
}

.about-body p { color: var(--ink-soft); }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--cream-line);
}

.about-stats dt {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--brass);
  font-weight: 600;
}

.about-stats dd {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- Practice Areas ---------- */

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.practice-card {
  background: var(--cream);
  border: 1px solid var(--cream-line);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  position: relative;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.practice-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.practice-card.featured {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream-soft);
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 36px 36px;
}

.practice-card.featured h3,
.practice-card.featured .practice-icon { color: var(--cream); }

.practice-badge {
  display: inline-block;
  background: var(--brass);
  color: var(--navy-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  margin-bottom: 14px;
}

.practice-icon {
  width: 30px;
  height: 30px;
  color: var(--brass);
  margin-bottom: 16px;
}

.practice-card.featured .practice-icon-wrap {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(250,246,238,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.practice-card.featured .practice-icon {
  width: 34px; height: 34px; margin: 0;
}

.practice-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.practice-card p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.practice-card.featured p {
  color: rgba(250,246,238,0.78);
}

/* the "balance line" — a thin rule that tips like a scale beam on hover,
   a small literal callback to the wordmark rather than a generic icon set */
.balance-line {
  margin-top: 18px;
  height: 1px;
  background: var(--cream-line);
  position: relative;
  transform-origin: center;
  transition: transform 0.4s ease, background 0.4s ease;
}
.practice-card:hover .balance-line {
  background: var(--brass);
  transform: rotate(-2deg);
}
.practice-card.featured .balance-line { background: rgba(250,246,238,0.2); }
.practice-card.featured:hover .balance-line { background: var(--brass-light); }

/* ---------- Why / Pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.pillar {
  padding: 0 32px;
  border-left: 1px solid rgba(250, 246, 238, 0.16);
}
.pillar:first-child { border-left: none; padding-left: 0; }

.pillar h3 {
  color: var(--cream);
  font-size: 21px;
  margin-bottom: 12px;
}

.pillar p {
  color: rgba(250, 246, 238, 0.72);
  font-size: 15.5px;
}

/* ---------- Process (how it works) ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
  position: relative;
}

.process::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: var(--cream-line);
  z-index: 0;
}

.step {
  position: relative;
  padding-right: 20px;
  z-index: 1;
}

.step-marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--brass);
  margin-bottom: 22px;
  position: relative;
}
.step-marker::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: var(--brass);
  border-radius: 50%;
}

.step h4 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--navy);
}

.step p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.contact-info h2 { font-size: clamp(28px, 3.4vw, 36px); }

.contact-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-list svg {
  color: var(--brass);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-list .label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

.contact-list a, .contact-list span.value {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy);
}
.contact-list a:hover { color: var(--brass); }

.contact-form {
  background: var(--cream);
  border: 1px solid var(--cream-line);
  border-radius: 4px;
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--cream-line);
  border-radius: 3px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brass);
}

.field textarea { resize: vertical; min-height: 110px; }

.form-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 14px;
  margin-bottom: 0;
}

.form-success {
  display: none;
  background: var(--navy);
  color: var(--cream);
  padding: 18px 20px;
  border-radius: 3px;
  font-size: 15px;
  margin-bottom: 18px;
}
.form-success.show { display: block; }

/* honeypot field */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--brass);
  color: var(--navy-deep);
  padding: 56px 0;
}

.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--navy-deep);
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 6px;
}

.cta-band p {
  margin: 0;
  color: rgba(15, 39, 51, 0.75);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(250, 246, 238, 0.6);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 246, 238, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-brand img { height: 28px; }
.footer-brand span {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--cream-soft);
}

.footer-tag {
  font-size: 14px;
  max-width: 32ch;
  color: rgba(250, 246, 238, 0.5);
}

.footer-col h5 {
  color: var(--cream-soft);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a { font-size: 14.5px; }
.footer-col a:hover { color: var(--brass-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
}

.footer-bottom .disclaimer {
  max-width: 62ch;
  color: rgba(250, 246, 238, 0.4);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-wrap { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-art { order: -1; margin-bottom: 8px; }
  .scale-art { width: 220px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .practice-grid { grid-template-columns: 1fr 1fr; }
  .practice-card.featured { grid-column: span 2; grid-template-columns: 1fr; text-align: left; }
  .pillars { grid-template-columns: 1fr; gap: 32px; }
  .pillar { border-left: none; padding-left: 0; border-top: 1px solid rgba(250,246,238,0.16); padding-top: 28px; }
  .pillar:first-child { border-top: none; padding-top: 0; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .process::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card.featured { grid-column: span 1; }
  .process { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; gap: 18px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .hero-trust { flex-direction: column; gap: 12px; }
}
